Initialize and GC failure fixes #1 (#13190)

This commit is contained in:
mikomyazaki
2022-02-15 23:45:30 +01:00
committed by GitHub
parent ab1833fe86
commit 08ea043e69
12 changed files with 31 additions and 27 deletions
+1 -1
View File
@@ -271,7 +271,7 @@
announce_ghost_joinleave(src)
var/mob/living/carbon/human/dummy/mannequin/mannequin = new
client.prefs.dress_preview_mob(mannequin)
observer.appearance = mannequin
observer.appearance = mannequin.appearance
observer.appearance_flags = KEEP_TOGETHER
observer.alpha = 127
observer.layer = initial(observer.layer)
@@ -276,14 +276,12 @@
. =..()
if(!.)
return
if(!stat && prob(3) && eggsleft > 0)
if(!stat && prob(3) && eggsleft > 0 && chicken_count < MAX_CHICKENS)
visible_message("[src] [pick("lays an egg.","squats down and croons.","begins making a huge racket.","begins clucking raucously.")]")
eggsleft--
var/obj/item/reagent_containers/food/snacks/egg/E = new(get_turf(src))
E.pixel_x = rand(-6,6)
E.pixel_y = rand(-6,6)
if(chicken_count < MAX_CHICKENS && prob(10))
START_PROCESSING(SSprocessing, E)
// Penguins
+6 -1
View File
@@ -344,11 +344,16 @@
pointing_effect = new /obj/effect/decal/point(tile)
pointing_effect.invisibility = invisibility
addtimer(CALLBACK(GLOBAL_PROC, /proc/qdel, pointing_effect), 2 SECONDS)
addtimer(CALLBACK(.proc/end_pointing_effect), 2 SECONDS)
face_atom(A)
return 1
/mob/proc/end_pointing_effect()
if(pointing_effect)
qdel(pointing_effect)
pointing_effect = null
/mob/verb/mode()
set name = "Activate Held Object"
set category = "Object"