diff --git a/PunchinOut/BasicPanic.cs b/PunchinOut/BasicPanic.cs index 141b5bb..55915bb 100644 --- a/PunchinOut/BasicPanic.cs +++ b/PunchinOut/BasicPanic.cs @@ -232,7 +232,7 @@ public static bool ShouldPanic(Mech mech, AttackDirector.AttackSequence attackSe totalArmor = GetCurrentMechArmour(mech, totalArmor); - if((totalArmor / maxArmor * 100 ) + (BasicPanic.Settings.MinimumArmourDamagePercentageRequired / maxArmor * 100 ) >= 100) //basically if this equals to 100%, mech didn't lose enough armour + if((totalArmor / maxArmor * 100 ) + ((BasicPanic.Settings.MinimumArmourDamagePercentageRequired * maxArmor / 100) / maxArmor * 100 ) >= 100) //basically if this equals to 100%, mech didn't lose enough armour { return false; } diff --git a/mod.json b/mod.json index 1e617a6..35ccb27 100644 --- a/mod.json +++ b/mod.json @@ -1,7 +1,7 @@ { "Name": "BasicPanicSystem", - "Version": "0.5.1", + "Version": "1.0.0", "Description": "Adds basic panic system, based on mpstark's Punchin' Out.", "Author": "RealityMachina, forked from mpstark's work", "Website": "https://github.com/RealityMachina/PunchinOut",