Skip to content

Conversation

@LordMidas
Copy link
Member

@LordMidas LordMidas commented Apr 30, 2025

  • This allows other mods that want to queue before MSU and modify these events to actually work properly with their modifications.
  • The main goal of the overwrites, as far as I (LordMidas) understand, was to have a DRY method of applying the wasUpdating fix. However, upon reflection I have realized that that fix is only necessary for the buildPropertiesForXYZ functions. Because it is these functions which have a chance of being called from within other skill container events. The other events e.g. onTurnEnd etc. are very well secluded and are only ever called independently, so never run into an issue of setting IsUpdating to false too early. So we keep the wasUpdating check manually for the buildProperties type functions, but for the others we remove the overwrites.

Eventually with the combination of the other fix in #447 this might as well fix some hidden/unknown bugs being caused by MSU.

- This allows other mods that want to queue before MSU and modify these events to actually work properly with their modifications.
- The main goal of the overwrites, as far as I (LordMidas) understand, was to have a DRY method of applying the `wasUpdating` fix. However, upon reflection I have realized that that fix is only necessary for the `buildPropertiesForXYZ` functions. Because it is these functions which have a chance of being called from within other skill container events. The other events e.g. `onTurnEnd` etc. are very well secluded and are only ever called independently, so never run into an issue of setting `IsUpdating` to false too early. So we keep the `wasUpdating` check manually for the `buildProperties` type functions, but for the others we remove the overwrites.
@LordMidas LordMidas requested a review from TaroEld April 30, 2025 11:23
@LordMidas LordMidas force-pushed the development branch 2 times, most recently from 6677ac8 to ae825b7 Compare June 17, 2025 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants