diff options
| author | robojumper <robojumper@gmail.com> | 2024-09-12 22:23:11 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-12 16:23:11 -0400 |
| commit | e2c4bb7be7fa731a335bce4bc22283d899133e39 (patch) | |
| tree | 91152d84cae384b376f4ce4c87e9e247255ec954 /src/toBeSorted/counters/rupee_counter.cpp | |
| parent | 9aa30ee4995be938e1ea05f6d476d63fcb8cc67e (diff) | |
Dowsing (#17)
* Dowsing.
* d_t_dowsing
* d_t_holy_water OK
Diffstat (limited to 'src/toBeSorted/counters/rupee_counter.cpp')
| -rw-r--r-- | src/toBeSorted/counters/rupee_counter.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/toBeSorted/counters/rupee_counter.cpp b/src/toBeSorted/counters/rupee_counter.cpp index d1264a74..02f3cd0f 100644 --- a/src/toBeSorted/counters/rupee_counter.cpp +++ b/src/toBeSorted/counters/rupee_counter.cpp @@ -1,4 +1,5 @@ #include <toBeSorted/counters/counter.h> +#include <toBeSorted/item_story_flag_manager.h> static u16 getBaseCapacity(); static u16 getExtraWalletCapacity(); @@ -17,10 +18,6 @@ struct WalletStruct { u16 capacity; }; -// TODO set up item flag manager -extern "C" void *lbl_80575400; -extern "C" u16 fn_800BF5E0(void *data, u16 flag); - /* 8016DE10 */ static u16 getBaseCapacity() { int i = 0; /* 804E91B0 */ WalletStruct wallet_definitions[4] = { @@ -31,7 +28,7 @@ extern "C" u16 fn_800BF5E0(void *data, u16 flag); }; const WalletStruct *wallet = &wallet_definitions[3]; for (; i < 4; i++, wallet--) { - if (fn_800BF5E0(lbl_80575400, wallet->flag)) { + if (ItemFlagManager::sInstance->getFlag(wallet->flag)) { return wallet->capacity; } } |
