diff options
author | Diegoisawesome <Diegoisawesome@users.noreply.github.com> | 2018-11-15 14:24:22 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-15 14:24:22 -0600 |
commit | 39f54b346d8121849250b18e4af2855e1d34c22d (patch) | |
tree | 3004b8fb87a9d7c5801eb435ead4a9461a500f0b /src/field_control_avatar.c | |
parent | 216c388001bf4342ecb1298237d748baf69e7a33 (diff) | |
parent | 4311fd8b89903a35a4485ff7db8a44036bfd1bdc (diff) |
Merge pull request #382 from Slawter666/synchronise
Move field effects enum to defines
Diffstat (limited to 'src/field_control_avatar.c')
-rw-r--r-- | src/field_control_avatar.c | 55 |
1 files changed, 2 insertions, 53 deletions
diff --git a/src/field_control_avatar.c b/src/field_control_avatar.c index 3451ad22d..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); @@ -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)) { |