Ink230 / irongoon

2 stars 1 forks source link

Perform Specific Events only on Stale Data #9

Closed Ink230 closed 6 months ago

Ink230 commented 6 months ago

CharacterStatsEvent runs every time with all the randomizer logic. Other randomizers currently behave the same way.

We can prevent any slow-downs (in the future by adding a gazillion more randomizers) by only running the randomizers as needed.

For CharacterStats, they only need to be updated on first load/first menu, ?receiving characters?, and level up events.

A system would handle this behaviour and state tracking generically for any type of event checking and/or randomizer checking.

Ink230 commented 6 months ago

Fixed by 0e14c0648312fc81d9a4c0ac730eeb81b05aea49