summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDizzyEggg <jajkodizzy@wp.pl>2017-11-12 16:46:44 +0100
committerDizzyEggg <jajkodizzy@wp.pl>2017-11-12 16:46:44 +0100
commitcd879d6f8ad9d42d0a6ce66d90f2e044c0e634ce (patch)
tree64690caeced4c3d266d152a1e427be5a5012dd8d /include
parent47a8c6c432d377cf21e479ffd2c5dc1e2a800108 (diff)
parentb7fa10d01e379c4f7d8d30fecb2a7c6413191b88 (diff)
Merge branch 'battle4_fixes' into decompile_battle5
Diffstat (limited to 'include')
-rw-r--r--include/battle.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/battle.h b/include/battle.h
index 0bdb76c88..dbb6501fb 100644
--- a/include/battle.h
+++ b/include/battle.h
@@ -254,11 +254,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