We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2a9758 commit 8fc9fc1Copy full SHA for 8fc9fc1
soh/src/overlays/actors/ovl_En_Changer/z_en_changer.c
@@ -136,7 +136,11 @@ void EnChanger_Init(Actor* thisx, PlayState* play2) {
136
this->rightChestGetItemId = GI_DOOR_KEY;
137
rightChestItem = ITEM_ETC_KEY_SMALL_CHEST_GAME;
138
139
- if (Rand_ZeroFloat(1.99f) < 1.0f) {
+ uint8_t roomNum = play->roomCtx.curRoom.num;
140
+ uint8_t leftSideKey = roomNum == 1 || roomNum == 2 || roomNum == 5;
141
+ // Solution: LLRRL
142
+
143
+ if (leftSideKey) {
144
rightChestParams = (sLoserGetItemIds[play->roomCtx.curRoom.num] << 5) | 0x4000;
145
this->rightChestNum = new_var;
146
this->rightChestGetItemId = sLoserGetItemIds[play->roomCtx.curRoom.num];
0 commit comments