Open nosas opened 3 years ago
Need to calculate Gag Attack accuracy, wrong to assume attacks always hit
atkAcc = propAcc + trackExp + tgtDef + bonus
Additional notes from https://toontownrewritten.fandom.com/wiki/Accuracy#propAcc
When Trap gag is used, atkAcc is set to 100, and atkHit is set to 1.
For all other gags, if atkAcc exceeds 95, it will be reduced to 95.
OG TT code implementation can be found here: https://github.com/forest2001/Toontown-Rewritten/blob/master/toontown/battle/BattleCalculatorAI.py#L65
As of right now, all Attacks are guaranteed to hit their Target. Functional Attack accuracy during Battles will allow us to create diverse and accurate datasets.