proper ear damage proc

This commit is contained in:
Fox-McCloud
2016-07-21 04:24:12 -04:00
parent 00a470fd6d
commit 0a8dca713c
20 changed files with 35 additions and 48 deletions
+2 -2
View File
@@ -478,7 +478,7 @@
if(istype(E))
E.damage = max(E.damage-1, 0)
M.eye_blurry = max(M.eye_blurry-1 , 0)
M.ear_damage = max(M.ear_damage-1, 0)
M.adjustEarDamage(-1,0)
if(prob(50))
M.disabilities &= ~NEARSIGHTED
if(prob(30))
@@ -486,7 +486,7 @@
M.eye_blind = 0
if(M.ear_damage <= 25)
if(prob(30))
M.ear_deaf = 0
M.setEarDamage(-1,0)
..()
/datum/chemical_reaction/oculine
+2 -4
View File
@@ -356,8 +356,7 @@
if(!ear_safety)
M.Stun(max(10/distance, 3))
M.Weaken(max(10/distance, 3))
M.ear_damage += rand(0, 5)
M.ear_deaf = max(M.ear_deaf,15)
M.setEarDamage(M.ear_damage + rand(0, 5), max(M.ear_deaf,15))
if(M.ear_damage >= 15)
to_chat(M, "<span class='warning'>Your ears start to ring badly!</span>")
if(prob(M.ear_damage - 10 + 5))
@@ -385,8 +384,7 @@
if(!ear_safety)
M.Stun(max(10/distance, 3))
M.Weaken(max(10/distance, 3))
M.ear_damage += rand(0, 5)
M.ear_deaf = max(M.ear_deaf,15)
M.setEarDamage(M.ear_damage + rand(0, 5), max(M.ear_deaf,15))
if(M.ear_damage >= 15)
to_chat(M, "<span class='warning'>Your ears start to ring badly!</span>")
if(prob(M.ear_damage - 10 + 5))