Skip to content

Commit 8fc9fc1

Browse files
committed
Rig treasure chest minigame
1 parent f2a9758 commit 8fc9fc1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

soh/src/overlays/actors/ovl_En_Changer/z_en_changer.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,11 @@ void EnChanger_Init(Actor* thisx, PlayState* play2) {
136136
this->rightChestGetItemId = GI_DOOR_KEY;
137137
rightChestItem = ITEM_ETC_KEY_SMALL_CHEST_GAME;
138138

139-
if (Rand_ZeroFloat(1.99f) < 1.0f) {
139+
uint8_t roomNum = play->roomCtx.curRoom.num;
140+
uint8_t leftSideKey = roomNum == 1 || roomNum == 2 || roomNum == 5;
141+
// Solution: LLRRL
142+
143+
if (leftSideKey) {
140144
rightChestParams = (sLoserGetItemIds[play->roomCtx.curRoom.num] << 5) | 0x4000;
141145
this->rightChestNum = new_var;
142146
this->rightChestGetItemId = sLoserGetItemIds[play->roomCtx.curRoom.num];

0 commit comments

Comments
 (0)