mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-16 18:45:22 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user