Skip to content

Commit

Permalink
Fixing desc to show max cap of the RCD
Browse files Browse the repository at this point in the history
Was hard coded to show 30, moving it to a variable and actually making use of it.
  • Loading branch information
psykzz committed Jan 3, 2015
1 parent 732dff0 commit 19ad927
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions code/game/objects/items/weapons/RCD.dm
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,16 @@ RCD
/obj/item/weapon/rcd/attackby(obj/item/weapon/W, mob/user)
..()
if(istype(W, /obj/item/weapon/rcd_ammo))
if((matter + 20) > 100)
var/rcd_max_cap = 100
if((matter + 20) > rcd_max_cap)
user << "<span class='notice'>The RCD cant hold any more matter-units.</span>"
return
user.drop_item()
qdel(W)
matter += 20
playsound(src.loc, 'sound/machines/click.ogg', 50, 1)
user << "<span class='notice'>The RCD now holds [matter]/30 matter-units.</span>"
desc = "A RCD. It currently holds [matter]/30 matter-units."
user << "<span class='notice'>The RCD now holds [matter]/[rcd_max_cap] matter-units.</span>"
desc = "A RCD. It currently holds [matter]/[rcd_max_cap] matter-units."
return


Expand Down

0 comments on commit 19ad927

Please sign in to comment.