Fixes zombie juice turning people into zombies right away (#5386)

I deleted this line by accident, this should make the transformation not instant anymore. Also, it adds an armor check to being infected by the zombie attacks.
This commit is contained in:
Alberyk
2018-10-08 21:22:00 +03:00
committed by Erki
parent 1c332bf571
commit e411334910
2 changed files with 8 additions and 1 deletions
@@ -158,7 +158,11 @@
return
if(target.internal_organs_by_name["zombie"])
to_chat(user, "<span class='danger'>You feel that \the [target] has been already infected!</span>")
if(prob(25))
var/infection_chance = 80
var/armor = target.run_armor_check(zone,"melee")
infection_chance -= armor
if(prob(infection_chance))
if(target.reagents)
target.reagents.add_reagent("trioxin", 10)
@@ -812,6 +812,9 @@
if(!H.internal_organs_by_name["brain"]) //destroying the brain stops trioxin from bringing the dead back to life
return
if(H && H.stat != DEAD)
return
for(var/datum/language/L in H.languages)
H.remove_language(L.name)