mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 11:43:31 +00:00
Fix for negative miss chance modificators working.
This commit is contained in:
@@ -171,7 +171,7 @@ proc/hasorgans(A)
|
|||||||
|
|
||||||
// you can only miss if your target is standing and not restrained
|
// you can only miss if your target is standing and not restrained
|
||||||
if(!target.buckled && !target.lying)
|
if(!target.buckled && !target.lying)
|
||||||
var/miss_chance = max(10 + miss_chance_mod, 0)
|
var/miss_chance = 10
|
||||||
switch(zone)
|
switch(zone)
|
||||||
if("head")
|
if("head")
|
||||||
miss_chance = 40
|
miss_chance = 40
|
||||||
@@ -191,6 +191,7 @@ proc/hasorgans(A)
|
|||||||
miss_chance = 50
|
miss_chance = 50
|
||||||
if("r_foot")
|
if("r_foot")
|
||||||
miss_chance = 50
|
miss_chance = 50
|
||||||
|
miss_chance = max(miss_chance + miss_chance_mod, 0)
|
||||||
if(prob(miss_chance))
|
if(prob(miss_chance))
|
||||||
if(prob(70))
|
if(prob(70))
|
||||||
return null
|
return null
|
||||||
|
|||||||
Reference in New Issue
Block a user