>>103226998
I wrote it like 3 years ago. I now post it just to piss off more experienced programmers.
>>103234279
-Base is the thing this script is attached to. There is no functional difference between base and this.
-This is from a mod, so, annoyingly long class name is not my fault. Some of them have fucking typos too, like Storge, and then there's Behavior vs Behaviour.
-base.card and this.behavior.card are actually the same thing. The former returns the latter.
-The entire check could literally be turned into a formula. Unfortunately, I'm bad at math.
-I'm using dnSpy, which doesn't save comments. No idea what token stuff is, it just helps me visually separate methods.
-base.BeforeRollDice calls the original script this normally overrides. It doesn't loop itself somehow, but it's also completely unnecessary because original method is empty.
>>103241194
GetDefault gets max value, breakGauge is current.
I don't ever use the fucking float num, but that's actually a good thing because MaxBreakLife is NOT used by ANYTHING and has no relation to breakGauge. I might have used it before realizing I got the wrong thing.