convert more constants

This commit is contained in:
camthesaxman
2017-12-11 12:27:51 -06:00
parent 19fbf024ff
commit c681b482c2
89 changed files with 13177 additions and 12922 deletions
+3 -3
View File
@@ -11,7 +11,7 @@
#include "palette.h"
#include "task.h"
#include "event_data.h"
#include "species.h"
#include "constants/species.h"
#include "berry.h"
#include "text.h"
#include "item.h"
@@ -26,7 +26,7 @@
#include "m4a.h"
#include "window.h"
#include "random.h"
#include "songs.h"
#include "constants/songs.h"
#include "sound.h"
#include "battle_message.h"
#include "sprite.h"
@@ -37,7 +37,7 @@
#include "battle_controllers.h"
#include "pokedex.h"
#include "constants/abilities.h"
#include "moves.h"
#include "constants/moves.h"
#include "trainer_classes.h"
#include "evolution_scene.h"
#include "roamer.h"
+2 -2
View File
@@ -2,12 +2,12 @@
#include "battle_ai_script_commands.h"
#include "pokemon.h"
#include "battle.h"
#include "species.h"
#include "constants/species.h"
#include "constants/abilities.h"
#include "random.h"
#include "item.h"
#include "constants/battle_move_effects.h"
#include "moves.h"
#include "constants/moves.h"
#include "util.h"
#define AIScriptRead32(ptr) ((ptr)[0] | (ptr)[1] << 8 | (ptr)[2] << 16 | (ptr)[3] << 24)
+2 -2
View File
@@ -2,9 +2,9 @@
#include "battle.h"
#include "battle_controllers.h"
#include "constants/abilities.h"
#include "moves.h"
#include "constants/moves.h"
#include "pokemon.h"
#include "species.h"
#include "constants/species.h"
#include "random.h"
#include "util.h"
#include "constants/items.h"
+1 -1
View File
@@ -10,7 +10,7 @@
#include "link.h"
#include "util.h"
#include "main.h"
#include "songs.h"
#include "constants/songs.h"
#include "sound.h"
#include "window.h"
#include "m4a.h"
+1 -1
View File
@@ -10,7 +10,7 @@
#include "link.h"
#include "util.h"
#include "main.h"
#include "songs.h"
#include "constants/songs.h"
#include "sound.h"
#include "window.h"
#include "m4a.h"
+2 -2
View File
@@ -12,9 +12,9 @@
#include "main.h"
#include "item.h"
#include "constants/items.h"
#include "songs.h"
#include "constants/songs.h"
#include "sound.h"
#include "moves.h"
#include "constants/moves.h"
#include "window.h"
#include "m4a.h"
#include "palette.h"
+2 -2
View File
@@ -11,9 +11,9 @@
#include "main.h"
#include "item.h"
#include "constants/items.h"
#include "songs.h"
#include "constants/songs.h"
#include "sound.h"
#include "moves.h"
#include "constants/moves.h"
#include "window.h"
#include "m4a.h"
#include "palette.h"
+1 -1
View File
@@ -9,7 +9,7 @@
#include "link.h"
#include "util.h"
#include "main.h"
#include "songs.h"
#include "constants/songs.h"
#include "sound.h"
#include "window.h"
#include "m4a.h"
+1 -1
View File
@@ -11,7 +11,7 @@
#include "link.h"
#include "util.h"
#include "main.h"
#include "songs.h"
#include "constants/songs.h"
#include "sound.h"
#include "window.h"
#include "m4a.h"
+1 -1
View File
@@ -10,7 +10,7 @@
#include "link.h"
#include "util.h"
#include "main.h"
#include "songs.h"
#include "constants/songs.h"
#include "sound.h"
#include "window.h"
#include "m4a.h"
+1 -1
View File
@@ -8,7 +8,7 @@
#include "link.h"
#include "util.h"
#include "main.h"
#include "songs.h"
#include "constants/songs.h"
#include "sound.h"
#include "window.h"
#include "m4a.h"
+2 -2
View File
@@ -11,9 +11,9 @@
#include "main.h"
#include "item.h"
#include "constants/items.h"
#include "songs.h"
#include "constants/songs.h"
#include "sound.h"
#include "moves.h"
#include "constants/moves.h"
#include "window.h"
#include "m4a.h"
#include "palette.h"
+1 -1
View File
@@ -6,7 +6,7 @@
#include "battle_ai_script_commands.h"
#include "battle_anim.h"
#include "pokemon.h"
#include "species.h"
#include "constants/species.h"
#include "recorded_battle.h"
#include "util.h"
#include "constants/abilities.h"
+1 -1
View File
@@ -4,7 +4,7 @@
#include "sprite.h"
#include "window.h"
#include "malloc.h"
#include "species.h"
#include "constants/species.h"
#include "palette.h"
#include "decompress.h"
#include "battle_dome_cards.h"
+3 -3
View File
@@ -9,18 +9,18 @@
#include "random.h"
#include "util.h"
#include "pokemon.h"
#include "moves.h"
#include "constants/moves.h"
#include "task.h"
#include "sprite.h"
#include "sound.h"
#include "m4a.h"
#include "species.h"
#include "constants/species.h"
#include "decompress.h"
#include "data2.h"
#include "palette.h"
#include "blend_palette.h"
#include "contest.h"
#include "songs.h"
#include "constants/songs.h"
extern u8 gBattleBufferA[BATTLE_BANKS_COUNT][0x200];
extern u8 gActiveBank;
+2 -2
View File
@@ -8,13 +8,13 @@
#include "string_util.h"
#include "text.h"
#include "sound.h"
#include "songs.h"
#include "constants/songs.h"
#include "decompress.h"
#include "task.h"
#include "util.h"
#include "gpu_regs.h"
#include "battle_message.h"
#include "species.h"
#include "constants/species.h"
#include "pokedex.h"
#include "palette.h"
#include "international_string_util.h"
+1 -1
View File
@@ -2,7 +2,7 @@
#include "battle.h"
#include "battle_message.h"
#include "battle_string_ids.h"
#include "moves.h"
#include "constants/moves.h"
#include "text.h"
#include "string_util.h"
#include "constants/items.h"
+3 -3
View File
@@ -4,7 +4,7 @@
#include "battle_message.h"
#include "battle_ai_script_commands.h"
#include "battle_scripts.h"
#include "moves.h"
#include "constants/moves.h"
#include "constants/abilities.h"
#include "item.h"
#include "constants/items.h"
@@ -15,8 +15,8 @@
#include "random.h"
#include "battle_controllers.h"
#include "battle_interface.h"
#include "species.h"
#include "songs.h"
#include "constants/species.h"
#include "constants/songs.h"
#include "text.h"
#include "sound.h"
#include "pokedex.h"
+2 -2
View File
@@ -1,10 +1,10 @@
#include "global.h"
#include "battle.h"
#include "constants/abilities.h"
#include "moves.h"
#include "constants/moves.h"
#include "constants/hold_effects.h"
#include "pokemon.h"
#include "species.h"
#include "constants/species.h"
#include "item.h"
#include "constants/items.h"
#include "util.h"
+3 -3
View File
@@ -7,7 +7,7 @@
#include "task.h"
#include "sprite.h"
#include "sound.h"
#include "songs.h"
#include "constants/songs.h"
#include "m4a.h"
#include "bg.h"
#include "palette.h"
@@ -1068,7 +1068,7 @@ static void Blender_SetPlayerNamesLocal(u8 opponentsNum)
sBerryBlenderData->playersNo = 2;
StringCopy(gLinkPlayers[0].name, gSaveBlock2Ptr->playerName);
if (!FlagGet(FLAG_340))
if (!FlagGet(FLAG_0x340))
StringCopy(gLinkPlayers[1].name, sBlenderOpponentsNames[BLENDER_MASTER]);
else
StringCopy(gLinkPlayers[1].name, sBlenderOpponentsNames[BLENDER_MISTER]);
@@ -1592,7 +1592,7 @@ static void sub_80808D4(void)
if (gSpecialVar_0x8004 == 1)
{
if (!FlagGet(FLAG_340))
if (!FlagGet(FLAG_0x340))
sBerryBlenderData->field_120[0] = CreateTask(sub_8081224, 10);
else
sBerryBlenderData->field_120[0] = CreateTask(sUnknown_083399EC[0], 10);
+2 -2
View File
@@ -1,9 +1,9 @@
#include "global.h"
#include "event_data.h"
#include "songs.h"
#include "constants/songs.h"
#include "sound.h"
#include "script.h"
#include "species.h"
#include "constants/species.h"
#include "task.h"
#include "field_effect.h"
#include "constants/flags.h"
+2 -2
View File
@@ -6,8 +6,8 @@
#include "item.h"
#include "constants/items.h"
#include "pokemon.h"
#include "species.h"
#include "moves.h"
#include "constants/species.h"
#include "constants/moves.h"
#include "constants/battle_move_effects.h"
extern u32 gBattleTypeFlags;
+1 -1
View File
@@ -9,7 +9,7 @@
#include "gpu_regs.h"
#include "bg.h"
#include "text_window.h"
#include "songs.h"
#include "constants/songs.h"
extern u8 gText_ClearAllSaveData[];
extern u8 gText_ClearingData[];
+2 -2
View File
@@ -2,14 +2,14 @@
#include "pokemon.h"
#include "daycare.h"
#include "string_util.h"
#include "species.h"
#include "constants/species.h"
#include "constants/items.h"
#include "mail.h"
#include "pokemon_storage_system.h"
#include "event_data.h"
#include "random.h"
#include "main.h"
#include "moves.h"
#include "constants/moves.h"
#include "egg_hatch.h"
#include "text.h"
#include "menu.h"
+1 -1
View File
@@ -1,6 +1,6 @@
#include "global.h"
#include "decompress.h"
#include "species.h"
#include "constants/species.h"
#include "text.h"
#include "malloc.h"
#include "pokemon.h"
+1 -1
View File
@@ -9,7 +9,7 @@
#include "task.h"
#include "main.h"
#include "palette.h"
#include "songs.h"
#include "constants/songs.h"
#include "overworld.h"
#include "fieldmap.h"
#include "metatile_behavior.h"
+1 -1
View File
@@ -10,7 +10,7 @@
#include "main.h"
#include "event_data.h"
#include "sound.h"
#include "songs.h"
#include "constants/songs.h"
#include "text.h"
#include "text_window.h"
#include "string_util.h"
+1 -1
View File
@@ -44,7 +44,7 @@ void ClearTempFieldEventData(void)
FlagClear(FLAG_SYS_ENC_DOWN_ITEM);
FlagClear(FLAG_SYS_USE_STRENGTH);
FlagClear(FLAG_SYS_CTRL_OBJ_DELETE);
FlagClear(FLAG_SYS_UNKNOWN_880);
FlagClear(FLAG_0x880);
}
// probably had different flag splits at one point.
+1 -1
View File
@@ -6,7 +6,7 @@
#include "decompress.h"
#include "task.h"
#include "sound.h"
#include "songs.h"
#include "constants/songs.h"
#include "palette.h"
// this file's functions
+3 -2
View File
@@ -16,9 +16,9 @@
#include "m4a.h"
#include "menu.h"
#include "pokedex.h"
#include "species.h"
#include "constants/species.h"
#include "sound.h"
#include "songs.h"
#include "constants/songs.h"
#include "overworld.h"
#include "battle_message.h"
#include "battle_string_ids.h"
@@ -52,6 +52,7 @@ extern u8 gBattleTerrain;
extern struct SpriteTemplate gUnknown_0202499C;
extern bool8 gAffineAnimsDisabled;
extern u16 gMoveToLearn;
extern const u8 gSpeciesNames[][11];
extern u8 gBattleCommunication[];
#define sEvoCursorPos gBattleCommunication[1] // when learning a new move
+1 -1
View File
@@ -1,7 +1,7 @@
#include "global.h"
#include "string_util.h"
#include "party_menu.h"
#include "species.h"
#include "constants/species.h"
#include "task.h"
#include "field_message_box.h"
#include "strings.h"
+2 -2
View File
@@ -2,11 +2,11 @@
#include "task.h"
#include "sprite.h"
#include "field_map_obj.h"
#include "songs.h"
#include "constants/songs.h"
#include "sound.h"
#include "palette.h"
#include "script.h"
#include "vars.h"
#include "constants/vars.h"
#include "event_data.h"
#include "main.h"
+3 -2
View File
@@ -9,12 +9,12 @@
#include "gpu_regs.h"
#include "main.h"
#include "sound.h"
#include "songs.h"
#include "constants/songs.h"
#include "decompress.h"
#include "save.h"
#include "window.h"
#include "bg.h"
#include "species.h"
#include "constants/species.h"
#include "constants/game_stat.h"
#include "blend_palette.h"
#include "string_util.h"
@@ -58,6 +58,7 @@ extern struct MusicPlayerInfo gMPlay_BGM;
extern MainCallback gGameContinueCallback;
extern u32 gDamagedSaveSectors;
extern u8 gReservedSpritePaletteCount;
extern const u8 gSpeciesNames[][11];
#define HALL_OF_FAME_MAX_TEAMS 50
+1 -1
View File
@@ -4,7 +4,7 @@
#include "pokemon.h"
#include "constants/items.h"
#include "random.h"
#include "species.h"
#include "constants/species.h"
#include "string_util.h"
#include "text.h"
+1 -1
View File
@@ -15,7 +15,7 @@
#include "gpu_regs.h"
#include "bg.h"
#include "pokemon_icon.h"
#include "species.h"
#include "constants/species.h"
#include "malloc.h"
#include "easy_chat.h"
#include "mail_data.h"
+2 -2
View File
@@ -6,12 +6,12 @@
#include "battle_anim.h"
#include "task.h"
#include "sound.h"
#include "songs.h"
#include "constants/songs.h"
#include "trig.h"
#include "main.h"
#include "m4a.h"
#include "decompress.h"
#include "species.h"
#include "constants/species.h"
#include "util.h"
#include "graphics.h"
+1 -1
View File
@@ -4,7 +4,7 @@
#include "event_data.h"
#include "random.h"
#include "sprite.h"
#include "species.h"
#include "constants/species.h"
#include "text.h"
#include "string_util.h"
+2 -2
View File
@@ -7,13 +7,13 @@
#include "rtc.h"
#include "item.h"
#include "battle.h"
#include "species.h"
#include "constants/species.h"
#include "link.h"
#include "constants/hold_effects.h"
#include "random.h"
#include "trainer_classes.h"
#include "trainer_ids.h"
#include "songs.h"
#include "constants/songs.h"
#include "sound.h"
#include "m4a.h"
#include "task.h"
+1 -1
View File
@@ -1,7 +1,7 @@
#include "global.h"
#include "pokemon_size_record.h"
#include "event_data.h"
#include "species.h"
#include "constants/species.h"
#include "string_util.h"
#include "text.h"
#include "pokemon.h"
+1 -1
View File
@@ -1,7 +1,7 @@
#include "global.h"
#include "pokemon_storage_system.h"
#include "pokemon.h"
#include "species.h"
#include "constants/species.h"
#include "event_data.h"
#include "string_util.h"
#include "text.h"
+3 -3
View File
@@ -8,12 +8,12 @@
#include "m4a.h"
#include "main.h"
#include "malloc.h"
#include "moves.h"
#include "constants/moves.h"
#include "palette.h"
#include "pokemon.h"
#include "songs.h"
#include "constants/songs.h"
#include "sound.h"
#include "species.h"
#include "constants/species.h"
#include "sprite.h"
#include "unk_text_util.h"
#include "string_util.h"
+1 -1
View File
@@ -17,7 +17,7 @@
#include "international_string_util.h"
#include "strings.h"
#include "text_window.h"
#include "songs.h"
#include "constants/songs.h"
#include "m4a.h"
#include "field_effect.h"
#include "region_map.h"
+1 -1
View File
@@ -10,7 +10,7 @@
#include "battle_controllers.h"
#include "link.h"
#include "sprite.h"
#include "species.h"
#include "constants/species.h"
#include "battle_interface.h"
extern u16 gBattle_BG0_X;
+1 -1
View File
@@ -2,7 +2,7 @@
#include "roamer.h"
#include "pokemon.h"
#include "random.h"
#include "species.h"
#include "constants/species.h"
#include "event_data.h"
enum
+1 -1
View File
@@ -12,7 +12,7 @@
#include "new_menu_helpers.h"
#include "menu_indicators.h"
#include "constants/maps.h"
#include "songs.h"
#include "constants/songs.h"
#include "sound.h"
#include "overworld.h"
#include "fieldmap.h"
+1 -1
View File
@@ -5,7 +5,7 @@
#include "m4a.h"
#include "main.h"
#include "pokemon.h"
#include "songs.h"
#include "constants/songs.h"
#include "task.h"
struct Fanfare
+1 -1
View File
@@ -12,7 +12,7 @@
#include "decompress.h"
#include "menu.h"
#include "sound.h"
#include "songs.h"
#include "constants/songs.h"
#include "event_data.h"
#include "pokedex.h"
#include "data2.h"
+5 -2
View File
@@ -14,8 +14,8 @@
#include "pokemon_storage_system.h"
#include "field_message_box.h"
#include "easy_chat.h"
#include "species.h"
#include "moves.h"
#include "constants/species.h"
#include "constants/moves.h"
#include "battle.h"
#include "battle_tower.h"
#include "contest.h"
@@ -38,6 +38,9 @@
#include "secret_base.h"
#include "tv.h"
extern const u8 gSpeciesNames[][11];
extern const u8 gMoveNames[][13];
// Static type declarations
#define rbernoulli(num, den) TV_BernoulliTrial(0xFFFF * (num) / (den))
+1 -1
View File
@@ -1,7 +1,7 @@
#include "global.h"
#include "wild_encounter.h"
#include "pokemon.h"
#include "species.h"
#include "constants/species.h"
#include "metatile_behavior.h"
#include "fieldmap.h"
#include "random.h"