Tweak cursed ice boots to NODROP only on equip (#55654)

Cursed ice hiking boots dropped by demonic frost miners only
become unremovable when worn.
This commit is contained in:
coiax
2020-12-23 00:21:11 +00:00
committed by GitHub
parent 18f055f672
commit 2ef71ce90f
@@ -315,9 +315,15 @@ Difficulty: Extremely Hard
var/change_turf = /turf/open/floor/plating/ice/icemoon
var/duration = 6 SECONDS
/obj/item/clothing/shoes/winterboots/ice_boots/ice_trail/Initialize()
/obj/item/clothing/shoes/winterboots/ice_boots/ice_trail/equipped(mob/user, slot)
. = ..()
ADD_TRAIT(src, TRAIT_NODROP, CURSED_ITEM_TRAIT)
if(slot == ITEM_SLOT_FEET)
ADD_TRAIT(src, TRAIT_NODROP, CURSED_ITEM_TRAIT)
/obj/item/clothing/shoes/winterboots/ice_boots/ice_trail/dropped(mob/user)
. = ..()
// Could have been blown off in an explosion from the previous owner
REMOVE_TRAIT(src, TRAIT_NODROP, CURSED_ITEM_TRAIT)
/obj/item/clothing/shoes/winterboots/ice_boots/ice_trail/ui_action_click(mob/user)
on = !on