diff options
author | DizzyEggg <jajkodizzy@wp.pl> | 2017-10-23 13:33:32 +0200 |
---|---|---|
committer | DizzyEggg <jajkodizzy@wp.pl> | 2017-10-23 13:33:32 +0200 |
commit | 7d1373e3fa239d74d69b5b3a7cb78b2272a6f54d (patch) | |
tree | bab4346193d7e3f2e99139f7c4371a825d94589a /include/battle.h | |
parent | 918625196ed5e91999f1a244a8881fb9f8069c64 (diff) | |
parent | 88230e8d16dad1b08027a8c933d2d9a6ce689bd0 (diff) |
Merge branch 'master' into decompile_battle_controllers
Diffstat (limited to 'include/battle.h')
-rw-r--r-- | include/battle.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/battle.h b/include/battle.h index 855ff464e..f731168dd 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; |