mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-24 23:25:34 -07:00
Rig treasure chest minigame
This commit is contained in:
parent
f2a975872e
commit
8fc9fc18ec
1 changed files with 5 additions and 1 deletions
|
@ -136,7 +136,11 @@ void EnChanger_Init(Actor* thisx, PlayState* play2) {
|
|||
this->rightChestGetItemId = GI_DOOR_KEY;
|
||||
rightChestItem = ITEM_ETC_KEY_SMALL_CHEST_GAME;
|
||||
|
||||
if (Rand_ZeroFloat(1.99f) < 1.0f) {
|
||||
uint8_t roomNum = play->roomCtx.curRoom.num;
|
||||
uint8_t leftSideKey = roomNum == 1 || roomNum == 2 || roomNum == 5;
|
||||
// Solution: LLRRL
|
||||
|
||||
if (leftSideKey) {
|
||||
rightChestParams = (sLoserGetItemIds[play->roomCtx.curRoom.num] << 5) | 0x4000;
|
||||
this->rightChestNum = new_var;
|
||||
this->rightChestGetItemId = sLoserGetItemIds[play->roomCtx.curRoom.num];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue