Hotfix for infinite mangling of gloves.

This commit is contained in:
DJSnapshot
2013-09-22 13:10:14 -07:00
parent a6b2fc2abe
commit a11f1d4bdb
2 changed files with 17 additions and 12 deletions

View File

@@ -73,6 +73,7 @@ BLIND // can't see anything
siemens_coefficient = 0.50
var/wired = 0
var/obj/item/weapon/cell/cell = 0
var/clipped = 0
body_parts_covered = HANDS
slot_flags = SLOT_GLOVES
attack_verb = list("challenged")

View File

@@ -33,25 +33,29 @@
user << "<span class='notice'>[src] already have a cell.</span>"
else if(istype(W, /obj/item/weapon/wirecutters))
if("exclude" in species_restricted)
name = "mangled [name]"
species_restricted -= "Unathi"
species_restricted -= "Tajaran"
species_restricted += "stunglove"
wired = null
if(cell)
cell.updateicon()
cell.loc = get_turf(src.loc)
cell = null
wired = null
if(cell)
cell.updateicon()
cell.loc = get_turf(src.loc)
cell = null
if(clipped == 0)
playsound(src.loc, 'sound/items/Wirecutter.ogg', 100, 1)
user.visible_message("\red [user] snips the fingertips off [src].","\red You snip the fingertips off [src].")
clipped = 1
if("exclude" in species_restricted)
name = "mangled [name]"
desc = "[desc] They have had the fingertips cut off of them."
species_restricted -= "Unathi"
species_restricted -= "Tajaran"
species_restricted += "stunglove"
else if(clipped == 1)
user << "<span class='notice'>[src] have already been clipped!</span>"
update_icon()
return
return
if(cell)
cell.updateicon()