Flash and flashbang tweaks and fixes (#15651)

This commit is contained in:
Wildkins
2023-01-25 06:41:17 -05:00
committed by GitHub
parent c081ebcedd
commit b381d6f124
13 changed files with 75 additions and 46 deletions
+12 -8
View File
@@ -47,15 +47,19 @@
if(burnthrough <= 0)
return
if(burnthrough == 1)
to_chat(owner, SPAN_WARNING("Your eyes sting a little."))
take_damage(rand(1, 3), TRUE)
else if(burnthrough == 2)
to_chat(owner, SPAN_WARNING("Your eyes burn!"))
var/eye_name = (BP_IS_ROBOTIC(src) && robotic_name) ? robotic_name : "eyes"
if(burnthrough <= 1)
to_chat(owner, SPAN_WARNING("Your [eye_name] sting a little."))
owner.eye_blurry = max(owner.eye_blurry, 6)
take_damage(1, TRUE)
else if(burnthrough <= 2)
to_chat(owner, SPAN_WARNING("Your [eye_name] burn!"))
owner.eye_blurry = max(owner.eye_blurry, rand(6, 12))
take_damage(rand(2, 3), TRUE)
else if(burnthrough > 2)
to_chat(owner, SPAN_DANGER("[FONT_HUGE("Your [eye_name] burn from the intense light of the flash!")]"))
take_damage(rand(3, 5), TRUE)
else if(burnthrough >= 3)
to_chat(owner, SPAN_DANGER("[FONT_HUGE("Your eyes burn from the intense light of the flash!")]"))
take_damage(rand(5, 9), TRUE)
owner.eye_blurry += rand(12, 20)
if(is_bruised() && !is_broken() && !(owner.disabilities & NEARSIGHTED))