mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 14:39:58 +01:00
[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:
co-authored by
Mothblocks
tralezab
parent
d714bbeeb4
commit
bb4aeacfc6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user