fire_stacks decrease over time

This commit is contained in:
Anewbe
2016-07-12 21:27:04 -05:00
parent f7d8f2cb58
commit 811a7be362

View File

@@ -162,7 +162,7 @@
//returns 0 if the effects failed to apply for some reason, 1 otherwise.
/mob/living/proc/standard_weapon_hit_effects(obj/item/I, mob/living/user, var/effective_force, var/blocked, var/hit_zone)
if(!effective_force || blocked >= 100)
if(!effective_force || blocked >= 100)
return 0
//Hulk modifier
@@ -300,6 +300,9 @@
if(fire_stacks < 0)
fire_stacks = min(0, ++fire_stacks) //If we've doused ourselves in water to avoid fire, dry off slowly
if(fire_stacks > 0)
fire_stacks = max(0, (fire_stacks-0.1)) //Should slowly burn out
if(!on_fire)
return 1
else if(fire_stacks <= 0)