From baaa63234f1d73b45786cd357dfeb69bc5a34444 Mon Sep 17 00:00:00 2001 From: Sharkmare <34294231+Sharkmare@users.noreply.github.com> Date: Thu, 8 Aug 2019 17:10:01 +0200 Subject: [PATCH 1/3] Zerg evolve proc fix Should now actually function --- code/modules/mob/living/simple_animal/aliens/zerg.dm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/code/modules/mob/living/simple_animal/aliens/zerg.dm b/code/modules/mob/living/simple_animal/aliens/zerg.dm index 4799b338f9..b4d08357f6 100644 --- a/code/modules/mob/living/simple_animal/aliens/zerg.dm +++ b/code/modules/mob/living/simple_animal/aliens/zerg.dm @@ -34,17 +34,18 @@ set category = "Abilities" var/location = get_turf(src) chosentype = input(usr,"What type would you like to be?") as null|anything in zerg_types - if(!chosentype) return + if(!chosentype && src.ckey) return if(!src.ckey) death() qdel(src) new /mob/living/simple_animal/hostile/hivebot/zerg/worker(location) else + var/myuser = src.key + var/mob/living/simple_animal/hostile/newmob = chosentype death() qdel(src) - var/mob/living/simple_animal/hostile/newmob = new chosentype(location) - newmob.ckey = myuser + newmob.cley = myuser /mob/living/simple_animal/hostile/hivebot/zerg/larva name = "zerg larva" @@ -62,9 +63,11 @@ verbs |= /mob/living/simple_animal/hostile/hivebot/zerg/larva/proc/evolve /mob/living/simple_animal/hostile/hivebot/zerg/larva/initialize() + ..() spawn(1200) if(!src.ckey) evolve() + /mob/living/simple_animal/hostile/hivebot/zerg/worker name = "Zerg Drone" desc = "Drones are fundamental to economic and tech development, as they harvest resources and construct buildings." From aae225592bce65ae601dddd6f4c76e3aff03bd91 Mon Sep 17 00:00:00 2001 From: Sharkmare <34294231+Sharkmare@users.noreply.github.com> Date: Thu, 8 Aug 2019 17:11:31 +0200 Subject: [PATCH 2/3] Forgot spawn command --- code/modules/mob/living/simple_animal/aliens/zerg.dm | 1 + 1 file changed, 1 insertion(+) diff --git a/code/modules/mob/living/simple_animal/aliens/zerg.dm b/code/modules/mob/living/simple_animal/aliens/zerg.dm index b4d08357f6..ef238d3fb5 100644 --- a/code/modules/mob/living/simple_animal/aliens/zerg.dm +++ b/code/modules/mob/living/simple_animal/aliens/zerg.dm @@ -46,6 +46,7 @@ death() qdel(src) newmob.cley = myuser + new newmob(location) /mob/living/simple_animal/hostile/hivebot/zerg/larva name = "zerg larva" From 17b2f5195a528121f5cda822ee07460455a843c3 Mon Sep 17 00:00:00 2001 From: Sharkmare <34294231+Sharkmare@users.noreply.github.com> Date: Thu, 8 Aug 2019 17:14:43 +0200 Subject: [PATCH 3/3] typofix --- code/modules/mob/living/simple_animal/aliens/zerg.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/living/simple_animal/aliens/zerg.dm b/code/modules/mob/living/simple_animal/aliens/zerg.dm index ef238d3fb5..2c5c3c5f64 100644 --- a/code/modules/mob/living/simple_animal/aliens/zerg.dm +++ b/code/modules/mob/living/simple_animal/aliens/zerg.dm @@ -45,7 +45,7 @@ var/mob/living/simple_animal/hostile/newmob = chosentype death() qdel(src) - newmob.cley = myuser + newmob.ckey = myuser new newmob(location) /mob/living/simple_animal/hostile/hivebot/zerg/larva