mirror of
https://github.com/pret/pokegold.git
synced 2026-10-01 03:16:41 -05:00
Remove the spurious WEATHER_*_END constants
These were probably a mistake from confusing two consecutive pointer tables, `.WeatherMessages` and `.WeatherEndedMessages`, with one long table
This commit is contained in:
@@ -229,9 +229,7 @@ DEF ALL_STATUS EQU (1 << PSN) | (1 << BRN) | (1 << FRZ) | (1 << PAR) | SLP_MASK
|
||||
const WEATHER_RAIN
|
||||
const WEATHER_SUN
|
||||
const WEATHER_SANDSTORM
|
||||
const WEATHER_RAIN_END
|
||||
const WEATHER_SUN_END
|
||||
const WEATHER_SANDSTORM_END
|
||||
DEF NUM_WEATHERS EQU const_value - 1
|
||||
|
||||
; wBattleAction
|
||||
const_def
|
||||
|
||||
@@ -1700,7 +1700,7 @@ HandleWeather:
|
||||
.ended
|
||||
ld hl, .WeatherEndedMessages
|
||||
call .PrintWeatherMessage
|
||||
xor a
|
||||
xor a ; WEATHER_NONE
|
||||
ld [wBattleWeather], a
|
||||
ret
|
||||
|
||||
@@ -1718,15 +1718,19 @@ HandleWeather:
|
||||
|
||||
.WeatherMessages:
|
||||
; entries correspond to WEATHER_* constants
|
||||
table_width 2
|
||||
dw BattleText_RainContinuesToFall
|
||||
dw BattleText_TheSunlightIsStrong
|
||||
dw BattleText_TheSandstormRages
|
||||
assert_table_length NUM_WEATHERS
|
||||
|
||||
.WeatherEndedMessages:
|
||||
; entries correspond to WEATHER_* constants
|
||||
table_width 2
|
||||
dw BattleText_TheRainStopped
|
||||
dw BattleText_TheSunlightFaded
|
||||
dw BattleText_TheSandstormSubsided
|
||||
assert_table_length NUM_WEATHERS
|
||||
|
||||
SubtractHPFromTarget:
|
||||
call SubtractHP
|
||||
|
||||
Reference in New Issue
Block a user