mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-07-14 09:03:00 -07:00
ER - Shabom timer fix (#2110)
This commit is contained in:
parent
924e9147aa
commit
b593e27384
1 changed files with 7 additions and 1 deletions
|
@ -32,7 +32,13 @@ void ObjRoomtimer_Init(Actor* thisx, PlayState* play) {
|
||||||
ObjRoomtimer* this = (ObjRoomtimer*)thisx;
|
ObjRoomtimer* this = (ObjRoomtimer*)thisx;
|
||||||
s16 params = this->actor.params;
|
s16 params = this->actor.params;
|
||||||
|
|
||||||
this->switchFlag = (params >> 10) & 0x3F;
|
// Shabom room in Jabu Jabu has a lengthened timer in Enemy Randomizer. Flag doesn't match what the game
|
||||||
|
// expects. Instead set it back to the same flag as what it would be in vanilla.
|
||||||
|
if (CVar_GetS32("gRandomizedEnemies", 0) && play->sceneNum == SCENE_BDAN && play->roomCtx.curRoom.num == 12) {
|
||||||
|
this->switchFlag = 30;
|
||||||
|
} else {
|
||||||
|
this->switchFlag = (params >> 10) & 0x3F;
|
||||||
|
}
|
||||||
this->actor.params = params & 0x3FF;
|
this->actor.params = params & 0x3FF;
|
||||||
params = this->actor.params;
|
params = this->actor.params;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue