Makes Reagents Holder Process and Refactors NOREACT

This commit is contained in:
Fox-McCloud
2017-01-14 20:09:49 -05:00
parent a665387cb6
commit ea8080e6c9
13 changed files with 45 additions and 28 deletions
@@ -234,8 +234,8 @@
/obj/item/projectile/bullet/dart/New()
..()
flags |= NOREACT
create_reagents(50)
reagents.set_reacting(FALSE)
/obj/item/projectile/bullet/dart/on_hit(var/atom/target, var/blocked = 0, var/hit_zone)
if(iscarbon(target))
@@ -251,7 +251,7 @@
target.visible_message("<span class='danger'>The [name] was deflected!</span>", \
"<span class='userdanger'>You were protected against the [name]!</span>")
..(target, blocked, hit_zone)
flags &= ~NOREACT
reagents.set_reacting(TRUE)
reagents.handle_reactions()
return 1