theastrogoth / tera-raid-builder

A tool for simulating Tera Raid battles in Pokémon Scarlet & Violet
https://theastrogoth.github.io/tera-raid-builder/
4 stars 3 forks source link

Reorganize raidcalc classes #92

Closed theastrogoth closed 1 year ago

theastrogoth commented 1 year ago

I've moved a lot of the checks for item/ability activation to the RaidState class and tried to set things up so that things will be activated when trigger conditions are met (e.g. taking damage, terrain change, applying a stat boost) regardless of when it happens during a move/turn.

I've tested a few of our more recent tricky test cases, as well as previous ERS strats, and things seem to be working.

I've also added Opportunist, Acupressure (sort of), and some more abilities that are activated by taking a hit from an opponent

Other things that I've included here: