This commit is contained in:
Fluffy
2024-02-24 11:32:43 +00:00
committed by GitHub
parent b78b9b80f5
commit c32c4e57ed
7 changed files with 132 additions and 10 deletions
@@ -13,3 +13,14 @@
respawn_flag = null
spawn_mob = /mob/living/simple_animal/hostile/giant_spider/nurse/spider_queen
/datum/ghostspawner/simplemob/spider_queen/spawn_mob(mob/user)
. = ..()
//Basically, we don't want the mob AI to keep running if a player is assigned to it
//ideally there should also be an handling to resume thinking if the player ghosts
//but that would probably need a signal that we don't currently have, hence
//something for another time
var/mob/our_new_mob = . //This cast is needed, sorry
if(istype(our_new_mob) && !QDELETED(our_new_mob))
MOB_STOP_THINKING(our_new_mob)