cursed item ai!
Haunted AI tries to not be interacted with, and will attack people who do. Cursed AI instead tries to be interacted with, and will attempt to equip itself onto people. Added by /datum/element/cursed, and as such will try to remove this element and go dormant when it finds a victim to curse
Procs | |
on_equip | signal called by picking up the pawn, will try to equip to where it should actually be and start the curse |
---|---|
on_throw_hit | signal called by the pawn hitting something after a throw |
try_equipping_to_target_slot | curse of hunger component; for very hungry items. |
what_a_horrible_night_to_have_a_curse | proc called when the cursed object successfully attaches itself to someone, removing the cursed element and by extension the ai itself |
Proc Details
on_equip
signal called by picking up the pawn, will try to equip to where it should actually be and start the curse
on_throw_hit
signal called by the pawn hitting something after a throw
try_equipping_to_target_slot
curse of hunger component; for very hungry items.
called when someone grabs the cursed item or the cursed item impacts with a mob it's throwing itself at arguments:
- curse_victim: whomever we're attaching this to
- slot_already_in: the slot the item is already in before this was called, possibly null but at least in hands if picked up
what_a_horrible_night_to_have_a_curse
proc called when the cursed object successfully attaches itself to someone, removing the cursed element and by extension the ai itself