Revert "Revert "Garbage collection, asset delivery, icon2html revolution, and…" (#15816)

This reverts commit f6d0f62622.
This commit is contained in:
Heroman3003
2024-04-22 06:29:01 +10:00
committed by GitHub
parent a2d91ee15e
commit c7b6c3e42b
251 changed files with 2361 additions and 1626 deletions
@@ -80,7 +80,7 @@
/datum/event2/event/mob_spawning/proc/spawn_one_mob(new_loc, mob_type)
var/mob/living/simple_mob/M = new mob_type(new_loc)
GLOB.destroyed_event.register(M, src, PROC_REF(on_mob_destruction))
RegisterSignal(M, COMSIG_OBSERVER_DESTROYED, PROC_REF(on_mob_destruction))
spawned_mobs += M
return M
@@ -94,4 +94,4 @@
// If simple_mob is bomphed, remove it from the list.
/datum/event2/event/mob_spawning/proc/on_mob_destruction(mob/M)
spawned_mobs -= M
GLOB.destroyed_event.unregister(M, src, PROC_REF(on_mob_destruction))
UnregisterSignal(M, COMSIG_OBSERVER_DESTROYED)