nosas / OmniToon

[WIP] ToonTown AI - Python Plays ToonTown
3 stars 0 forks source link

Create functionality for Cog/Toon Attack accuracy during battles #10

Open nosas opened 3 years ago

nosas commented 3 years ago

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.

nosas commented 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

nosas commented 6 months ago

OG TT code implementation can be found here: https://github.com/forest2001/Toontown-Rewritten/blob/master/toontown/battle/BattleCalculatorAI.py#L65