Makes flashes confuse and blind the person instead of stunning

This commit is contained in:
Yoshax
2016-07-01 19:02:57 +01:00
parent 19a2656d80
commit 33900c60f2

View File

@@ -74,13 +74,17 @@
if(M.stat!=DEAD) if(M.stat!=DEAD)
var/safety = M:eyecheck() var/safety = M:eyecheck()
if(safety <= 0) if(safety <= 0)
var/flash_strength = 10 var/flash_strength = 5
if(ishuman(M)) if(ishuman(M))
var/mob/living/carbon/human/H = M var/mob/living/carbon/human/H = M
flash_strength *= H.species.flash_mod flash_strength *= H.species.flash_mod
if(flash_strength > 0)
M.Weaken(flash_strength) if(flash_strength > 0)
M.flash_eyes() H.confused = max(H.confused, flash_strength)
H.eye_blind = max(H.eye_blind, flash_strength)
H.eye_blurry = max(H.eye_blurry, flash_strength + 5)
H.flash_eyes()
else else
flashfail = 1 flashfail = 1