fixes a math mistake

This commit is contained in:
Timothy Teakettle
2020-07-19 21:43:17 +01:00
parent 1b99cb9201
commit 037cec508e
+1 -1
View File
@@ -390,7 +390,7 @@
if(victim.reagents && victim.reagents.has_reagent(/datum/reagent/determination))
painkiller_bonus += 5
if(prob(25 + (20 * severity - 2) - painkiller_bonus)) // 25%/45% chance to fail self-applying with severe and critical wounds, modded by painkillers
if(prob(25 + (20 * (severity - 2)) - painkiller_bonus)) // 25%/45% chance to fail self-applying with severe and critical wounds, modded by painkillers
victim.visible_message("<span class='danger'>[victim] fails to finish applying [I] to [victim.p_their()] [limb.name], passing out from the pain!</span>", "<span class='notice'>You black out from the pain of applying [I] to your [limb.name] before you can finish!</span>")
victim.AdjustUnconscious(5 SECONDS)
return