Repository navigation
Full Wallets is now a setting (Logic > Full Wallets), off by default - #150
Merged
Merged
Conversation
With Full Wallets on, a new game starts with its wallet full, and each Adult's Wallet or Giant's Wallet fills to its capacity with the rupee counter on screen. With it off, nothing changes. Before this change the setting was a greyed entry on the settings page. ## Cause The setting was a stub. The pouch table column that fills bags on get (`IsItemStockMaxIfGet`) does nothing for rupees, and no flow action sets the count to the cap. ## Change - `full_wallet::sites` hooks the pouch adds every wallet give ends in: `GetPouchContent` `Event0`, `Dm_SY_GetInEvent` `Event124`, `Event442` and `Event430`, the pickup adds of `Dm_SY_Get` and `Dm_SY_Get_WithoutPlayer` (and the ends of the pickup tier paths), and literal wallet adds in the flows the build writes. A question on `UI_MessageTargetActorName` lets only wallet names through. - `full_wallet::fill` opens the rupee counter, adds 1000 rupees, waits for the counter, holds it 60 frames and closes it, as the game does around rupee gives in events. The game caps the count at the wallet's capacity. In shops and scrub sales the shop's open counter is used. - The new-game save defaults set `PlayerStatus.CurrentRupee` to the best starting wallet's capacity. - Navi's "Your wallet is stuffed." remark is unchanged, so it can follow a wallet fill. - The settings hunks add the toggle last and off by default, so the default settings string and seeds are unchanged. ## Checked - `cargo test --workspace`: 2447 passed, 0 failed, with 9 `full_wallet` tests among them. - Default settings: every file built is byte-identical to nightly 4fa6e5a. Setting off: byte-identical to nightly 240af8b with three more (chest and person plando, shop deals and freestanding plando, pot and Gold Skulltula reward plando). - On: `ootrr flow-loads` finds no missing loads on 9 mods with the setting on. - Game, played by hand and passed: a chest, a pot, a Deku Scrub sale, a person's gift, a shop purchase, a ground pickup, the Gold Skulltula reward, and a new game with and without the Adult's Wallet. Scripted only: the Great Fairy's offering reward. Setting number 610. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With Full Wallets on, a new game starts with its wallet full, and each Adult's Wallet or Giant's Wallet fills to its capacity with the rupee counter on screen. With it off, nothing changes. Before this change the setting was a greyed entry on the settings page.
Cause
The setting was a stub. The pouch table column that fills bags on get (
IsItemStockMaxIfGet) does nothing for rupees, and no flow action sets the count to the cap.Change
full_wallet::siteshooks the pouch adds every wallet give ends in:GetPouchContentEvent0,Dm_SY_GetInEventEvent124,Event442andEvent430, the pickup adds ofDm_SY_GetandDm_SY_Get_WithoutPlayer(and the ends of the pickup tier paths), and literal wallet adds in the flows the build writes. A question onUI_MessageTargetActorNamelets only wallet names through.full_wallet::fillopens the rupee counter, adds 1000 rupees, waits for the counter, holds it 60 frames and closes it, as the game does around rupee gives in events. The game caps the count at the wallet's capacity. In shops and scrub sales the shop's open counter is used.PlayerStatus.CurrentRupeeto the best starting wallet's capacity.Checked
cargo test --workspace: 2447 passed, 0 failed, with 9full_wallettests among them.ootrr flow-loadsfinds no missing loads on 9 mods with the setting on.Setting number 610.