[MIRROR] Weakref cleanup (#12704)

Co-authored-by: Will <7099514+Willburd@users.noreply.github.com>
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2026-04-21 05:14:08 -04:00
committed by GitHub
co-authored by Will Cameron Lennox
parent d8b11e32ae
commit ed7d46efb1
34 changed files with 107 additions and 9 deletions
+4
View File
@@ -72,6 +72,10 @@
origin = WEAKREF(holder)
..()
/datum/modifier/Destroy(force)
. = ..()
origin = null
// Checks if the modifier should be allowed to be applied to the mob before attaching it.
// Override for special criteria, e.g. forbidding robots from receiving it.
/datum/modifier/proc/can_apply(var/mob/living/L, var/suppress_output = FALSE)