Pistonite / botw-ist

NEW IST Simulator
https://ist.itntpiston.app/
MIT License
6 stars 2 forks source link

Support MSWMC #25

Closed Pistonight closed 6 months ago

Pistonight commented 6 months ago
  1. Slots.add: Changed to return lastAdded or undefined, which are different as a broken MS fails to load will set mLastAddedItem to nullptr
  2. When loading from game data, The WMC source stack could be different from the stack currently being loaded
  3. The source stack is tracked by num_food, which is not updated when mLastAddedItem is nullptr, causing the same food data to be loaded for the next food

Also, fixed a bug where removing things cause broken Master Sword to be removed.

Note: The game use the master sword recharge timer to determine if MS is broken. This flag is currently not supported in the simulator, so MS durability is used. This means when transfering MS between saves, the durability will be inaccurate. The workaround is to use the write command to manually fix the durability