diff options
author | Rangi <35663410+Rangi42@users.noreply.github.com> | 2018-07-29 19:56:54 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-29 19:56:54 -0400 |
commit | 98e670f3637b5f845a91423ee2d624d2f1e331a6 (patch) | |
tree | 20bacd2c3cd766eedddd636de59a99af1d662866 /engine/battle/misc.asm | |
parent | 2ec900d96c3b6020be0816151b9ad606c04114b5 (diff) | |
parent | e346cc7b4152578106f7708363b41d076a3e8d52 (diff) |
Merge pull request #548 from Rangi42/master
Add meaningful aliases for wd265
Diffstat (limited to 'engine/battle/misc.asm')
-rw-r--r-- | engine/battle/misc.asm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engine/battle/misc.asm b/engine/battle/misc.asm index 48062f643..8985385a0 100644 --- a/engine/battle/misc.asm +++ b/engine/battle/misc.asm @@ -53,13 +53,13 @@ DoWeatherModifiers: ld de, WeatherTypeModifiers ld a, [wBattleWeather] ld b, a - ld a, [wd265] ; move type + ld a, [wCurType] ld c, a .CheckWeatherType: ld a, [de] inc de - cp $ff + cp -1 jr z, .done_weather_types cp b @@ -84,7 +84,7 @@ DoWeatherModifiers: .CheckWeatherMove: ld a, [de] inc de - cp $ff + cp -1 jr z, .done cp b @@ -116,7 +116,7 @@ DoWeatherModifiers: ld a, 10 ld [hDivisor], a - ld b, $4 + ld b, 4 call Divide ld a, [hQuotient + 0] @@ -176,7 +176,7 @@ DoBadgeTypeBoosts: rr c jr nc, .NextBadge - ld a, [wd265] ; move type + ld a, [wCurType] cp [hl] jr z, .ApplyBoost |