implement kak malo mart shop checks

This commit is contained in:
gymnast86
2026-04-29 16:15:29 -07:00
parent a5cc64c2fe
commit 9b34fd8f8f
14 changed files with 399 additions and 88 deletions
+11
View File
@@ -16,6 +16,7 @@
#include <cstring>
#if TARGET_PC
#include "dusk/randomizer/game/tools.h"
#include "dusk/randomizer/game/stages.h"
#endif
@@ -1200,6 +1201,16 @@ u16 dMsgFlow_c::query025(mesg_flow_node_branch* i_flowNode_p, fopAc_ac_c* i_spea
const u8 prm0 = i_flowNode_p->param;
u16 ret = dComIfGs_checkEmptyBottle() >= prm0 ? 0 : 1;
#if TARGET_PC
// Check to see if currently in one of the Kakariko interiors and if the red potion item is randomized
if (randomizer_IsActive() && playerIsInRoomStage(3, allStages[Kakariko_Village_Interiors]) &&
randomizer_GetContext().mShopOverrides.contains(0x4461)) // 0x4461 is the key for the red potion item
{
// Return 0 so the player can buy the red potion item from the shop.
return 0;
}
#endif
if (param_2 != 0) {
// "Empty Bottle Count Check"
OS_REPORT("\x1B[44;33m空きビン数チェック         \x1B[m|:");