diff options
author | DizzyEggg <jajkodizzy@wp.pl> | 2017-11-11 20:01:04 +0100 |
---|---|---|
committer | DizzyEggg <jajkodizzy@wp.pl> | 2017-11-11 20:01:04 +0100 |
commit | 7472d639cf846172ad2ab911579451e4052f70aa (patch) | |
tree | 628e62b187595ff1083531805b84f42bea0c6424 /include | |
parent | af197ccd3bd62fab813154dc4311e65f9992a676 (diff) |
match one function in battlescript cmds
Diffstat (limited to 'include')
-rw-r--r-- | include/battle.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/battle.h b/include/battle.h index ace2bb4ad..58230989f 100644 --- a/include/battle.h +++ b/include/battle.h @@ -252,11 +252,21 @@ #define MOVE_TARGET_FOES_AND_ALLY 0x20 #define MOVE_TARGET_OPPONENTS_FIELD 0x40 +// defines for the u8 array gTypeEffectiveness +#define TYPE_EFFECT_ATK_TYPE(i)((gTypeEffectiveness[i + 0])) +#define TYPE_EFFECT_DEF_TYPE(i)((gTypeEffectiveness[i + 1])) +#define TYPE_EFFECT_MULTIPLIER(i)((gTypeEffectiveness[i + 2])) + +// defines for the gTypeEffectiveness multipliers #define TYPE_MUL_NO_EFFECT 0 #define TYPE_MUL_NOT_EFFECTIVE 5 #define TYPE_MUL_NORMAL 10 #define TYPE_MUL_SUPER_EFFECTIVE 20 +// special type table Ids +#define TYPE_FORESIGHT 0xFE +#define TYPE_ENDTABLE 0xFF + #define BS_GET_TARGET 0 #define BS_GET_ATTACKER 1 #define BS_GET_EFFECT_BANK 2 |