aboutsummaryrefslogtreecommitdiffstats
path: root/engine
diff options
context:
space:
mode:
authorVortyne <104168801+Vortyne@users.noreply.github.com>2023-03-25 23:31:59 -0400
committerGitHub <noreply@github.com>2023-03-25 23:31:59 -0400
commit17eaf761e38cea827320f984cfaaa1527276ab15 (patch)
tree69aa1864f8e8a23a5234cf3fab767374a8183b18 /engine
parentDex weights are in tenths of a pound (diff)
downloadpokeyellow-17eaf761e38cea827320f984cfaaa1527276ab15.tar.gz
pokeyellow-17eaf761e38cea827320f984cfaaa1527276ab15.tar.xz
pokeyellow-17eaf761e38cea827320f984cfaaa1527276ab15.zip
Name some unnamed animation constants (#396)
Diffstat (limited to 'engine')
-rw-r--r--engine/battle/core.asm4
-rw-r--r--engine/battle/effects.asm16
-rw-r--r--engine/battle/trainer_ai.asm2
3 files changed, 11 insertions, 11 deletions
diff --git a/engine/battle/core.asm b/engine/battle/core.asm
index f84b759c..4a0263e2 100644
--- a/engine/battle/core.asm
+++ b/engine/battle/core.asm
@@ -3327,7 +3327,7 @@ CheckPlayerStatusConditions:
; fast asleep
xor a
ld [wAnimationType], a
- ld a, SLP_ANIM - 1
+ ld a, SLP_PLAYER_ANIM
call PlayMoveAnimation
ld hl, FastAsleepText
call PrintText
@@ -3411,7 +3411,7 @@ CheckPlayerStatusConditions:
call PrintText
xor a
ld [wAnimationType], a
- ld a, CONF_ANIM - 1
+ ld a, CONF_PLAYER_ANIM
call PlayMoveAnimation
call BattleRandom
cp 50 percent + 1 ; chance to hurt itself
diff --git a/engine/battle/effects.asm b/engine/battle/effects.asm
index c68d6731..aaaf20d0 100644
--- a/engine/battle/effects.asm
+++ b/engine/battle/effects.asm
@@ -123,12 +123,12 @@ PoisonEffect:
dec de
ldh a, [hWhoseTurn]
and a
- ld b, ANIM_C7
+ ld b, SHAKE_SCREEN_ANIM
ld hl, wPlayerBattleStatus3
ld a, [de]
ld de, wPlayerToxicCounter
jr nz, .ok
- ld b, ANIM_A9
+ ld b, ENEMY_HUD_SHAKE_ANIM
ld hl, wEnemyBattleStatus3
ld de, wEnemyToxicCounter
.ok
@@ -232,14 +232,14 @@ FreezeBurnParalyzeEffect:
ld a, 1 << PAR
ld [wEnemyMonStatus], a
call QuarterSpeedDueToParalysis ; quarter speed of affected mon
- ld a, ANIM_A9
+ ld a, ENEMY_HUD_SHAKE_ANIM
call PlayBattleAnimation
jp PrintMayNotAttackText ; print paralysis text
.burn1
ld a, 1 << BRN
ld [wEnemyMonStatus], a
call HalveAttackDueToBurn ; halve attack of affected mon
- ld a, ANIM_A9
+ ld a, ENEMY_HUD_SHAKE_ANIM
call PlayBattleAnimation
ld hl, BurnedText
jp PrintText
@@ -247,7 +247,7 @@ FreezeBurnParalyzeEffect:
call ClearHyperBeam ; resets hyper beam (recharge) condition from target
ld a, 1 << FRZ
ld [wEnemyMonStatus], a
- ld a, ANIM_A9
+ ld a, ENEMY_HUD_SHAKE_ANIM
call PlayBattleAnimation
ld hl, FrozenText
jp PrintText
@@ -802,7 +802,7 @@ ThrashPetalDanceEffect:
inc a
ld [de], a ; set thrash/petal dance counter to 2 or 3 at random
ldh a, [hWhoseTurn]
- add ANIM_B0
+ add SHRINKING_SQUARE_ANIM
jp PlayBattleAnimation2
SwitchAndTeleportEffect:
@@ -1002,7 +1002,7 @@ ChargeEffect:
jr z, .chargeEffect
ld hl, wEnemyBattleStatus1
ld de, wEnemyMoveEffect
- ld b, ANIM_AF
+ ld b, XSTATITEM_DUPLICATE_ANIM
.chargeEffect
set CHARGING_UP, [hl]
ld a, [de]
@@ -1016,7 +1016,7 @@ ChargeEffect:
cp DIG
jr nz, .notDigOrFly
set INVULNERABLE, [hl] ; mon is now invulnerable to typical attacks (fly/dig)
- ld b, ANIM_C0
+ ld b, SLIDE_DOWN_ANIM
.notDigOrFly
xor a
ld [wAnimationType], a
diff --git a/engine/battle/trainer_ai.asm b/engine/battle/trainer_ai.asm
index 2ef60f5b..e21a3492 100644
--- a/engine/battle/trainer_ai.asm
+++ b/engine/battle/trainer_ai.asm
@@ -713,7 +713,7 @@ AIIncreaseStat:
ld a, [hl]
push af
push hl
- ld a, ANIM_AF
+ ld a, XSTATITEM_DUPLICATE_ANIM
ld [hli], a
ld [hl], b
callfar StatModifierUpEffect