@@ -3137,30 +3137,30 @@ PlayerCalcMoveDamage:
31373137 jp c , .moveHitTest ; SetDamageEffects moves (e.g. Seismic Toss and Super Fang) skip damage calculation
31383138 call CriticalHitTest
31393139 call HandleCounterMove
3140- jr z , handleIfPlayerMoveMissed
3140+ jr z , HandleIfPlayerMoveMissed
31413141 call GetDamageVarsForPlayerAttack
31423142 call CalculateDamage
3143- jp z , playerCheckIfFlyOrChargeEffect ; for moves with 0 BP, skip any further damage calculation and, for now, skip MoveHitTest
3143+ jp z , PlayerCheckIfFlyOrChargeEffect ; for moves with 0 BP, skip any further damage calculation and, for now, skip MoveHitTest
31443144 ; for these moves, accuracy tests will only occur if they are called as part of the effect itself
31453145 call AdjustDamageForMoveType
31463146 call RandomizeDamage
31473147.moveHitTest
31483148 call MoveHitTest
3149- handleIfPlayerMoveMissed :
3149+ HandleIfPlayerMoveMissed :
31503150 ld a , [ wMoveMissed ]
31513151 and a
3152- jr z , getPlayerAnimationType
3152+ jr z , GetPlayerAnimationType
31533153 ld a , [ wPlayerMoveEffect ]
31543154 sub EXPLODE_EFFECT
3155- jr z , playPlayerMoveAnimation ; don't play any animation if the move missed, unless it was EXPLODE_EFFECT
3156- jr playerCheckIfFlyOrChargeEffect
3157- getPlayerAnimationType :
3155+ jr z , PlayPlayerMoveAnimation ; don't play any animation if the move missed, unless it was EXPLODE_EFFECT
3156+ jr PlayerCheckIfFlyOrChargeEffect
3157+ GetPlayerAnimationType :
31583158 ld a , [ wPlayerMoveEffect ]
31593159 and a
31603160 ld a , ANIMATIONTYPE_BLINK_ENEMY_MON_SPRITE ; move has no effect other than dealing damage
3161- jr z , playPlayerMoveAnimation
3161+ jr z , PlayPlayerMoveAnimation
31623162 ld a , ANIMATIONTYPE_SHAKE_SCREEN_HORIZONTALLY_LIGHT ; move has effect
3163- playPlayerMoveAnimation :
3163+ PlayPlayerMoveAnimation :
31643164 push af
31653165 ld a , [ wPlayerBattleStatus2 ]
31663166 bit HAS_SUBSTITUTE_UP , a
@@ -3179,7 +3179,7 @@ playPlayerMoveAnimation:
31793179 ld b , BANK(ReshowSubstituteAnim)
31803180 call nz , Bankswitch
31813181 jr MirrorMoveCheck
3182- playerCheckIfFlyOrChargeEffect :
3182+ PlayerCheckIfFlyOrChargeEffect :
31833183 ld c , 30
31843184 call DelayFrames
31853185 ld a , [ wPlayerMoveEffect ]
@@ -3246,7 +3246,7 @@ MirrorMoveCheck:
32463246 ld a , [ wPlayerNumAttacksLeft ]
32473247 dec a
32483248 ld [ wPlayerNumAttacksLeft ], a
3249- jp nz , getPlayerAnimationType ; for multi-hit moves, apply attack until PlayerNumAttacksLeft hits 0 or the enemy faints.
3249+ jp nz , GetPlayerAnimationType ; for multi-hit moves, apply attack until PlayerNumAttacksLeft hits 0 or the enemy faints.
32503250 ; damage calculation and accuracy tests only happen for the first hit
32513251 res ATTACKING_MULTIPLE_TIMES , [ hl ] ; clear attacking multiple times status when all attacks are over
32523252 ld hl , MultiHitText
@@ -3523,7 +3523,7 @@ CheckPlayerStatusConditions:
35233523 ld [ hl ], a
35243524 ld a , BIDE
35253525 ld [ wPlayerMoveNum ], a
3526- ld hl , handleIfPlayerMoveMissed ; skip damage calculation, DecrementPP and MoveHitTest
3526+ ld hl , HandleIfPlayerMoveMissed ; skip damage calculation, DecrementPP and MoveHitTest
35273527 jp .returnToHL
35283528
35293529.ThrashingAboutCheck
@@ -3557,7 +3557,7 @@ CheckPlayerStatusConditions:
35573557 ld a , [ wPlayerNumAttacksLeft ]
35583558 dec a ; did multi-turn move end?
35593559 ld [ wPlayerNumAttacksLeft ], a
3560- ld hl , getPlayerAnimationType ; if it didn't, skip damage calculation (deal damage equal to last hit),
3560+ ld hl , GetPlayerAnimationType ; if it didn't, skip damage calculation (deal damage equal to last hit),
35613561 ; DecrementPP and MoveHitTest
35623562 jp nz , .returnToHL
35633563 jp .returnToHL
@@ -5567,7 +5567,7 @@ RandomizeDamage:
55675567. loop
55685568 call BattleRandom
55695569 rrca
5570- cp 217
5570+ cp 85 percent + 1
55715571 jr c , . loop
55725572 ldh [ hMultiplier ], a
55735573 call Multiply ; multiply damage by the random number, which is in the range [217, 255]
@@ -5660,7 +5660,7 @@ EnemyCalcMoveDamage:
56605660 jp c , EnemyMoveHitTest
56615661 call CriticalHitTest
56625662 call HandleCounterMove
5663- jr z , handleIfEnemyMoveMissed
5663+ jr z , HandleIfEnemyMoveMissed
56645664 call SwapPlayerAndEnemyLevels
56655665 call GetDamageVarsForEnemyAttack
56665666 call SwapPlayerAndEnemyLevels
@@ -5671,13 +5671,13 @@ EnemyCalcMoveDamage:
56715671
56725672EnemyMoveHitTest:
56735673 call MoveHitTest
5674- handleIfEnemyMoveMissed :
5674+ HandleIfEnemyMoveMissed :
56755675 ld a , [ wMoveMissed ]
56765676 and a
56775677 jr z , .moveDidNotMiss
56785678 ld a , [ wEnemyMoveEffect ]
56795679 cp EXPLODE_EFFECT
5680- jr z , handleExplosionMiss
5680+ jr z , HandleExplosionMiss
56815681 jr EnemyCheckIfFlyOrChargeEffect
56825682.moveDidNotMiss
56835683 call SwapPlayerAndEnemyLevels
@@ -5686,13 +5686,13 @@ GetEnemyAnimationType:
56865686 ld a , [ wEnemyMoveEffect ]
56875687 and a
56885688 ld a , ANIMATIONTYPE_SHAKE_SCREEN_VERTICALLY
5689- jr z , playEnemyMoveAnimation
5689+ jr z , PlayEnemyMoveAnimation
56905690 ld a , ANIMATIONTYPE_SHAKE_SCREEN_HORIZONTALLY_HEAVY
5691- jr playEnemyMoveAnimation
5692- handleExplosionMiss :
5691+ jr PlayEnemyMoveAnimation
5692+ HandleExplosionMiss :
56935693 call SwapPlayerAndEnemyLevels
56945694 xor a
5695- playEnemyMoveAnimation :
5695+ PlayEnemyMoveAnimation :
56965696 push af
56975697 ld a , [ wEnemyBattleStatus2 ]
56985698 bit HAS_SUBSTITUTE_UP , a ; does mon have a substitute?
@@ -6031,7 +6031,7 @@ CheckEnemyStatusConditions:
60316031 ld a , BIDE
60326032 ld [ wEnemyMoveNum ], a
60336033 call SwapPlayerAndEnemyLevels
6034- ld hl , handleIfEnemyMoveMissed ; skip damage calculation, DecrementPP and MoveHitTest
6034+ ld hl , HandleIfEnemyMoveMissed ; skip damage calculation, DecrementPP and MoveHitTest
60356035 jp .enemyReturnToHL
60366036.checkIfThrashingAbout
60376037 bit THRASHING_ABOUT , [ hl ] ; is mon using thrash or petal dance?
@@ -6881,12 +6881,12 @@ _InitBattleCommon:
68816881 call PrintText
68826882 call SaveScreenTilesToBuffer1
68836883 call ClearScreen
6884- ld a , $ 98
6884+ ld a , HIGH(vBGMap0)
68856885 ldh [ hAutoBGTransferDest + 1 ], a
68866886 ld a , $ 1
68876887 ldh [ hAutoBGTransferEnabled ], a
68886888 call Delay3
6889- ld a , $ 9c
6889+ ld a , HIGH(vBGMap1)
68906890 ldh [ hAutoBGTransferDest + 1 ], a
68916891 call LoadScreenTilesFromBuffer1
68926892 hlcoord 9 , 7
0 commit comments