Finish documenting event vars
This commit is contained in:
@@ -641,7 +641,7 @@ u8 BattleSetup_GetTerrainId(void)
|
||||
return BATTLE_TERRAIN_BUILDING;
|
||||
case MAP_TYPE_UNDERWATER:
|
||||
return BATTLE_TERRAIN_UNDERWATER;
|
||||
case MAP_TYPE_6:
|
||||
case MAP_TYPE_OCEAN_ROUTE:
|
||||
if (MetatileBehavior_IsSurfableWaterOrUnderwater(tileBehavior))
|
||||
return BATTLE_TERRAIN_WATER;
|
||||
return BATTLE_TERRAIN_PLAIN;
|
||||
|
||||
@@ -23,8 +23,8 @@ EWRAM_DATA u16 gSpecialVar_LastTalked = 0;
|
||||
EWRAM_DATA u16 gSpecialVar_Facing = 0;
|
||||
EWRAM_DATA u16 gSpecialVar_MonBoxId = 0;
|
||||
EWRAM_DATA u16 gSpecialVar_MonBoxPos = 0;
|
||||
EWRAM_DATA u16 gSpecialVar_0x8014 = 0;
|
||||
EWRAM_DATA static u8 gUnknown_020375FC[16] = {0};
|
||||
EWRAM_DATA u16 gSpecialVar_Unused_0x8014 = 0;
|
||||
EWRAM_DATA static u8 gSpecialFlags[16] = {0};
|
||||
|
||||
extern u16 *const gSpecialVars[];
|
||||
|
||||
@@ -32,7 +32,7 @@ void InitEventData(void)
|
||||
{
|
||||
memset(gSaveBlock1Ptr->flags, 0, sizeof(gSaveBlock1Ptr->flags));
|
||||
memset(gSaveBlock1Ptr->vars, 0, sizeof(gSaveBlock1Ptr->vars));
|
||||
memset(gUnknown_020375FC, 0, sizeof(gUnknown_020375FC));
|
||||
memset(gSpecialFlags, 0, sizeof(gSpecialFlags));
|
||||
}
|
||||
|
||||
void ClearTempFieldEventData(void)
|
||||
@@ -199,7 +199,7 @@ u8 *GetFlagPointer(u16 id)
|
||||
else if (id < SPECIAL_FLAGS_START)
|
||||
return &gSaveBlock1Ptr->flags[id / 8];
|
||||
else
|
||||
return &gUnknown_020375FC[(id - SPECIAL_FLAGS_START) / 8];
|
||||
return &gSpecialFlags[(id - SPECIAL_FLAGS_START) / 8];
|
||||
}
|
||||
|
||||
u8 FlagSet(u16 id)
|
||||
|
||||
@@ -567,27 +567,27 @@ static bool8 TryStartStepCountScript(u16 metatileBehavior)
|
||||
ScriptContext1_SetupScript(IslandCave_EventScript_238EAF);
|
||||
return TRUE;
|
||||
}
|
||||
if (is_tile_that_overrides_player_control() == TRUE)
|
||||
if (ShouldDoWallyCall() == TRUE)
|
||||
{
|
||||
ScriptContext1_SetupScript(MauvilleCity_EventScript_1DF7BA);
|
||||
return TRUE;
|
||||
}
|
||||
if (sub_8138120() == TRUE)
|
||||
if (ShouldDoWinonaCall() == TRUE)
|
||||
{
|
||||
ScriptContext1_SetupScript(Route119_EventScript_1F49EC);
|
||||
return TRUE;
|
||||
}
|
||||
if (sub_8138168() == TRUE)
|
||||
if (ShouldDoScottCall() == TRUE)
|
||||
{
|
||||
ScriptContext1_SetupScript(LittlerootTown_ProfessorBirchsLab_EventScript_1FA4D6);
|
||||
return TRUE;
|
||||
}
|
||||
if (sub_81381B0() == TRUE)
|
||||
if (ShouldDoRoxanneCall() == TRUE)
|
||||
{
|
||||
ScriptContext1_SetupScript(RustboroCity_Gym_EventScript_21307B);
|
||||
return TRUE;
|
||||
}
|
||||
if (sub_81381F8() == TRUE)
|
||||
if (ShouldDoRivalRayquazaCall() == TRUE)
|
||||
{
|
||||
ScriptContext1_SetupScript(MossdeepCity_SpaceCenter_2F_EventScript_224175);
|
||||
return TRUE;
|
||||
|
||||
@@ -2443,7 +2443,7 @@ static void sub_80B8410(struct Task *task)
|
||||
bool8 FldEff_FieldMoveShowMon(void)
|
||||
{
|
||||
u8 taskId;
|
||||
if (is_map_type_1_2_3_5_or_6(GetCurrentMapType()) == TRUE)
|
||||
if (IsMapTypeOutside(GetCurrentMapType()) == TRUE)
|
||||
{
|
||||
taskId = CreateTask(sub_80B8554, 0xff);
|
||||
} else
|
||||
|
||||
@@ -360,17 +360,17 @@ u8 GetSSTidalLocation(s8 *mapGroup, s8 *mapNum, s16 *x, s16 *y)
|
||||
return 0;
|
||||
}
|
||||
|
||||
bool32 is_tile_that_overrides_player_control(void)
|
||||
bool32 ShouldDoWallyCall(void)
|
||||
{
|
||||
if (FlagGet(FLAG_ENABLE_FIRST_WALLY_POKENAV_CALL))
|
||||
{
|
||||
switch (gMapHeader.mapType)
|
||||
{
|
||||
case 1:
|
||||
case 2:
|
||||
case 3:
|
||||
case 6:
|
||||
if (++(*GetVarPointer(VAR_0x40F2)) < 0xFA)
|
||||
case MAP_TYPE_TOWN:
|
||||
case MAP_TYPE_CITY:
|
||||
case MAP_TYPE_ROUTE:
|
||||
case MAP_TYPE_OCEAN_ROUTE:
|
||||
if (++(*GetVarPointer(VAR_WALLY_CALL_STEP_COUNTER)) < 0xFA)
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
@@ -387,7 +387,7 @@ bool32 is_tile_that_overrides_player_control(void)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
bool32 sub_8138120(void)
|
||||
bool32 ShouldDoWinonaCall(void)
|
||||
{
|
||||
if (FlagGet(FLAG_REGISTER_WINONA_POKENAV))
|
||||
{
|
||||
@@ -396,8 +396,8 @@ bool32 sub_8138120(void)
|
||||
case MAP_TYPE_TOWN:
|
||||
case MAP_TYPE_CITY:
|
||||
case MAP_TYPE_ROUTE:
|
||||
case MAP_TYPE_6:
|
||||
if (++(*GetVarPointer(VAR_0x40F3)) < 10)
|
||||
case MAP_TYPE_OCEAN_ROUTE:
|
||||
if (++(*GetVarPointer(VAR_WINONA_CALL_STEP_COUNTER)) < 10)
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
@@ -414,7 +414,7 @@ bool32 sub_8138120(void)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
bool32 sub_8138168(void)
|
||||
bool32 ShouldDoScottCall(void)
|
||||
{
|
||||
if (FlagGet(FLAG_SCOTT_CALL_NATIONAL_DEX))
|
||||
{
|
||||
@@ -424,7 +424,7 @@ bool32 sub_8138168(void)
|
||||
case 2:
|
||||
case 3:
|
||||
case 6:
|
||||
if (++(*GetVarPointer(VAR_0x40F5)) < 0xA)
|
||||
if (++(*GetVarPointer(VAR_SCOTT_CALL_STEP_COUNTER)) < 10)
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
@@ -441,7 +441,7 @@ bool32 sub_8138168(void)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
bool32 sub_81381B0(void)
|
||||
bool32 ShouldDoRoxanneCall(void)
|
||||
{
|
||||
if (FlagGet(FLAG_ENABLE_ROXANNE_FIRST_CALL))
|
||||
{
|
||||
@@ -451,7 +451,7 @@ bool32 sub_81381B0(void)
|
||||
case 2:
|
||||
case 3:
|
||||
case 6:
|
||||
if (++(*GetVarPointer(VAR_0x40F4)) < 0xFA)
|
||||
if (++(*GetVarPointer(VAR_ROXANNE_CALL_STEP_COUNTER)) < 0xFA)
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
@@ -468,7 +468,7 @@ bool32 sub_81381B0(void)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
bool32 sub_81381F8(void)
|
||||
bool32 ShouldDoRivalRayquazaCall(void)
|
||||
{
|
||||
if (FlagGet(FLAG_DEFEATED_MAGMA_SPACE_CENTER))
|
||||
{
|
||||
@@ -478,7 +478,7 @@ bool32 sub_81381F8(void)
|
||||
case 2:
|
||||
case 3:
|
||||
case 6:
|
||||
if (++(*GetVarPointer(VAR_0x40F6)) < 0xFA)
|
||||
if (++(*GetVarPointer(VAR_RIVAL_RAYQUAZA_CALL_STEP_COUNTER)) < 0xFA)
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
@@ -1516,7 +1516,7 @@ bool8 FoundBlackGlasses(void)
|
||||
|
||||
void SetRoute119Weather(void)
|
||||
{
|
||||
if (is_map_type_1_2_3_5_or_6(GetLastUsedWarpMapType()) != TRUE)
|
||||
if (IsMapTypeOutside(GetLastUsedWarpMapType()) != TRUE)
|
||||
{
|
||||
SetSav1Weather(20);
|
||||
}
|
||||
@@ -1524,7 +1524,7 @@ void SetRoute119Weather(void)
|
||||
|
||||
void SetRoute123Weather(void)
|
||||
{
|
||||
if (is_map_type_1_2_3_5_or_6(GetLastUsedWarpMapType()) != TRUE)
|
||||
if (IsMapTypeOutside(GetLastUsedWarpMapType()) != TRUE)
|
||||
{
|
||||
SetSav1Weather(21);
|
||||
}
|
||||
|
||||
@@ -1126,7 +1126,7 @@ void GetShieldToyTVDecorationInfo(void)
|
||||
if (!VarGet(VAR_CURRENT_SECRET_BASE))
|
||||
return;
|
||||
|
||||
VarSet(VAR_0x40EE, VarGet(VAR_0x40EE) | 0x10);
|
||||
VarSet(VAR_SECRET_BASE_LOW_TV_FLAGS, VarGet(VAR_SECRET_BASE_LOW_TV_FLAGS) | 0x10);
|
||||
break;
|
||||
case 734:
|
||||
ConvertIntToDecimalStringN(gStringVar1, 50, STR_CONV_MODE_LEFT_ALIGN, 2);
|
||||
@@ -1137,7 +1137,7 @@ void GetShieldToyTVDecorationInfo(void)
|
||||
if (!VarGet(VAR_CURRENT_SECRET_BASE))
|
||||
return;
|
||||
|
||||
VarSet(VAR_0x40EE, VarGet(VAR_0x40EE) | 0x20);
|
||||
VarSet(VAR_SECRET_BASE_LOW_TV_FLAGS, VarGet(VAR_SECRET_BASE_LOW_TV_FLAGS) | 0x20);
|
||||
break;
|
||||
case 756:
|
||||
gSpecialVar_Result = 1;
|
||||
@@ -1145,7 +1145,7 @@ void GetShieldToyTVDecorationInfo(void)
|
||||
if (!VarGet(VAR_CURRENT_SECRET_BASE))
|
||||
return;
|
||||
|
||||
VarSet(VAR_0x40EE, VarGet(VAR_0x40EE) | 0x80);
|
||||
VarSet(VAR_SECRET_BASE_LOW_TV_FLAGS, VarGet(VAR_SECRET_BASE_LOW_TV_FLAGS) | 0x80);
|
||||
break;
|
||||
case 757:
|
||||
gSpecialVar_Result = 2;
|
||||
@@ -1153,7 +1153,7 @@ void GetShieldToyTVDecorationInfo(void)
|
||||
if (!VarGet(VAR_CURRENT_SECRET_BASE))
|
||||
return;
|
||||
|
||||
VarSet(VAR_0x40EE, VarGet(VAR_0x40EE) | 0x80);
|
||||
VarSet(VAR_SECRET_BASE_LOW_TV_FLAGS, VarGet(VAR_SECRET_BASE_LOW_TV_FLAGS) | 0x80);
|
||||
break;
|
||||
case 758:
|
||||
gSpecialVar_Result = 3;
|
||||
@@ -1161,7 +1161,7 @@ void GetShieldToyTVDecorationInfo(void)
|
||||
if (!VarGet(VAR_CURRENT_SECRET_BASE))
|
||||
return;
|
||||
|
||||
VarSet(VAR_0x40EE, VarGet(VAR_0x40EE) | 0x80);
|
||||
VarSet(VAR_SECRET_BASE_LOW_TV_FLAGS, VarGet(VAR_SECRET_BASE_LOW_TV_FLAGS) | 0x80);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -539,8 +539,8 @@ bool8 RemoveBagItem(u16 itemId, u16 count)
|
||||
|
||||
if (CurrentMapIsSecretBase() == TRUE)
|
||||
{
|
||||
VarSet(VAR_0x40EE, VarGet(VAR_0x40EE) | 0x200);
|
||||
VarSet(VAR_0x40ED, itemId);
|
||||
VarSet(VAR_SECRET_BASE_LOW_TV_FLAGS, VarGet(VAR_SECRET_BASE_LOW_TV_FLAGS) | 0x200);
|
||||
VarSet(VAR_SECRET_BASE_LAST_ITEM_USED, itemId);
|
||||
}
|
||||
|
||||
var = GetItemListPosition(pocket);
|
||||
|
||||
@@ -678,7 +678,7 @@ void UpdateEscapeWarp(s16 x, s16 y)
|
||||
{
|
||||
u8 currMapType = GetCurrentMapType();
|
||||
u8 destMapType = GetMapTypeByGroupAndId(sWarpDestination.mapGroup, sWarpDestination.mapNum);
|
||||
if (is_map_type_1_2_3_5_or_6(currMapType) && is_map_type_1_2_3_5_or_6(destMapType) != TRUE)
|
||||
if (IsMapTypeOutside(currMapType) && IsMapTypeOutside(destMapType) != TRUE)
|
||||
SetEscapeWarp(gSaveBlock1Ptr->location.mapGroup, gSaveBlock1Ptr->location.mapNum, -1, x - 7, y - 6);
|
||||
}
|
||||
|
||||
@@ -837,7 +837,7 @@ static void mli0_load_map(u32 a1)
|
||||
LoadEventObjTemplatesFromHeader();
|
||||
}
|
||||
|
||||
v2 = is_map_type_1_2_3_5_or_6(gMapHeader.mapType);
|
||||
v2 = IsMapTypeOutside(gMapHeader.mapType);
|
||||
indoors = Overworld_MapTypeIsIndoors(gMapHeader.mapType);
|
||||
|
||||
sub_80EB218();
|
||||
@@ -925,7 +925,7 @@ static u8 GetAdjustedInitialTransitionFlags(struct InitialPlayerAvatarState *pla
|
||||
|
||||
static u8 GetAdjustedInitialDirection(struct InitialPlayerAvatarState *playerStruct, u8 transitionFlags, u16 metatileBehavior, u8 mapType)
|
||||
{
|
||||
if (FlagGet(FLAG_SYS_CRUISE_MODE) && mapType == MAP_TYPE_6)
|
||||
if (FlagGet(FLAG_SYS_CRUISE_MODE) && mapType == MAP_TYPE_OCEAN_ROUTE)
|
||||
return DIR_EAST;
|
||||
else if (MetatileBehavior_IsDeepSouthWarp(metatileBehavior) == TRUE)
|
||||
return DIR_NORTH;
|
||||
@@ -1330,13 +1330,13 @@ u8 GetLastUsedWarpMapType(void)
|
||||
return GetMapTypeByWarpData(&gLastUsedWarp);
|
||||
}
|
||||
|
||||
bool8 is_map_type_1_2_3_5_or_6(u8 mapType)
|
||||
bool8 IsMapTypeOutside(u8 mapType)
|
||||
{
|
||||
if (mapType == MAP_TYPE_ROUTE
|
||||
|| mapType == MAP_TYPE_TOWN
|
||||
|| mapType == MAP_TYPE_UNDERWATER
|
||||
|| mapType == MAP_TYPE_CITY
|
||||
|| mapType == MAP_TYPE_6)
|
||||
|| mapType == MAP_TYPE_OCEAN_ROUTE)
|
||||
return TRUE;
|
||||
else
|
||||
return FALSE;
|
||||
@@ -1346,7 +1346,7 @@ bool8 Overworld_MapTypeAllowsTeleportAndFly(u8 mapType)
|
||||
{
|
||||
if (mapType == MAP_TYPE_ROUTE
|
||||
|| mapType == MAP_TYPE_TOWN
|
||||
|| mapType == MAP_TYPE_6
|
||||
|| mapType == MAP_TYPE_OCEAN_ROUTE
|
||||
|| mapType == MAP_TYPE_CITY)
|
||||
return TRUE;
|
||||
else
|
||||
|
||||
@@ -883,7 +883,7 @@ static void RegionMap_InitializeStateBasedOnPlayerLocation(void)
|
||||
case MAP_TYPE_CITY:
|
||||
case MAP_TYPE_ROUTE:
|
||||
case MAP_TYPE_UNDERWATER:
|
||||
case MAP_TYPE_6:
|
||||
case MAP_TYPE_OCEAN_ROUTE:
|
||||
gRegionMap->mapSecId = gMapHeader.regionMapSectionId;
|
||||
gRegionMap->playerIsInCave = FALSE;
|
||||
mapWidth = gMapHeader.mapLayout->width;
|
||||
@@ -896,7 +896,7 @@ static void RegionMap_InitializeStateBasedOnPlayerLocation(void)
|
||||
}
|
||||
break;
|
||||
case MAP_TYPE_UNDERGROUND:
|
||||
case MAP_TYPE_7:
|
||||
case MAP_TYPE_UNUSED_2:
|
||||
if (gMapHeader.flags & 0x02)
|
||||
{
|
||||
mapHeader = Overworld_GetMapHeaderByGroupAndId(gSaveBlock1Ptr->escapeWarp.mapGroup, gSaveBlock1Ptr->escapeWarp.mapNum);
|
||||
|
||||
@@ -60,7 +60,7 @@ struct SecretBaseRecordMixer {
|
||||
|
||||
// Static RAM declarations
|
||||
EWRAM_DATA u8 sCurSecretBaseId = 0;
|
||||
EWRAM_DATA u8 gUnknown_0203A01D = 0;
|
||||
EWRAM_DATA bool8 gIsInSecretBase = FALSE;
|
||||
EWRAM_DATA struct SecretBaseListMenuBuffer *gUnknown_0203A020 = NULL;
|
||||
|
||||
// Static ROM declarations
|
||||
@@ -1186,11 +1186,11 @@ void SecretBasePerStepCallback(u8 taskId)
|
||||
case 0:
|
||||
if (VarGet(VAR_CURRENT_SECRET_BASE) != 0)
|
||||
{
|
||||
gUnknown_0203A01D = TRUE;
|
||||
gIsInSecretBase = TRUE;
|
||||
}
|
||||
else
|
||||
{
|
||||
gUnknown_0203A01D = FALSE;
|
||||
gIsInSecretBase = FALSE;
|
||||
}
|
||||
PlayerGetDestCoords(&data[2], &data[3]);
|
||||
data[1] = 1;
|
||||
@@ -1201,103 +1201,103 @@ void SecretBasePerStepCallback(u8 taskId)
|
||||
{
|
||||
data[2] = x;
|
||||
data[3] = y;
|
||||
VarSet(VAR_0x40EC, VarGet(VAR_0x40EC) + 1);
|
||||
VarSet(VAR_SECRET_BASE_STEP_COUNTER, VarGet(VAR_SECRET_BASE_STEP_COUNTER) + 1);
|
||||
behavior = MapGridGetMetatileBehaviorAt(x, y);
|
||||
tileId = MapGridGetMetatileIdAt(x, y);
|
||||
if (tileId == 0x234 || tileId == 0x23C)
|
||||
{
|
||||
if (gUnknown_0203A01D == TRUE)
|
||||
if (gIsInSecretBase == TRUE)
|
||||
{
|
||||
VarSet(VAR_0x40EF, VarGet(VAR_0x40EF) | 0x20);
|
||||
VarSet(VAR_SECRET_BASE_HIGH_TV_FLAGS, VarGet(VAR_SECRET_BASE_HIGH_TV_FLAGS) | 0x20);
|
||||
}
|
||||
}
|
||||
else if (tileId == 0x2b8 || tileId == 0x2b9 || tileId == 0x2ba || tileId == 0x2c0 || tileId == 0x2c1 || tileId == 0x2c2 || tileId == 0x2c8 || tileId == 0x2c9 || tileId == 0x2ca)
|
||||
{
|
||||
if (gUnknown_0203A01D == TRUE)
|
||||
if (gIsInSecretBase == TRUE)
|
||||
{
|
||||
VarSet(VAR_0x40EE, VarGet(VAR_0x40EE) | 0x01);
|
||||
VarSet(VAR_SECRET_BASE_LOW_TV_FLAGS, VarGet(VAR_SECRET_BASE_LOW_TV_FLAGS) | 0x01);
|
||||
}
|
||||
}
|
||||
else if (tileId == 0x239 || tileId == 0x241 || tileId == 0x251 || tileId == 0x259)
|
||||
{
|
||||
if (gUnknown_0203A01D == TRUE)
|
||||
if (gIsInSecretBase == TRUE)
|
||||
{
|
||||
VarSet(VAR_0x40EE, VarGet(VAR_0x40EE) | 0x04);
|
||||
VarSet(VAR_SECRET_BASE_LOW_TV_FLAGS, VarGet(VAR_SECRET_BASE_LOW_TV_FLAGS) | 0x04);
|
||||
}
|
||||
}
|
||||
else if ((behavior == 0x34 && tileId == 0x26d) || (behavior == 0x35 && MapGridGetMetatileIdAt(x, y) == 0x26a))
|
||||
{
|
||||
if (gUnknown_0203A01D == TRUE)
|
||||
if (gIsInSecretBase == TRUE)
|
||||
{
|
||||
VarSet(VAR_0x40EF, VarGet(VAR_0x40EF) | 0x200);
|
||||
VarSet(VAR_SECRET_BASE_HIGH_TV_FLAGS, VarGet(VAR_SECRET_BASE_HIGH_TV_FLAGS) | 0x200);
|
||||
}
|
||||
}
|
||||
else if (behavior == 0xc1 && tileId == 0x23d)
|
||||
{
|
||||
if (gUnknown_0203A01D == TRUE)
|
||||
if (gIsInSecretBase == TRUE)
|
||||
{
|
||||
VarSet(VAR_0x40EF, VarGet(VAR_0x40EF) ^ 0x1000);
|
||||
VarSet(VAR_0x40EF, VarGet(VAR_0x40EF) | 0x2000);
|
||||
VarSet(VAR_SECRET_BASE_HIGH_TV_FLAGS, VarGet(VAR_SECRET_BASE_HIGH_TV_FLAGS) ^ 0x1000);
|
||||
VarSet(VAR_SECRET_BASE_HIGH_TV_FLAGS, VarGet(VAR_SECRET_BASE_HIGH_TV_FLAGS) | 0x2000);
|
||||
}
|
||||
}
|
||||
else if (behavior == 0x47 && tileId == 0x23e)
|
||||
{
|
||||
if (gUnknown_0203A01D == TRUE)
|
||||
if (gIsInSecretBase == TRUE)
|
||||
{
|
||||
VarSet(VAR_0x40EF, VarGet(VAR_0x40EF) | 0x1000);
|
||||
VarSet(VAR_0x40EF, VarGet(VAR_0x40EF) ^ 0x2000);
|
||||
VarSet(VAR_SECRET_BASE_HIGH_TV_FLAGS, VarGet(VAR_SECRET_BASE_HIGH_TV_FLAGS) | 0x1000);
|
||||
VarSet(VAR_SECRET_BASE_HIGH_TV_FLAGS, VarGet(VAR_SECRET_BASE_HIGH_TV_FLAGS) ^ 0x2000);
|
||||
}
|
||||
}
|
||||
else if (MetatileBehavior_IsSecretBaseGlitterMat(behavior) == TRUE)
|
||||
{
|
||||
if (gUnknown_0203A01D == TRUE)
|
||||
if (gIsInSecretBase == TRUE)
|
||||
{
|
||||
VarSet(VAR_0x40EF, VarGet(VAR_0x40EF) | 0x80);
|
||||
VarSet(VAR_SECRET_BASE_HIGH_TV_FLAGS, VarGet(VAR_SECRET_BASE_HIGH_TV_FLAGS) | 0x80);
|
||||
}
|
||||
}
|
||||
else if (MetatileBehavior_IsSecretBaseBalloon(behavior) == TRUE)
|
||||
{
|
||||
PopSecretBaseBalloon(MapGridGetMetatileIdAt(x, y), x, y);
|
||||
if (gUnknown_0203A01D == TRUE)
|
||||
if (gIsInSecretBase == TRUE)
|
||||
{
|
||||
switch ((int)MapGridGetMetatileIdAt(x, y))
|
||||
{
|
||||
case 0x338:
|
||||
case 0x33c:
|
||||
case 0x340:
|
||||
VarSet(VAR_0x40EE, VarGet(VAR_0x40EE) | 0x02);
|
||||
VarSet(VAR_SECRET_BASE_LOW_TV_FLAGS, VarGet(VAR_SECRET_BASE_LOW_TV_FLAGS) | 0x02);
|
||||
break;
|
||||
case 0x228:
|
||||
VarSet(VAR_0x40EE, VarGet(VAR_0x40EE) | 0x100);
|
||||
VarSet(VAR_SECRET_BASE_LOW_TV_FLAGS, VarGet(VAR_SECRET_BASE_LOW_TV_FLAGS) | 0x100);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (MetatileBehavior_IsSecretBaseBreakableDoor(behavior) == TRUE)
|
||||
{
|
||||
if (gUnknown_0203A01D == TRUE)
|
||||
if (gIsInSecretBase == TRUE)
|
||||
{
|
||||
VarSet(VAR_0x40EF, VarGet(VAR_0x40EF) | 0x400);
|
||||
VarSet(VAR_SECRET_BASE_HIGH_TV_FLAGS, VarGet(VAR_SECRET_BASE_HIGH_TV_FLAGS) | 0x400);
|
||||
}
|
||||
ShatterSecretBaseBreakableDoor(x, y);
|
||||
}
|
||||
else if (MetatileBehavior_IsSecretBaseSoundMat(behavior) == TRUE){
|
||||
if (gUnknown_0203A01D == TRUE) {
|
||||
VarSet(VAR_0x40EE, VarGet(VAR_0x40EE) | 0x8000);
|
||||
if (gIsInSecretBase == TRUE) {
|
||||
VarSet(VAR_SECRET_BASE_LOW_TV_FLAGS, VarGet(VAR_SECRET_BASE_LOW_TV_FLAGS) | 0x8000);
|
||||
}
|
||||
}
|
||||
else if (MetatileBehavior_IsSecretBaseJumpMat(behavior) == TRUE)
|
||||
{
|
||||
if (gUnknown_0203A01D == TRUE)
|
||||
if (gIsInSecretBase == TRUE)
|
||||
{
|
||||
VarSet(VAR_0x40EF, VarGet(VAR_0x40EF) | 0x4000);
|
||||
VarSet(VAR_SECRET_BASE_HIGH_TV_FLAGS, VarGet(VAR_SECRET_BASE_HIGH_TV_FLAGS) | 0x4000);
|
||||
}
|
||||
}
|
||||
else if (MetatileBehavior_IsSecretBaseSpinMat(behavior) == TRUE)
|
||||
{
|
||||
if (gUnknown_0203A01D == TRUE)
|
||||
if (gIsInSecretBase == TRUE)
|
||||
{
|
||||
VarSet(VAR_0x40EF, VarGet(VAR_0x40EF) | 0x02);
|
||||
VarSet(VAR_SECRET_BASE_HIGH_TV_FLAGS, VarGet(VAR_SECRET_BASE_HIGH_TV_FLAGS) | 0x02);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1780,33 +1780,33 @@ void sub_80EB18C(struct SecretBaseRecord *bases)
|
||||
|
||||
void sub_80EB1AC(void)
|
||||
{
|
||||
VarSet(VAR_0x40EC, 0);
|
||||
VarSet(VAR_0x40ED, 0);
|
||||
VarSet(VAR_0x40EE, 0);
|
||||
VarSet(VAR_0x40EF, 0);
|
||||
VarSet(VAR_SECRET_BASE_STEP_COUNTER, 0);
|
||||
VarSet(VAR_SECRET_BASE_LAST_ITEM_USED, 0);
|
||||
VarSet(VAR_SECRET_BASE_LOW_TV_FLAGS, 0);
|
||||
VarSet(VAR_SECRET_BASE_HIGH_TV_FLAGS, 0);
|
||||
if (VarGet(VAR_CURRENT_SECRET_BASE) != 0)
|
||||
{
|
||||
VarSet(VAR_0x40F0, TRUE);
|
||||
VarSet(VAR_SECRET_BASE_IS_NOT_LOCAL, TRUE);
|
||||
}
|
||||
else
|
||||
{
|
||||
VarSet(VAR_0x40F0, FALSE);
|
||||
VarSet(VAR_SECRET_BASE_IS_NOT_LOCAL, FALSE);
|
||||
}
|
||||
gUnknown_0203A01D = FALSE;
|
||||
gIsInSecretBase = FALSE;
|
||||
}
|
||||
|
||||
void sub_80EB218(void)
|
||||
{
|
||||
if (VarGet(VAR_0x40F0) && gUnknown_0203A01D == TRUE && !CurrentMapIsSecretBase())
|
||||
if (VarGet(VAR_SECRET_BASE_IS_NOT_LOCAL) && gIsInSecretBase == TRUE && !CurrentMapIsSecretBase())
|
||||
{
|
||||
VarSet(VAR_0x40F0, FALSE);
|
||||
gUnknown_0203A01D = FALSE;
|
||||
VarSet(VAR_SECRET_BASE_IS_NOT_LOCAL, FALSE);
|
||||
gIsInSecretBase = FALSE;
|
||||
sub_80EEA70();
|
||||
VarSet(VAR_0x40EC, 0);
|
||||
VarSet(VAR_0x40ED, 0);
|
||||
VarSet(VAR_0x40EE, 0);
|
||||
VarSet(VAR_0x40EF, 0);
|
||||
VarSet(VAR_0x40F0, FALSE);
|
||||
VarSet(VAR_SECRET_BASE_STEP_COUNTER, 0);
|
||||
VarSet(VAR_SECRET_BASE_LAST_ITEM_USED, 0);
|
||||
VarSet(VAR_SECRET_BASE_LOW_TV_FLAGS, 0);
|
||||
VarSet(VAR_SECRET_BASE_HIGH_TV_FLAGS, 0);
|
||||
VarSet(VAR_SECRET_BASE_IS_NOT_LOCAL, FALSE);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1814,7 +1814,7 @@ void sub_80EB290(void)
|
||||
{
|
||||
if (VarGet(VAR_CURRENT_SECRET_BASE) != 0)
|
||||
{
|
||||
VarSet(VAR_0x40EF, VarGet(VAR_0x40EF) | 0x800);
|
||||
VarSet(VAR_SECRET_BASE_HIGH_TV_FLAGS, VarGet(VAR_SECRET_BASE_HIGH_TV_FLAGS) | 0x800);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1822,7 +1822,7 @@ void sub_80EB2C8(void)
|
||||
{
|
||||
if (VarGet(VAR_CURRENT_SECRET_BASE) != 0)
|
||||
{
|
||||
VarSet(VAR_0x40EE, VarGet(VAR_0x40EE) | 0x400);
|
||||
VarSet(VAR_SECRET_BASE_LOW_TV_FLAGS, VarGet(VAR_SECRET_BASE_LOW_TV_FLAGS) | 0x400);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1830,9 +1830,9 @@ void sub_80EB300(void)
|
||||
{
|
||||
if (VarGet(VAR_CURRENT_SECRET_BASE) != 0)
|
||||
{
|
||||
VarSet(VAR_0x40EE, VarGet(VAR_0x40EE) & ~0x3800);
|
||||
VarSet(VAR_0x40EF, VarGet(VAR_0x40EF) & ~0x001);
|
||||
VarSet(VAR_0x40EE, VarGet(VAR_0x40EE) | 0x2000);
|
||||
VarSet(VAR_SECRET_BASE_LOW_TV_FLAGS, VarGet(VAR_SECRET_BASE_LOW_TV_FLAGS) & ~0x3800);
|
||||
VarSet(VAR_SECRET_BASE_HIGH_TV_FLAGS, VarGet(VAR_SECRET_BASE_HIGH_TV_FLAGS) & ~0x001);
|
||||
VarSet(VAR_SECRET_BASE_LOW_TV_FLAGS, VarGet(VAR_SECRET_BASE_LOW_TV_FLAGS) | 0x2000);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1840,9 +1840,9 @@ void sub_80EB368(void)
|
||||
{
|
||||
if (VarGet(VAR_CURRENT_SECRET_BASE) != 0)
|
||||
{
|
||||
VarSet(VAR_0x40EE, VarGet(VAR_0x40EE) & ~0x3800);
|
||||
VarSet(VAR_0x40EF, VarGet(VAR_0x40EF) & ~0x001);
|
||||
VarSet(VAR_0x40EE, VarGet(VAR_0x40EE) | 0x800);
|
||||
VarSet(VAR_SECRET_BASE_LOW_TV_FLAGS, VarGet(VAR_SECRET_BASE_LOW_TV_FLAGS) & ~0x3800);
|
||||
VarSet(VAR_SECRET_BASE_HIGH_TV_FLAGS, VarGet(VAR_SECRET_BASE_HIGH_TV_FLAGS) & ~0x001);
|
||||
VarSet(VAR_SECRET_BASE_LOW_TV_FLAGS, VarGet(VAR_SECRET_BASE_LOW_TV_FLAGS) | 0x800);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1850,9 +1850,9 @@ void sub_80EB3D0(void)
|
||||
{
|
||||
if (VarGet(VAR_CURRENT_SECRET_BASE) != 0)
|
||||
{
|
||||
VarSet(VAR_0x40EE, VarGet(VAR_0x40EE) & ~0x3800);
|
||||
VarSet(VAR_0x40EF, VarGet(VAR_0x40EF) & ~0x001);
|
||||
VarSet(VAR_0x40EE, VarGet(VAR_0x40EE) | 0x1000);
|
||||
VarSet(VAR_SECRET_BASE_LOW_TV_FLAGS, VarGet(VAR_SECRET_BASE_LOW_TV_FLAGS) & ~0x3800);
|
||||
VarSet(VAR_SECRET_BASE_HIGH_TV_FLAGS, VarGet(VAR_SECRET_BASE_HIGH_TV_FLAGS) & ~0x001);
|
||||
VarSet(VAR_SECRET_BASE_LOW_TV_FLAGS, VarGet(VAR_SECRET_BASE_LOW_TV_FLAGS) | 0x1000);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1860,9 +1860,9 @@ void sub_80EB438(void)
|
||||
{
|
||||
if (VarGet(VAR_CURRENT_SECRET_BASE) != 0)
|
||||
{
|
||||
VarSet(VAR_0x40EE, VarGet(VAR_0x40EE) & ~0x3800);
|
||||
VarSet(VAR_0x40EF, VarGet(VAR_0x40EF) & ~0x001);
|
||||
VarSet(VAR_0x40EF, VarGet(VAR_0x40EF) | 0x001);
|
||||
VarSet(VAR_SECRET_BASE_LOW_TV_FLAGS, VarGet(VAR_SECRET_BASE_LOW_TV_FLAGS) & ~0x3800);
|
||||
VarSet(VAR_SECRET_BASE_HIGH_TV_FLAGS, VarGet(VAR_SECRET_BASE_HIGH_TV_FLAGS) & ~0x001);
|
||||
VarSet(VAR_SECRET_BASE_HIGH_TV_FLAGS, VarGet(VAR_SECRET_BASE_HIGH_TV_FLAGS) | 0x001);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1891,7 +1891,7 @@ void sub_80EB498(void)
|
||||
case 0x334:
|
||||
if (VarGet(VAR_CURRENT_SECRET_BASE) != 0)
|
||||
{
|
||||
VarSet(VAR_0x40EE, VarGet(VAR_0x40EE) | 0x4000);
|
||||
VarSet(VAR_SECRET_BASE_LOW_TV_FLAGS, VarGet(VAR_SECRET_BASE_LOW_TV_FLAGS) | 0x4000);
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -1909,7 +1909,7 @@ void sub_80EB56C(void)
|
||||
case 0x28b:
|
||||
if (VarGet(VAR_CURRENT_SECRET_BASE) != 0)
|
||||
{
|
||||
VarSet(VAR_0x40EE, VarGet(VAR_0x40EE) | 0x40);
|
||||
VarSet(VAR_SECRET_BASE_LOW_TV_FLAGS, VarGet(VAR_SECRET_BASE_LOW_TV_FLAGS) | 0x40);
|
||||
}
|
||||
break;
|
||||
case 0x2d8:
|
||||
@@ -1932,21 +1932,21 @@ void sub_80EB56C(void)
|
||||
case 0x2fb:
|
||||
if (VarGet(VAR_CURRENT_SECRET_BASE) != 0)
|
||||
{
|
||||
VarSet(VAR_0x40EE, VarGet(VAR_0x40EE) | 0x8);
|
||||
VarSet(VAR_SECRET_BASE_LOW_TV_FLAGS, VarGet(VAR_SECRET_BASE_LOW_TV_FLAGS) | 0x8);
|
||||
}
|
||||
break;
|
||||
case 0x22c:
|
||||
case 0x233:
|
||||
if (VarGet(VAR_CURRENT_SECRET_BASE) != 0)
|
||||
{
|
||||
VarSet(VAR_0x40EF, VarGet(VAR_0x40EF) | 0x40);
|
||||
VarSet(VAR_SECRET_BASE_HIGH_TV_FLAGS, VarGet(VAR_SECRET_BASE_HIGH_TV_FLAGS) | 0x40);
|
||||
}
|
||||
break;
|
||||
case 0x288:
|
||||
case 0x289:
|
||||
if (VarGet(VAR_CURRENT_SECRET_BASE) != 0)
|
||||
{
|
||||
VarSet(VAR_0x40EF, VarGet(VAR_0x40EF) | 0x100);
|
||||
VarSet(VAR_SECRET_BASE_HIGH_TV_FLAGS, VarGet(VAR_SECRET_BASE_HIGH_TV_FLAGS) | 0x100);
|
||||
}
|
||||
break;
|
||||
case 0x22d:
|
||||
@@ -1954,7 +1954,7 @@ void sub_80EB56C(void)
|
||||
case 0x22f:
|
||||
if (VarGet(VAR_CURRENT_SECRET_BASE) != 0)
|
||||
{
|
||||
VarSet(VAR_0x40EF, VarGet(VAR_0x40EF) | 0x10);
|
||||
VarSet(VAR_SECRET_BASE_HIGH_TV_FLAGS, VarGet(VAR_SECRET_BASE_HIGH_TV_FLAGS) | 0x10);
|
||||
}
|
||||
break;
|
||||
case 0x287:
|
||||
@@ -1982,7 +1982,7 @@ void sub_80EB56C(void)
|
||||
case 0x2cf:
|
||||
if (VarGet(VAR_CURRENT_SECRET_BASE) != 0)
|
||||
{
|
||||
VarSet(VAR_0x40EF, VarGet(VAR_0x40EF) | 0x8);
|
||||
VarSet(VAR_SECRET_BASE_HIGH_TV_FLAGS, VarGet(VAR_SECRET_BASE_HIGH_TV_FLAGS) | 0x8);
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -2009,7 +2009,7 @@ void sub_80EB9E0(void)
|
||||
case 0x2c6:
|
||||
if (VarGet(VAR_CURRENT_SECRET_BASE) != 0)
|
||||
{
|
||||
VarSet(VAR_0x40EF, VarGet(VAR_0x40EF) | 0x8);
|
||||
VarSet(VAR_SECRET_BASE_HIGH_TV_FLAGS, VarGet(VAR_SECRET_BASE_HIGH_TV_FLAGS) | 0x8);
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -2047,14 +2047,14 @@ void sub_80EBB28(void)
|
||||
case 0x2c7:
|
||||
if (VarGet(VAR_CURRENT_SECRET_BASE) != 0)
|
||||
{
|
||||
VarSet(VAR_0x40EF, VarGet(VAR_0x40EF) | 0x8);
|
||||
VarSet(VAR_SECRET_BASE_HIGH_TV_FLAGS, VarGet(VAR_SECRET_BASE_HIGH_TV_FLAGS) | 0x8);
|
||||
}
|
||||
break;
|
||||
case 0x280:
|
||||
case 0x281:
|
||||
if (VarGet(VAR_CURRENT_SECRET_BASE) != 0)
|
||||
{
|
||||
VarSet(VAR_0x40EF, VarGet(VAR_0x40EF) | 0x100);
|
||||
VarSet(VAR_SECRET_BASE_HIGH_TV_FLAGS, VarGet(VAR_SECRET_BASE_HIGH_TV_FLAGS) | 0x100);
|
||||
}
|
||||
break;
|
||||
case 0x225:
|
||||
@@ -2062,7 +2062,7 @@ void sub_80EBB28(void)
|
||||
case 0x227:
|
||||
if (VarGet(VAR_CURRENT_SECRET_BASE) != 0)
|
||||
{
|
||||
VarSet(VAR_0x40EF, VarGet(VAR_0x40EF) | 0x10);
|
||||
VarSet(VAR_SECRET_BASE_HIGH_TV_FLAGS, VarGet(VAR_SECRET_BASE_HIGH_TV_FLAGS) | 0x10);
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -2080,7 +2080,7 @@ void sub_80EBE7C(void)
|
||||
case 0x28e:
|
||||
if (VarGet(VAR_CURRENT_SECRET_BASE) != 0)
|
||||
{
|
||||
VarSet(VAR_0x40EF, VarGet(VAR_0x40EF) | 0x4);
|
||||
VarSet(VAR_SECRET_BASE_HIGH_TV_FLAGS, VarGet(VAR_SECRET_BASE_HIGH_TV_FLAGS) | 0x4);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -81,7 +81,7 @@ void UpdateShoalTideFlag(void)
|
||||
1, // 23
|
||||
};
|
||||
|
||||
if (is_map_type_1_2_3_5_or_6(GetLastUsedWarpMapType()))
|
||||
if (IsMapTypeOutside(GetLastUsedWarpMapType()))
|
||||
{
|
||||
RtcCalcLocalTime();
|
||||
if (tide[gLocalTime.hours])
|
||||
|
||||
26
src/tv.c
26
src/tv.c
@@ -2565,13 +2565,13 @@ void sub_80EEA70(void)
|
||||
show->secretBaseSecrets.kind = TVSHOW_SECRET_BASE_SECRETS;
|
||||
show->secretBaseSecrets.active = FALSE;
|
||||
StringCopy(show->secretBaseSecrets.playerName, gSaveBlock2Ptr->playerName);
|
||||
show->secretBaseSecrets.stepsInBase = VarGet(VAR_0x40EC);
|
||||
show->secretBaseSecrets.stepsInBase = VarGet(VAR_SECRET_BASE_STEP_COUNTER);
|
||||
sub_80E980C();
|
||||
StringCopy(strbuf, gStringVar1);
|
||||
StripExtCtrlCodes(strbuf);
|
||||
StringCopy(show->secretBaseSecrets.baseOwnersName, strbuf);
|
||||
show->secretBaseSecrets.item = VarGet(VAR_0x40ED);
|
||||
show->secretBaseSecrets.flags = VarGet(VAR_0x40EE) + (VarGet(VAR_0x40EF) << 16);
|
||||
show->secretBaseSecrets.item = VarGet(VAR_SECRET_BASE_LAST_ITEM_USED);
|
||||
show->secretBaseSecrets.flags = VarGet(VAR_SECRET_BASE_LOW_TV_FLAGS) + (VarGet(VAR_SECRET_BASE_HIGH_TV_FLAGS) << 16);
|
||||
tv_store_id_3x(show);
|
||||
show->secretBaseSecrets.language = gGameLanguage;
|
||||
if (show->secretBaseSecrets.language == LANGUAGE_JAPANESE || gSaveBlock1Ptr->secretBases[VarGet(VAR_CURRENT_SECRET_BASE)].language == LANGUAGE_JAPANESE)
|
||||
@@ -7350,7 +7350,7 @@ static void DoTVShowWhatsNo1InHoennToday(void)
|
||||
ShowFieldMessage(sTVWhatsNo1InHoennTodayTextGroup[state]);
|
||||
}
|
||||
|
||||
u8 sub_80F5180(TVShow *show)
|
||||
u8 TVShowGetFlagCount(TVShow *show)
|
||||
{
|
||||
u8 i;
|
||||
u8 tot;
|
||||
@@ -7365,7 +7365,7 @@ u8 sub_80F5180(TVShow *show)
|
||||
return tot;
|
||||
}
|
||||
|
||||
u8 sub_80F51AC(TVShow *show, u8 a1)
|
||||
u8 TVShowGetStateForFlagNumber(TVShow *show, u8 a1)
|
||||
{
|
||||
u8 i;
|
||||
u8 tot;
|
||||
@@ -7399,7 +7399,7 @@ static void DoTVShowSecretBaseSecrets(void)
|
||||
case 0:
|
||||
TVShowConvertInternationalString(gStringVar1, show->secretBaseSecrets.baseOwnersName, show->secretBaseSecrets.baseOwnersNameLanguage);
|
||||
TVShowConvertInternationalString(gStringVar2, show->secretBaseSecrets.playerName, show->secretBaseSecrets.language);
|
||||
bitCount = sub_80F5180(show);
|
||||
bitCount = TVShowGetFlagCount(show);
|
||||
if (bitCount == 0)
|
||||
{
|
||||
sTVShowState = 8;
|
||||
@@ -7408,12 +7408,12 @@ static void DoTVShowSecretBaseSecrets(void)
|
||||
{
|
||||
show->secretBaseSecrets.savedState = 1;
|
||||
sTVSecretBaseSecretsRandomValues[0] = Random() % bitCount;
|
||||
sTVShowState = sub_80F51AC(show, sTVSecretBaseSecretsRandomValues[0]);
|
||||
sTVShowState = TVShowGetStateForFlagNumber(show, sTVSecretBaseSecretsRandomValues[0]);
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
TVShowConvertInternationalString(gStringVar2, show->secretBaseSecrets.playerName, show->secretBaseSecrets.language);
|
||||
bitCount = sub_80F5180(show);
|
||||
bitCount = TVShowGetFlagCount(show);
|
||||
switch (bitCount)
|
||||
{
|
||||
case 1:
|
||||
@@ -7423,11 +7423,11 @@ static void DoTVShowSecretBaseSecrets(void)
|
||||
show->secretBaseSecrets.savedState = 2;
|
||||
if (sTVSecretBaseSecretsRandomValues[0] == 0)
|
||||
{
|
||||
sTVShowState = sub_80F51AC(show, 1);
|
||||
sTVShowState = TVShowGetStateForFlagNumber(show, 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
sTVShowState = sub_80F51AC(show, 0);
|
||||
sTVShowState = TVShowGetStateForFlagNumber(show, 0);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
@@ -7440,13 +7440,13 @@ static void DoTVShowSecretBaseSecrets(void)
|
||||
}
|
||||
}
|
||||
show->secretBaseSecrets.savedState = 2;
|
||||
sTVShowState = sub_80F51AC(show, sTVSecretBaseSecretsRandomValues[1]);
|
||||
sTVShowState = TVShowGetStateForFlagNumber(show, sTVSecretBaseSecretsRandomValues[1]);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
TVShowConvertInternationalString(gStringVar2, show->secretBaseSecrets.playerName, show->secretBaseSecrets.language);
|
||||
bitCount = sub_80F5180(show);
|
||||
bitCount = TVShowGetFlagCount(show);
|
||||
if (bitCount == 2)
|
||||
{
|
||||
sTVShowState = 9;
|
||||
@@ -7462,7 +7462,7 @@ static void DoTVShowSecretBaseSecrets(void)
|
||||
}
|
||||
}
|
||||
show->secretBaseSecrets.savedState = 3;
|
||||
sTVShowState = sub_80F51AC(show, sTVSecretBaseSecretsRandomValues[2]);
|
||||
sTVShowState = TVShowGetStateForFlagNumber(show, sTVSecretBaseSecretsRandomValues[2]);
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
|
||||
Reference in New Issue
Block a user