mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-21 14:31:17 +00:00
Split SaveContext
into sub-structs (#1393)
* Split SaveContext struct * run formatter * Remove temporary-until-split stuff in z_sram * . * run formatter
This commit is contained in:
parent
e272186b5f
commit
6e7a6d4181
107 changed files with 1819 additions and 1751 deletions
|
@ -560,7 +560,7 @@ void EnTa_IdleAtRanch(EnTa* this, PlayState* play) {
|
|||
}
|
||||
|
||||
s32 EnTa_CheckCanBuyMilk(void) {
|
||||
if (gSaveContext.rupees < 30) {
|
||||
if (gSaveContext.save.info.playerData.rupees < 30) {
|
||||
return TALON_CANBUYMILK_NOT_ENOUGH_RUPEES;
|
||||
} else if (!Inventory_HasEmptyBottle()) {
|
||||
return TALON_CANBUYMILK_NO_EMPTY_BOTTLE;
|
||||
|
@ -986,7 +986,7 @@ void EnTa_WaitBuyMilkOrPlayCuccoGameResponse(EnTa* this, PlayState* play) {
|
|||
break;
|
||||
|
||||
case 1: // Play cucco game
|
||||
if (gSaveContext.rupees < 10) {
|
||||
if (gSaveContext.save.info.playerData.rupees < 10) {
|
||||
Message_ContinueTextbox(play, 0x85);
|
||||
EnTa_SetupAction(this, EnTa_TalkNotEnoughRupees, EnTa_AnimRunToEnd);
|
||||
} else {
|
||||
|
@ -1020,7 +1020,7 @@ void EnTa_WaitForPlayCuccoGameResponse(EnTa* this, PlayState* play) {
|
|||
if (Message_GetState(&play->msgCtx) == TEXT_STATE_CHOICE && Message_ShouldAdvance(play)) {
|
||||
switch (play->msgCtx.choiceIndex) {
|
||||
case 0:
|
||||
if (gSaveContext.rupees < price) {
|
||||
if (gSaveContext.save.info.playerData.rupees < price) {
|
||||
Message_ContinueTextbox(play, 0x85);
|
||||
EnTa_SetupAction(this, EnTa_TalkNotEnoughRupees, EnTa_AnimRunToEnd);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue