More reviews

The bat faction needs to use \ref, since the faction check system uses that too.
This commit is contained in:
SabreML
2021-09-02 21:05:18 +01:00
parent 0a4b398b06
commit e9f807fa3b
5 changed files with 39 additions and 31 deletions
+7 -2
View File
@@ -16,6 +16,7 @@
if(!new_info)
return INITIALIZE_HINT_QDEL
mob_info = new_info
RegisterSignal(mob_info, COMSIG_PARENT_QDELETING, .proc/delete_wrapper)
update_self()
forceMove(mob_info.spawn_point)
if(!mob_info.is_trap)
@@ -24,11 +25,15 @@
/obj/effect/nanomob/Destroy()
SSmob_hunt.trap_spawns -= src
SSmob_hunt.normal_spawns -= src
mob_info = null // Can't delete this since multiple players can get the exact same /datum/mob_hunt. (This should be refactored)
clients_encountered.Cut()
QDEL_NULL(mob_info)
qdel(avatar)
QDEL_NULL(avatar)
return ..()
/obj/effect/nanomob/proc/delete_wrapper()
SIGNAL_HANDLER
qdel(src)
/obj/effect/nanomob/proc/update_self()
if(!mob_info)
return