From e4ceb02591608c879d0b7e29ab8f20ac1efe1850 Mon Sep 17 00:00:00 2001
From: quotefox <49098813+quotefox@users.noreply.github.com>
Date: Tue, 8 Oct 2019 01:11:38 +0100
Subject: [PATCH] mimic base, (broken needs fixing)
---
hyperstation/code/mobs/mimic.dm | 63 ++++++++++++++++++++++++++++++
hyperstation/icons/mobs/mimic.dmi | Bin 0 -> 927 bytes
2 files changed, 63 insertions(+)
create mode 100644 hyperstation/code/mobs/mimic.dm
create mode 100644 hyperstation/icons/mobs/mimic.dmi
diff --git a/hyperstation/code/mobs/mimic.dm b/hyperstation/code/mobs/mimic.dm
new file mode 100644
index 00000000..12a22b65
--- /dev/null
+++ b/hyperstation/code/mobs/mimic.dm
@@ -0,0 +1,63 @@
+/mob/living/simple_animal/hostile/mimic
+ name = "Mimic"
+ desc = "A creature with the ability to take the form of other objects."
+ icon = 'hyperstation/icons/mobs/mimic.dmi'
+ icon_state = "mimic"
+ icon_living = "mimic"
+ icon_dead = "mimic_dead"
+ gender = NEUTER
+ speak_chance = 0
+ turns_per_move = 5
+ maxHealth = 30
+ health = 30
+ see_in_dark = 7
+ response_help = "pokes"
+ response_disarm = "shoves"
+ response_harm = "hits"
+ butcher_results = list(/obj/item/reagent_containers/food/snacks/meat/slab/killertomato = 2)
+ response_help = "prods"
+ response_disarm = "pushes aside"
+ response_harm = "smacks"
+ melee_damage_lower = 8
+ melee_damage_upper = 12
+ move_to_delay = 9
+ attacktext = "slams"
+ attack_sound = 'sound/weapons/punch1.ogg'
+ ventcrawler = VENTCRAWLER_ALWAYS
+ faction = list("mimic")
+ var/unstealth = FALSE
+
+ atmos_requirements = list("min_oxy" = 5, "max_oxy" = 0, "min_tox" = 0, "max_tox" = 0, "min_co2" = 0, "max_co2" = 0, "min_n2" = 0, "max_n2" = 0)
+ minbodytemp = 150
+ maxbodytemp = 500
+ gold_core_spawnable = HOSTILE_SPAWN
+
+
+/mob/living/simple_animal/hostile/mimic/Initialize()
+// When initialized, make sure they take the form of something.
+ unstealth = FALSE
+
+
+
+/mob/living/simple_animal/hostile/mimic/proc/activate()
+ if(!unstealth)
+ visible_message("[src] starts to move!")
+ unstealth = TRUE
+
+
+/mob/living/simple_animal/hostile/mimic/LoseTarget()
+ ..()
+ icon_state = initial(icon_state) //when lost target, return into stealth form.
+ unstealth = FALSE
+
+/mob/living/simple_animal/hostile/mimic/crate/ListTargets()
+ if(unstealth)
+ return ..()
+ return ..(1)
+
+ //If stealthed, do not target
+
+
+/mob/living/simple_animal/hostile/mimic/adjustHealth(amount, updating_health = TRUE, forced = FALSE)
+ activate()
+ //if taking damage, trigger.
\ No newline at end of file
diff --git a/hyperstation/icons/mobs/mimic.dmi b/hyperstation/icons/mobs/mimic.dmi
new file mode 100644
index 0000000000000000000000000000000000000000..e8a4df57c5f2aceb1ea07d5d9d9ef79a282ccf70
GIT binary patch
literal 927
zcmV;Q17Q4#P)I%{if8X6iOA0J_1VNXv_EiEe_9wQwgByn|k1Ox;P4Gl0bFbWC^
z4hjh-CMZ}~T0A^HMn*;e001Q=CAzr11qBCCP*OldMKCceFf=zPC@3T&DH9VD9UdSY
z92_kzFC!r$V`pj%4hz`$nz
zP>28k00DGTPE!Ct=GbNc004@5R9JLGWpiV4X>fFDZ*Bkpc$`yKaB_9`^iy#0_2eo`
zEh^5;&r`5fFwryM;w;ZhDainGjE%TBGg33tGfE(w;*!LYR3K9+H#0XgS&54?C9|j)
z$T#HTOe;#vO@*+DQDp)YP0dNH1Tqcu%ye*JLnH|0b8+V8m!;;W=9PerR90~Ha{>DS
z0CRyfQGEP?&;S4d%YD~|a}5!F`+~Mz
zPhhzokQcgs7I1CJe5W9=e_#NTG(fQ$AVEMx-z#t};sC*cU_YQi*tV!7aRVhKB_*Z3
zQ9`L4WbMJHu*9`IHX+T53
zTd<=B&W-OQOxi%uQpCUi(_lCG!8w24KuKv2^$V8nGL(Z!YZL$g002ovPDHLkV1jD4
BZ|492
literal 0
HcmV?d00001