From a071f39edabca66812013269c5f059502e80add0 Mon Sep 17 00:00:00 2001 From: DZD Date: Sat, 17 Jan 2015 13:43:58 -0500 Subject: [PATCH] pAI Damage Fix - pAIs will now get torn to bits by simple_animal mobs. No more serving as a perfect distraction on away missions. Note: pAIs are still immune to toxin damage, as all silicons are, so anything that does toxin damage will still be ineffective. --- code/modules/mob/living/silicon/pai/pai.dm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/code/modules/mob/living/silicon/pai/pai.dm b/code/modules/mob/living/silicon/pai/pai.dm index 7ed993b4520..16ac8d7ec9c 100644 --- a/code/modules/mob/living/silicon/pai/pai.dm +++ b/code/modules/mob/living/silicon/pai/pai.dm @@ -200,6 +200,20 @@ src.updatehealth() return +/mob/living/silicon/pai/attack_animal(mob/living/simple_animal/M as mob) + if(M.melee_damage_upper == 0) + M.emote("[M.friendly] [src]") + else + if(M.attack_sound) + playsound(loc, M.attack_sound, 50, 1, 1) + for(var/mob/O in viewers(src, null)) + O.show_message("\red [M] [M.attacktext] [src]!", 1) + M.attack_log += text("\[[time_stamp()]\] attacked [src.name] ([src.ckey])") + src.attack_log += text("\[[time_stamp()]\] was attacked by [M.name] ([M.ckey])") + var/damage = rand(M.melee_damage_lower, M.melee_damage_upper) + adjustBruteLoss(damage) + updatehealth() + /mob/living/silicon/pai/attack_alien(mob/living/carbon/alien/humanoid/M as mob) if (!ticker) M << "You cannot attack people before the game has started."