From 6fb913bab8ddd3ad8c29b2a55f8fabdc7d1d38fa Mon Sep 17 00:00:00 2001 From: Sharkmare <34294231+Sharkmare@users.noreply.github.com> Date: Mon, 4 Mar 2019 09:18:23 +0100 Subject: [PATCH] SMES mimics Additionally wrote a proc to properly handle size changing for these grubs specifically expand_size() following the naming scheme of expand_grub() expand_dong() soon to come! ~~not really~~ --- .../simple_animal/vore/solargrub_subtype.dm | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 code/modules/mob/living/simple_animal/vore/solargrub_subtype.dm diff --git a/code/modules/mob/living/simple_animal/vore/solargrub_subtype.dm b/code/modules/mob/living/simple_animal/vore/solargrub_subtype.dm new file mode 100644 index 0000000000..65a49d2adb --- /dev/null +++ b/code/modules/mob/living/simple_animal/vore/solargrub_subtype.dm @@ -0,0 +1,30 @@ +//What belongs here? all non grubs that reuse grub code, Let's start off with grub like SMES mimics + +/mob/living/simple_animal/retaliate/solargrub/smes + name = "juvenile SMESgrub" + desc = "A young sparkling SMESgrub" + icon = 'icons/obj/power.dmi' + icon_state = "smes" + icon_living = "smes" + icon_dead = "smes" + +/mob/living/simple_animal/retaliate/solargrub/smes/big + name = "Greater SMESgrub" + desc = "A big sparkling SMESgrub" + icon = 'icons/obj/power.dmi' + icon_state = "smes" + icon_living = "smes" + icon_dead = "smes" + +/mob/living/simple_animal/retaliate/solargrub/smes/big/New() + expand_size(2) + +/mob/living/simple_animal/retaliate/solargrub/smes/proc/expand_size(var/size=null) + size_multiplier = size + update_icons() + +/mob/living/simple_animal/retaliate/solargrub/smes/death() + ..() + var/location = get_turf(src) + new /obj/machinery/power/smes(location) + qdel(src)