Microopt for mimics

This commit is contained in:
Archie
2021-06-14 01:13:35 -03:00
parent e7786b977f
commit 9fa3bca200
+7 -10
View File
@@ -42,9 +42,8 @@
var/static/mimic_blacklisted_transform_items = typecacheof(list(
/obj/item/projectile,
/obj/item/radio/intercom))
var/warned
var/playstyle_string = "<span class='boldannounce'>You are a mimic,</span></b> 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. \
var/playstyle_string = "<span class='boldannounce'>You are a mimic</span></b>, a tricky creature that can take the form of \
almost any item 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. \
Attacking carbon lifeforms will heal you at the cost of destructuring their DNA.</b>"
@@ -54,17 +53,15 @@
unstealth = FALSE
trytftorandomobject()
/mob/living/simple_animal/hostile/hs13mimic/Login()
. = ..()
SEND_SOUND(src, sound('sound/ambience/antag/ling_aler.ogg'))
to_chat(src, src.playstyle_string)
/mob/living/simple_animal/hostile/hs13mimic/attack_hand(mob/living/carbon/human/M)
. = ..()
trigger()
/mob/living/simple_animal/hostile/hs13mimic/Life()
. = ..()
if(src.mind && !warned)
SEND_SOUND(src, sound('sound/ambience/antag/ling_aler.ogg'))
to_chat(src, src.playstyle_string)
warned = TRUE
/mob/living/simple_animal/hostile/hs13mimic/AttackingTarget()
. = ..()
if(iscarbon(target))