summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorjiangzhengwenjz <jiangzhengwenjzw@qq.com>2019-08-27 15:10:23 +0800
committerjiangzhengwenjz <jiangzhengwenjzw@qq.com>2019-08-27 15:10:23 +0800
commitb2343076db0cefc087f3941b6941dcba7b1e3364 (patch)
treeb6e0096e88d934db62366772c85d255d327eb828 /include
parentf4b4f5dd0c698bad4e9b10b712c15f5c448a0203 (diff)
remaining stuff of battle_script_commands
Diffstat (limited to 'include')
-rw-r--r--include/battle.h1
-rw-r--r--include/battle_bg.h6
-rw-r--r--include/battle_controllers.h1
-rw-r--r--include/battle_script_commands.h17
-rw-r--r--include/battle_scripts.h2
-rw-r--r--include/field_specials.h1
-rw-r--r--include/overworld.h1
-rw-r--r--include/pokedex.h2
-rw-r--r--include/trainer_pokemon_sprites.h1
9 files changed, 23 insertions, 9 deletions
diff --git a/include/battle.h b/include/battle.h
index 2420a406c..1f7fc5bf6 100644
--- a/include/battle.h
+++ b/include/battle.h
@@ -9,6 +9,7 @@
#include "battle_ai_switch_items.h"
#include "battle_gfx_sfx_util.h"
#include "battle_util2.h"
+#include "battle_bg.h"
/*
Banks are a name given to what could be called a 'battlerId' or 'monControllerId'.
diff --git a/include/battle_bg.h b/include/battle_bg.h
new file mode 100644
index 000000000..6bf90a104
--- /dev/null
+++ b/include/battle_bg.h
@@ -0,0 +1,6 @@
+#ifndef GUARD_BATTLE_BG_H
+#define GUARD_BATTLE_BG_H
+
+void sub_800F34C(void);
+
+#endif // GUARD_BATTLE_BG_H
diff --git a/include/battle_controllers.h b/include/battle_controllers.h
index 4ed292e04..3ee67eac8 100644
--- a/include/battle_controllers.h
+++ b/include/battle_controllers.h
@@ -77,6 +77,7 @@ enum
#define BALL_3_SHAKES_FAIL 3
#define BALL_3_SHAKES_SUCCESS 4
#define BALL_TRAINER_BLOCK 5
+#define BALL_GHOST_DODGE 6
#define RET_VALUE_LEVELLED_UP 11
diff --git a/include/battle_script_commands.h b/include/battle_script_commands.h
index d45675ff8..3f2699064 100644
--- a/include/battle_script_commands.h
+++ b/include/battle_script_commands.h
@@ -34,19 +34,18 @@
#define WINDOW_CLEAR 0x1
#define WINDOW_x80 0x80
-void AI_CalcDmg(u8 bankAtk, u8 bankDef);
-u8 TypeCalc(u16 move, u8 bankAtk, u8 bankDef);
-u8 AI_TypeCalc(u16 move, u16 targetSpecies, u8 targetAbility);
-u8 GetBattlerTurnOrderNum(u8 bank);
void SetMoveEffect(bool8 primary, u8 certain);
-void BattleDestroyYesNoCursorAt(void);
+bool8 UproarWakeUpCheck(u8 battlerId);
+u8 AI_TypeCalc(u16 move, u16 targetSpecies, u8 targetAbility);
+u8 TypeCalc(u16 move, u8 attacker, u8 defender);
+void AI_CalcDmg(u8 attacker, u8 defender);
+bool32 IsMonGettingExpSentOut(void);
void BattleCreateYesNoCursorAt(void);
-void BufferMoveToLearnIntoBattleTextBuff2(void);
+void BattleDestroyYesNoCursorAt(void);
void HandleBattleWindow(u8 xStart, u8 yStart, u8 xEnd, u8 yEnd, u8 flags);
-bool8 UproarWakeUpCheck(u8 bank);
-bool32 IsMonGettingExpSentOut(void);
+u8 GetBattlerTurnOrderNum(u8 battlerId);
+void BufferMoveToLearnIntoBattleTextBuff2(void);
extern void (* const gBattleScriptingCommandsTable[])(void);
-extern const u8 gUnknown_0831C494[][4];
#endif // GUARD_BATTLE_SCRIPT_COMMANDS_H
diff --git a/include/battle_scripts.h b/include/battle_scripts.h
index 769c4a84a..a13a8c097 100644
--- a/include/battle_scripts.h
+++ b/include/battle_scripts.h
@@ -225,5 +225,7 @@ extern const u8 BattleScript_IgnoresAndHitsItself[];
extern const u8 BattleScript_MoveEffectRecoil[];
extern const u8 BattleScript_FlushMessageBox[];
extern const u8 BattleScript_SpikesOnFaintedBattler[];
+extern const u8 BattleScript_GhostBallDodge[];
+extern const u8 gUnknown_81D9A88[];
#endif // GUARD_BATTLE_SCRIPTS_H
diff --git a/include/field_specials.h b/include/field_specials.h
index a82cb20a2..9a85a8b49 100644
--- a/include/field_specials.h
+++ b/include/field_specials.h
@@ -13,5 +13,6 @@ void nullsub_61(void);
u8 ContextNpcGetTextColor(void);
void set_unknown_box_id(u8);
u16 get_unknown_box_id(void);
+bool8 sub_80CC7B4(void);
#endif // GUARD_FIELD_SPECIALS_H
diff --git a/include/overworld.h b/include/overworld.h
index ea877730e..8f15f5a85 100644
--- a/include/overworld.h
+++ b/include/overworld.h
@@ -119,5 +119,6 @@ bool8 is_light_level_8_or_9(u8 mapType);
bool32 sub_8055C9C(void);
void Overworld_ResetStateAfterDigEscRope(void);
bool32 sub_8058244(void);
+u8 GetCurrentMapType(void);
#endif //GUARD_ROM4_H
diff --git a/include/pokedex.h b/include/pokedex.h
index 718d2e853..a08d4ed26 100644
--- a/include/pokedex.h
+++ b/include/pokedex.h
@@ -45,4 +45,6 @@ u16 GetNationalPokedexCount(u8);
u16 sub_80C0844(u8);
u16 GetKantoPokedexCount(u8);
+u32 sub_8106B60(u16 species);
+
#endif // GUARD_POKEDEX_H
diff --git a/include/trainer_pokemon_sprites.h b/include/trainer_pokemon_sprites.h
index 2a520715f..833268d48 100644
--- a/include/trainer_pokemon_sprites.h
+++ b/include/trainer_pokemon_sprites.h
@@ -14,5 +14,6 @@ u8 sub_818D97C(u8 a0, u8 a1);
u16 CreateTrainerPicSprite(u16 species, bool8 isFrontPic, s16 x, s16 y, u8 paletteSlot, u16 paletteTag);
u16 FreeAndDestroyTrainerPicSprite(u16);
u16 PlayerGenderToFrontTrainerPicId_Debug(u8 gender, bool8 getClass);
+u16 CreateMonPicSprite_HandleDeoxys(u16 species, u32 otId, u32 personality, bool8 isFrontPic, s16 x, s16 y, u8 paletteSlot, u16 paletteTag);
#endif // GUARD_TRAINER_POKEMON_SPRITES_H