It's trivial really. They say it should prevent stunlocks so it just does :) https://hg.sr.ht/~naryl/SWPT-mods/browse/IgnorePainSkillFix/BepInExPlugin.cs?rev=tip#L40
Well, yes thx for discovering and solving this. I know the code and the math behind the combat stats are pretty dumb and therewith badly balanced. -- some logarithmic functions would do a better job but guess that's too edgy science ^^ -- I appreciate that you take care of it.
10 comments
I guess I'll go with the second way.
https://hg.sr.ht/~naryl/SWPT-mods/browse/IgnorePainSkillFix/BepInExPlugin.cs?rev=tip#L40
I know the code and the math behind the combat stats are pretty dumb and therewith badly balanced.
-- some logarithmic functions would do a better job but guess that's too edgy science ^^ --
I appreciate that you take care of it.
if (UnityEngine.Random.Range(0, (__instance.ignorpain + 1) * 100) > 100) ...
Levels: 0%, 50%, 67%, 75%, 80%, 83%
if (UnityEngine.Random.Range(0, (__instance.ignorpain + 0.5) * 100) > 100) ...
Or exponential:Levels: 0%, 33%, 60%, 71%, 78%, 82%
if (UnityEngine.Random.Range(0, 100) > Math.pow(1.58489, 10 - __instance.ignorpain)) ...
where 1.58489 is 100 ^ (1/10)Levels: 0%, 34%, 60%, 75%, 84%, 90%
I feel exponential would work better here.