mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-27 04:04:17 +01:00
make field tasks compile
This commit is contained in:
parent
d1798d0ed9
commit
1307fde8ca
@ -1,10 +0,0 @@
|
||||
.include "asm/macros.inc"
|
||||
.include "constants/constants.inc"
|
||||
|
||||
.syntax unified
|
||||
|
||||
.text
|
||||
|
||||
|
||||
|
||||
.align 2, 0 @ Don't pad with nop.
|
@ -1,8 +0,0 @@
|
||||
.include "asm/macros.inc"
|
||||
.include "constants/constants.inc"
|
||||
|
||||
.section .rodata
|
||||
.align 2, 0
|
||||
|
||||
|
||||
|
@ -394,7 +394,7 @@ static void DoStandardWildBattle(void)
|
||||
gBattleTypeFlags = 0;
|
||||
if (InBattlePyramid())
|
||||
{
|
||||
VarSet(VAR_0x400E, 0);
|
||||
VarSet(VAR_TEMP_E, 0);
|
||||
gBattleTypeFlags |= BATTLE_TYPE_PYRAMID;
|
||||
}
|
||||
CreateBattleStartTask(GetWildBattleTransition(), 0);
|
||||
@ -1258,7 +1258,7 @@ void BattleSetup_StartTrainerBattle(void)
|
||||
|
||||
if (InBattlePyramid())
|
||||
{
|
||||
VarSet(VAR_0x400E, 0);
|
||||
VarSet(VAR_TEMP_E, 0);
|
||||
gBattleTypeFlags |= BATTLE_TYPE_PYRAMID;
|
||||
|
||||
if (gNoOfApproachingTrainers == 2)
|
||||
|
@ -237,11 +237,11 @@ void sub_818D9C0(void)
|
||||
{
|
||||
LilycoveLady *lilycoveLady;
|
||||
|
||||
VarSet(VAR_0x4010, sUnknown_0860B07E[GetLilycoveLadyId()]);
|
||||
VarSet(VAR_OBJ_GFX_ID_0, sUnknown_0860B07E[GetLilycoveLadyId()]);
|
||||
if (GetLilycoveLadyId() == LILYCOVE_LADY_CONTEST)
|
||||
{
|
||||
lilycoveLady = &gSaveBlock1Ptr->lilycoveLady;
|
||||
VarSet(VAR_0x4011, sUnknown_0860B074[lilycoveLady->contest.category]);
|
||||
VarSet(VAR_OBJ_GFX_ID_1, sUnknown_0860B074[lilycoveLady->contest.category]);
|
||||
gSpecialVar_Result = TRUE;
|
||||
}
|
||||
else
|
||||
|
@ -673,7 +673,7 @@ static void Task_BardSong(u8 taskId)
|
||||
|
||||
void ScrSpecial_SetMauvilleOldManMapObjGfx(void)
|
||||
{
|
||||
VarSet(VAR_0x4010, MAP_OBJ_GFX_BARD);
|
||||
VarSet(VAR_OBJ_GFX_ID_0, MAP_OBJ_GFX_BARD);
|
||||
}
|
||||
|
||||
// Language fixers?
|
||||
|
@ -646,7 +646,7 @@ static void RotatingGate_ResetAllGateOrientations(void)
|
||||
s32 i;
|
||||
u8 *ptr;
|
||||
|
||||
ptr = (u8 *)GetVarPointer(VAR_0x4000);
|
||||
ptr = (u8 *)GetVarPointer(VAR_TEMP_0);
|
||||
|
||||
for (i = 0; i < gRotatingGate_PuzzleCount; i++)
|
||||
{
|
||||
@ -656,12 +656,12 @@ static void RotatingGate_ResetAllGateOrientations(void)
|
||||
|
||||
static s32 RotatingGate_GetGateOrientation(u8 gateId)
|
||||
{
|
||||
return ((u8 *)GetVarPointer(VAR_0x4000))[gateId];
|
||||
return ((u8 *)GetVarPointer(VAR_TEMP_0))[gateId];
|
||||
}
|
||||
|
||||
static void RotatingGate_SetGateOrientation(u8 gateId, u8 orientation)
|
||||
{
|
||||
((u8 *)GetVarPointer(VAR_0x4000))[gateId] = orientation;
|
||||
((u8 *)GetVarPointer(VAR_TEMP_0))[gateId] = orientation;
|
||||
}
|
||||
|
||||
static void RotatingGate_RotateInDirection(u8 gateId, u32 rotationDirection)
|
||||
|
@ -592,7 +592,7 @@ void sub_80E9578(void)
|
||||
|
||||
void sub_80E95D4(void)
|
||||
{
|
||||
VarSet(VAR_0x401F, gUnknown_0858D060[sub_80EA20C(VarGet(VAR_0x4054))]);
|
||||
VarSet(VAR_OBJ_GFX_ID_F, gUnknown_0858D060[sub_80EA20C(VarGet(VAR_0x4054))]);
|
||||
}
|
||||
|
||||
void sub_80E9608(struct Coords16 *coords, struct MapEvents *events)
|
||||
|
16
src/tv.c
16
src/tv.c
@ -3557,7 +3557,7 @@ void GetMomOrDadStringForTVMessage(void)
|
||||
if (gSaveBlock1Ptr->location.mapNum == MAP_NUM(LITTLEROOT_TOWN_BRENDANS_HOUSE_1F))
|
||||
{
|
||||
StringCopy(gStringVar1, gText_Mom);
|
||||
VarSet(VAR_0x4003, 1);
|
||||
VarSet(VAR_TEMP_3, 1);
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -3565,21 +3565,21 @@ void GetMomOrDadStringForTVMessage(void)
|
||||
if (gSaveBlock1Ptr->location.mapNum == MAP_NUM(LITTLEROOT_TOWN_MAYS_HOUSE_1F))
|
||||
{
|
||||
StringCopy(gStringVar1, gText_Mom);
|
||||
VarSet(VAR_0x4003, 1);
|
||||
VarSet(VAR_TEMP_3, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (VarGet(VAR_0x4003) == 1)
|
||||
if (VarGet(VAR_TEMP_3) == 1)
|
||||
{
|
||||
StringCopy(gStringVar1, gText_Mom);
|
||||
}
|
||||
else if (VarGet(VAR_0x4003) == 2)
|
||||
else if (VarGet(VAR_TEMP_3) == 2)
|
||||
{
|
||||
StringCopy(gStringVar1, gText_Dad);
|
||||
}
|
||||
else if (VarGet(VAR_0x4003) > 2)
|
||||
else if (VarGet(VAR_TEMP_3) > 2)
|
||||
{
|
||||
if (VarGet(VAR_0x4003) % 2 == 0)
|
||||
if (VarGet(VAR_TEMP_3) % 2 == 0)
|
||||
StringCopy(gStringVar1, gText_Mom);
|
||||
else
|
||||
StringCopy(gStringVar1, gText_Dad);
|
||||
@ -3589,12 +3589,12 @@ void GetMomOrDadStringForTVMessage(void)
|
||||
if (Random() % 2 != 0)
|
||||
{
|
||||
StringCopy(gStringVar1, gText_Mom);
|
||||
VarSet(VAR_0x4003, 1);
|
||||
VarSet(VAR_TEMP_3, 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
StringCopy(gStringVar1, gText_Dad);
|
||||
VarSet(VAR_0x4003, 2);
|
||||
VarSet(VAR_TEMP_3, 2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user