Delay awaymission terrorspider gibbing. (#17652)

This commit is contained in:
moxian
2022-04-25 13:49:01 +01:00
committed by GitHub
parent 5949cb375c
commit d8e0e8b80c
+10 -8
View File
@@ -70,14 +70,6 @@
egg_progress += pick(0, 1, 2)
egg_progress += calc_variable_progress()
// Detect & stop people attempting to bring a gateway white spider infection back to the main station.
if(awaymission_infection)
var/turf/T = get_turf(owner)
if(istype(T) && !is_away_level(T.z))
owner.gib()
qdel(src)
return
// Once at least one egg has hatched from you, you'll need help to reach medbay.
if(eggs_hatched >= 1)
owner.SetConfused(45)
@@ -99,6 +91,16 @@
return extra_progress
/obj/item/organ/internal/body_egg/terror_eggs/proc/hatch_egg()
// Detect & stop people attempting to bring a gateway white spider infection back to the main station.
if(awaymission_infection)
var/turf/T = get_turf(owner)
if(istype(T) && !is_away_level(T.z))
owner.gib()
// give a hint of the cause of death
new /obj/effect/decal/cleanable/spiderling_remains(T)
qdel(src)
return
var/infection_completed = FALSE
var/obj/structure/spider/spiderling/terror_spiderling/S = new(get_turf(owner))
switch(eggs_hatched)