mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-26 22:42:26 +01:00
Optimizes moved registrations.
Now limits moved registrations to when strictly necessary. That is: * When entering a movable atom, the entering object only registers to its moved event if it has moved listeners on its own. * Instead, when registering to a moved event, registrations occur recursively until a non-/atom/movable is encountered or a prior movement registration from the same object is reached.
This commit is contained in:
@@ -2,12 +2,11 @@
|
||||
|
||||
/obj/item/device/mmi/digital/New()
|
||||
src.brainmob = new(src)
|
||||
src.brainmob.stat = CONSCIOUS
|
||||
src.brainmob.add_language("Robot Talk")
|
||||
src.brainmob.loc = src
|
||||
src.brainmob.container = src
|
||||
src.brainmob.stat = 0
|
||||
src.brainmob.silent = 0
|
||||
dead_mob_list -= src.brainmob
|
||||
..()
|
||||
|
||||
/obj/item/device/mmi/digital/transfer_identity(var/mob/living/carbon/H)
|
||||
brainmob.dna = H.dna
|
||||
|
||||
Reference in New Issue
Block a user