Name several vars, document some related events
This commit is contained in:
@@ -317,7 +317,7 @@ void SetMirageTowerVisibility(void)
|
||||
u16 rand;
|
||||
bool8 visible;
|
||||
|
||||
if (VarGet(VAR_0x40CB))
|
||||
if (VarGet(VAR_ROUTE_111_STATE))
|
||||
{
|
||||
FlagClear(FLAG_MIRAGE_TOWER_VISIBLE);
|
||||
return;
|
||||
|
||||
@@ -1034,7 +1034,7 @@ static bool16 ShouldLegendaryMusicPlayAtLocation(struct WarpData *warp)
|
||||
|
||||
static bool16 NoMusicInSotopolisWithLegendaries(struct WarpData *warp)
|
||||
{
|
||||
if (VarGet(VAR_0x40CA) != 1)
|
||||
if (VarGet(VAR_SKY_PILLAR_STATE) != 1)
|
||||
return FALSE;
|
||||
else if (warp->mapGroup != MAP_GROUP(SOOTOPOLIS_CITY))
|
||||
return FALSE;
|
||||
@@ -1212,7 +1212,7 @@ void TryFadeOutOldMapMusic(void)
|
||||
if (FlagGet(FLAG_SPECIAL_FLAG_0x4001) != TRUE && warpMusic != GetCurrentMapMusic())
|
||||
{
|
||||
if (currentMusic == MUS_NAMINORI
|
||||
&& VarGet(VAR_0x40CA) == 2
|
||||
&& VarGet(VAR_SKY_PILLAR_STATE) == 2
|
||||
&& gSaveBlock1Ptr->location.mapGroup == MAP_GROUP(SOOTOPOLIS_CITY)
|
||||
&& gSaveBlock1Ptr->location.mapNum == MAP_NUM(SOOTOPOLIS_CITY)
|
||||
&& sWarpDestination.mapGroup == MAP_GROUP(SOOTOPOLIS_CITY)
|
||||
|
||||
Reference in New Issue
Block a user