From 2ef71ce90f190c93373c8dee2e0f4965d1f1eb14 Mon Sep 17 00:00:00 2001 From: coiax Date: Wed, 23 Dec 2020 00:21:11 +0000 Subject: [PATCH] Tweak cursed ice boots to NODROP only on equip (#55654) Cursed ice hiking boots dropped by demonic frost miners only become unremovable when worn. --- .../hostile/megafauna/demonic_frost_miner.dm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/demonic_frost_miner.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/demonic_frost_miner.dm index ad6d89ee28d..9166ced81c2 100644 --- a/code/modules/mob/living/simple_animal/hostile/megafauna/demonic_frost_miner.dm +++ b/code/modules/mob/living/simple_animal/hostile/megafauna/demonic_frost_miner.dm @@ -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