/tg/ Station 13 - Modules - TypesProc Details

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_equipsignal called by picking up the pawn, will try to equip to where it should actually be and start the curse
on_throw_hitsignal called by the pawn hitting something after a throw
try_equipping_to_target_slotcurse of hunger component; for very hungry items.
what_a_horrible_night_to_have_a_curseproc 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:

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