[MIRROR] Componentizes Duffelbag Curse and turns it into an RPGloot modifier (+ curse announcement element) (#5683)

* Componentizes Duffelbag Curse and turns it into an RPGloot modifier (+ curse announcement element) (#59029)

Co-authored-by: Mothblocks <35135081+Mothblocks@ users.noreply.github.com>

* Componentizes Duffelbag Curse and turns it into an RPGloot modifier (+ curse announcement element)

Co-authored-by: tralezab <40974010+tralezab@users.noreply.github.com>
Co-authored-by: Mothblocks <35135081+Mothblocks@ users.noreply.github.com>
This commit is contained in:
SkyratBot
2021-05-14 15:38:12 +01:00
committed by GitHub
co-authored by Mothblocks tralezab
parent d714bbeeb4
commit bb4aeacfc6
21 changed files with 469 additions and 87 deletions
+1
View File
@@ -326,6 +326,7 @@
else
I.forceMove(newloc)
I.dropped(src, silent)
SEND_SIGNAL(I, COMSIG_ITEM_POST_UNEQUIP, force, newloc, no_move, invdrop, silent)
return TRUE
/**
@@ -331,12 +331,12 @@ Difficulty: Extremely Hard
/obj/item/clothing/shoes/winterboots/ice_boots/ice_trail/equipped(mob/user, slot)
. = ..()
if(slot == ITEM_SLOT_FEET)
ADD_TRAIT(src, TRAIT_NODROP, CURSED_ITEM_TRAIT)
ADD_TRAIT(src, TRAIT_NODROP, CURSED_ITEM_TRAIT(type))
/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)
REMOVE_TRAIT(src, TRAIT_NODROP, CURSED_ITEM_TRAIT(type))
/obj/item/clothing/shoes/winterboots/ice_boots/ice_trail/ui_action_click(mob/user)
on = !on