EVA changes exploit fix

quick-equip (hotkey equip) now has the same delay/restriction as normal
equipping eva suits/helms
This commit is contained in:
Bone White
2014-08-28 17:07:39 +01:00
parent e964c45f00
commit 56bef314b7
@@ -9,6 +9,18 @@
if(!I)
H << "<span class='notice'>You are not holding anything to equip.</span>"
return
if(istype(I, /obj/item/clothing/head/helmet/space/rig)) // If the item to be equipped is a rigid suit helmet
src << "\red You must fasten the helmet to a hardsuit first. (Target the head)" // Stop eva helms equipping.
return 0
if(istype(I, /obj/item/clothing/suit/space/rig)) // If the item to be equipped is a rigid suit
var/obj/item/clothing/suit/space/rig/J = I
if(J.equip_time > 0)
delay_clothing_equip_to_slot_if_possible(J, 13) // 13 = suit slot
return 0
if(H.equip_to_appropriate_slot(I))
if(hand)
update_inv_l_hand(0)