summaryrefslogtreecommitdiff
path: root/include/battle.h
diff options
context:
space:
mode:
authorDiegoisawesome <Diegoisawesome@users.noreply.github.com>2017-10-22 20:16:16 -0500
committerGitHub <noreply@github.com>2017-10-22 20:16:16 -0500
commit88230e8d16dad1b08027a8c933d2d9a6ce689bd0 (patch)
tree2e01fafa79e8033651a9b4679f0857fded15aaa6 /include/battle.h
parent5b83924d6ceb4a78f17c84266c18634b08e6f7f4 (diff)
parent2082c0491b0f7334683f891ca2558cead7b08aaf (diff)
Merge pull request #91 from golemgalvanize/summary
partially decompile pokemon_summary_screen
Diffstat (limited to 'include/battle.h')
-rw-r--r--include/battle.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/battle.h b/include/battle.h
index 8ea1b78f4..3328c691f 100644
--- a/include/battle.h
+++ b/include/battle.h
@@ -256,6 +256,25 @@
#define TYPE_MUL_NORMAL 10
#define TYPE_MUL_SUPER_EFFECTIVE 20
+#define BS_GET_TARGET 0
+#define BS_GET_ATTACKER 1
+#define BS_GET_EFFECT_BANK 2
+#define BS_ATTACKER_WITH_PARTNER 4 // for atk98_status_icon_update
+#define BS_GET_ATTACKER_SIDE 8 // for atk1E_jumpifability
+#define BS_GET_NOT_ATTACKER_SIDE 9 // for atk1E_jumpifability
+#define BS_GET_SCRIPTING_BANK 10
+#define BS_GET_OPPONENT1 12
+#define BS_GET_PLAYER2 13
+#define BS_GET_OPPONENT2 14
+
+// for battle script commands
+#define CMP_EQUAL 0x0
+#define CMP_NOT_EQUAL 0x1
+#define CMP_GREATER_THAN 0x2
+#define CMP_LESS_THAN 0x3
+#define CMP_COMMON_BITS 0x4
+#define CMP_NO_COMMON_BITS 0x5
+
struct TrainerMonNoItemDefaultMoves
{
u16 iv;
@@ -263,6 +282,9 @@ struct TrainerMonNoItemDefaultMoves
u16 species;
};
+u8 AbilityBattleEffects(u8 caseID, u8 bank, u8 ability, u8 special, u16 moveArg);
+u8 GetBankSide(u8 bank);
+
struct TrainerMonItemDefaultMoves
{
u16 iv;