diff options
Diffstat (limited to 'src/field_control_avatar.c')
-rw-r--r-- | src/field_control_avatar.c | 57 |
1 files changed, 3 insertions, 54 deletions
diff --git a/src/field_control_avatar.c b/src/field_control_avatar.c index 738826020..c52f5190f 100644 --- a/src/field_control_avatar.c +++ b/src/field_control_avatar.c @@ -5,6 +5,7 @@ #include "daycare.h" #include "event_data.h" #include "event_object_movement.h" +#include "event_scripts.h" #include "fieldmap.h" #include "field_control_avatar.h" #include "field_fadetransition.h" @@ -37,57 +38,6 @@ static EWRAM_DATA u16 sPreviousPlayerMetatileBehavior = 0; u8 gSelectedEventObject; -//scripts -extern const u8 EventScript_PlayerPCMale[]; -extern const u8 EventScript_PlayerPCFemale[]; -extern const u8 EventScript_SecretBasePC[]; -extern const u8 EventScript_RecordMixingSecretBasePC[]; -extern const u8 EventScript_SecretPower1[]; -extern const u8 EventScript_SecretPower2[]; -extern const u8 EventScript_PC[]; -extern const u8 EventScript_TestSignpostMsg[]; -extern const u8 EventScript_HiddenItemScript[]; -extern const u8 EventScript_2759F1[]; -extern const u8 EventScript_TV[]; -extern const u8 EventScript_ClosedSootopolisDoor[]; -extern const u8 SkyPillar_Outside_EventScript_2393F9[]; -extern const u8 EventScript_CableBoxResults[]; -extern const u8 EventScript_2A4BAC[]; -extern const u8 Route110_TrickHouseEntrance_EventScript_26A22A[]; -extern const u8 EventScript_RegionMap[]; -extern const u8 EventScript_RunningShoesManual[]; -extern const u8 EventScript_PictureBookShelf[]; -extern const u8 EventScript_BookShelf[]; -extern const u8 EventScript_PokemonCenterBookshelf[]; -extern const u8 EventScript_Vase[]; -extern const u8 EventScript_TrashCan[]; -extern const u8 EventScript_ShopShelf[]; -extern const u8 EventScript_Blueprint[]; -extern const u8 EventScript_WirelessBoxResults[]; -extern const u8 EventScript_CableBoxResults[]; -extern const u8 EventScript_Questionnaire[]; -extern const u8 EventScript_TrainerHillTimer[]; -extern const u8 EventScript_SecretBaseSandOrnament[]; -extern const u8 EventScript_SecretBaseShieldOrToyTV[]; -extern const u8 EventScript_UseSurf[]; -extern const u8 EventScript_UseWaterfall[]; -extern const u8 EventScript_CannotUseWaterfall[]; -extern const u8 EventScript_UseDive[]; -extern const u8 EventScript_UseDiveUnderwater[]; -extern const u8 EventScript_FallDownHole[]; -extern const u8 BattleFrontier_BattlePyramidEmptySquare_EventScript_252BE8[]; -extern const u8 EventScript_Poison[]; -extern const u8 EventScript_EggHatch[]; -extern const u8 gUnknown_08273D1F[]; -extern const u8 IslandCave_EventScript_238EAF[]; -extern const u8 MauvilleCity_EventScript_1DF7BA[]; -extern const u8 Route119_EventScript_1F49EC[]; -extern const u8 LittlerootTown_ProfessorBirchsLab_EventScript_1FA4D6[]; -extern const u8 RustboroCity_Gym_EventScript_21307B[]; -extern const u8 MossdeepCity_SpaceCenter_2F_EventScript_224175[]; -extern const u8 SSTidalCorridor_EventScript_23C050[]; -extern const u8 gUnknown_082A8350[]; - static void GetPlayerPosition(struct MapPosition *); static void GetInFrontOfPlayerPosition(struct MapPosition *); static u16 GetPlayerCurMetatileBehavior(int); @@ -179,7 +129,7 @@ void FieldGetPlayerInput(struct FieldInput *input, u16 newKeys, u16 heldKeys) input->dpadDirection = DIR_EAST; } -int sub_809C014(struct FieldInput *input) +int ProcessPlayerFieldInput(struct FieldInput *input) { struct MapPosition position; u8 playerDirection; @@ -558,8 +508,7 @@ static bool8 TryStartCoordEventScript(struct MapPosition *position) static bool8 TryStartMiscWalkingScripts(u16 metatileBehavior) { - s16 x; - s16 y; + s16 x, y; if (MetatileBehavior_IsCrackedFloorHole(metatileBehavior)) { |