From d4e31851f0faddadd9d7449a40b5446a835e9f4e Mon Sep 17 00:00:00 2001 From: Tayyyyyyy Date: Fri, 29 Dec 2017 19:24:03 -0700 Subject: [PATCH] Dark view increases flash damage to eyes --- code/modules/mob/living/carbon/carbon.dm | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/code/modules/mob/living/carbon/carbon.dm b/code/modules/mob/living/carbon/carbon.dm index ecde87a5a16..ab9f0a61a04 100644 --- a/code/modules/mob/living/carbon/carbon.dm +++ b/code/modules/mob/living/carbon/carbon.dm @@ -313,6 +313,7 @@ /mob/living/carbon/flash_eyes(intensity = 1, override_blindness_check = 0, affect_silicon = 0, visual = 0) . = ..() var/damage = intensity - check_eye_prot() + var/extra_damage = 0 if(.) if(visual) return @@ -323,19 +324,22 @@ if(!E || (E && E.weld_proof)) return + if(E.dark_view) + extra_damage = max(E.dark_view - 2, 0) + switch(damage) if(1) to_chat(src, "Your eyes sting a little.") if(prob(40)) //waiting on carbon organs - E.receive_damage(1, 1) + E.receive_damage(1 + extra_damage, 1) if(2) to_chat(src, "Your eyes burn.") - E.receive_damage(rand(2, 4), 1) + E.receive_damage(rand(2, 4) + extra_damage, 1) else to_chat(src, "Your eyes itch and burn severely!") - E.receive_damage(rand(12, 16), 1) + E.receive_damage(rand(12, 16) + extra_damage, 1) if(E.damage > E.min_bruised_damage) AdjustEyeBlind(damage) @@ -1105,4 +1109,4 @@ so that different stomachs can handle things in different ways VB*/ update_tint() if(I.flags_inv & HIDEMASK || forced) update_inv_wear_mask() - update_inv_head() \ No newline at end of file + update_inv_head()