Skip to content

Commit

Permalink
derp'd with the names
Browse files Browse the repository at this point in the history
  • Loading branch information
psykzz committed Jan 4, 2015
1 parent fb4e1c5 commit 50a7f76
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions code/game/objects/items/weapons/RCD.dm
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ RCD


/obj/item/weapon/rcd/New()
desc = "A RCD. It currently holds [matter]/[max_charge] matter-units."
desc = "A RCD. It currently holds [matter]/[max_matter] matter-units."
src.spark_system = new /datum/effect/effect/system/spark_spread
spark_system.set_up(5, 0, src)
spark_system.attach(src)
Expand All @@ -103,15 +103,15 @@ RCD
/obj/item/weapon/rcd/attackby(obj/item/weapon/W, mob/user)
..()
if(istype(W, /obj/item/weapon/rcd_ammo))
if((matter + 20) > max_charge)
if((matter + 20) > max_matter)
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]/[max_charge] matter-units.</span>"
desc = "A RCD. It currently holds [matter]/[max_charge] matter-units."
user << "<span class='notice'>The RCD now holds [matter]/[max_matter] matter-units.</span>"
desc = "A RCD. It currently holds [matter]/[max_matter] matter-units."
return


Expand Down Expand Up @@ -244,7 +244,7 @@ RCD
if(matter < amount)
return 0
matter -= amount
desc = "A RCD. It currently holds [matter]/[max_charge] matter-units."
desc = "A RCD. It currently holds [matter]/[max_matter] matter-units."
return 1

/obj/item/weapon/rcd/proc/checkResource(var/amount, var/mob/user)
Expand Down

0 comments on commit 50a7f76

Please sign in to comment.