mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-01-26 09:14:04 +00:00
The 515 MegaPR early downport (#7783)
Co-authored-by: Selis <selis@xynolabs.com> Co-authored-by: Selis <sirlionfur@hotmail.de> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com> Co-authored-by: SatinIsle <thesatinisle@gmail.com> Co-authored-by: Heroman <alesha3000@list.ru> Co-authored-by: Casey <a.roaming.shadow@gmail.com> Co-authored-by: Raeschen <rycoop29@gmail.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user