Makes playable mobs GC better by reworking how GLOB.respawnable_list works (#17217)

This commit is contained in:
Farie82
2021-12-13 09:22:08 +01:00
committed by GitHub
parent 1df1f05323
commit 60647dc4c0
10 changed files with 21 additions and 17 deletions
+1 -1
View File
@@ -27,7 +27,7 @@
var/obj/vent = pick_n_take(vents)
var/mob/C = pick_n_take(candidates)
if(C)
GLOB.respawnable_list -= C.client
C.remove_from_respawnable_list()
var/mob/living/carbon/alien/larva/new_xeno = new(vent.loc)
new_xeno.amount_grown += (0.75 * new_xeno.max_grown) //event spawned larva start off almost ready to evolve.
new_xeno.key = C.key
+1 -1
View File
@@ -47,7 +47,7 @@ GLOBAL_LIST_INIT(unused_trade_stations, list("sol"))
var/mob/C = pick_n_take(candidates)
spawn_count--
if(C)
GLOB.respawnable_list -= C.client
C.remove_from_respawnable_list()
var/mob/living/carbon/human/M = new /mob/living/carbon/human(picked_loc)
M.ckey = C.ckey // must be before equipOutfit, or that will runtime due to lack of mind
M.equipOutfit(/datum/outfit/admin/sol_trader)