summaryrefslogtreecommitdiff
path: root/constants
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-07-05 15:01:29 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2020-07-05 15:12:29 -0400
commit155695cbfe35133bae1e6affae7f0a90457cfe9f (patch)
tree1cb0e17d4a6cc3ad1a968332f76f74c25c55dbfe /constants
parentb30b14f3224e2e96b76ad5cba088eec601a72856 (diff)
Use constants for damage limits in CalculateDamage
Fixes #255
Diffstat (limited to 'constants')
-rw-r--r--constants/battle_constants.asm4
1 files changed, 4 insertions, 0 deletions
diff --git a/constants/battle_constants.asm b/constants/battle_constants.asm
index e45ad7f1..bdcd2b98 100644
--- a/constants/battle_constants.asm
+++ b/constants/battle_constants.asm
@@ -13,6 +13,10 @@ BATTLE_TYPE_NORMAL EQU 0
BATTLE_TYPE_OLD_MAN EQU 1
BATTLE_TYPE_SAFARI EQU 2
+; damage limits before type effectiveness
+MIN_NEUTRAL_DAMAGE EQU 2
+MAX_NEUTRAL_DAMAGE EQU 999
+
; fixed damage constants
SONICBOOM_DAMAGE EQU 20
DRAGON_RAGE_DAMAGE EQU 40