From d94d60e0b78790a973022b291ea7eb0e5ac41712 Mon Sep 17 00:00:00 2001 From: Archie Date: Sun, 13 Jun 2021 21:05:35 -0300 Subject: [PATCH 1/3] Mimics get thermal vision. --- hyperstation/code/mobs/mimic.dm | 1 + 1 file changed, 1 insertion(+) diff --git a/hyperstation/code/mobs/mimic.dm b/hyperstation/code/mobs/mimic.dm index 3ebb8140..eadfe823 100644 --- a/hyperstation/code/mobs/mimic.dm +++ b/hyperstation/code/mobs/mimic.dm @@ -34,6 +34,7 @@ minbodytemp = 250 //weak to cold maxbodytemp = 1500 pressure_resistance = 600 + sight = SEE_MOBS var/unstealth = FALSE var/knockdown_people = 1 var/playerTransformCD = 50 From 76f9185fff0dfa8b10bcc89c76cacfb0cb7f8263 Mon Sep 17 00:00:00 2001 From: Archie Date: Sun, 13 Jun 2021 21:56:44 -0300 Subject: [PATCH 2/3] Ability to heal, sound changes. --- hyperstation/code/mobs/mimic.dm | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/hyperstation/code/mobs/mimic.dm b/hyperstation/code/mobs/mimic.dm index eadfe823..362d4159 100644 --- a/hyperstation/code/mobs/mimic.dm +++ b/hyperstation/code/mobs/mimic.dm @@ -21,8 +21,8 @@ response_harm = "smacks" melee_damage_lower = 8 melee_damage_upper = 12 - attacktext = "slams" - attack_sound = 'sound/weapons/punch1.ogg' + attacktext = "glomps" + attack_sound = 'sound/effects/blobattack.ogg' atmos_requirements = list("min_oxy" = 0, "max_oxy" = 0, "min_tox" = 0, "max_tox" = 0, "min_co2" = 0, "max_co2" = 0, "min_n2" = 0, "max_n2" = 0) ventcrawler = VENTCRAWLER_ALWAYS blood_volume = 0 @@ -60,23 +60,28 @@ /mob/living/simple_animal/hostile/hs13mimic/Life() . = ..() if(src.mind && !warned) + SEND_SOUND(src, sound('sound/magic/mutate.ogg')) to_chat(src, src.playstyle_string) warned = TRUE /mob/living/simple_animal/hostile/hs13mimic/AttackingTarget() . = ..() - if(unstealth == FALSE && knockdown_people && . && iscarbon(target))//Guaranteed knockdown if we get the first hit while in stealth. Typically, only players can do this since NPC mimics transform first before attacking. - unstealth = TRUE - restore() + if(iscarbon(target)) var/mob/living/carbon/C = target - C.Knockdown(40) - C.visible_message("\The [src] knocks down \the [C]!", \ - "\The [src] knocks you down!") - else if(knockdown_people && . && prob(15) && iscarbon(target)) - var/mob/living/carbon/C = target - C.Knockdown(40) - C.visible_message("\The [src] knocks down \the [C]!", \ + if(unstealth == FALSE && knockdown_people && .) //Guaranteed knockdown if we get the first hit while disguised. Typically, only players can do this since NPC mimics transform first before attacking. + unstealth = TRUE + restore() + C.Knockdown(40) + C.visible_message("\The [src] knocks down \the [C]!", \ "\The [src] knocks you down!") + else if(knockdown_people && . && prob(15)) + C.Knockdown(40) + C.visible_message("\The [src] knocks down \the [C]!", \ + "\The [src] knocks you down!") + if(C.nutrition >= 15) + C.nutrition -= (rand(7,15)) //They lose 7-15 nutrition + adjustBruteLoss(-3) //We heal 3 damage + C.adjustCloneLoss(rand(2,4)) //They also take a bit of cellular damage. /mob/living/simple_animal/hostile/hs13mimic/adjustHealth(amount, updating_health = TRUE, forced = FALSE) trigger() From bcd46f7181dc3eb7e4c2c7fca470a3ac1a6574e1 Mon Sep 17 00:00:00 2001 From: Archie Date: Sun, 13 Jun 2021 22:00:26 -0300 Subject: [PATCH 3/3] Description, sound. --- hyperstation/code/mobs/mimic.dm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hyperstation/code/mobs/mimic.dm b/hyperstation/code/mobs/mimic.dm index 362d4159..5872cd47 100644 --- a/hyperstation/code/mobs/mimic.dm +++ b/hyperstation/code/mobs/mimic.dm @@ -43,9 +43,10 @@ /obj/item/projectile, /obj/item/radio/intercom)) var/warned - var/playstyle_string = "You are a mimic, a tricky creature that can take the form of \ + var/playstyle_string = "You are a mimic, a tricky creature that can take the form of \ almost any items nearby by shift-clicking it. While morphed, you move slowly and do less damage. \ - Finally, you can restore yourself to your original form while morphed by shift-clicking yourself." + Finally, you can restore yourself to your original form while morphed by shift-clicking yourself. \ + Attacking carbon lifeforms will heal you at the cost of destructuring their DNA." /mob/living/simple_animal/hostile/hs13mimic/Initialize() . = ..() @@ -60,7 +61,7 @@ /mob/living/simple_animal/hostile/hs13mimic/Life() . = ..() if(src.mind && !warned) - SEND_SOUND(src, sound('sound/magic/mutate.ogg')) + SEND_SOUND(src, sound('sound/ambience/antag/ling_aler.ogg')) to_chat(src, src.playstyle_string) warned = TRUE