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

Refactor item consumption #212

Closed theastrogoth closed 5 months ago

theastrogoth commented 5 months ago

Avoid having effects for items rewritten in a few places by putting them in a new consumeItem method in RaidState.

Make Cud Chew possible (without rewriting all Berry effects again) by allowing for items to be consumed without being held.