mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-26 14:47:50 +01:00
[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:
co-authored by
Will
Cameron Lennox
parent
d8b11e32ae
commit
ed7d46efb1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user