Weakref cleanup (#19382)

* oh god help

* fixes

* oops

* container runtime

---------

Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
Will
2026-04-21 04:57:02 -04:00
committed by GitHub
parent 47a0e04bae
commit fb4cf2e80a
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)