From 743829eb05999014aba5019097347d50832ae2c3 Mon Sep 17 00:00:00 2001 From: Will <7099514+Willburd@users.noreply.github.com> Date: Thu, 18 Sep 2025 13:12:22 -0400 Subject: [PATCH] disposal atom flushed signal (#18527) --- code/__defines/dcs/signals.dm | 2 ++ code/modules/recycling/disposal_holder.dm | 1 + 2 files changed, 3 insertions(+) diff --git a/code/__defines/dcs/signals.dm b/code/__defines/dcs/signals.dm index 206a9a416cb..f1ee0a6d591 100644 --- a/code/__defines/dcs/signals.dm +++ b/code/__defines/dcs/signals.dm @@ -858,6 +858,8 @@ #define COMSIG_ATOM_SET_LIGHT_FLAGS "atom_set_light_flags" ///Called right after the atom changes the value of light_flags to a different one, from base of [/atom/proc/set_light_flags]: (old_flags) #define COMSIG_ATOM_UPDATE_LIGHT_FLAGS "atom_update_light_flags" +///Called right after the atom is flushed into a disposal holder and sent through the disposal network: (/obj/structure/disposalholder) +#define COMSIG_ATOM_DISPOSAL_FLUSHED "atom_disposal_flushed" // /datum/element/light_eater ///from base of [/datum/element/light_eater/proc/table_buffet]: (list/light_queue, datum/light_eater) diff --git a/code/modules/recycling/disposal_holder.dm b/code/modules/recycling/disposal_holder.dm index db6f549df67..d076fadd14f 100644 --- a/code/modules/recycling/disposal_holder.dm +++ b/code/modules/recycling/disposal_holder.dm @@ -53,6 +53,7 @@ if(istype(AM, /mob/living/silicon/robot/drone)) var/mob/living/silicon/robot/drone/drone = AM src.destinationTag = drone.mail_destination + SEND_SIGNAL(AM, COMSIG_ATOM_DISPOSAL_FLUSHED, src) // movement process, persists while holder is moving through pipes /obj/structure/disposalholder/proc/move()