diff options
| author | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-11-03 10:12:54 -0500 |
|---|---|---|
| committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-11-03 10:12:54 -0500 |
| commit | b56c1b6351f51742903250ee0c4eae9d22e2b6a5 (patch) | |
| tree | e288ee3655a5c4c9d383370c4eb4102f1ad8f9a0 /engine/battle | |
| parent | 980153ac472870602a51779dbff623ea0072ed98 (diff) | |
More syncing with pokecrystal
Diffstat (limited to 'engine/battle')
| -rw-r--r-- | engine/battle/core.asm | 2 | ||||
| -rw-r--r-- | engine/battle/effect_commands.asm | 10 | ||||
| -rw-r--r-- | engine/battle/move_effects/belly_drum.asm | 2 | ||||
| -rw-r--r-- | engine/battle/move_effects/present.asm | 2 | ||||
| -rw-r--r-- | engine/battle/used_move_text.asm | 2 |
5 files changed, 9 insertions, 9 deletions
diff --git a/engine/battle/core.asm b/engine/battle/core.asm index 21da8405..ca8ac21e 100644 --- a/engine/battle/core.asm +++ b/engine/battle/core.asm @@ -7006,7 +7006,7 @@ GiveExperiencePoints: .skip_active_mon_update ; level up happiness mod - ld c, 1 + ld c, HAPPINESS_GAINLEVEL callfar ChangeHappiness ld a, [wCurBattleMon] ld b, a diff --git a/engine/battle/effect_commands.asm b/engine/battle/effect_commands.asm index 12f7a101..2560c33d 100644 --- a/engine/battle/effect_commands.asm +++ b/engine/battle/effect_commands.asm @@ -3632,9 +3632,9 @@ BattleCommand_SleepTarget: .random_loop call BattleRandom - and 7 + and SLP jr z, .random_loop - cp 7 + cp SLP jr z, .random_loop inc a ld [de], a @@ -4667,7 +4667,7 @@ GetStatName: .Copy: ld de, wStringBuffer2 - ld bc, 10 + ld bc, NAME_LENGTH - 1 jp CopyBytes INCLUDE "data/battle/stat_names.asm" @@ -5669,7 +5669,7 @@ BattleCommand_Charge: text_end BattleCommand_Unused3C: -; unused +; effect0x3c ret BattleCommand_TrapTarget: @@ -6440,7 +6440,7 @@ INCLUDE "engine/battle/move_effects/sandstorm.asm" INCLUDE "engine/battle/move_effects/rollout.asm" BattleCommand_Unused5D: -; unused +; effect0x5d ret INCLUDE "engine/battle/move_effects/fury_cutter.asm" diff --git a/engine/battle/move_effects/belly_drum.asm b/engine/battle/move_effects/belly_drum.asm index 5b1361f2..847eaff0 100644 --- a/engine/battle/move_effects/belly_drum.asm +++ b/engine/battle/move_effects/belly_drum.asm @@ -18,7 +18,7 @@ BattleCommand_BellyDrum: callfar SubtractHPFromUser call UpdateUserInParty -rept 5 +rept MAX_STAT_LEVEL - BASE_STAT_LEVEL - 1 call BattleCommand_AttackUp2 endr diff --git a/engine/battle/move_effects/present.asm b/engine/battle/move_effects/present.asm index 0577e76b..ad13c0a9 100644 --- a/engine/battle/move_effects/present.asm +++ b/engine/battle/move_effects/present.asm @@ -34,7 +34,7 @@ BattleCommand_Present: .heal_effect pop bc - ld a, 3 + ld a, $3 ; heal animation ld [wBattleAnimParam], a call AnimateCurrentMove call BattleCommand_SwitchTurn diff --git a/engine/battle/used_move_text.asm b/engine/battle/used_move_text.asm index afc735f9..2fb53901 100644 --- a/engine/battle/used_move_text.asm +++ b/engine/battle/used_move_text.asm @@ -1,5 +1,5 @@ BattleCommand_UsedMoveText: -; battle command 03 +; usedmovetext ld hl, UsedMoveText call PrintText jp WaitBGMap |
