Skip to content

Commit

Permalink
signal for rituals
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoonij authored Jan 22, 2025
1 parent 4d54ca4 commit 38b5d44
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/__DEFINES/dcs/signals.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1284,3 +1284,6 @@

/// Source: /proc/random_hair_style (mob/living/carbon/human/human, valid_hairstyles, robohead)
#define COMSIG_RANDOM_HAIR_STYLE "random_hair_style"

/// Source: /datum/component/ritual_object/proc/pre_ritual_check (status_bitflag, mob/living/carbon/human, list/invokers, list/used_things)
#define COMSIG_RITUAL_ENDED "ritual_ended"
2 changes: 2 additions & 0 deletions code/datums/components/ritual_object.dm
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@
for(var/atom/movable/atom as anything in used_things)
UnregisterSignal(atom, COMSIG_MOVABLE_MOVED)

SEND_SIGNAL(ritual, COMSIG_RITUAL_ENDED, ., invoker, invokers, used_things)

LAZYNULL(invokers)
LAZYNULL(used_things)
ritual = null
Expand Down

0 comments on commit 38b5d44

Please sign in to comment.