From f841903433da09215d697efeaf9c0307f95ad765 Mon Sep 17 00:00:00 2001 From: ZomgPonies Date: Mon, 30 Sep 2013 01:14:25 -0400 Subject: [PATCH] Antmen buff --- code/modules/mob/living/carbon/human/human_defense.dm | 3 +++ code/modules/mob/living/carbon/species.dm | 2 +- code/setup.dm | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/living/carbon/human/human_defense.dm b/code/modules/mob/living/carbon/human/human_defense.dm index f722469f72c..d2544c05c9b 100644 --- a/code/modules/mob/living/carbon/human/human_defense.dm +++ b/code/modules/mob/living/carbon/human/human_defense.dm @@ -150,6 +150,9 @@ emp_act if(!isturf(picked)) return src.loc = picked return 1 + if(species.flags & HAS_CHITTIN && (prob(50 - round(damage / 3)))) + visible_message("\red The [attack_text] bounces off [src]' natural armor!") + return 1 return 0 /mob/living/carbon/human/emp_act(severity) diff --git a/code/modules/mob/living/carbon/species.dm b/code/modules/mob/living/carbon/species.dm index ae82ba10a81..7558f4fa5b8 100644 --- a/code/modules/mob/living/carbon/species.dm +++ b/code/modules/mob/living/carbon/species.dm @@ -142,4 +142,4 @@ language = "Chittin" attack_verb = "slash" - flags = WHITELISTED \ No newline at end of file + flags = WHITELISTED | HAS_CHITTIN \ No newline at end of file diff --git a/code/setup.dm b/code/setup.dm index e07e14525df..353273c8a32 100644 --- a/code/setup.dm +++ b/code/setup.dm @@ -727,6 +727,7 @@ var/list/RESTRICTED_CAMERA_NETWORKS = list( //Those networks can only be accesse #define HAS_TAIL 2048 #define IS_PLANT 4096 #define CAN_BE_FAT 8192 +#define HAS_CHITTIN 16384 //Language flags. #define WHITELISTED 1 // Language is available if the speaker is whitelisted.