Merge pull request #534 from Rangi42/master

[RTM] Fix triple newlines left over from removing address comments, and other improvements
This commit is contained in:
yenatch 2018-06-30 17:50:33 -04:00 committed by GitHub
commit 2641f93ad0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
257 changed files with 677 additions and 2986 deletions

View File

@ -11,7 +11,6 @@ INCLUDE "audio/cry_pointers.asm"
INCLUDE "audio/sfx_pointers.asm" INCLUDE "audio/sfx_pointers.asm"
SECTION "Songs 1", ROMX SECTION "Songs 1", ROMX
INCLUDE "audio/music/route36.asm" INCLUDE "audio/music/route36.asm"
@ -130,7 +129,6 @@ INCLUDE "audio/music/battletowerlobby.asm"
INCLUDE "audio/music/mobilecenter.asm" INCLUDE "audio/music/mobilecenter.asm"
SECTION "Extra Songs 1", ROMX SECTION "Extra Songs 1", ROMX
INCLUDE "audio/music/credits.asm" INCLUDE "audio/music/credits.asm"
@ -143,7 +141,6 @@ SECTION "Extra Songs 2", ROMX
INCLUDE "audio/music/postcredits.asm" INCLUDE "audio/music/postcredits.asm"
SECTION "Sound Effects", ROMX SECTION "Sound Effects", ROMX
INCLUDE "audio/sfx.asm" INCLUDE "audio/sfx.asm"
@ -154,7 +151,6 @@ SECTION "Crystal Sound Effects", ROMX
INCLUDE "audio/sfx_crystal.asm" INCLUDE "audio/sfx_crystal.asm"
SECTION "Cries", ROMX SECTION "Cries", ROMX
INCLUDE "data/pokemon/cries.asm" INCLUDE "data/pokemon/cries.asm"

View File

@ -56,7 +56,6 @@ _MapSetup_Sound_Off::
pop hl pop hl
ret ret
MusicFadeRestart: MusicFadeRestart:
; restart but keep the music id to fade in to ; restart but keep the music id to fade in to
ld a, [wMusicFadeID + 1] ld a, [wMusicFadeID + 1]
@ -70,19 +69,16 @@ MusicFadeRestart:
ld [wMusicFadeID + 1], a ld [wMusicFadeID + 1], a
ret ret
MusicOn: MusicOn:
ld a, 1 ld a, 1
ld [wMusicPlaying], a ld [wMusicPlaying], a
ret ret
MusicOff: MusicOff:
xor a xor a
ld [wMusicPlaying], a ld [wMusicPlaying], a
ret ret
_UpdateSound:: _UpdateSound::
; called once per frame ; called once per frame
; no use updating audio if it's not playing ; no use updating audio if it's not playing
@ -212,7 +208,6 @@ _UpdateSound::
ld [rNR51], a ld [rNR51], a
ret ret
UpdateChannels: UpdateChannels:
ld hl, .ChannelFnPtrs ld hl, .ChannelFnPtrs
ld a, [wCurChannel] ld a, [wCurChannel]
@ -505,7 +500,6 @@ endr
ld [rNR44], a ld [rNR44], a
ret ret
_CheckSFX: _CheckSFX:
; return carry if any sfx channels are active ; return carry if any sfx channels are active
ld hl, wChannel5Flags1 ld hl, wChannel5Flags1
@ -527,7 +521,6 @@ _CheckSFX:
scf scf
ret ret
PlayDanger: PlayDanger:
ld a, [wLowHealthAlarm] ld a, [wLowHealthAlarm]
bit DANGER_ON_F, a bit DANGER_ON_F, a
@ -588,7 +581,6 @@ PlayDanger:
ld [wSoundOutput], a ld [wSoundOutput], a
ret ret
DangerSoundHigh: DangerSoundHigh:
db $80 ; duty 50% db $80 ; duty 50%
db $e2 ; volume 14, envelope decrease sweep 2 db $e2 ; volume 14, envelope decrease sweep 2
@ -713,7 +705,6 @@ FadeMusic:
ld [wVolume], a ld [wVolume], a
ret ret
LoadNote: LoadNote:
; wait for pitch wheel to finish ; wait for pitch wheel to finish
ld hl, CHANNEL_FLAGS2 ld hl, CHANNEL_FLAGS2
@ -834,7 +825,6 @@ LoadNote:
ld [hl], a ld [hl], a
ret ret
HandleTrackVibrato: HandleTrackVibrato:
; handle duty, cry pitch, and vibrato ; handle duty, cry pitch, and vibrato
ld hl, CHANNEL_FLAGS2 ld hl, CHANNEL_FLAGS2
@ -952,7 +942,6 @@ HandleTrackVibrato:
.quit .quit
ret ret
ApplyPitchWheel: ApplyPitchWheel:
; quit if pitch wheel inactive ; quit if pitch wheel inactive
ld hl, CHANNEL_FLAGS2 ld hl, CHANNEL_FLAGS2
@ -1068,7 +1057,6 @@ ApplyPitchWheel:
set NOTE_DUTY_OVERRIDE, [hl] set NOTE_DUTY_OVERRIDE, [hl]
ret ret
HandleNoise: HandleNoise:
; is noise sampling on? ; is noise sampling on?
ld hl, CHANNEL_FLAGS1 ld hl, CHANNEL_FLAGS1
@ -1095,7 +1083,6 @@ HandleNoise:
ld [wNoiseSampleDelay], a ld [wNoiseSampleDelay], a
ret ret
ReadNoiseSample: ReadNoiseSample:
; sample struct: ; sample struct:
; [wx] [yy] [zz] ; [wx] [yy] [zz]
@ -1146,7 +1133,6 @@ ReadNoiseSample:
.quit .quit
ret ret
ParseMusic: ParseMusic:
; parses until a note is read or the song is ended ; parses until a note is read or the song is ended
call GetMusicByte ; store next byte in a call GetMusicByte ; store next byte in a
@ -1255,7 +1241,6 @@ ParseMusic:
ld [hli], a ; bank ld [hli], a ; bank
ret ret
RestoreVolume: RestoreVolume:
; ch5 only ; ch5 only
ld a, [wCurChannel] ld a, [wCurChannel]
@ -1275,7 +1260,6 @@ RestoreVolume:
ld [wSFXPriority], a ld [wSFXPriority], a
ret ret
ParseSFXOrRest: ParseSFXOrRest:
; turn noise sampling on ; turn noise sampling on
ld hl, CHANNEL_NOTE_FLAGS ld hl, CHANNEL_NOTE_FLAGS
@ -1306,7 +1290,6 @@ ParseSFXOrRest:
ld [hl], a ld [hl], a
ret ret
GetNoiseSample: GetNoiseSample:
; load ptr to sample header in wNoiseSampleAddress ; load ptr to sample header in wNoiseSampleAddress
; are we on the last channel? ; are we on the last channel?
@ -1363,7 +1346,6 @@ GetNoiseSample:
ld [wNoiseSampleDelay], a ld [wNoiseSampleDelay], a
ret ret
ParseMusicCommand: ParseMusicCommand:
; reload command ; reload command
ld a, [wCurMusicByte] ld a, [wCurMusicByte]
@ -1381,7 +1363,6 @@ ParseMusicCommand:
ld l, a ld l, a
jp hl jp hl
MusicCommands: MusicCommands:
; entries correspond to macros/sound.asm enumeration ; entries correspond to macros/sound.asm enumeration
dw Music_Octave8 ; octave 8 dw Music_Octave8 ; octave 8
@ -1443,7 +1424,6 @@ MusicF7:
MusicF8: MusicF8:
ret ret
Music_EndChannel: Music_EndChannel:
; called when $ff is encountered w/ subroutine flag set ; called when $ff is encountered w/ subroutine flag set
; end music stream ; end music stream
@ -1465,7 +1445,6 @@ Music_EndChannel:
ld [hl], d ld [hl], d
ret ret
Music_CallChannel: Music_CallChannel:
; call music stream (subroutine) ; call music stream (subroutine)
; parameters: ll hh ; pointer to subroutine ; parameters: ll hh ; pointer to subroutine
@ -1499,7 +1478,6 @@ Music_CallChannel:
set SOUND_SUBROUTINE, [hl] set SOUND_SUBROUTINE, [hl]
ret ret
Music_JumpChannel: Music_JumpChannel:
; jump ; jump
; parameters: ll hh ; pointer ; parameters: ll hh ; pointer
@ -1515,7 +1493,6 @@ Music_JumpChannel:
ld [hl], d ld [hl], d
ret ret
Music_LoopChannel: Music_LoopChannel:
; loops xx - 1 times ; loops xx - 1 times
; 00: infinite ; 00: infinite
@ -1577,7 +1554,6 @@ Music_LoopChannel:
ld [hl], e ld [hl], e
ret ret
Music_SetCondition: Music_SetCondition:
; set condition for a jump ; set condition for a jump
; used with FB ; used with FB
@ -1591,7 +1567,6 @@ Music_SetCondition:
ld [hl], a ld [hl], a
ret ret
Music_JumpIf: Music_JumpIf:
; conditional jump ; conditional jump
; used with FA ; used with FA
@ -1638,7 +1613,6 @@ Music_JumpIf:
ld [hl], d ld [hl], d
ret ret
MusicEE MusicEE
; conditional jump ; conditional jump
; checks a byte in ram corresponding to the current channel ; checks a byte in ram corresponding to the current channel
@ -1691,7 +1665,6 @@ MusicEE
ld [hl], d ld [hl], d
ret ret
MusicF9: MusicF9:
; sets some flag ; sets some flag
; seems to be unused ; seems to be unused
@ -1700,7 +1673,6 @@ MusicF9:
ld [wc2b5], a ld [wc2b5], a
ret ret
MusicE2: MusicE2:
; seems to have been dummied out ; seems to have been dummied out
; params: 1 ; params: 1
@ -1713,7 +1685,6 @@ MusicE2:
set SOUND_UNKN_0B, [hl] set SOUND_UNKN_0B, [hl]
ret ret
Music_Vibrato: Music_Vibrato:
; vibrato ; vibrato
; params: 2 ; params: 2
@ -1769,7 +1740,6 @@ Music_Vibrato:
ld [hl], a ld [hl], a
ret ret
Music_SlidePitchTo: Music_SlidePitchTo:
; set the target for pitch wheel ; set the target for pitch wheel
; params: 2 ; params: 2
@ -1801,7 +1771,6 @@ Music_SlidePitchTo:
set SOUND_PITCH_WHEEL, [hl] set SOUND_PITCH_WHEEL, [hl]
ret ret
Music_Tone: Music_Tone:
; tone ; tone
; params: 1 (dw) ; params: 1 (dw)
@ -1816,7 +1785,6 @@ Music_Tone:
ld [hl], a ld [hl], a
ret ret
MusicE7: MusicE7:
; unused ; unused
; params: 1 ; params: 1
@ -1829,7 +1797,6 @@ MusicE7:
ld [hl], a ld [hl], a
ret ret
Music_SoundDuty: Music_SoundDuty:
; sequence of 4 duty cycles to be looped ; sequence of 4 duty cycles to be looped
; params: 1 (4 2-bit duty cycle arguments) ; params: 1 (4 2-bit duty cycle arguments)
@ -1850,7 +1817,6 @@ Music_SoundDuty:
ld [hl], a ld [hl], a
ret ret
MusicE8: MusicE8:
; unused ; unused
; params: 1 ; params: 1
@ -1863,7 +1829,6 @@ MusicE8:
ld [hl], a ld [hl], a
ret ret
Music_ToggleSFX: Music_ToggleSFX:
; toggle something ; toggle something
; params: none ; params: none
@ -1878,7 +1843,6 @@ Music_ToggleSFX:
set SOUND_SFX, [hl] set SOUND_SFX, [hl]
ret ret
Music_ToggleNoise: Music_ToggleNoise:
; toggle music noise sampling ; toggle music noise sampling
; can't be used as a straight toggle since the param is not read from on->off ; can't be used as a straight toggle since the param is not read from on->off
@ -1901,7 +1865,6 @@ Music_ToggleNoise:
ld [wMusicNoiseSampleSet], a ld [wMusicNoiseSampleSet], a
ret ret
Music_SFXToggleNoise: Music_SFXToggleNoise:
; toggle sfx noise sampling ; toggle sfx noise sampling
; params: ; params:
@ -1923,7 +1886,6 @@ Music_SFXToggleNoise:
ld [wSFXNoiseSampleSet], a ld [wSFXNoiseSampleSet], a
ret ret
Music_NoteType: Music_NoteType:
; note length ; note length
; # frames per 16th note ; # frames per 16th note
@ -1942,7 +1904,6 @@ Music_NoteType:
call Music_Intensity call Music_Intensity
ret ret
Music_SoundStatus: Music_SoundStatus:
; update sound status ; update sound status
; params: 1 ; params: 1
@ -1953,7 +1914,6 @@ Music_SoundStatus:
set NOTE_UNKN_3, [hl] set NOTE_UNKN_3, [hl]
ret ret
Music_DutyCycle: Music_DutyCycle:
; duty cycle ; duty cycle
; params: 1 ; params: 1
@ -1966,7 +1926,6 @@ Music_DutyCycle:
ld [hl], a ld [hl], a
ret ret
Music_Intensity: Music_Intensity:
; intensity ; intensity
; params: 1 ; params: 1
@ -1978,7 +1937,6 @@ Music_Intensity:
ld [hl], a ld [hl], a
ret ret
Music_Tempo: Music_Tempo:
; global tempo ; global tempo
; params: 2 ; params: 2
@ -1990,7 +1948,6 @@ Music_Tempo:
call SetGlobalTempo call SetGlobalTempo
ret ret
Music_Octave8: Music_Octave8:
Music_Octave7: Music_Octave7:
Music_Octave6: Music_Octave6:
@ -2007,7 +1964,6 @@ Music_Octave1:
ld [hl], a ld [hl], a
ret ret
Music_ForceOctave: Music_ForceOctave:
; set starting octave ; set starting octave
; this forces all notes up by the starting octave ; this forces all notes up by the starting octave
@ -2018,7 +1974,6 @@ Music_ForceOctave:
ld [hl], a ld [hl], a
ret ret
Music_StereoPanning: Music_StereoPanning:
; stereo panning ; stereo panning
; params: 1 ; params: 1
@ -2030,7 +1985,6 @@ Music_StereoPanning:
call GetMusicByte call GetMusicByte
ret ret
Music_Panning: Music_Panning:
; force panning ; force panning
; params: 1 ; params: 1
@ -2042,7 +1996,6 @@ Music_Panning:
ld [hl], a ld [hl], a
ret ret
Music_Volume: Music_Volume:
; set volume ; set volume
; params: 1 ; params: 1
@ -2059,7 +2012,6 @@ Music_Volume:
ld [wVolume], a ld [wVolume], a
ret ret
Music_TempoRelative: Music_TempoRelative:
; set global tempo to current channel tempo +/- param ; set global tempo to current channel tempo +/- param
; params: 1 signed ; params: 1 signed
@ -2086,7 +2038,6 @@ Music_TempoRelative:
call SetGlobalTempo call SetGlobalTempo
ret ret
Music_SFXPriorityOn: Music_SFXPriorityOn:
; turn sfx priority on ; turn sfx priority on
; params: none ; params: none
@ -2094,7 +2045,6 @@ Music_SFXPriorityOn:
ld [wSFXPriority], a ld [wSFXPriority], a
ret ret
Music_SFXPriorityOff: Music_SFXPriorityOff:
; turn sfx priority off ; turn sfx priority off
; params: none ; params: none
@ -2102,7 +2052,6 @@ Music_SFXPriorityOff:
ld [wSFXPriority], a ld [wSFXPriority], a
ret ret
Music_RestartChannel: Music_RestartChannel:
; restart current channel from channel header (same bank) ; restart current channel from channel header (same bank)
; params: 2 (5) ; params: 2 (5)
@ -2137,7 +2086,6 @@ Music_RestartChannel:
pop bc ; restore current channel pop bc ; restore current channel
ret ret
Music_NewSong: Music_NewSong:
; new song ; new song
; params: 2 ; params: 2
@ -2151,7 +2099,6 @@ Music_NewSong:
pop bc pop bc
ret ret
GetMusicByte: GetMusicByte:
; returns byte from current address in a ; returns byte from current address in a
; advances to next byte in music data ; advances to next byte in music data
@ -2184,7 +2131,6 @@ GetMusicByte:
ld a, [wCurMusicByte] ld a, [wCurMusicByte]
ret ret
GetFrequency: GetFrequency:
; generate frequency ; generate frequency
; input: ; input:
@ -2237,7 +2183,6 @@ GetFrequency:
ld d, a ld d, a
ret ret
SetNoteDuration: SetNoteDuration:
; input: a = note duration in 16ths ; input: a = note duration in 16ths
; store delay units in de ; store delay units in de
@ -2277,7 +2222,6 @@ SetNoteDuration:
ld [hl], d ld [hl], d
ret ret
.Multiply: .Multiply:
; multiplies a and de ; multiplies a and de
; adds the result to l ; adds the result to l
@ -2299,7 +2243,6 @@ SetNoteDuration:
jr nz, .loop jr nz, .loop
ret ret
SetGlobalTempo: SetGlobalTempo:
push bc ; save current channel push bc ; save current channel
; are we dealing with music or sfx? ; are we dealing with music or sfx?
@ -2329,7 +2272,6 @@ SetGlobalTempo:
pop bc ; restore current channel pop bc ; restore current channel
ret ret
Tempo: Tempo:
; input: ; input:
; de: note length ; de: note length
@ -2346,7 +2288,6 @@ Tempo:
ld [hl], a ld [hl], a
ret ret
StartChannel: StartChannel:
call SetLRTracks call SetLRTracks
ld hl, CHANNEL_FLAGS1 ld hl, CHANNEL_FLAGS1
@ -2354,7 +2295,6 @@ StartChannel:
set SOUND_CHANNEL_ON, [hl] ; turn channel on set SOUND_CHANNEL_ON, [hl] ; turn channel on
ret ret
SetLRTracks: SetLRTracks:
; set tracks for a the current channel to default ; set tracks for a the current channel to default
; seems to be redundant since this is overwritten by stereo data later ; seems to be redundant since this is overwritten by stereo data later
@ -2375,7 +2315,6 @@ SetLRTracks:
pop de pop de
ret ret
_PlayMusic:: _PlayMusic::
; load music ; load music
call MusicOff call MusicOff
@ -2418,7 +2357,6 @@ _PlayMusic::
call MusicOn call MusicOn
ret ret
_PlayCry:: _PlayCry::
; Play cry de using parameters: ; Play cry de using parameters:
; wCryPitch ; wCryPitch
@ -2530,7 +2468,6 @@ _PlayCry::
call MusicOn call MusicOn
ret ret
_PlaySFX:: _PlaySFX::
; clear channels if they aren't already ; clear channels if they aren't already
call MusicOff call MusicOff
@ -2630,7 +2567,6 @@ _PlaySFX::
ld [wSFXPriority], a ld [wSFXPriority], a
ret ret
PlayStereoSFX:: PlayStereoSFX::
; play sfx de ; play sfx de
@ -2732,7 +2668,6 @@ PlayStereoSFX::
call MusicOn call MusicOn
ret ret
LoadChannel: LoadChannel:
; prep channel for use ; prep channel for use
; input: ; input:
@ -2777,7 +2712,6 @@ LoadChannel:
ld [hl], a ld [hl], a
ret ret
ChannelInit: ChannelInit:
; make sure channel is cleared ; make sure channel is cleared
; set default tempo and note length in case nothing is loaded ; set default tempo and note length in case nothing is loaded
@ -2808,7 +2742,6 @@ ChannelInit:
pop de pop de
ret ret
LoadMusicByte:: LoadMusicByte::
; input: ; input:
; de = current music address ; de = current music address
@ -2819,15 +2752,12 @@ LoadMusicByte::
ld a, [wCurMusicByte] ld a, [wCurMusicByte]
ret ret
INCLUDE "audio/notes.asm" INCLUDE "audio/notes.asm"
INCLUDE "audio/wave_samples.asm" INCLUDE "audio/wave_samples.asm"
INCLUDE "audio/drumkits.asm" INCLUDE "audio/drumkits.asm"
GetLRTracks: GetLRTracks:
; gets the default sound l/r channels ; gets the default sound l/r channels
; stores mono/stereo table in hl ; stores mono/stereo table in hl
@ -2842,7 +2772,6 @@ GetLRTracks:
ld hl, StereoTracks ld hl, StereoTracks
ret ret
MonoTracks: MonoTracks:
; bit corresponds to track # ; bit corresponds to track #
; hi: left channel ; hi: left channel
@ -2883,7 +2812,6 @@ ClearChannels::
jr nz, .loop jr nz, .loop
ret ret
ClearChannel: ClearChannel:
; input: hl = beginning hw sound register (rNR10, rNR20, rNR30, rNR40) ; input: hl = beginning hw sound register (rNR10, rNR20, rNR30, rNR40)
; output: 00 00 80 00 80 ; output: 00 00 80 00 80
@ -2901,7 +2829,6 @@ ClearChannel:
ld [hli], a ; rNR14, rNR24, rNR34, rNR44 ; restart sound (freq hi = 0) ld [hli], a ; rNR14, rNR24, rNR34, rNR44 ; restart sound (freq hi = 0)
ret ret
PlayTrainerEncounterMusic:: PlayTrainerEncounterMusic::
; input: e = trainer type ; input: e = trainer type
; turn fade off ; turn fade off

View File

@ -245,7 +245,6 @@ Music_MagnetTrain_Ch4:
note B_, 16 note B_, 16
endchannel endchannel
; unused ; unused
Music_MagnetTrain_branch_ef711: Music_MagnetTrain_branch_ef711:
note G#, 1 note G#, 1
@ -262,7 +261,6 @@ Music_MagnetTrain_branch_ef711:
note G_, 1 note G_, 1
endchannel endchannel
Music_MagnetTrain_branch_ef71e: Music_MagnetTrain_branch_ef71e:
note G#, 2 note G#, 2
note G_, 2 note G_, 2

View File

@ -2,7 +2,6 @@
Music: Music:
; entries correspond to MUSIC_* constants ; entries correspond to MUSIC_* constants
dba Music_Nothing dba Music_Nothing
dba Music_TitleScreen dba Music_TitleScreen
dba Music_Route1 dba Music_Route1
@ -96,9 +95,7 @@ Music:
dba Music_LakeOfRageRocketRadio dba Music_LakeOfRageRocketRadio
dba Music_Printer dba Music_Printer
dba Music_PostCredits dba Music_PostCredits
; new to Crystal
; Crystal adds the following songs:
dba Music_Clair dba Music_Clair
dba Music_MobileAdapterMenu dba Music_MobileAdapterMenu
dba Music_MobileAdapter dba Music_MobileAdapter

View File

@ -1,6 +1,5 @@
SFX: SFX:
; entries correspond to SFX_* constants ; entries correspond to SFX_* constants
dba Sfx_DexFanfare5079 dba Sfx_DexFanfare5079
dba Sfx_Item dba Sfx_Item
dba Sfx_CaughtMon dba Sfx_CaughtMon
@ -191,9 +190,7 @@ SFX:
dba Sfx_2Boops dba Sfx_2Boops
dba Sfx_GlassTing dba Sfx_GlassTing
dba Sfx_GlassTing2 dba Sfx_GlassTing2
; new to Crystal
; Crystal adds the following SFX:
dba Sfx_IntroUnown1 dba Sfx_IntroUnown1
dba Sfx_IntroUnown2 dba Sfx_IntroUnown2
dba Sfx_IntroUnown3 dba Sfx_IntroUnown3

View File

@ -113,3 +113,5 @@ HI_NYBBLE_WALK EQU $40
HI_NYBBLE_WALK_ALT EQU $50 HI_NYBBLE_WALK_ALT EQU $50
HI_NYBBLE_WARPS EQU $70 HI_NYBBLE_WARPS EQU $70
HI_NYBBLE_LEDGES EQU $a0 HI_NYBBLE_LEDGES EQU $a0
HI_NYBBLE_SIDE_WALLS EQU $b0
HI_NYBBLE_UNUSED_C0 EQU $c0

View File

@ -8,7 +8,6 @@ PALETTE_SIZE EQU NUM_PAL_COLORS * PAL_COLOR_SIZE
PALRGB_WHITE EQUS "palred 31 + palgreen 31 + palblue 31" ; $7fff PALRGB_WHITE EQUS "palred 31 + palgreen 31 + palblue 31" ; $7fff
SCREEN_WIDTH EQU 20 ; tiles SCREEN_WIDTH EQU 20 ; tiles
SCREEN_HEIGHT EQU 18 ; tiles SCREEN_HEIGHT EQU 18 ; tiles
SCREEN_WIDTH_PX EQU SCREEN_WIDTH * TILE_WIDTH ; pixels SCREEN_WIDTH_PX EQU SCREEN_WIDTH * TILE_WIDTH ; pixels
@ -23,7 +22,6 @@ SCREEN_META_HEIGHT EQU 5 ; metatiles
SURROUNDING_WIDTH EQU SCREEN_META_WIDTH * METATILE_WIDTH ; tiles SURROUNDING_WIDTH EQU SCREEN_META_WIDTH * METATILE_WIDTH ; tiles
SURROUNDING_HEIGHT EQU SCREEN_META_HEIGHT * METATILE_WIDTH ; tiles SURROUNDING_HEIGHT EQU SCREEN_META_HEIGHT * METATILE_WIDTH ; tiles
HP_BAR_LENGTH EQU 6 ; tiles HP_BAR_LENGTH EQU 6 ; tiles
EXP_BAR_LENGTH EQU 8 ; tiles EXP_BAR_LENGTH EQU 8 ; tiles
HP_BAR_LENGTH_PX EQU HP_BAR_LENGTH * TILE_WIDTH ; pixels HP_BAR_LENGTH_PX EQU HP_BAR_LENGTH * TILE_WIDTH ; pixels
@ -34,7 +32,6 @@ HP_GREEN EQU 0
HP_YELLOW EQU 1 HP_YELLOW EQU 1
HP_RED EQU 2 HP_RED EQU 2
; sprite_oam_struct members (see macros/wram.asm) ; sprite_oam_struct members (see macros/wram.asm)
const_def const_def
const SPRITEOAMSTRUCT_YCOORD ; 0 const SPRITEOAMSTRUCT_YCOORD ; 0
@ -44,7 +41,6 @@ HP_RED EQU 2
SPRITEOAMSTRUCT_LENGTH EQU const_value SPRITEOAMSTRUCT_LENGTH EQU const_value
NUM_SPRITE_OAM_STRUCTS EQU 40 ; see wVirtualOAM NUM_SPRITE_OAM_STRUCTS EQU 40 ; see wVirtualOAM
; PokeAnims indexes (see engine/gfx/pic_animation.asm) ; PokeAnims indexes (see engine/gfx/pic_animation.asm)
const_def const_def
const ANIM_MON_SLOW const ANIM_MON_SLOW

View File

@ -32,7 +32,6 @@ NO_LIMITS EQU 0
CANT_SELECT EQU 1 << CANT_SELECT_F CANT_SELECT EQU 1 << CANT_SELECT_F
CANT_TOSS EQU 1 << CANT_TOSS_F CANT_TOSS EQU 1 << CANT_TOSS_F
; pack pockets ; pack pockets
const_def const_def
const ITEM_POCKET ; 0 const ITEM_POCKET ; 0
@ -46,14 +45,12 @@ MAX_BALLS EQU 12
MAX_KEY_ITEMS EQU 25 MAX_KEY_ITEMS EQU 25
MAX_PC_ITEMS EQU 50 MAX_PC_ITEMS EQU 50
; mail ; mail
MAIL_LINE_LENGTH EQU $10 MAIL_LINE_LENGTH EQU $10
MAIL_MSG_LENGTH EQU $20 MAIL_MSG_LENGTH EQU $20
MAILBOX_CAPACITY EQU 10 MAILBOX_CAPACITY EQU 10
MAIL_STRUCT_LENGTH EQU $2f ; mailmsg struct MAIL_STRUCT_LENGTH EQU $2f ; mailmsg struct
; held item effects ; held item effects
const_def const_def
const HELD_NONE const HELD_NONE

View File

@ -105,7 +105,6 @@ KANTO_LANDMARK EQU const_value
GIFT_LOCATION EQU $7e GIFT_LOCATION EQU $7e
EVENT_LOCATION EQU $7f EVENT_LOCATION EQU $7f
; Regions ; Regions
const_def const_def
const JOHTO_REGION ; 0 const JOHTO_REGION ; 0

View File

@ -3,7 +3,6 @@ MAP_N_A EQU -1
GROUP_NONE EQU 0 GROUP_NONE EQU 0
MAP_NONE EQU 0 MAP_NONE EQU 0
; map struct members (see data/maps/maps.asm) ; map struct members (see data/maps/maps.asm)
const_def const_def
const MAP_MAPATTRIBUTES_BANK ; 0 const MAP_MAPATTRIBUTES_BANK ; 0
@ -51,7 +50,6 @@ MAP_NONE EQU 0
const FISHGROUP_REMORAID const FISHGROUP_REMORAID
const FISHGROUP_QWILFISH_NO_SWARM const FISHGROUP_QWILFISH_NO_SWARM
; connection directions (see data/maps/data.asm) ; connection directions (see data/maps/data.asm)
const_def const_def
const EAST_F const EAST_F
@ -66,7 +64,6 @@ MAP_NONE EQU 0
shift_const SOUTH shift_const SOUTH
shift_const NORTH shift_const NORTH
; SpawnPoints indexes (see data/maps/spawn_points.asm) ; SpawnPoints indexes (see data/maps/spawn_points.asm)
const_value = -1 const_value = -1
const SPAWN_N_A const SPAWN_N_A
@ -102,7 +99,6 @@ const_value = -1
const SPAWN_FAST_SHIP const SPAWN_FAST_SHIP
NUM_SPAWNS EQU const_value NUM_SPAWNS EQU const_value
; outdoor sprite limits (see engine/overworld/overworld.asm) ; outdoor sprite limits (see engine/overworld/overworld.asm)
MAX_OUTDOOR_SPRITES EQU 23 MAX_OUTDOOR_SPRITES EQU 23
SPRITE_GFX_LIST_CAPACITY EQU $20 SPRITE_GFX_LIST_CAPACITY EQU $20

View File

@ -126,7 +126,6 @@ NUM_SPRITEMOVEDATA_FIELDS EQU const_value
MAPOBJECT_SCREEN_WIDTH EQU (SCREEN_WIDTH / 2) + 2 MAPOBJECT_SCREEN_WIDTH EQU (SCREEN_WIDTH / 2) + 2
MAPOBJECT_SCREEN_HEIGHT EQU (SCREEN_HEIGHT / 2) + 2 MAPOBJECT_SCREEN_HEIGHT EQU (SCREEN_HEIGHT / 2) + 2
; SpriteMovementData indexes (see data/sprites/map_objects.asm) ; SpriteMovementData indexes (see data/sprites/map_objects.asm)
const_def const_def
const SPRITEMOVEDATA_00 ; 00 const SPRITEMOVEDATA_00 ; 00
@ -283,7 +282,6 @@ NUM_SPRITEMOVEDATA EQU const_value
const FACING_GRASS_1 ; 1e const FACING_GRASS_1 ; 1e
const FACING_GRASS_2 ; 1f const FACING_GRASS_2 ; 1f
; DoPlayerMovement.DoStep arguments (see engine/overworld/player_movement.asm) ; DoPlayerMovement.DoStep arguments (see engine/overworld/player_movement.asm)
const_def const_def
const STEP_SLOW ; 0 const STEP_SLOW ; 0

View File

@ -32,7 +32,6 @@
shift_const SCROLLINGMENU_ENABLE_START shift_const SCROLLINGMENU_ENABLE_START
shift_const SCROLLINGMENU_ENABLE_SELECT shift_const SCROLLINGMENU_ENABLE_SELECT
; MonMenuOptions indexes (see data/mon_menu.asm) ; MonMenuOptions indexes (see data/mon_menu.asm)
; used by PokemonActionSubmenu (see engine/menus/start_menu.asm) ; used by PokemonActionSubmenu (see engine/menus/start_menu.asm)
const_def 1 const_def 1
@ -70,7 +69,6 @@ NUM_MONMENU_ITEMS EQU 8
HMENURETURN_SCRIPT EQU %10000000 HMENURETURN_SCRIPT EQU %10000000
HMENURETURN_ASM EQU %11111111 HMENURETURN_ASM EQU %11111111
; PartyMenuQualityPointers indexes (see data/party_menu_qualities.asm) ; PartyMenuQualityPointers indexes (see data/party_menu_qualities.asm)
const_def const_def
const PARTYMENUACTION_CHOOSE_POKEMON const PARTYMENUACTION_CHOOSE_POKEMON

View File

@ -62,11 +62,9 @@ GENDER_UNKNOWN EQU -1
const EGG_DRAGON ; e const EGG_DRAGON ; e
const EGG_NONE ; f (Undiscovered) const EGG_NONE ; f (Undiscovered)
; pokedex entries (see data/pokemon/dex_entries.asm) ; pokedex entries (see data/pokemon/dex_entries.asm)
NUM_DEX_ENTRY_BANKS EQU 4 NUM_DEX_ENTRY_BANKS EQU 4
; party_struct members (see macros/wram.asm) ; party_struct members (see macros/wram.asm)
MON_SPECIES EQUS "(wPartyMon1Species - wPartyMon1)" MON_SPECIES EQUS "(wPartyMon1Species - wPartyMon1)"
MON_ITEM EQUS "(wPartyMon1Item - wPartyMon1)" MON_ITEM EQUS "(wPartyMon1Item - wPartyMon1)"
@ -101,7 +99,6 @@ BOXMON_STRUCT_LENGTH EQUS "(wPartyMon1End - wPartyMon1)"
PARTYMON_STRUCT_LENGTH EQUS "(wPartyMon1StatsEnd - wPartyMon1)" PARTYMON_STRUCT_LENGTH EQUS "(wPartyMon1StatsEnd - wPartyMon1)"
REDMON_STRUCT_LENGTH EQU 44 REDMON_STRUCT_LENGTH EQU 44
; caught data ; caught data
CAUGHT_TIME_MASK EQU %11000000 CAUGHT_TIME_MASK EQU %11000000
@ -116,7 +113,6 @@ CAUGHT_BY_BOY EQU 2
CAUGHT_EGG_LEVEL EQU 1 CAUGHT_EGG_LEVEL EQU 1
; maximum number of party pokemon ; maximum number of party pokemon
PARTY_LENGTH EQU 6 PARTY_LENGTH EQU 6
@ -129,7 +125,6 @@ HOF_MON_LENGTH = 1 + 2 + 2 + 1 + (MON_NAME_LENGTH + -1) ; species, id, dvs, leve
HOF_LENGTH = 1 + HOF_MON_LENGTH * PARTY_LENGTH + 1 ; win count, party, terminator HOF_LENGTH = 1 + HOF_MON_LENGTH * PARTY_LENGTH + 1 ; win count, party, terminator
NUM_HOF_TEAMS = 30 NUM_HOF_TEAMS = 30
; evolution types (used in data/pokemon/evos_attacks.asm) ; evolution types (used in data/pokemon/evos_attacks.asm)
const_def 1 const_def 1
const EVOLVE_LEVEL const EVOLVE_LEVEL
@ -150,7 +145,6 @@ NUM_HOF_TEAMS = 30
const ATK_LT_DEF const ATK_LT_DEF
const ATK_EQ_DEF const ATK_EQ_DEF
; wild data ; wild data
NUM_GRASSMON EQU 7 ; data/wild/*_grass.asm table size NUM_GRASSMON EQU 7 ; data/wild/*_grass.asm table size
@ -162,7 +156,6 @@ FISHGROUP_DATA_LENGTH EQU 1 + 2 * 3
NUM_ROAMMON_MAPS EQU 16 ; RoamMaps table size (see data/wild/roammon_maps.asm) NUM_ROAMMON_MAPS EQU 16 ; RoamMaps table size (see data/wild/roammon_maps.asm)
; treemon sets ; treemon sets
; TreeMons indexes (see data/wild/treemons.asm) ; TreeMons indexes (see data/wild/treemons.asm)
const_def const_def
@ -182,7 +175,6 @@ NUM_TREEMON_SETS EQU const_value
const TREEMON_SCORE_GOOD ; 1 const TREEMON_SCORE_GOOD ; 1
const TREEMON_SCORE_RARE ; 2 const TREEMON_SCORE_RARE ; 2
; ChangeHappiness arguments (see data/happiness_changes.asm) ; ChangeHappiness arguments (see data/happiness_changes.asm)
const_value = 1 const_value = 1
const HAPPINESS_GAINLEVEL ; 01 const HAPPINESS_GAINLEVEL ; 01
@ -212,7 +204,6 @@ HAPPINESS_TO_EVOLVE EQU 220
HAPPINESS_THRESHOLD_1 EQU 100 HAPPINESS_THRESHOLD_1 EQU 100
HAPPINESS_THRESHOLD_2 EQU 200 HAPPINESS_THRESHOLD_2 EQU 200
; PP ; PP
PP_UP_MASK EQU %11000000 PP_UP_MASK EQU %11000000
PP_UP_ONE EQU %01000000 PP_UP_ONE EQU %01000000

View File

@ -2,7 +2,6 @@
PLAYER EQU 0 PLAYER EQU 0
LAST_TALKED EQU -2 LAST_TALKED EQU -2
; memory constants ; memory constants
const_def const_def
const MEM_BUFFER_0 ; use wStringBuffer3 const MEM_BUFFER_0 ; use wStringBuffer3
@ -10,7 +9,6 @@ LAST_TALKED EQU -2
const MEM_BUFFER_2 ; use wStringBuffer5 const MEM_BUFFER_2 ; use wStringBuffer5
NUM_MEM_BUFFERS EQU const_value NUM_MEM_BUFFERS EQU const_value
; checkmoney/takemoney accounts ; checkmoney/takemoney accounts
const_def const_def
const YOUR_MONEY ; 0 const YOUR_MONEY ; 0
@ -36,7 +34,6 @@ NUM_MEM_BUFFERS EQU const_value
const PHONE_CONTACTS_FULL ; 1 const PHONE_CONTACTS_FULL ; 1
const PHONE_CONTACT_REFUSED ; 2 const PHONE_CONTACT_REFUSED ; 2
; writecode/checkcode arguments ; writecode/checkcode arguments
; _GetVarAction.VarActionTable indexes (see engine/overworld/variables.asm) ; _GetVarAction.VarActionTable indexes (see engine/overworld/variables.asm)
const_def const_def
@ -74,7 +71,6 @@ RETVAR_STRBUF2 EQU (0 << 6)
RETVAR_ADDR_DE EQU (1 << 6) RETVAR_ADDR_DE EQU (1 << 6)
RETVAR_EXECUTE EQU (2 << 6) RETVAR_EXECUTE EQU (2 << 6)
; PlayerEventScriptPointers indexes (see engine/overworld/events.asm) ; PlayerEventScriptPointers indexes (see engine/overworld/events.asm)
const_def -1 const_def -1
const PLAYEREVENT_MAPSCRIPT const PLAYEREVENT_MAPSCRIPT
@ -90,7 +86,6 @@ RETVAR_EXECUTE EQU (2 << 6)
const PLAYEREVENT_JOYCHANGEFACING const PLAYEREVENT_JOYCHANGEFACING
NUM_PLAYER_EVENTS EQU const_value NUM_PLAYER_EVENTS EQU const_value
; bg_event types ; bg_event types
; TryBGEvent arguments (see engine/overworld/events.asm) ; TryBGEvent arguments (see engine/overworld/events.asm)
const_def const_def
@ -115,7 +110,6 @@ NUM_PLAYER_EVENTS EQU const_value
const OBJECTTYPE_5 const OBJECTTYPE_5
const OBJECTTYPE_6 const OBJECTTYPE_6
; command queue members ; command queue members
CMDQUEUE_TYPE EQU 0 CMDQUEUE_TYPE EQU 0
CMDQUEUE_ADDR EQU 1 CMDQUEUE_ADDR EQU 1
@ -128,7 +122,6 @@ CMDQUEUE_CAPACITY EQU 4
; command queue types ; command queue types
CMDQUEUE_STONETABLE EQU 2 CMDQUEUE_STONETABLE EQU 2
; elevfloor macro values ; elevfloor macro values
; ElevatorFloorNames indexes (see data/events/elevator_floors.asm) ; ElevatorFloorNames indexes (see data/events/elevator_floors.asm)
const_def const_def
@ -149,7 +142,6 @@ CMDQUEUE_STONETABLE EQU 2
const FLOOR_11F const FLOOR_11F
const FLOOR_ROOF const FLOOR_ROOF
; showemote arguments ; showemote arguments
; Emotes indexes (see data/sprites/emotes.asm) ; Emotes indexes (see data/sprites/emotes.asm)
const_def const_def
@ -217,7 +209,6 @@ NUM_FRUIT_TREES EQU const_value + -1
const SWARM_DUNSPARCE ; 0 const SWARM_DUNSPARCE ; 0
const SWARM_YANMA ; 1 const SWARM_YANMA ; 1
; ActivateFishingSwarm writebyte arguments ; ActivateFishingSwarm writebyte arguments
const_def const_def
const FISHSWARM_NONE ; 0 const FISHSWARM_NONE ; 0

View File

@ -1266,4 +1266,3 @@ BattleAnimFrameData:
.Frameset_b8: .Frameset_b8:
frame BATTLEANIMOAMSET_D7, 8 frame BATTLEANIMOAMSET_D7, 8
endanim endanim

File diff suppressed because it is too large Load Diff

View File

@ -188,7 +188,7 @@ CreditsStrings:
.MonsterDesign: db " MONSTER DESIGN@" ; "# デザイン@" .MonsterDesign: db " MONSTER DESIGN@" ; "# デザイン@"
.GraphicsDesign: db " GRAPHICS DESIGN@" ; "グラフィック デザイン@" .GraphicsDesign: db " GRAPHICS DESIGN@" ; "グラフィック デザイン@"
.Music: db " MUSIC@" ; "おんがく@" .Music: db " MUSIC@" ; "おんがく@"
.SoundEffects: db " SOUND EFFECTS@" ; "サウンド エフクト@" .SoundEffects: db " SOUND EFFECTS@" ; "サウンド エフクト@"
.GameDesign: db " GAME DESIGN@" ; "ゲームデザイン@" .GameDesign: db " GAME DESIGN@" ; "ゲームデザイン@"
.GameScenario: db " GAME SCENARIO@" ; "シナりオ@" .GameScenario: db " GAME SCENARIO@" ; "シナりオ@"
.ToolProgramming: db " TOOL PROGRAMMING@" ; "ツール プログラム@" .ToolProgramming: db " TOOL PROGRAMMING@" ; "ツール プログラム@"
@ -202,7 +202,7 @@ CreditsStrings:
.ExecutiveProducer: db " EXECUTIVE PRODUCER@" ; "エグゼクティブ プロデューサー@" .ExecutiveProducer: db " EXECUTIVE PRODUCER@" ; "エグゼクティブ プロデューサー@"
.PokemonAnimation: db " #MON ANIMATION@" ; "# アニメーション@" .PokemonAnimation: db " #MON ANIMATION@" ; "# アニメーション@"
.PokedexText: db " #DEX TEXT@" ; "ずかん テキスト@" .PokedexText: db " #DEX TEXT@" ; "ずかん テキスト@"
.MobilePrjLeader: db " MOBILE PRJ. LEADER@" ; "モバイルプロジクト りーダー@" .MobilePrjLeader: db " MOBILE PRJ. LEADER@" ; "モバイルプロジクト りーダー@"
.MobileSystemAd: db " MOBILE SYSTEM AD.@" ; "モバイル システムアドバイザー@" .MobileSystemAd: db " MOBILE SYSTEM AD.@" ; "モバイル システムアドバイザー@"
.MobileStadiumDir: db "MOBILE STADIUM DIR.@" ; "モバイルスタジアム ディレクター@" .MobileStadiumDir: db "MOBILE STADIUM DIR.@" ; "モバイルスタジアム ディレクター@"
.Coordination: db " COORDINATION@" ; "コーディネーター@" .Coordination: db " COORDINATION@" ; "コーディネーター@"

View File

@ -197,4 +197,3 @@ EngineFlags:
engine_flag wSwarmFlags, SWARMFLAGS_DUNSPARCE_SWARM_F ; $a0 engine_flag wSwarmFlags, SWARMFLAGS_DUNSPARCE_SWARM_F ; $a0
engine_flag wSwarmFlags, SWARMFLAGS_YANMA_SWARM_F engine_flag wSwarmFlags, SWARMFLAGS_YANMA_SWARM_F

View File

@ -42,7 +42,6 @@ CutTreeBlockPointers:
db $0f, $17, 0 db $0f, $17, 0
db -1 ; end db -1 ; end
WhirlpoolBlockPointers: WhirlpoolBlockPointers:
dbw TILESET_JOHTO, .johto dbw TILESET_JOHTO, .johto
db -1 ; end db -1 ; end

View File

@ -27,7 +27,6 @@ prob_total = 0
prob 10 prob 10
prob 1 prob 1
OddEggs: OddEggs:
OddEgg1: OddEgg1:

View File

@ -25,4 +25,3 @@ OakRatings:
rating 239, SFX_DEX_FANFARE_230_PLUS, OakRating17 rating 239, SFX_DEX_FANFARE_230_PLUS, OakRating17
rating 248, SFX_DEX_FANFARE_230_PLUS, OakRating18 rating 248, SFX_DEX_FANFARE_230_PLUS, OakRating18
rating 255, SFX_DEX_FANFARE_230_PLUS, OakRating19 rating 255, SFX_DEX_FANFARE_230_PLUS, OakRating19

View File

@ -36,7 +36,6 @@ Marts:
dw MartUnderground dw MartUnderground
.End .End
MartCherrygrove: MartCherrygrove:
db 4 ; # items db 4 ; # items
db POTION db POTION

View File

@ -63,7 +63,6 @@ elif "\1" == "east"
endc endc
ENDM ENDM
map_attributes NewBarkTown, NEW_BARK_TOWN, $05, WEST | EAST map_attributes NewBarkTown, NEW_BARK_TOWN, $05, WEST | EAST
connection west, Route29, ROUTE_29, 0, 0, 9 connection west, Route29, ROUTE_29, 0, 0, 9
connection east, Route27, ROUTE_27, 0, 0, 9 connection east, Route27, ROUTE_27, 0, 0, 9

View File

@ -6,7 +6,6 @@ SECTION "Maps", ROMX
INCLUDE "data/maps/maps.asm" INCLUDE "data/maps/maps.asm"
INCLUDE "data/maps/attributes.asm" INCLUDE "data/maps/attributes.asm"
INCLUDE "data/maps/blocks.asm" INCLUDE "data/maps/blocks.asm"
INCLUDE "data/maps/scripts.asm" INCLUDE "data/maps/scripts.asm"

View File

@ -43,7 +43,6 @@ MapGroupPointers::
dw MapGroup_Saffron ; 25 dw MapGroup_Saffron ; 25
dw MapGroup_Cherrygrove ; 26 dw MapGroup_Cherrygrove ; 26
MapGroup_Olivine: MapGroup_Olivine:
map OlivinePokecenter1F, TILESET_POKECENTER, INDOOR, OLIVINE_CITY, MUSIC_POKEMON_CENTER, FALSE, PALETTE_DAY, FISHGROUP_SHORE map OlivinePokecenter1F, TILESET_POKECENTER, INDOOR, OLIVINE_CITY, MUSIC_POKEMON_CENTER, FALSE, PALETTE_DAY, FISHGROUP_SHORE
map OlivineGym, TILESET_CHAMPIONS_ROOM, INDOOR, OLIVINE_CITY, MUSIC_GYM, TRUE, PALETTE_DAY, FISHGROUP_SHORE map OlivineGym, TILESET_CHAMPIONS_ROOM, INDOOR, OLIVINE_CITY, MUSIC_GYM, TRUE, PALETTE_DAY, FISHGROUP_SHORE

View File

@ -30,7 +30,6 @@ OutdoorSprites:
dw SaffronGroupSprites dw SaffronGroupSprites
dw CherrygroveGroupSprites dw CherrygroveGroupSprites
PalletGroupSprites: PalletGroupSprites:
db SPRITE_SUICUNE db SPRITE_SUICUNE
db SPRITE_SILVER_TROPHY db SPRITE_SILVER_TROPHY

View File

@ -1,3 +1,5 @@
INCLUDE "data/moves/effects_pointers.asm"
MoveEffects: ; used only for BANK(MoveEffects) MoveEffects: ; used only for BANK(MoveEffects)
NormalHit: NormalHit:

View File

@ -18,7 +18,6 @@ endr
db -1 ; end db -1 ; end
ENDM ENDM
PartyMenuQualityPointers: PartyMenuQualityPointers:
; entries correspond to PARTYMENUACTION_* constants ; entries correspond to PARTYMENUACTION_* constants
dw .Default ; PARTYMENUACTION_CHOOSE_POKEMON dw .Default ; PARTYMENUACTION_CHOOSE_POKEMON

View File

@ -37,7 +37,6 @@ sgb_data_snd: MACRO
db \3 ; length (1-11) db \3 ; length (1-11)
ENDM ENDM
; Crystal does not support SGB, so this is unused. ; Crystal does not support SGB, so this is unused.
PalTrnPacket: sgb_pal_trn PalTrnPacket: sgb_pal_trn
@ -49,7 +48,6 @@ PctTrnPacket: sgb_pct_trn
MaskEnFreezePacket: sgb_mask_en 1 MaskEnFreezePacket: sgb_mask_en 1
MaskEnCancelPacket: sgb_mask_en 0 MaskEnCancelPacket: sgb_mask_en 0
; These are packets containing SNES code. ; These are packets containing SNES code.
; This set of packets is found in several Japanese SGB-compatible titles. ; This set of packets is found in several Japanese SGB-compatible titles.
; It appears to be part of NCL's SGB devkit. ; It appears to be part of NCL's SGB devkit.

View File

@ -37,7 +37,6 @@ Facings:
NUM_FACINGS EQU (Facings.End - Facings) / 2 NUM_FACINGS EQU (Facings.End - Facings) / 2
; Tables used as a reference to transform OAM data. ; Tables used as a reference to transform OAM data.
; Format: ; Format:

View File

@ -402,4 +402,3 @@ TrainerClassAttributes:
db 25 ; base reward db 25 ; base reward
dw AI_BASIC | AI_SETUP | AI_SMART | AI_AGGRESSIVE | AI_CAUTIOUS | AI_STATUS | AI_RISKY dw AI_BASIC | AI_SETUP | AI_SMART | AI_AGGRESSIVE | AI_CAUTIOUS | AI_STATUS | AI_RISKY
dw CONTEXT_USE | SWITCH_SOMETIMES dw CONTEXT_USE | SWITCH_SOMETIMES

View File

@ -1,3 +1,5 @@
INCLUDE "data/trainers/party_pointers.asm"
Trainers: Trainers:
; Trainer data structure: ; Trainer data structure:
; - db "NAME@", TRAINERTYPE_* constant ; - db "NAME@", TRAINERTYPE_* constant
@ -8,7 +10,6 @@ Trainers:
; * for TRAINERTYPE_ITEM_MOVES: db level, species, item, 4 moves ; * for TRAINERTYPE_ITEM_MOVES: db level, species, item, 4 moves
; - db -1 ; end ; - db -1 ; end
FalknerGroup: FalknerGroup:
; FALKNER (1) ; FALKNER (1)
db "FALKNER@", TRAINERTYPE_MOVES db "FALKNER@", TRAINERTYPE_MOVES
@ -16,7 +17,6 @@ FalknerGroup:
db 9, PIDGEOTTO, TACKLE, MUD_SLAP, GUST, NO_MOVE db 9, PIDGEOTTO, TACKLE, MUD_SLAP, GUST, NO_MOVE
db -1 ; end db -1 ; end
WhitneyGroup: WhitneyGroup:
; WHITNEY (1) ; WHITNEY (1)
db "WHITNEY@", TRAINERTYPE_MOVES db "WHITNEY@", TRAINERTYPE_MOVES
@ -24,7 +24,6 @@ WhitneyGroup:
db 20, MILTANK, ROLLOUT, ATTRACT, STOMP, MILK_DRINK db 20, MILTANK, ROLLOUT, ATTRACT, STOMP, MILK_DRINK
db -1 ; end db -1 ; end
BugsyGroup: BugsyGroup:
; BUGSY (1) ; BUGSY (1)
db "BUGSY@", TRAINERTYPE_MOVES db "BUGSY@", TRAINERTYPE_MOVES
@ -33,7 +32,6 @@ BugsyGroup:
db 16, SCYTHER, QUICK_ATTACK, LEER, FURY_CUTTER, NO_MOVE db 16, SCYTHER, QUICK_ATTACK, LEER, FURY_CUTTER, NO_MOVE
db -1 ; end db -1 ; end
MortyGroup: MortyGroup:
; MORTY (1) ; MORTY (1)
db "MORTY@", TRAINERTYPE_MOVES db "MORTY@", TRAINERTYPE_MOVES
@ -43,7 +41,6 @@ MortyGroup:
db 23, HAUNTER, SPITE, MEAN_LOOK, MIMIC, NIGHT_SHADE db 23, HAUNTER, SPITE, MEAN_LOOK, MIMIC, NIGHT_SHADE
db -1 ; end db -1 ; end
PryceGroup: PryceGroup:
; PRYCE (1) ; PRYCE (1)
db "PRYCE@", TRAINERTYPE_MOVES db "PRYCE@", TRAINERTYPE_MOVES
@ -52,7 +49,6 @@ PryceGroup:
db 31, PILOSWINE, ICY_WIND, FURY_ATTACK, MIST, BLIZZARD db 31, PILOSWINE, ICY_WIND, FURY_ATTACK, MIST, BLIZZARD
db -1 ; end db -1 ; end
JasmineGroup: JasmineGroup:
; JASMINE (1) ; JASMINE (1)
db "JASMINE@", TRAINERTYPE_MOVES db "JASMINE@", TRAINERTYPE_MOVES
@ -61,7 +57,6 @@ JasmineGroup:
db 35, STEELIX, SCREECH, SUNNY_DAY, ROCK_THROW, IRON_TAIL db 35, STEELIX, SCREECH, SUNNY_DAY, ROCK_THROW, IRON_TAIL
db -1 ; end db -1 ; end
ChuckGroup: ChuckGroup:
; CHUCK (1) ; CHUCK (1)
db "CHUCK@", TRAINERTYPE_MOVES db "CHUCK@", TRAINERTYPE_MOVES
@ -69,7 +64,6 @@ ChuckGroup:
db 30, POLIWRATH, HYPNOSIS, MIND_READER, SURF, DYNAMICPUNCH db 30, POLIWRATH, HYPNOSIS, MIND_READER, SURF, DYNAMICPUNCH
db -1 ; end db -1 ; end
ClairGroup: ClairGroup:
; CLAIR (1) ; CLAIR (1)
db "CLAIR@", TRAINERTYPE_MOVES db "CLAIR@", TRAINERTYPE_MOVES
@ -79,7 +73,6 @@ ClairGroup:
db 40, KINGDRA, SMOKESCREEN, SURF, HYPER_BEAM, DRAGONBREATH db 40, KINGDRA, SMOKESCREEN, SURF, HYPER_BEAM, DRAGONBREATH
db -1 ; end db -1 ; end
Rival1Group: Rival1Group:
; RIVAL1 (1) ; RIVAL1 (1)
db "?@", TRAINERTYPE_NORMAL db "?@", TRAINERTYPE_NORMAL
@ -198,10 +191,8 @@ Rival1Group:
db 38, FERALIGATR, RAGE, WATER_GUN, SCARY_FACE, SLASH db 38, FERALIGATR, RAGE, WATER_GUN, SCARY_FACE, SLASH
db -1 ; end db -1 ; end
PokemonProfGroup: PokemonProfGroup:
WillGroup: WillGroup:
; WILL (1) ; WILL (1)
db "WILL@", TRAINERTYPE_MOVES db "WILL@", TRAINERTYPE_MOVES
@ -212,7 +203,6 @@ WillGroup:
db 42, XATU, QUICK_ATTACK, FUTURE_SIGHT, CONFUSE_RAY, PSYCHIC_M db 42, XATU, QUICK_ATTACK, FUTURE_SIGHT, CONFUSE_RAY, PSYCHIC_M
db -1 ; end db -1 ; end
PKMNTrainerGroup: PKMNTrainerGroup:
; CAL (1) ; CAL (1)
db "CAL@", TRAINERTYPE_NORMAL db "CAL@", TRAINERTYPE_NORMAL
@ -235,7 +225,6 @@ PKMNTrainerGroup:
db 50, FERALIGATR db 50, FERALIGATR
db -1 ; end db -1 ; end
BrunoGroup: BrunoGroup:
; BRUNO (1) ; BRUNO (1)
db "BRUNO@", TRAINERTYPE_MOVES db "BRUNO@", TRAINERTYPE_MOVES
@ -246,7 +235,6 @@ BrunoGroup:
db 46, MACHAMP, ROCK_SLIDE, FORESIGHT, VITAL_THROW, CROSS_CHOP db 46, MACHAMP, ROCK_SLIDE, FORESIGHT, VITAL_THROW, CROSS_CHOP
db -1 ; end db -1 ; end
KarenGroup: KarenGroup:
; KAREN (1) ; KAREN (1)
db "KAREN@", TRAINERTYPE_MOVES db "KAREN@", TRAINERTYPE_MOVES
@ -257,7 +245,6 @@ KarenGroup:
db 47, HOUNDOOM, ROAR, PURSUIT, FLAMETHROWER, CRUNCH db 47, HOUNDOOM, ROAR, PURSUIT, FLAMETHROWER, CRUNCH
db -1 ; end db -1 ; end
KogaGroup: KogaGroup:
; KOGA (1) ; KOGA (1)
db "KOGA@", TRAINERTYPE_MOVES db "KOGA@", TRAINERTYPE_MOVES
@ -268,7 +255,6 @@ KogaGroup:
db 44, CROBAT, DOUBLE_TEAM, QUICK_ATTACK, WING_ATTACK, TOXIC db 44, CROBAT, DOUBLE_TEAM, QUICK_ATTACK, WING_ATTACK, TOXIC
db -1 ; end db -1 ; end
ChampionGroup: ChampionGroup:
; CHAMPION (1) ; CHAMPION (1)
db "LANCE@", TRAINERTYPE_MOVES db "LANCE@", TRAINERTYPE_MOVES
@ -280,7 +266,6 @@ ChampionGroup:
db 50, DRAGONITE, FIRE_BLAST, SAFEGUARD, OUTRAGE, HYPER_BEAM db 50, DRAGONITE, FIRE_BLAST, SAFEGUARD, OUTRAGE, HYPER_BEAM
db -1 ; end db -1 ; end
BrockGroup: BrockGroup:
; BROCK (1) ; BROCK (1)
db "BROCK@", TRAINERTYPE_MOVES db "BROCK@", TRAINERTYPE_MOVES
@ -291,7 +276,6 @@ BrockGroup:
db 42, KABUTOPS, SLASH, SURF, ENDURE, GIGA_DRAIN db 42, KABUTOPS, SLASH, SURF, ENDURE, GIGA_DRAIN
db -1 ; end db -1 ; end
MistyGroup: MistyGroup:
; MISTY (1) ; MISTY (1)
db "MISTY@", TRAINERTYPE_MOVES db "MISTY@", TRAINERTYPE_MOVES
@ -301,7 +285,6 @@ MistyGroup:
db 47, STARMIE, SURF, CONFUSE_RAY, RECOVER, ICE_BEAM db 47, STARMIE, SURF, CONFUSE_RAY, RECOVER, ICE_BEAM
db -1 ; end db -1 ; end
LtSurgeGroup: LtSurgeGroup:
; LT_SURGE (1) ; LT_SURGE (1)
db "LT.SURGE@", TRAINERTYPE_MOVES db "LT.SURGE@", TRAINERTYPE_MOVES
@ -312,7 +295,6 @@ LtSurgeGroup:
db 46, ELECTABUZZ, QUICK_ATTACK, THUNDERPUNCH, LIGHT_SCREEN, THUNDER db 46, ELECTABUZZ, QUICK_ATTACK, THUNDERPUNCH, LIGHT_SCREEN, THUNDER
db -1 ; end db -1 ; end
ScientistGroup: ScientistGroup:
; SCIENTIST (1) ; SCIENTIST (1)
db "ROSS@", TRAINERTYPE_NORMAL db "ROSS@", TRAINERTYPE_NORMAL
@ -344,7 +326,6 @@ ScientistGroup:
db 30, PORYGON, CONVERSION, CONVERSION2, RECOVER, TRI_ATTACK db 30, PORYGON, CONVERSION, CONVERSION2, RECOVER, TRI_ATTACK
db -1 ; end db -1 ; end
ErikaGroup: ErikaGroup:
; ERIKA (1) ; ERIKA (1)
db "ERIKA@", TRAINERTYPE_MOVES db "ERIKA@", TRAINERTYPE_MOVES
@ -354,7 +335,6 @@ ErikaGroup:
db 46, BELLOSSOM, SUNNY_DAY, SYNTHESIS, PETAL_DANCE, SOLARBEAM db 46, BELLOSSOM, SUNNY_DAY, SYNTHESIS, PETAL_DANCE, SOLARBEAM
db -1 ; end db -1 ; end
YoungsterGroup: YoungsterGroup:
; YOUNGSTER (1) ; YOUNGSTER (1)
db "JOEY@", TRAINERTYPE_NORMAL db "JOEY@", TRAINERTYPE_NORMAL
@ -434,7 +414,6 @@ YoungsterGroup:
db 37, RATICATE, HYPER_BEAM, QUICK_ATTACK, HYPER_FANG, PURSUIT db 37, RATICATE, HYPER_BEAM, QUICK_ATTACK, HYPER_FANG, PURSUIT
db -1 ; end db -1 ; end
SchoolboyGroup: SchoolboyGroup:
; SCHOOLBOY (1) ; SCHOOLBOY (1)
db "JACK@", TRAINERTYPE_NORMAL db "JACK@", TRAINERTYPE_NORMAL
@ -591,7 +570,6 @@ SchoolboyGroup:
db 38, MAGNETON, ZAP_CANNON, THUNDER_WAVE, LOCK_ON, SWIFT db 38, MAGNETON, ZAP_CANNON, THUNDER_WAVE, LOCK_ON, SWIFT
db -1 ; end db -1 ; end
BirdKeeperGroup: BirdKeeperGroup:
; BIRD_KEEPER (1) ; BIRD_KEEPER (1)
db "ROD@", TRAINERTYPE_NORMAL db "ROD@", TRAINERTYPE_NORMAL
@ -708,7 +686,6 @@ BirdKeeperGroup:
db 38, PIDGEOT, SWIFT, DETECT, STEEL_WING, FLY db 38, PIDGEOT, SWIFT, DETECT, STEEL_WING, FLY
db -1 ; end db -1 ; end
LassGroup: LassGroup:
; LASS (1) ; LASS (1)
db "CARRIE@", TRAINERTYPE_MOVES db "CARRIE@", TRAINERTYPE_MOVES
@ -814,7 +791,6 @@ LassGroup:
db 36, GOLDUCK, DISABLE, SURF, PSYCHIC_M, SCREECH db 36, GOLDUCK, DISABLE, SURF, PSYCHIC_M, SCREECH
db -1 ; end db -1 ; end
JanineGroup: JanineGroup:
; JANINE (1) ; JANINE (1)
db "JANINE@", TRAINERTYPE_MOVES db "JANINE@", TRAINERTYPE_MOVES
@ -825,7 +801,6 @@ JanineGroup:
db 39, VENOMOTH, FORESIGHT, DOUBLE_TEAM, GUST, PSYCHIC_M db 39, VENOMOTH, FORESIGHT, DOUBLE_TEAM, GUST, PSYCHIC_M
db -1 ; end db -1 ; end
CooltrainerMGroup: CooltrainerMGroup:
; COOLTRAINERM (1) ; COOLTRAINERM (1)
db "NICK@", TRAINERTYPE_MOVES db "NICK@", TRAINERTYPE_MOVES
@ -956,7 +931,6 @@ CooltrainerMGroup:
db 37, DRAGONAIR, WRAP, SURF, DRAGON_RAGE, SLAM db 37, DRAGONAIR, WRAP, SURF, DRAGON_RAGE, SLAM
db -1 ; end db -1 ; end
CooltrainerFGroup: CooltrainerFGroup:
; COOLTRAINERF (1) ; COOLTRAINERF (1)
db "GWEN@", TRAINERTYPE_NORMAL db "GWEN@", TRAINERTYPE_NORMAL
@ -1088,7 +1062,6 @@ CooltrainerFGroup:
db 35, SEADRA, SWIFT, LEER, WATERFALL, TWISTER db 35, SEADRA, SWIFT, LEER, WATERFALL, TWISTER
db -1 ; end db -1 ; end
BeautyGroup: BeautyGroup:
; BEAUTY (1) ; BEAUTY (1)
db "VICTORIA@", TRAINERTYPE_NORMAL db "VICTORIA@", TRAINERTYPE_NORMAL
@ -1184,7 +1157,6 @@ BeautyGroup:
db 19, CORSOLA db 19, CORSOLA
db -1 ; end db -1 ; end
PokemaniacGroup: PokemaniacGroup:
; POKEMANIAC (1) ; POKEMANIAC (1)
db "LARRY@", TRAINERTYPE_NORMAL db "LARRY@", TRAINERTYPE_NORMAL
@ -1266,7 +1238,6 @@ PokemaniacGroup:
db 17, NIDOQUEEN db 17, NIDOQUEEN
db -1 ; end db -1 ; end
GruntMGroup: GruntMGroup:
; GRUNTM (1) ; GRUNTM (1)
db "GRUNT@", TRAINERTYPE_NORMAL db "GRUNT@", TRAINERTYPE_NORMAL
@ -1458,7 +1429,6 @@ GruntMGroup:
db 30, GOLBAT db 30, GOLBAT
db -1 ; end db -1 ; end
GentlemanGroup: GentlemanGroup:
; GENTLEMAN (1) ; GENTLEMAN (1)
db "PRESTON@", TRAINERTYPE_NORMAL db "PRESTON@", TRAINERTYPE_NORMAL
@ -1487,7 +1457,6 @@ GentlemanGroup:
db 20, NOCTOWL db 20, NOCTOWL
db -1 ; end db -1 ; end
SkierGroup: SkierGroup:
; SKIER (1) ; SKIER (1)
db "ROXANNE@", TRAINERTYPE_NORMAL db "ROXANNE@", TRAINERTYPE_NORMAL
@ -1499,7 +1468,6 @@ SkierGroup:
db 28, DEWGONG db 28, DEWGONG
db -1 ; end db -1 ; end
TeacherGroup: TeacherGroup:
; TEACHER (1) ; TEACHER (1)
db "COLETTE@", TRAINERTYPE_NORMAL db "COLETTE@", TRAINERTYPE_NORMAL
@ -1517,7 +1485,6 @@ TeacherGroup:
db 35, JIGGLYPUFF db 35, JIGGLYPUFF
db -1 ; end db -1 ; end
SabrinaGroup: SabrinaGroup:
; SABRINA (1) ; SABRINA (1)
db "SABRINA@", TRAINERTYPE_MOVES db "SABRINA@", TRAINERTYPE_MOVES
@ -1526,7 +1493,6 @@ SabrinaGroup:
db 48, ALAKAZAM, RECOVER, FUTURE_SIGHT, PSYCHIC_M, REFLECT db 48, ALAKAZAM, RECOVER, FUTURE_SIGHT, PSYCHIC_M, REFLECT
db -1 ; end db -1 ; end
BugCatcherGroup: BugCatcherGroup:
; BUG_CATCHER (1) ; BUG_CATCHER (1)
db "DON@", TRAINERTYPE_NORMAL db "DON@", TRAINERTYPE_NORMAL
@ -1647,7 +1613,6 @@ BugCatcherGroup:
db 10, PARAS db 10, PARAS
db -1 ; end db -1 ; end
FisherGroup: FisherGroup:
; FISHER (1) ; FISHER (1)
db "JUSTIN@", TRAINERTYPE_NORMAL db "JUSTIN@", TRAINERTYPE_NORMAL
@ -1811,7 +1776,6 @@ FisherGroup:
db 37, QWILFISH, ROLLOUT, SURF, PIN_MISSILE, TAKE_DOWN db 37, QWILFISH, ROLLOUT, SURF, PIN_MISSILE, TAKE_DOWN
db -1 ; end db -1 ; end
SwimmerMGroup: SwimmerMGroup:
; SWIMMERM (1) ; SWIMMERM (1)
db "HAROLD@", TRAINERTYPE_NORMAL db "HAROLD@", TRAINERTYPE_NORMAL
@ -1953,7 +1917,6 @@ SwimmerMGroup:
db 35, SEADRA db 35, SEADRA
db -1 ; end db -1 ; end
SwimmerFGroup: SwimmerFGroup:
; SWIMMERF (1) ; SWIMMERF (1)
db "ELAINE@", TRAINERTYPE_NORMAL db "ELAINE@", TRAINERTYPE_NORMAL
@ -2063,7 +2026,6 @@ SwimmerFGroup:
db 35, SEAKING db 35, SEAKING
db -1 ; end db -1 ; end
SailorGroup: SailorGroup:
; SAILOR (1) ; SAILOR (1)
db "EUGENE@", TRAINERTYPE_NORMAL db "EUGENE@", TRAINERTYPE_NORMAL
@ -2145,7 +2107,6 @@ SailorGroup:
db 38, POLIWRATH, SURF, STRENGTH, ICE_PUNCH, SUBMISSION db 38, POLIWRATH, SURF, STRENGTH, ICE_PUNCH, SUBMISSION
db -1 ; end db -1 ; end
SuperNerdGroup: SuperNerdGroup:
; SUPER_NERD (1) ; SUPER_NERD (1)
db "STAN@", TRAINERTYPE_NORMAL db "STAN@", TRAINERTYPE_NORMAL
@ -2231,7 +2192,6 @@ SuperNerdGroup:
db 19, SLOWPOKE, CURSE, WATER_GUN, GROWL, STRENGTH db 19, SLOWPOKE, CURSE, WATER_GUN, GROWL, STRENGTH
db -1 ; end db -1 ; end
Rival2Group: Rival2Group:
; RIVAL2 (1) ; RIVAL2 (1)
db "?@", TRAINERTYPE_MOVES db "?@", TRAINERTYPE_MOVES
@ -2293,7 +2253,6 @@ Rival2Group:
db 50, FERALIGATR, SURF, RAIN_DANCE, SLASH, SCREECH db 50, FERALIGATR, SURF, RAIN_DANCE, SLASH, SCREECH
db -1 ; end db -1 ; end
GuitaristGroup: GuitaristGroup:
; GUITARIST (1) ; GUITARIST (1)
db "CLYDE@", TRAINERTYPE_NORMAL db "CLYDE@", TRAINERTYPE_NORMAL
@ -2308,7 +2267,6 @@ GuitaristGroup:
db 32, MAGNEMITE db 32, MAGNEMITE
db -1 ; end db -1 ; end
HikerGroup: HikerGroup:
; HIKER (1) ; HIKER (1)
db "ANTHONY@", TRAINERTYPE_NORMAL db "ANTHONY@", TRAINERTYPE_NORMAL
@ -2454,7 +2412,6 @@ HikerGroup:
db 34, MACHOKE, KARATE_CHOP, VITAL_THROW, HEADBUTT, DIG db 34, MACHOKE, KARATE_CHOP, VITAL_THROW, HEADBUTT, DIG
db -1 ; end db -1 ; end
BikerGroup: BikerGroup:
; BIKER (1) ; BIKER (1)
db "BENNY@", TRAINERTYPE_NORMAL db "BENNY@", TRAINERTYPE_NORMAL
@ -2514,7 +2471,6 @@ BikerGroup:
db 32, WEEZING db 32, WEEZING
db -1 ; end db -1 ; end
BlaineGroup: BlaineGroup:
; BLAINE (1) ; BLAINE (1)
db "BLAINE@", TRAINERTYPE_MOVES db "BLAINE@", TRAINERTYPE_MOVES
@ -2523,7 +2479,6 @@ BlaineGroup:
db 50, RAPIDASH, QUICK_ATTACK, FIRE_SPIN, FURY_ATTACK, FIRE_BLAST db 50, RAPIDASH, QUICK_ATTACK, FIRE_SPIN, FURY_ATTACK, FIRE_BLAST
db -1 ; end db -1 ; end
BurglarGroup: BurglarGroup:
; BURGLAR (1) ; BURGLAR (1)
db "DUNCAN@", TRAINERTYPE_NORMAL db "DUNCAN@", TRAINERTYPE_NORMAL
@ -2546,7 +2501,6 @@ BurglarGroup:
db 30, KOFFING db 30, KOFFING
db -1 ; end db -1 ; end
FirebreatherGroup: FirebreatherGroup:
; FIREBREATHER (1) ; FIREBREATHER (1)
db "OTIS@", TRAINERTYPE_NORMAL db "OTIS@", TRAINERTYPE_NORMAL
@ -2597,7 +2551,6 @@ FirebreatherGroup:
db 28, KOFFING db 28, KOFFING
db -1 ; end db -1 ; end
JugglerGroup: JugglerGroup:
; JUGGLER (1) ; JUGGLER (1)
db "IRWIN@", TRAINERTYPE_NORMAL db "IRWIN@", TRAINERTYPE_NORMAL
@ -2646,7 +2599,6 @@ JugglerGroup:
db 30, ELECTRODE db 30, ELECTRODE
db -1 ; end db -1 ; end
BlackbeltGroup: BlackbeltGroup:
; BLACKBELT_T (1) ; BLACKBELT_T (1)
db "KENJI@", TRAINERTYPE_NORMAL db "KENJI@", TRAINERTYPE_NORMAL
@ -2705,7 +2657,6 @@ BlackbeltGroup:
db 34, MACHOKE db 34, MACHOKE
db -1 ; end db -1 ; end
ExecutiveMGroup: ExecutiveMGroup:
; EXECUTIVEM (1) ; EXECUTIVEM (1)
db "EXECUTIVE@", TRAINERTYPE_MOVES db "EXECUTIVE@", TRAINERTYPE_MOVES
@ -2736,7 +2687,6 @@ ExecutiveMGroup:
db 22, KOFFING db 22, KOFFING
db -1 ; end db -1 ; end
PsychicGroup: PsychicGroup:
; PSYCHIC_T (1) ; PSYCHIC_T (1)
db "NATHAN@", TRAINERTYPE_NORMAL db "NATHAN@", TRAINERTYPE_NORMAL
@ -2809,7 +2759,6 @@ PsychicGroup:
db 33, HYPNO db 33, HYPNO
db -1 ; end db -1 ; end
PicnickerGroup: PicnickerGroup:
; PICNICKER (1) ; PICNICKER (1)
db "LIZ@", TRAINERTYPE_NORMAL db "LIZ@", TRAINERTYPE_NORMAL
@ -2965,7 +2914,6 @@ PicnickerGroup:
db 43, CLEFAIRY, METRONOME, ENCORE, MOONLIGHT, MINIMIZE db 43, CLEFAIRY, METRONOME, ENCORE, MOONLIGHT, MINIMIZE
db -1 ; end db -1 ; end
CamperGroup: CamperGroup:
; CAMPER (1) ; CAMPER (1)
db "ROLAND@", TRAINERTYPE_NORMAL db "ROLAND@", TRAINERTYPE_NORMAL
@ -3109,7 +3057,6 @@ CamperGroup:
db 30, TAUROS db 30, TAUROS
db -1 ; end db -1 ; end
ExecutiveFGroup: ExecutiveFGroup:
; EXECUTIVEF (1) ; EXECUTIVEF (1)
db "EXECUTIVE@", TRAINERTYPE_MOVES db "EXECUTIVE@", TRAINERTYPE_MOVES
@ -3125,7 +3072,6 @@ ExecutiveFGroup:
db 25, MURKROW, PECK, PURSUIT, HAZE, NO_MOVE db 25, MURKROW, PECK, PURSUIT, HAZE, NO_MOVE
db -1 ; end db -1 ; end
SageGroup: SageGroup:
; SAGE (1) ; SAGE (1)
db "CHOW@", TRAINERTYPE_NORMAL db "CHOW@", TRAINERTYPE_NORMAL
@ -3203,7 +3149,6 @@ SageGroup:
db 32, VAPOREON db 32, VAPOREON
db -1 ; end db -1 ; end
MediumGroup: MediumGroup:
; MEDIUM (1) ; MEDIUM (1)
db "MARTHA@", TRAINERTYPE_NORMAL db "MARTHA@", TRAINERTYPE_NORMAL
@ -3245,7 +3190,6 @@ MediumGroup:
db 36, SLOWBRO db 36, SLOWBRO
db -1 ; end db -1 ; end
BoarderGroup: BoarderGroup:
; BOARDER (1) ; BOARDER (1)
db "RONALD@", TRAINERTYPE_NORMAL db "RONALD@", TRAINERTYPE_NORMAL
@ -3267,7 +3211,6 @@ BoarderGroup:
db 24, SHELLDER db 24, SHELLDER
db -1 ; end db -1 ; end
PokefanMGroup: PokefanMGroup:
; POKEFANM (1) ; POKEFANM (1)
db "WILLIAM@", TRAINERTYPE_ITEM db "WILLIAM@", TRAINERTYPE_ITEM
@ -3350,7 +3293,6 @@ PokefanMGroup:
db 35, TEDDIURSA, BERRY db 35, TEDDIURSA, BERRY
db -1 ; end db -1 ; end
KimonoGirlGroup: KimonoGirlGroup:
; KIMONO_GIRL (1) ; KIMONO_GIRL (1)
db "NAOKO@", TRAINERTYPE_NORMAL db "NAOKO@", TRAINERTYPE_NORMAL
@ -3384,7 +3326,6 @@ KimonoGirlGroup:
db 17, JOLTEON db 17, JOLTEON
db -1 ; end db -1 ; end
TwinsGroup: TwinsGroup:
; TWINS (1) ; TWINS (1)
db "AMY & MAY@", TRAINERTYPE_NORMAL db "AMY & MAY@", TRAINERTYPE_NORMAL
@ -3446,7 +3387,6 @@ TwinsGroup:
db 38, DRATINI, THUNDER_WAVE, TWISTER, FLAMETHROWER, HEADBUTT db 38, DRATINI, THUNDER_WAVE, TWISTER, FLAMETHROWER, HEADBUTT
db -1 ; end db -1 ; end
PokefanFGroup: PokefanFGroup:
; POKEFANF (1) ; POKEFANF (1)
db "BEVERLY@", TRAINERTYPE_ITEM db "BEVERLY@", TRAINERTYPE_ITEM
@ -3482,7 +3422,6 @@ PokefanFGroup:
db 16, MEOWTH, BERRY db 16, MEOWTH, BERRY
db -1 ; end db -1 ; end
RedGroup: RedGroup:
; RED (1) ; RED (1)
db "RED@", TRAINERTYPE_MOVES db "RED@", TRAINERTYPE_MOVES
@ -3494,7 +3433,6 @@ RedGroup:
db 77, BLASTOISE, RAIN_DANCE, SURF, BLIZZARD, WHIRLPOOL db 77, BLASTOISE, RAIN_DANCE, SURF, BLIZZARD, WHIRLPOOL
db -1 ; end db -1 ; end
BlueGroup: BlueGroup:
; BLUE (1) ; BLUE (1)
db "BLUE@", TRAINERTYPE_MOVES db "BLUE@", TRAINERTYPE_MOVES
@ -3506,7 +3444,6 @@ BlueGroup:
db 58, ARCANINE, ROAR, SWIFT, FLAMETHROWER, EXTREMESPEED db 58, ARCANINE, ROAR, SWIFT, FLAMETHROWER, EXTREMESPEED
db -1 ; end db -1 ; end
OfficerGroup: OfficerGroup:
; OFFICER (1) ; OFFICER (1)
db "KEITH@", TRAINERTYPE_NORMAL db "KEITH@", TRAINERTYPE_NORMAL
@ -3519,7 +3456,6 @@ OfficerGroup:
db 14, GROWLITHE db 14, GROWLITHE
db -1 ; end db -1 ; end
GruntFGroup: GruntFGroup:
; GRUNTF (1) ; GRUNTF (1)
db "GRUNT@", TRAINERTYPE_NORMAL db "GRUNT@", TRAINERTYPE_NORMAL
@ -3552,7 +3488,6 @@ GruntFGroup:
db 18, GLOOM, ABSORB, SWEET_SCENT, STUN_SPORE, SLEEP_POWDER db 18, GLOOM, ABSORB, SWEET_SCENT, STUN_SPORE, SLEEP_POWDER
db -1 ; end db -1 ; end
MysticalmanGroup: MysticalmanGroup:
; MYSTICALMAN (1) ; MYSTICALMAN (1)
db "EUSINE@", TRAINERTYPE_MOVES db "EUSINE@", TRAINERTYPE_MOVES

View File

@ -48,4 +48,3 @@ Ghost: db "GHOST@"
Steel: db "STEEL@" Steel: db "STEEL@"
Dragon: db "DRAGON@" Dragon: db "DRAGON@"
Dark: db "DARK@" Dark: db "DARK@"

View File

@ -204,7 +204,6 @@ FishGroups:
db 90 percent + 1, MAGIKARP, 40 db 90 percent + 1, MAGIKARP, 40
db 100 percent, REMORAID, 40 db 100 percent, REMORAID, 40
TimeFishGroups: TimeFishGroups:
; day nite ; day nite
db CORSOLA, 20, STARYU, 20 ; 0 db CORSOLA, 20, STARYU, 20 ; 0

View File

@ -84,6 +84,7 @@ In [gfx/pics.asm](/gfx/pics.asm):
; PokemonPicPointers and UnownPicPointers are assumed to start at the same ; PokemonPicPointers and UnownPicPointers are assumed to start at the same
; address, but in different banks. This is enforced in pokecrystal.link. ; address, but in different banks. This is enforced in pokecrystal.link.
SECTION "Pic Pointers", ROMX SECTION "Pic Pointers", ROMX
INCLUDE "data/pokemon/pic_pointers.asm" INCLUDE "data/pokemon/pic_pointers.asm"

View File

@ -145,13 +145,11 @@ SwitchSometimes:
ld [wEnemySwitchMonIndex], a ld [wEnemySwitchMonIndex], a
jp AI_TrySwitch jp AI_TrySwitch
CheckSubstatusCantRun: CheckSubstatusCantRun:
ld a, [wEnemySubStatus5] ld a, [wEnemySubStatus5]
bit SUBSTATUS_CANT_RUN, a bit SUBSTATUS_CANT_RUN, a
ret ret
AI_TryItem: AI_TryItem:
; items are not allowed in the BattleTower ; items are not allowed in the BattleTower
ld a, [wInBattleTowerBattle] ld a, [wInBattleTowerBattle]
@ -238,7 +236,6 @@ AI_TryItem:
scf scf
ret ret
.IsHighestLevel: .IsHighestLevel:
ld a, [wOTPartyCount] ld a, [wOTPartyCount]
ld d, a ld d, a
@ -270,7 +267,6 @@ AI_TryItem:
scf scf
ret ret
AI_Items: AI_Items:
dbw FULL_RESTORE, .FullRestore dbw FULL_RESTORE, .FullRestore
dbw MAX_POTION, .MaxPotion dbw MAX_POTION, .MaxPotion
@ -520,7 +516,6 @@ AI_Items:
and a and a
ret ret
AIUpdateHUD: AIUpdateHUD:
call UpdateEnemyMonInParty call UpdateEnemyMonInParty
farcall UpdateEnemyHUD farcall UpdateEnemyHUD
@ -538,7 +533,6 @@ AIUsedItemSound:
pop de pop de
ret ret
EnemyUsedFullHeal: EnemyUsedFullHeal:
call AIUsedItemSound call AIUsedItemSound
call AI_HealStatus call AI_HealStatus
@ -642,7 +636,6 @@ EnemyPotionFinish:
predef AnimateHPBar predef AnimateHPBar
jp AIUpdateHUD jp AIUpdateHUD
AI_TrySwitch: AI_TrySwitch:
; Determine whether the AI can switch based on how many Pokemon are still alive. ; Determine whether the AI can switch based on how many Pokemon are still alive.
; If it can switch, it will. ; If it can switch, it will.
@ -805,7 +798,6 @@ EnemyUsedXSpecial:
ld b, SP_ATTACK ld b, SP_ATTACK
ld a, X_SPECIAL ld a, X_SPECIAL
; Parameter ; Parameter
; a = ITEM_CONSTANT ; a = ITEM_CONSTANT
; b = BATTLE_CONSTANT (ATTACK, DEFENSE, SPEED, SP_ATTACK, SP_DEFENSE, ACCURACY, EVASION) ; b = BATTLE_CONSTANT (ATTACK, DEFENSE, SPEED, SP_ATTACK, SP_DEFENSE, ACCURACY, EVASION)
@ -817,7 +809,6 @@ EnemyUsedXItem:
farcall CheckIfStatCanBeRaised farcall CheckIfStatCanBeRaised
jp AIUpdateHUD jp AIUpdateHUD
; Parameter ; Parameter
; a = ITEM_CONSTANT ; a = ITEM_CONSTANT
PrintText_UsedItemOn_AND_AIUpdateHUD: PrintText_UsedItemOn_AND_AIUpdateHUD:

View File

@ -15,7 +15,6 @@ AIChooseMove:
farcall CheckEnemyLockedIn farcall CheckEnemyLockedIn
ret nz ret nz
; The default score is 20. Unusable moves are given a score of 80. ; The default score is 20. Unusable moves are given a score of 80.
ld a, 20 ld a, 20
ld hl, wBuffer1 ld hl, wBuffer1
@ -61,7 +60,6 @@ AIChooseMove:
ld [hl], 80 ld [hl], 80
jr .CheckMovePP jr .CheckMovePP
; Apply AI scoring layers depending on the trainer class. ; Apply AI scoring layers depending on the trainer class.
.ApplyLayers: .ApplyLayers:
ld hl, TrainerClassAttributes + TRNATTR_AI_MOVE_WEIGHTS ld hl, TrainerClassAttributes + TRNATTR_AI_MOVE_WEIGHTS
@ -199,7 +197,6 @@ AIChooseMove:
ld [wCurEnemyMoveNum], a ld [wCurEnemyMoveNum], a
ret ret
AIScoringPointers: AIScoringPointers:
; entries correspond to AI_* constants ; entries correspond to AI_* constants
dw AI_Basic dw AI_Basic

View File

@ -65,7 +65,6 @@ AI_Basic:
INCLUDE "data/battle/ai/status_only_effects.asm" INCLUDE "data/battle/ai/status_only_effects.asm"
AI_Setup: AI_Setup:
; Use stat-modifying moves on turn 1. ; Use stat-modifying moves on turn 1.
@ -141,7 +140,6 @@ AI_Setup:
jr .checkmove jr .checkmove
AI_Types: AI_Types:
; Dismiss any move that the player is immune to. ; Dismiss any move that the player is immune to.
; Encourage super-effective moves. ; Encourage super-effective moves.
@ -232,7 +230,6 @@ AI_Types:
jr .checkmove jr .checkmove
AI_Offensive: AI_Offensive:
; Greatly discourage non-damaging moves. ; Greatly discourage non-damaging moves.
@ -260,7 +257,6 @@ AI_Offensive:
jr .checkmove jr .checkmove
AI_Smart: AI_Smart:
; Context-specific scoring. ; Context-specific scoring.
@ -392,7 +388,6 @@ AI_Smart:
dbw EFFECT_FLY, AI_Smart_Fly dbw EFFECT_FLY, AI_Smart_Fly
db -1 ; end db -1 ; end
AI_Smart_Sleep: AI_Smart_Sleep:
; Greatly encourage sleep inducing moves if the enemy has either Dream Eater or Nightmare. ; Greatly encourage sleep inducing moves if the enemy has either Dream Eater or Nightmare.
; 50% chance to greatly encourage sleep inducing moves otherwise. ; 50% chance to greatly encourage sleep inducing moves otherwise.
@ -412,7 +407,6 @@ AI_Smart_Sleep:
dec [hl] dec [hl]
ret ret
AI_Smart_LeechHit: AI_Smart_LeechHit:
push hl push hl
ld a, 1 ld a, 1
@ -447,7 +441,6 @@ AI_Smart_LeechHit:
inc [hl] inc [hl]
ret ret
AI_Smart_LockOn: AI_Smart_LockOn:
ld a, [wPlayerSubStatus5] ld a, [wPlayerSubStatus5]
bit SUBSTATUS_LOCK_ON, a bit SUBSTATUS_LOCK_ON, a
@ -552,7 +545,6 @@ AI_Smart_LockOn:
pop hl pop hl
jp AIDiscourageMove jp AIDiscourageMove
AI_Smart_Selfdestruct: AI_Smart_Selfdestruct:
; Selfdestruct, Explosion ; Selfdestruct, Explosion
@ -589,7 +581,6 @@ AI_Smart_Selfdestruct:
inc [hl] inc [hl]
ret ret
AI_Smart_DreamEater: AI_Smart_DreamEater:
; 90% chance to greatly encourage this move. ; 90% chance to greatly encourage this move.
; The AI_Basic layer will make sure that ; The AI_Basic layer will make sure that
@ -602,9 +593,7 @@ AI_Smart_DreamEater:
dec [hl] dec [hl]
ret ret
AI_Smart_EvasionUp: AI_Smart_EvasionUp:
; Dismiss this move if enemy's evasion can't raise anymore. ; Dismiss this move if enemy's evasion can't raise anymore.
ld a, [wEnemyEvaLevel] ld a, [wEnemyEvaLevel]
cp $d cp $d
@ -688,7 +677,6 @@ AI_Smart_EvasionUp:
bit SUBSTATUS_ROLLOUT, a bit SUBSTATUS_ROLLOUT, a
jr nz, .asm_388ef jr nz, .asm_388ef
.asm_38936 .asm_38936
inc [hl] inc [hl]
ret ret
@ -714,7 +702,6 @@ AI_Smart_EvasionUp:
dec [hl] dec [hl]
ret ret
AI_Smart_AlwaysHit: AI_Smart_AlwaysHit:
; 80% chance to greatly encourage this move if either... ; 80% chance to greatly encourage this move if either...
@ -736,9 +723,7 @@ AI_Smart_AlwaysHit:
dec [hl] dec [hl]
ret ret
AI_Smart_MirrorMove: AI_Smart_MirrorMove:
; If the player did not use any move last turn... ; If the player did not use any move last turn...
ld a, [wLastPlayerCounterMove] ld a, [wLastPlayerCounterMove]
and a and a
@ -779,9 +764,7 @@ AI_Smart_MirrorMove:
dec [hl] dec [hl]
ret ret
AI_Smart_AccuracyDown: AI_Smart_AccuracyDown:
; If player's HP is full... ; If player's HP is full...
call AICheckPlayerMaxHP call AICheckPlayerMaxHP
jr nc, .asm_389a0 jr nc, .asm_389a0
@ -885,9 +868,7 @@ AI_Smart_AccuracyDown:
dec [hl] dec [hl]
ret ret
AI_Smart_ResetStats: AI_Smart_ResetStats:
; 85% chance to encourage this move if any of enemy's stat levels is lower than -2. ; 85% chance to encourage this move if any of enemy's stat levels is lower than -2.
push hl push hl
ld hl, wEnemyAtkLevel ld hl, wEnemyAtkLevel
@ -927,7 +908,6 @@ AI_Smart_ResetStats:
inc [hl] inc [hl]
ret ret
AI_Smart_Bide: AI_Smart_Bide:
; 90% chance to discourage this move unless enemy's HP is full. ; 90% chance to discourage this move unless enemy's HP is full.
@ -939,7 +919,6 @@ AI_Smart_Bide:
inc [hl] inc [hl]
ret ret
AI_Smart_ForceSwitch: AI_Smart_ForceSwitch:
; Whirlwind, Roar. ; Whirlwind, Roar.
@ -956,7 +935,6 @@ AI_Smart_ForceSwitch:
inc [hl] inc [hl]
ret ret
AI_Smart_Heal: AI_Smart_Heal:
AI_Smart_MorningSun: AI_Smart_MorningSun:
AI_Smart_Synthesis: AI_Smart_Synthesis:
@ -980,7 +958,6 @@ AI_Smart_Moonlight:
dec [hl] dec [hl]
ret ret
AI_Smart_Toxic: AI_Smart_Toxic:
AI_Smart_LeechSeed: AI_Smart_LeechSeed:
; Discourage this move if player's HP is below 50%. ; Discourage this move if player's HP is below 50%.
@ -990,7 +967,6 @@ AI_Smart_LeechSeed:
inc [hl] inc [hl]
ret ret
AI_Smart_LightScreen: AI_Smart_LightScreen:
AI_Smart_Reflect: AI_Smart_Reflect:
; Over 90% chance to discourage this move unless enemy's HP is full. ; Over 90% chance to discourage this move unless enemy's HP is full.
@ -1003,7 +979,6 @@ AI_Smart_Reflect:
inc [hl] inc [hl]
ret ret
AI_Smart_Ohko: AI_Smart_Ohko:
; Dismiss this move if player's level is higher than enemy's level. ; Dismiss this move if player's level is higher than enemy's level.
; Else, discourage this move is player's HP is below 50%. ; Else, discourage this move is player's HP is below 50%.
@ -1018,7 +993,6 @@ AI_Smart_Ohko:
inc [hl] inc [hl]
ret ret
AI_Smart_TrapTarget: AI_Smart_TrapTarget:
; Bind, Wrap, Fire Spin, Clamp ; Bind, Wrap, Fire Spin, Clamp
@ -1058,7 +1032,6 @@ AI_Smart_TrapTarget:
dec [hl] dec [hl]
ret ret
AI_Smart_RazorWind: AI_Smart_RazorWind:
AI_Smart_Unused2B: AI_Smart_Unused2B:
ld a, [wEnemySubStatus1] ld a, [wEnemySubStatus1]
@ -1112,9 +1085,7 @@ AI_Smart_Unused2B:
ld [hl], a ld [hl], a
ret ret
AI_Smart_Confuse: AI_Smart_Confuse:
; 90% chance to discourage this move if player's HP is between 25% and 50%. ; 90% chance to discourage this move if player's HP is between 25% and 50%.
call AICheckPlayerHalfHP call AICheckPlayerHalfHP
ret c ret c
@ -1130,9 +1101,7 @@ AI_Smart_Confuse:
inc [hl] inc [hl]
ret ret
AI_Smart_SpDefenseUp2: AI_Smart_SpDefenseUp2:
; Discourage this move if enemy's HP is lower than 50%. ; Discourage this move if enemy's HP is lower than 50%.
call AICheckEnemyHalfHP call AICheckEnemyHalfHP
jr nc, .asm_38b10 jr nc, .asm_38b10
@ -1165,7 +1134,6 @@ AI_Smart_SpDefenseUp2:
inc [hl] inc [hl]
ret ret
AI_Smart_Fly: AI_Smart_Fly:
; Fly, Dig ; Fly, Dig
@ -1184,7 +1152,6 @@ AI_Smart_Fly:
dec [hl] dec [hl]
ret ret
AI_Smart_SuperFang: AI_Smart_SuperFang:
; Discourage this move if player's HP is below 25%. ; Discourage this move if player's HP is below 25%.
@ -1193,9 +1160,7 @@ AI_Smart_SuperFang:
inc [hl] inc [hl]
ret ret
AI_Smart_Paralyze: AI_Smart_Paralyze:
; 50% chance to discourage this move if player's HP is below 25%. ; 50% chance to discourage this move if player's HP is below 25%.
call AICheckPlayerQuarterHP call AICheckPlayerQuarterHP
jr nc, .asm_38b3a jr nc, .asm_38b3a
@ -1218,7 +1183,6 @@ AI_Smart_Paralyze:
inc [hl] inc [hl]
ret ret
AI_Smart_SpeedDownHit: AI_Smart_SpeedDownHit:
; Icy Wind ; Icy Wind
@ -1244,7 +1208,6 @@ AI_Smart_SpeedDownHit:
dec [hl] dec [hl]
ret ret
AI_Smart_Substitute: AI_Smart_Substitute:
; Dismiss this move if enemy's HP is below 50%. ; Dismiss this move if enemy's HP is below 50%.
@ -1252,7 +1215,6 @@ AI_Smart_Substitute:
ret c ret c
jp AIDiscourageMove jp AIDiscourageMove
AI_Smart_HyperBeam: AI_Smart_HyperBeam:
call AICheckEnemyHalfHP call AICheckEnemyHalfHP
jr c, .asm_38b72 jr c, .asm_38b72
@ -1276,7 +1238,6 @@ AI_Smart_HyperBeam:
inc [hl] inc [hl]
ret ret
AI_Smart_Rage: AI_Smart_Rage:
ld a, [wEnemySubStatus4] ld a, [wEnemySubStatus4]
bit SUBSTATUS_RAGE, a bit SUBSTATUS_RAGE, a
@ -1315,7 +1276,6 @@ AI_Smart_Rage:
inc [hl] inc [hl]
ret ret
AI_Smart_Mimic: AI_Smart_Mimic:
ld a, [wLastPlayerCounterMove] ld a, [wLastPlayerCounterMove]
and a and a
@ -1365,7 +1325,6 @@ AI_Smart_Mimic:
inc [hl] inc [hl]
ret ret
AI_Smart_Counter: AI_Smart_Counter:
push hl push hl
ld hl, wPlayerUsedMoves ld hl, wPlayerUsedMoves
@ -1415,7 +1374,6 @@ AI_Smart_Counter:
cp SPECIAL cp SPECIAL
jr nc, .asm_38c38 jr nc, .asm_38c38
.asm_38c30 .asm_38c30
call Random call Random
cp 39 percent + 1 cp 39 percent + 1
@ -1430,7 +1388,6 @@ AI_Smart_Counter:
inc [hl] inc [hl]
ret ret
AI_Smart_Encore: AI_Smart_Encore:
call AICompareSpeed call AICompareSpeed
jr nc, .asm_38c81 jr nc, .asm_38c81
@ -1484,7 +1441,6 @@ AI_Smart_Encore:
INCLUDE "data/battle/ai/encore_moves.asm" INCLUDE "data/battle/ai/encore_moves.asm"
AI_Smart_PainSplit: AI_Smart_PainSplit:
; Discourage this move if [enemy's current HP * 2 > player's current HP]. ; Discourage this move if [enemy's current HP * 2 > player's current HP].
@ -1505,7 +1461,6 @@ AI_Smart_PainSplit:
inc [hl] inc [hl]
ret ret
AI_Smart_Snore: AI_Smart_Snore:
AI_Smart_SleepTalk: AI_Smart_SleepTalk:
; Greatly encourage this move if enemy is fast asleep. ; Greatly encourage this move if enemy is fast asleep.
@ -1527,7 +1482,6 @@ AI_Smart_SleepTalk:
inc [hl] inc [hl]
ret ret
AI_Smart_DefrostOpponent: AI_Smart_DefrostOpponent:
; Greatly encourage this move if enemy is frozen. ; Greatly encourage this move if enemy is frozen.
; No move has EFFECT_DEFROST_OPPONENT, so this layer is unused. ; No move has EFFECT_DEFROST_OPPONENT, so this layer is unused.
@ -1540,7 +1494,6 @@ AI_Smart_DefrostOpponent:
dec [hl] dec [hl]
ret ret
AI_Smart_Spite: AI_Smart_Spite:
ld a, [wLastPlayerCounterMove] ld a, [wLastPlayerCounterMove]
and a and a
@ -1597,11 +1550,9 @@ AI_Smart_Spite:
dec [hl] dec [hl]
ret ret
Function_0x38d16 Function_0x38d16
jp AIDiscourageMove jp AIDiscourageMove
AI_Smart_DestinyBond: AI_Smart_DestinyBond:
AI_Smart_Reversal: AI_Smart_Reversal:
AI_Smart_SkullBash: AI_Smart_SkullBash:
@ -1612,7 +1563,6 @@ AI_Smart_SkullBash:
inc [hl] inc [hl]
ret ret
AI_Smart_HealBell: AI_Smart_HealBell:
; Dismiss this move if none of the opponent's Pokemon is statused. ; Dismiss this move if none of the opponent's Pokemon is statused.
; Encourage this move if the enemy is statused. ; Encourage this move if the enemy is statused.
@ -1670,7 +1620,6 @@ AI_Smart_HealBell:
jp AIDiscourageMove jp AIDiscourageMove
AI_Smart_PriorityHit: AI_Smart_PriorityHit:
call AICompareSpeed call AICompareSpeed
ret c ret c
@ -1702,7 +1651,6 @@ AI_Smart_PriorityHit:
dec [hl] dec [hl]
ret ret
AI_Smart_Thief: AI_Smart_Thief:
; Don't use Thief unless it's the only move available. ; Don't use Thief unless it's the only move available.
@ -1711,7 +1659,6 @@ AI_Smart_Thief:
ld [hl], a ld [hl], a
ret ret
AI_Smart_Conversion2: AI_Smart_Conversion2:
ld a, [wLastPlayerMove] ld a, [wLastPlayerMove]
and a and a
@ -1751,7 +1698,6 @@ AI_Smart_Conversion2:
inc [hl] inc [hl]
ret ret
AI_Smart_Disable: AI_Smart_Disable:
call AICompareSpeed call AICompareSpeed
jr nc, .asm_38df3 jr nc, .asm_38df3
@ -1783,7 +1729,6 @@ AI_Smart_Disable:
inc [hl] inc [hl]
ret ret
AI_Smart_MeanLook: AI_Smart_MeanLook:
call AICheckEnemyHalfHP call AICheckEnemyHalfHP
jr nc, .asm_38e24 jr nc, .asm_38e24
@ -1825,7 +1770,6 @@ AI_Smart_MeanLook:
dec [hl] dec [hl]
ret ret
AICheckLastPlayerMon: AICheckLastPlayerMon:
ld a, [wPartyCount] ld a, [wPartyCount]
ld b, a ld b, a
@ -1851,7 +1795,6 @@ AICheckLastPlayerMon:
ret ret
AI_Smart_Nightmare: AI_Smart_Nightmare:
; 50% chance to encourage this move. ; 50% chance to encourage this move.
; The AI_Basic layer will make sure that ; The AI_Basic layer will make sure that
@ -1862,7 +1805,6 @@ AI_Smart_Nightmare:
dec [hl] dec [hl]
ret ret
AI_Smart_FlameWheel: AI_Smart_FlameWheel:
; Use this move if the enemy is frozen. ; Use this move if the enemy is frozen.
@ -1874,7 +1816,6 @@ rept 5
endr endr
ret ret
AI_Smart_Curse: AI_Smart_Curse:
ld a, [wEnemyMonType1] ld a, [wEnemyMonType1]
cp GHOST cp GHOST
@ -1932,14 +1873,12 @@ AI_Smart_Curse:
jr .asm_38eb7 jr .asm_38eb7
.asm_38eb0 .asm_38eb0
push hl push hl
call AICheckLastPlayerMon call AICheckLastPlayerMon
pop hl pop hl
jr z, .asm_38ecb jr z, .asm_38ecb
.asm_38eb7 .asm_38eb7
call AICheckEnemyQuarterHP call AICheckEnemyQuarterHP
jp nc, .asm_38e90 jp nc, .asm_38e90
@ -1962,7 +1901,6 @@ AI_Smart_Curse:
dec [hl] dec [hl]
ret ret
AI_Smart_Protect: AI_Smart_Protect:
ld a, [wEnemyProtectCount] ld a, [wEnemyProtectCount]
and a and a
@ -2014,7 +1952,6 @@ AI_Smart_Protect:
inc [hl] inc [hl]
ret ret
AI_Smart_Foresight: AI_Smart_Foresight:
ld a, [wEnemyAccLevel] ld a, [wEnemyAccLevel]
cp $5 cp $5
@ -2044,7 +1981,6 @@ AI_Smart_Foresight:
dec [hl] dec [hl]
ret ret
AI_Smart_PerishSong: AI_Smart_PerishSong:
push hl push hl
callfar FindAliveEnemyMons callfar FindAliveEnemyMons
@ -2081,9 +2017,7 @@ AI_Smart_PerishSong:
ld [hl], a ld [hl], a
ret ret
AI_Smart_Sandstorm: AI_Smart_Sandstorm:
; Greatly discourage this move if the player is immune to Sandstorm damage. ; Greatly discourage this move if the player is immune to Sandstorm damage.
ld a, [wBattleMonType1] ld a, [wBattleMonType1]
push hl push hl
@ -2125,7 +2059,6 @@ AI_Smart_Sandstorm:
db STEEL db STEEL
db -1 ; end db -1 ; end
AI_Smart_Endure: AI_Smart_Endure:
ld a, [wEnemyProtectCount] ld a, [wEnemyProtectCount]
and a and a
@ -2168,7 +2101,6 @@ AI_Smart_Endure:
inc [hl] inc [hl]
ret ret
AI_Smart_FuryCutter: AI_Smart_FuryCutter:
; Encourage this move based on Fury Cutter's count. ; Encourage this move based on Fury Cutter's count.
@ -2192,7 +2124,6 @@ AI_Smart_FuryCutter:
; fallthrough ; fallthrough
AI_Smart_Rollout: AI_Smart_Rollout:
; Rollout, Fury Cutter ; Rollout, Fury Cutter
@ -2235,7 +2166,6 @@ AI_Smart_Rollout:
inc [hl] inc [hl]
ret ret
AI_Smart_Swagger: AI_Smart_Swagger:
AI_Smart_Attract: AI_Smart_Attract:
; 80% chance to encourage this move during the first turn of player's Pokemon. ; 80% chance to encourage this move during the first turn of player's Pokemon.
@ -2257,7 +2187,6 @@ AI_Smart_Attract:
dec [hl] dec [hl]
ret ret
AI_Smart_Safeguard: AI_Smart_Safeguard:
; 80% chance to discourage this move if player's HP is below 50%. ; 80% chance to discourage this move if player's HP is below 50%.
@ -2268,10 +2197,8 @@ AI_Smart_Safeguard:
inc [hl] inc [hl]
ret ret
AI_Smart_Magnitude: AI_Smart_Magnitude:
AI_Smart_Earthquake: AI_Smart_Earthquake:
; Greatly encourage this move if the player is underground and the enemy is faster. ; Greatly encourage this move if the player is underground and the enemy is faster.
ld a, [wLastPlayerCounterMove] ld a, [wLastPlayerCounterMove]
cp DIG cp DIG
@ -2300,7 +2227,6 @@ AI_Smart_Earthquake:
dec [hl] dec [hl]
ret ret
AI_Smart_BatonPass: AI_Smart_BatonPass:
; Discourage this move if the player hasn't shown super-effective moves against the enemy. ; Discourage this move if the player hasn't shown super-effective moves against the enemy.
; Consider player's type(s) if its moves are unknown. ; Consider player's type(s) if its moves are unknown.
@ -2314,7 +2240,6 @@ AI_Smart_BatonPass:
inc [hl] inc [hl]
ret ret
AI_Smart_Pursuit: AI_Smart_Pursuit:
; 50% chance to greatly encourage this move if player's HP is below 25%. ; 50% chance to greatly encourage this move if player's HP is below 25%.
; 80% chance to discourage this move otherwise. ; 80% chance to discourage this move otherwise.
@ -2333,7 +2258,6 @@ AI_Smart_Pursuit:
dec [hl] dec [hl]
ret ret
AI_Smart_RapidSpin: AI_Smart_RapidSpin:
; 80% chance to greatly encourage this move if the enemy is ; 80% chance to greatly encourage this move if the enemy is
; trapped (Bind effect), seeded, or scattered with spikes. ; trapped (Bind effect), seeded, or scattered with spikes.
@ -2358,7 +2282,6 @@ AI_Smart_RapidSpin:
dec [hl] dec [hl]
ret ret
AI_Smart_HiddenPower: AI_Smart_HiddenPower:
push hl push hl
ld a, 1 ld a, 1
@ -2397,9 +2320,7 @@ AI_Smart_HiddenPower:
inc [hl] inc [hl]
ret ret
AI_Smart_RainDance: AI_Smart_RainDance:
; Greatly discourage this move if it would favour the player type-wise. ; Greatly discourage this move if it would favour the player type-wise.
; Particularly, if the player is a Water-type. ; Particularly, if the player is a Water-type.
ld a, [wBattleMonType1] ld a, [wBattleMonType1]
@ -2420,9 +2341,7 @@ AI_Smart_RainDance:
INCLUDE "data/battle/ai/rain_dance_moves.asm" INCLUDE "data/battle/ai/rain_dance_moves.asm"
AI_Smart_SunnyDay: AI_Smart_SunnyDay:
; Greatly discourage this move if it would favour the player type-wise. ; Greatly discourage this move if it would favour the player type-wise.
; Particularly, if the player is a Fire-type. ; Particularly, if the player is a Fire-type.
ld a, [wBattleMonType1] ld a, [wBattleMonType1]
@ -2442,7 +2361,6 @@ AI_Smart_SunnyDay:
; fallthrough ; fallthrough
AI_Smart_WeatherMove: AI_Smart_WeatherMove:
; Rain Dance, Sunny Day ; Rain Dance, Sunny Day
@ -2492,10 +2410,8 @@ AIGoodWeatherType:
dec [hl] dec [hl]
ret ret
INCLUDE "data/battle/ai/sunny_day_moves.asm" INCLUDE "data/battle/ai/sunny_day_moves.asm"
AI_Smart_BellyDrum: AI_Smart_BellyDrum:
; Dismiss this move if enemy's attack is higher than +2 or if enemy's HP is below 50%. ; Dismiss this move if enemy's attack is higher than +2 or if enemy's HP is below 50%.
; Else, discourage this move if enemy's HP is not full. ; Else, discourage this move if enemy's HP is not full.
@ -2518,7 +2434,6 @@ AI_Smart_BellyDrum:
ld [hl], a ld [hl], a
ret ret
AI_Smart_PsychUp: AI_Smart_PsychUp:
push hl push hl
ld hl, wEnemyAtkLevel ld hl, wEnemyAtkLevel
@ -2576,7 +2491,6 @@ AI_Smart_PsychUp:
inc [hl] inc [hl]
ret ret
AI_Smart_MirrorCoat: AI_Smart_MirrorCoat:
push hl push hl
ld hl, wPlayerUsedMoves ld hl, wPlayerUsedMoves
@ -2626,7 +2540,6 @@ AI_Smart_MirrorCoat:
cp SPECIAL cp SPECIAL
jr c, .asm_391d2 jr c, .asm_391d2
.asm_391ca .asm_391ca
call Random call Random
cp 100 cp 100
@ -2640,10 +2553,8 @@ AI_Smart_MirrorCoat:
inc [hl] inc [hl]
ret ret
AI_Smart_Twister: AI_Smart_Twister:
AI_Smart_Gust: AI_Smart_Gust:
; Greatly encourage this move if the player is flying and the enemy is faster. ; Greatly encourage this move if the player is flying and the enemy is faster.
ld a, [wLastPlayerCounterMove] ld a, [wLastPlayerCounterMove]
cp FLY cp FLY
@ -2671,7 +2582,6 @@ AI_Smart_Gust:
dec [hl] dec [hl]
ret ret
AI_Smart_FutureSight: AI_Smart_FutureSight:
; Greatly encourage this move if the player is ; Greatly encourage this move if the player is
; flying or underground, and slower than the enemy. ; flying or underground, and slower than the enemy.
@ -2687,7 +2597,6 @@ AI_Smart_FutureSight:
dec [hl] dec [hl]
ret ret
AI_Smart_Stomp: AI_Smart_Stomp:
; 80% chance to encourage this move if the player has used Minimize. ; 80% chance to encourage this move if the player has used Minimize.
@ -2701,7 +2610,6 @@ AI_Smart_Stomp:
dec [hl] dec [hl]
ret ret
AI_Smart_Solarbeam: AI_Smart_Solarbeam:
; 80% chance to encourage this move when it's sunny. ; 80% chance to encourage this move when it's sunny.
; 90% chance to discourage this move when it's raining. ; 90% chance to discourage this move when it's raining.
@ -2729,7 +2637,6 @@ AI_Smart_Solarbeam:
dec [hl] dec [hl]
ret ret
AI_Smart_Thunder: AI_Smart_Thunder:
; 90% chance to discourage this move when it's sunny. ; 90% chance to discourage this move when it's sunny.
@ -2744,7 +2651,6 @@ AI_Smart_Thunder:
inc [hl] inc [hl]
ret ret
AICompareSpeed: AICompareSpeed:
; Return carry if enemy is faster than player. ; Return carry if enemy is faster than player.
@ -2760,7 +2666,6 @@ AICompareSpeed:
pop bc pop bc
ret ret
AICheckPlayerMaxHP: AICheckPlayerMaxHP:
push hl push hl
push de push de
@ -2769,7 +2674,6 @@ AICheckPlayerMaxHP:
ld hl, wBattleMonMaxHP ld hl, wBattleMonMaxHP
jr AICheckMaxHP jr AICheckMaxHP
AICheckEnemyMaxHP: AICheckEnemyMaxHP:
push hl push hl
push de push de
@ -2778,7 +2682,6 @@ AICheckEnemyMaxHP:
ld hl, wEnemyMonMaxHP ld hl, wEnemyMonMaxHP
; fallthrough ; fallthrough
AICheckMaxHP: AICheckMaxHP:
; Return carry if hp at de matches max hp at hl. ; Return carry if hp at de matches max hp at hl.
@ -2805,7 +2708,6 @@ AICheckMaxHP:
and a and a
ret ret
AICheckPlayerHalfHP: AICheckPlayerHalfHP:
push hl push hl
ld hl, wBattleMonHP ld hl, wBattleMonHP
@ -2823,7 +2725,6 @@ AICheckPlayerHalfHP:
pop hl pop hl
ret ret
AICheckEnemyHalfHP: AICheckEnemyHalfHP:
push hl push hl
push de push de
@ -2845,7 +2746,6 @@ AICheckEnemyHalfHP:
pop hl pop hl
ret ret
AICheckEnemyQuarterHP: AICheckEnemyQuarterHP:
push hl push hl
push de push de
@ -2869,7 +2769,6 @@ AICheckEnemyQuarterHP:
pop hl pop hl
ret ret
AICheckPlayerQuarterHP: AICheckPlayerQuarterHP:
push hl push hl
ld hl, wBattleMonHP ld hl, wBattleMonHP
@ -2889,7 +2788,6 @@ AICheckPlayerQuarterHP:
pop hl pop hl
ret ret
AIHasMoveEffect: AIHasMoveEffect:
; Return carry if the enemy has move b. ; Return carry if the enemy has move b.
@ -2921,7 +2819,6 @@ AIHasMoveEffect:
scf scf
ret ret
AIHasMoveInArray: AIHasMoveInArray:
; Return carry if the enemy has a move in array hl. ; Return carry if the enemy has a move in array hl.
@ -2955,10 +2852,8 @@ AIHasMoveInArray:
pop hl pop hl
ret ret
INCLUDE "data/battle/ai/useful_moves.asm" INCLUDE "data/battle/ai/useful_moves.asm"
AI_Opportunist: AI_Opportunist:
; Discourage stall moves when the enemy's HP is low. ; Discourage stall moves when the enemy's HP is low.
@ -3009,7 +2904,6 @@ AI_Opportunist:
INCLUDE "data/battle/ai/stall_moves.asm" INCLUDE "data/battle/ai/stall_moves.asm"
AI_Aggressive: AI_Aggressive:
; Use whatever does the most damage. ; Use whatever does the most damage.
@ -3117,7 +3011,6 @@ AI_Aggressive:
INCLUDE "data/battle/ai/reckless_moves.asm" INCLUDE "data/battle/ai/reckless_moves.asm"
AIDamageCalc: AIDamageCalc:
ld a, 1 ld a, 1
ld [hBattleTurn], a ld [hBattleTurn], a
@ -3137,7 +3030,6 @@ AIDamageCalc:
INCLUDE "data/battle/ai/constant_damage_effects.asm" INCLUDE "data/battle/ai/constant_damage_effects.asm"
AI_Cautious: AI_Cautious:
; 90% chance to discourage moves with residual effects after the first turn. ; 90% chance to discourage moves with residual effects after the first turn.
@ -3180,7 +3072,6 @@ AI_Cautious:
INCLUDE "data/battle/ai/residual_moves.asm" INCLUDE "data/battle/ai/residual_moves.asm"
AI_Status: AI_Status:
; Dismiss status moves that don't affect the player. ; Dismiss status moves that don't affect the player.
@ -3243,7 +3134,6 @@ AI_Status:
jr .checkmove jr .checkmove
AI_Risky: AI_Risky:
; Use any move that will KO the target. ; Use any move that will KO the target.
; Risky moves will often be an exception (see below). ; Risky moves will often be an exception (see below).
@ -3313,18 +3203,15 @@ endr
INCLUDE "data/battle/ai/risky_effects.asm" INCLUDE "data/battle/ai/risky_effects.asm"
AI_None: AI_None:
ret ret
AIDiscourageMove: AIDiscourageMove:
ld a, [hl] ld a, [hl]
add 10 add 10
ld [hl], a ld [hl], a
ret ret
AIGetEnemyMove: AIGetEnemyMove:
; Load attributes of move a into ram ; Load attributes of move a into ram
@ -3345,13 +3232,11 @@ AIGetEnemyMove:
pop hl pop hl
ret ret
AI_80_20: AI_80_20:
call Random call Random
cp 20 percent - 1 cp 20 percent - 1
ret ret
AI_50_50: AI_50_50:
call Random call Random
cp 50 percent + 1 cp 50 percent + 1

View File

@ -96,7 +96,6 @@ CheckPlayerMoveTypeMatchups:
pop hl pop hl
ret ret
.CheckEnemyMoveMatchups: .CheckEnemyMoveMatchups:
ld de, wEnemyMonMoves ld de, wEnemyMonMoves
ld b, NUM_MOVES + 1 ld b, NUM_MOVES + 1
@ -290,7 +289,6 @@ CheckAbleToSwitch:
ld [wEnemySwitchMonParam], a ld [wEnemySwitchMonParam], a
ret ret
FindAliveEnemyMons: FindAliveEnemyMons:
ld a, [wOTPartyCount] ld a, [wOTPartyCount]
cp 2 cp 2
@ -341,7 +339,6 @@ FindAliveEnemyMons:
and a and a
ret ret
FindEnemyMonsImmuneToLastCounterMove: FindEnemyMonsImmuneToLastCounterMove:
ld hl, wOTPartyMon1 ld hl, wOTPartyMon1
ld a, [wOTPartyCount] ld a, [wOTPartyCount]
@ -408,7 +405,6 @@ FindEnemyMonsImmuneToLastCounterMove:
srl c srl c
jr .loop jr .loop
FindAliveEnemyMonsWithASuperEffectiveMove: FindAliveEnemyMonsWithASuperEffectiveMove:
push bc push bc
ld a, [wOTPartyCount] ld a, [wOTPartyCount]
@ -439,8 +435,9 @@ FindAliveEnemyMonsWithASuperEffectiveMove:
and c and c
ld c, a ld c, a
FindEnemyMonsWithASuperEffectiveMove: ; fallthrough
FindEnemyMonsWithASuperEffectiveMove:
ld a, -1 ld a, -1
ld [wEnemyAISwitchScore], a ld [wEnemyAISwitchScore], a
ld hl, wOTPartyMon1Moves ld hl, wOTPartyMon1Moves
@ -546,7 +543,6 @@ FindEnemyMonsWithASuperEffectiveMove:
pop bc pop bc
ret ret
FindEnemyMonsThatResistPlayer: FindEnemyMonsThatResistPlayer:
push bc push bc
ld hl, wOTPartySpecies ld hl, wOTPartySpecies
@ -607,7 +603,6 @@ FindEnemyMonsThatResistPlayer:
ld c, a ld c, a
ret ret
FindEnemyMonsWithAtLeastQuarterMaxHP: FindEnemyMonsWithAtLeastQuarterMaxHP:
push bc push bc
ld de, wOTPartySpecies ld de, wOTPartySpecies

View File

@ -6,6 +6,8 @@ BATTLETRANSITION_NO_CAVE_STRONGER EQU $18
BATTLETRANSITION_FINISH EQU $20 BATTLETRANSITION_FINISH EQU $20
BATTLETRANSITION_END EQU $80 BATTLETRANSITION_END EQU $80
BATTLETRANSITION_SQUARE EQUS "\"8\"" ; $fe
DoBattleTransition: DoBattleTransition:
call .InitGFX call .InitGFX
ld a, [rBGP] ld a, [rBGP]
@ -97,7 +99,7 @@ LoadTrainerBattlePokeballTiles:
; Load the tiles used in the Pokeball Graphic that fills the screen ; Load the tiles used in the Pokeball Graphic that fills the screen
; at the start of every Trainer battle. ; at the start of every Trainer battle.
ld de, TrainerBattlePokeballTiles ld de, TrainerBattlePokeballTiles
ld hl, vTiles1 tile $7e ld hl, vTiles0 tile BATTLETRANSITION_SQUARE
ld b, BANK(TrainerBattlePokeballTiles) ld b, BANK(TrainerBattlePokeballTiles)
ld c, 2 ld c, 2
call Request2bpp call Request2bpp
@ -108,7 +110,7 @@ LoadTrainerBattlePokeballTiles:
ld [rVBK], a ld [rVBK], a
ld de, TrainerBattlePokeballTiles ld de, TrainerBattlePokeballTiles
ld hl, vTiles4 tile $7e ld hl, vTiles3 tile BATTLETRANSITION_SQUARE
ld b, BANK(TrainerBattlePokeballTiles) ld b, BANK(TrainerBattlePokeballTiles)
ld c, 2 ld c, 2
call Request2bpp call Request2bpp
@ -146,7 +148,6 @@ ConvertTrainerBattlePokeballTilesTo2bpp:
TrainerBattlePokeballTiles: TrainerBattlePokeballTiles:
INCBIN "gfx/overworld/trainer_battle_pokeball_tiles.2bpp" INCBIN "gfx/overworld/trainer_battle_pokeball_tiles.2bpp"
BattleTransitionJumptable: BattleTransitionJumptable:
jumptable .Jumptable, wJumptableIndex jumptable .Jumptable, wJumptableIndex
@ -617,7 +618,7 @@ StartTrainerBattle_LoadPokeBallGraphics:
jr z, .done jr z, .done
sla a sla a
jr nc, .no_load jr nc, .no_load
ld [hl], $fe ld [hl], BATTLETRANSITION_SQUARE
.no_load .no_load
inc hl inc hl
jr .loop4 jr .loop4
@ -753,7 +754,6 @@ WipeLYOverrides:
jr nz, .loop jr nz, .loop
ret ret
StartTrainerBattle_DrawSineWave: StartTrainerBattle_DrawSineWave:
calc_sine_wave calc_sine_wave

View File

@ -6036,7 +6036,6 @@ LoadEnemyMon:
jp .Happiness jp .Happiness
.InitDVs: .InitDVs:
; Trainer DVs ; Trainer DVs
; All trainers have preset DVs, determined by class ; All trainers have preset DVs, determined by class
@ -6486,7 +6485,6 @@ CheckUnownLetter:
INCLUDE "data/wild/unlocked_unowns.asm" INCLUDE "data/wild/unlocked_unowns.asm"
Unreferenced_SwapBattlerLevels: Unreferenced_SwapBattlerLevels:
push bc push bc
ld a, [wBattleMonLevel] ld a, [wBattleMonLevel]

File diff suppressed because it is too large Load Diff

View File

@ -8,7 +8,6 @@ HiddenPowerDamage:
ld hl, wEnemyMonDVs ld hl, wEnemyMonDVs
.got_dvs .got_dvs
; Power: ; Power:
; Take the top bit from each stat ; Take the top bit from each stat
@ -62,7 +61,6 @@ HiddenPowerDamage:
ld d, a ld d, a
; Type: ; Type:
; Def & 3 ; Def & 3

View File

@ -49,9 +49,7 @@ GetPlayerBackpicCoords:
lb bc, 6, 6 lb bc, 6, 6
ret ret
DoWeatherModifiers: DoWeatherModifiers:
ld de, WeatherTypeModifiers ld de, WeatherTypeModifiers
ld a, [wBattleWeather] ld a, [wBattleWeather]
ld b, a ld b, a
@ -76,7 +74,6 @@ DoWeatherModifiers:
inc de inc de
jr .CheckWeatherType jr .CheckWeatherType
.done_weather_types .done_weather_types
ld de, WeatherMoveModifiers ld de, WeatherMoveModifiers
@ -147,7 +144,6 @@ DoWeatherModifiers:
INCLUDE "data/battle/weather_modifiers.asm" INCLUDE "data/battle/weather_modifiers.asm"
DoBadgeTypeBoosts: DoBadgeTypeBoosts:
ld a, [wLinkMode] ld a, [wLinkMode]
and a and a

View File

@ -22,7 +22,6 @@ BattleCommand_Attract:
.failed .failed
jp FailMove jp FailMove
CheckOppositeGender: CheckOppositeGender:
ld a, MON_SPECIES ld a, MON_SPECIES
call BattlePartyAttr call BattlePartyAttr

View File

@ -5,7 +5,6 @@ BattleCommand_BatonPass:
and a and a
jp nz, .Enemy jp nz, .Enemy
; Need something to switch to ; Need something to switch to
call CheckAnyOtherAlivePartyMons call CheckAnyOtherAlivePartyMons
jp z, FailedBatonPass jp z, FailedBatonPass
@ -45,9 +44,7 @@ BattleCommand_BatonPass:
call ResetBatonPassStatus call ResetBatonPassStatus
ret ret
.Enemy: .Enemy:
; Wildmons don't have anything to switch to ; Wildmons don't have anything to switch to
ld a, [wBattleMode] ld a, [wBattleMode]
dec a ; WILDMON dec a ; WILDMON
@ -81,8 +78,6 @@ BattleCommand_BatonPass:
jr ResetBatonPassStatus jr ResetBatonPassStatus
BatonPass_LinkPlayerSwitch: BatonPass_LinkPlayerSwitch:
ld a, [wLinkMode] ld a, [wLinkMode]
and a and a
@ -100,8 +95,6 @@ BatonPass_LinkPlayerSwitch:
ld [wBattlePlayerAction], a ld [wBattlePlayerAction], a
ret ret
BatonPass_LinkEnemySwitch: BatonPass_LinkEnemySwitch:
ld a, [wLinkMode] ld a, [wLinkMode]
and a and a
@ -127,14 +120,10 @@ BatonPass_LinkEnemySwitch:
.switch .switch
jp CloseWindow jp CloseWindow
FailedBatonPass: FailedBatonPass:
call AnimateFailedMove call AnimateFailedMove
jp PrintButItFailed jp PrintButItFailed
ResetBatonPassStatus: ResetBatonPassStatus:
; Reset status changes that aren't passed by Baton Pass. ; Reset status changes that aren't passed by Baton Pass.
@ -174,8 +163,6 @@ ResetBatonPassStatus:
ld [wEnemyWrapCount], a ld [wEnemyWrapCount], a
ret ret
CheckAnyOtherAlivePartyMons: CheckAnyOtherAlivePartyMons:
ld hl, wPartyMon1HP ld hl, wPartyMon1HP
ld a, [wPartyCount] ld a, [wPartyCount]
@ -184,8 +171,6 @@ CheckAnyOtherAlivePartyMons:
ld e, a ld e, a
jr CheckAnyOtherAliveMons jr CheckAnyOtherAliveMons
CheckAnyOtherAliveEnemyMons: CheckAnyOtherAliveEnemyMons:
ld hl, wOTPartyMon1HP ld hl, wOTPartyMon1HP
ld a, [wOTPartyCount] ld a, [wOTPartyCount]
@ -230,4 +215,3 @@ CheckAnyOtherAliveMons:
ld a, b ld a, b
and a and a
ret ret

View File

@ -193,14 +193,10 @@ BattleCommand_BeatUp:
ld d, a ld d, a
ret ret
.beatup_fail .beatup_fail
ld b, buildopponentrage_command ld b, buildopponentrage_command
jp SkipToBattleCommand jp SkipToBattleCommand
BattleCommand_BeatUpFailText: BattleCommand_BeatUpFailText:
; beatupfailtext ; beatupfailtext
@ -210,8 +206,6 @@ BattleCommand_BeatUpFailText:
jp PrintButItFailed jp PrintButItFailed
GetBeatupMonLocation: GetBeatupMonLocation:
push bc push bc
ld c, a ld c, a

View File

@ -32,4 +32,3 @@ BattleCommand_BellyDrum:
.failed .failed
call AnimateFailedMove call AnimateFailedMove
jp PrintButItFailed jp PrintButItFailed

View File

@ -69,8 +69,6 @@ BattleCommand_StoreEnergy:
call StdBattleTextBox call StdBattleTextBox
jp EndMoveEffect jp EndMoveEffect
BattleCommand_UnleashEnergy: BattleCommand_UnleashEnergy:
; unleashenergy ; unleashenergy
@ -100,4 +98,3 @@ BattleCommand_UnleashEnergy:
ld [wKickCounter], a ld [wKickCounter], a
call AnimateCurrentMove call AnimateCurrentMove
jp EndMoveEffect jp EndMoveEffect

View File

@ -94,4 +94,3 @@ BattleCommand_Conversion:
call AnimateCurrentMove call AnimateCurrentMove
ld hl, TransformedTypeText ld hl, TransformedTypeText
jp StdBattleTextBox jp StdBattleTextBox

View File

@ -62,4 +62,3 @@ BattleCommand_Conversion2:
.failed .failed
jp FailMove jp FailMove

View File

@ -56,4 +56,3 @@ BattleCommand_Counter:
xor a xor a
ld [wAttackMissed], a ld [wAttackMissed], a
ret ret

View File

@ -21,7 +21,6 @@ BattleCommand_Curse:
cp GHOST cp GHOST
jr z, .ghost jr z, .ghost
; If no stats can be increased, don't. ; If no stats can be increased, don't.
; Attack ; Attack
@ -54,7 +53,6 @@ BattleCommand_Curse:
call BattleCommand_DefenseUp call BattleCommand_DefenseUp
jp BattleCommand_StatUpMessage jp BattleCommand_StatUpMessage
.ghost .ghost
; Cut HP in half and put a curse on the opponent. ; Cut HP in half and put a curse on the opponent.
@ -84,7 +82,6 @@ BattleCommand_Curse:
call AnimateFailedMove call AnimateFailedMove
jp PrintButItFailed jp PrintButItFailed
.cantraise .cantraise
; Can't raise either stat. ; Can't raise either stat.

View File

@ -7,4 +7,3 @@ BattleCommand_DestinyBond:
call AnimateCurrentMove call AnimateCurrentMove
ld hl, DestinyBondEffectText ld hl, DestinyBondEffectText
jp StdBattleTextBox jp StdBattleTextBox

View File

@ -70,4 +70,3 @@ BattleCommand_Disable:
.failed .failed
jp FailMove jp FailMove

View File

@ -118,4 +118,3 @@ BattleCommand_Encore:
.failed .failed
jp PrintDidntAffect2 jp PrintDidntAffect2

View File

@ -46,4 +46,3 @@ BattleCommand_FalseSwipe:
.done .done
and a and a
ret ret

View File

@ -13,4 +13,3 @@ BattleCommand_FocusEnergy:
.already_pumped .already_pumped
call AnimateFailedMove call AnimateFailedMove
jp PrintButItFailed jp PrintButItFailed

View File

@ -25,4 +25,3 @@ BattleCommand_FrustrationPower:
ld d, a ld d, a
pop bc pop bc
ret ret

View File

@ -38,10 +38,7 @@ BattleCommand_FuryCutter:
ld [hl], a ld [hl], a
ret ret
ResetFuryCutterCount: ResetFuryCutterCount:
push hl push hl
ld hl, wPlayerFuryCutterCount ld hl, wPlayerFuryCutterCount
@ -56,4 +53,3 @@ ResetFuryCutterCount:
pop hl pop hl
ret ret

View File

@ -25,7 +25,6 @@ BattleCommand_CheckFutureSight:
ld b, futuresight_command ld b, futuresight_command
jp SkipToBattleCommand jp SkipToBattleCommand
BattleCommand_FutureSight: BattleCommand_FutureSight:
; futuresight ; futuresight
@ -80,4 +79,3 @@ BattleCommand_FutureSight:
call AnimateFailedMove call AnimateFailedMove
call PrintButItFailed call PrintButItFailed
jp EndMoveEffect jp EndMoveEffect

View File

@ -32,4 +32,3 @@ BattleCommand_HealBell:
and a and a
jp z, CalcPlayerStats jp z, CalcPlayerStats
jp CalcEnemyStats jp CalcEnemyStats

View File

@ -6,4 +6,3 @@ BattleCommand_HiddenPower:
ret nz ret nz
farcall HiddenPowerDamage farcall HiddenPowerDamage
ret ret

View File

@ -38,4 +38,3 @@ BattleCommand_LeechSeed:
call AnimateFailedMove call AnimateFailedMove
ld hl, EvadedText ld hl, EvadedText
jp StdBattleTextBox jp StdBattleTextBox

View File

@ -19,4 +19,3 @@ BattleCommand_LockOn:
.fail .fail
call AnimateFailedMove call AnimateFailedMove
jp PrintDidntAffect jp PrintDidntAffect

View File

@ -34,12 +34,10 @@ BattleCommand_Metronome:
call CheckUserMove call CheckUserMove
jr z, .GetMove jr z, .GetMove
ld a, BATTLE_VARS_MOVE ld a, BATTLE_VARS_MOVE
call GetBattleVarAddr call GetBattleVarAddr
ld [hl], b ld [hl], b
call UpdateMoveData call UpdateMoveData
jp ResetTurn jp ResetTurn
INCLUDE "data/battle/metronome_exception_moves.asm" INCLUDE "data/battle/metronome_exception_moves.asm"

View File

@ -48,4 +48,3 @@ BattleCommand_Mimic:
.fail .fail
jp FailMimic jp FailMimic

View File

@ -57,4 +57,3 @@ BattleCommand_MirrorCoat:
xor a xor a
ld [wAttackMissed], a ld [wAttackMissed], a
ret ret

View File

@ -13,4 +13,3 @@ BattleCommand_Mist:
.already_mist .already_mist
call AnimateFailedMove call AnimateFailedMove
jp PrintButItFailed jp PrintButItFailed

View File

@ -89,7 +89,5 @@ BattleCommand_PainSplit:
ld [wBuffer6], a ld [wBuffer6], a
ret ret
.ButItFailed: .ButItFailed:
jp PrintDidntAffect2 jp PrintDidntAffect2

View File

@ -24,4 +24,3 @@ BattleCommand_PayDay:
.done .done
ld hl, CoinsScatteredText ld hl, CoinsScatteredText
jp StdBattleTextBox jp StdBattleTextBox

View File

@ -1,7 +1,6 @@
BattleCommand_PerishSong: BattleCommand_PerishSong:
; perishsong ; perishsong
ld hl, wPlayerSubStatus1 ld hl, wPlayerSubStatus1
ld de, wEnemySubStatus1 ld de, wEnemySubStatus1
bit SUBSTATUS_PERISH, [hl] bit SUBSTATUS_PERISH, [hl]

View File

@ -12,9 +12,7 @@ BattleCommand_Protect:
ld hl, ProtectedItselfText ld hl, ProtectedItselfText
jp StdBattleTextBox jp StdBattleTextBox
ProtectChance: ProtectChance:
ld de, wPlayerProtectCount ld de, wPlayerProtectCount
ld a, [hBattleTurn] ld a, [hBattleTurn]
and a and a
@ -68,7 +66,6 @@ ProtectChance:
and a and a
ret ret
.failed .failed
xor a xor a
ld [de], a ld [de], a

View File

@ -47,4 +47,3 @@ BattleCommand_PsychUp:
call AnimateCurrentMove call AnimateCurrentMove
ld hl, CopiedStatsText ld hl, CopiedStatsText
jp StdBattleTextBox jp StdBattleTextBox

View File

@ -22,4 +22,3 @@ BattleCommand_Pursuit:
ld [hli], a ld [hli], a
ld [hl], a ld [hl], a
ret ret

View File

@ -4,4 +4,3 @@ BattleCommand_Rage:
call GetBattleVarAddr call GetBattleVarAddr
set SUBSTATUS_RAGE, [hl] set SUBSTATUS_RAGE, [hl]
ret ret

View File

@ -7,4 +7,3 @@ BattleCommand_StartRain:
call AnimateCurrentMove call AnimateCurrentMove
ld hl, DownpourText ld hl, DownpourText
jp StdBattleTextBox jp StdBattleTextBox

View File

@ -34,4 +34,3 @@ BattleCommand_ClearHazards:
ld [de], a ld [de], a
ld hl, ReleasedByText ld hl, ReleasedByText
jp StdBattleTextBox jp StdBattleTextBox

View File

@ -23,4 +23,3 @@ BattleCommand_HappinessPower:
ld d, a ld d, a
pop bc pop bc
ret ret

View File

@ -1,6 +1,5 @@
MAX_ROLLOUT_COUNT EQU 5 MAX_ROLLOUT_COUNT EQU 5
BattleCommand_CheckCurl: BattleCommand_CheckCurl:
; checkcurl ; checkcurl
@ -23,7 +22,6 @@ BattleCommand_CheckCurl:
ld [de], a ld [de], a
ret ret
BattleCommand_RolloutPower: BattleCommand_RolloutPower:
; rolloutpower ; rolloutpower

View File

@ -21,4 +21,3 @@ BattleCommand_Safeguard:
.failed .failed
call AnimateFailedMove call AnimateFailedMove
jp PrintButItFailed jp PrintButItFailed

View File

@ -27,4 +27,3 @@ BattleCommand_Selfdestruct:
farcall DrawEnemyHUD farcall DrawEnemyHUD
call WaitBGMap call WaitBGMap
jp RefreshBattleHuds jp RefreshBattleHuds

View File

@ -115,4 +115,3 @@ BattleCommand_Sketch:
.fail .fail
call AnimateFailedMove call AnimateFailedMove
jp PrintDidntAffect jp PrintDidntAffect

View File

@ -141,4 +141,3 @@ BattleCommand_SleepTalk:
ret z ret z
cp EFFECT_BIDE cp EFFECT_BIDE
ret ret

View File

@ -9,4 +9,3 @@ BattleCommand_Snore:
ld [wAttackMissed], a ld [wAttackMissed], a
call FailMove call FailMove
jp EndMoveEffect jp EndMoveEffect

View File

@ -84,4 +84,3 @@ BattleCommand_Spite:
.failed .failed
jp PrintDidntAffect2 jp PrintDidntAffect2

View File

@ -2,4 +2,3 @@ BattleCommand_Splash:
call AnimateCurrentMove call AnimateCurrentMove
farcall StubbedTrainerRankings_Splash farcall StubbedTrainerRankings_Splash
jp PrintNothingHappened jp PrintNothingHappened

View File

@ -86,4 +86,3 @@ BattleCommand_Substitute:
ld hl, TooWeakSubText ld hl, TooWeakSubText
.jp_stdbattletextbox .jp_stdbattletextbox
jp StdBattleTextBox jp StdBattleTextBox

View File

@ -7,4 +7,3 @@ BattleCommand_StartSun:
call AnimateCurrentMove call AnimateCurrentMove
ld hl, SunGotBrightText ld hl, SunGotBrightText
jp StdBattleTextBox jp StdBattleTextBox

View File

@ -87,4 +87,3 @@ BattleCommand_Teleport:
ld hl, FledFromBattleText ld hl, FledFromBattleText
jp StdBattleTextBox jp StdBattleTextBox

View File

@ -50,7 +50,6 @@ BattleCommand_Thief:
ld [de], a ld [de], a
jr .stole jr .stole
.enemy .enemy
; The enemy can't already have an item. ; The enemy can't already have an item.
@ -91,13 +90,11 @@ BattleCommand_Thief:
ld [hl], a ld [hl], a
ld [de], a ld [de], a
.stole .stole
call GetItemName call GetItemName
ld hl, StoleText ld hl, StoleText
jp StdBattleTextBox jp StdBattleTextBox
.playeritem .playeritem
ld a, 1 ld a, 1
call BattlePartyAttr call BattlePartyAttr

View File

@ -16,4 +16,3 @@ BattleCommand_ThunderAccuracy:
; Redundant with CheckHit guranteeing hit ; Redundant with CheckHit guranteeing hit
ld [hl], 100 percent ld [hl], 100 percent
ret ret

View File

@ -137,4 +137,3 @@ BattleCommand_Transform:
call nz, LoadAnim call nz, LoadAnim
ld hl, TransformedText ld hl, TransformedText
jp StdBattleTextBox jp StdBattleTextBox

View File

@ -26,12 +26,9 @@ BattleCommand_TripleKick:
ld [hl], a ld [hl], a
ret ret
BattleCommand_KickCounter: BattleCommand_KickCounter:
; kickcounter ; kickcounter
ld hl, wKickCounter ld hl, wKickCounter
inc [hl] inc [hl]
ret ret

View File

@ -62,3 +62,5 @@ GetTrainerAttributes:
ld a, [hl] ld a, [hl]
ld [wEnemyTrainerBaseReward], a ld [wEnemyTrainerBaseReward], a
ret ret
INCLUDE "data/trainers/attributes.asm"

View File

@ -17,3 +17,5 @@ GetTrainerDVs:
pop hl pop hl
ret ret
INCLUDE "data/trainers/dvs.asm"

View File

@ -321,7 +321,6 @@ ComputeTrainerReward:
ld [hl], a ld [hl], a
ret ret
Battle_GetTrainerName:: Battle_GetTrainerName::
ld a, [wInBattleTowerBattle] ld a, [wInBattleTowerBattle]
bit 0, a bit 0, a
@ -388,3 +387,5 @@ Function39990:
ld bc, NAME_LENGTH ld bc, NAME_LENGTH
pop de pop de
ret ret
INCLUDE "data/trainers/parties.asm"

View File

@ -131,7 +131,6 @@ EndUsedMove5Text:
text_jump _EndUsedMove5Text text_jump _EndUsedMove5Text
db "@" db "@"
GetMoveGrammar: GetMoveGrammar:
; store move grammar type in wd265 ; store move grammar type in wd265
@ -169,7 +168,6 @@ GetMoveGrammar:
INCLUDE "data/moves/grammar.asm" INCLUDE "data/moves/grammar.asm"
UpdateUsedMoves: UpdateUsedMoves:
; append move a to wPlayerUsedMoves unless it has already been used ; append move a to wPlayerUsedMoves unless it has already been used

View File

@ -1,7 +1,6 @@
; Battle animation command interpreter. ; Battle animation command interpreter.
PlayBattleAnim: PlayBattleAnim:
ld a, [rSVBK] ld a, [rSVBK]
push af push af
@ -15,7 +14,6 @@ PlayBattleAnim:
ret ret
_PlayBattleAnim: _PlayBattleAnim:
ld c, 6 ld c, 6
.wait .wait
call BattleAnimDelayFrame call BattleAnimDelayFrame
@ -53,7 +51,6 @@ _PlayBattleAnim:
ret ret
BattleAnimRunScript: BattleAnimRunScript:
ld a, [wFXAnimID + 1] ld a, [wFXAnimID + 1]
and a and a
jr nz, .hi_byte jr nz, .hi_byte
@ -97,7 +94,6 @@ BattleAnimRunScript:
ret ret
RunBattleAnimScript: RunBattleAnimScript:
call ClearBattleAnims call ClearBattleAnims
.playframe .playframe
@ -139,7 +135,6 @@ RunBattleAnimScript:
ret ret
BattleAnimClearHud: BattleAnimClearHud:
call BattleAnimDelayFrame call BattleAnimDelayFrame
call WaitTop call WaitTop
call ClearActorHud call ClearActorHud
@ -152,7 +147,6 @@ BattleAnimClearHud:
ret ret
BattleAnimRestoreHuds: BattleAnimRestoreHuds:
call BattleAnimDelayFrame call BattleAnimDelayFrame
call WaitTop call WaitTop
@ -177,7 +171,6 @@ BattleAnimRestoreHuds:
ret ret
BattleAnimRequestPals: BattleAnimRequestPals:
ld a, [hCGB] ld a, [hCGB]
and a and a
ret z ret z
@ -207,7 +200,6 @@ BattleAnimDelayFrame:
ret ret
ClearActorHud: ClearActorHud:
ld a, [hBattleTurn] ld a, [hBattleTurn]
and a and a
jr z, .player jr z, .player
@ -240,9 +232,7 @@ Unreferenced_Functioncc220:
call BattleAnimDelayFrame call BattleAnimDelayFrame
ret ret
BattleAnim_ClearCGB_OAMFlags: BattleAnim_ClearCGB_OAMFlags:
ld a, [wBattleAnimFlags] ld a, [wBattleAnimFlags]
bit 3, a bit 3, a
jr z, .delete jr z, .delete
@ -333,7 +323,6 @@ RunBattleAnimCommand:
ld l, a ld l, a
jp hl jp hl
BattleAnimCommands:: BattleAnimCommands::
; entries correspond to macros/scripts/battle_anims.asm enumeration ; entries correspond to macros/scripts/battle_anims.asm enumeration
dw BattleAnimCmd_Obj dw BattleAnimCmd_Obj
@ -385,7 +374,6 @@ BattleAnimCommands::
dw BattleAnimCmd_Call dw BattleAnimCmd_Call
dw BattleAnimCmd_Ret dw BattleAnimCmd_Ret
BattleAnimCmd_EA: BattleAnimCmd_EA:
BattleAnimCmd_EB: BattleAnimCmd_EB:
BattleAnimCmd_EC: BattleAnimCmd_EC:
@ -780,7 +768,6 @@ BattleAnimCmd_SetObj:
ret ret
BattleAnimCmd_EnemyFeetObj: BattleAnimCmd_EnemyFeetObj:
ld hl, wBattleAnimTileDict ld hl, wBattleAnimTileDict
.loop .loop
ld a, [hl] ld a, [hl]
@ -835,7 +822,6 @@ BattleAnimCmd_EnemyFeetObj:
ret ret
BattleAnimCmd_PlayerHeadObj: BattleAnimCmd_PlayerHeadObj:
ld hl, wBattleAnimTileDict ld hl, wBattleAnimTileDict
.loop .loop
ld a, [hl] ld a, [hl]
@ -934,7 +920,6 @@ BattleAnimCmd_Transform:
ret ret
BattleAnimCmd_UpdateActorPic: BattleAnimCmd_UpdateActorPic:
ld de, vTiles0 tile $00 ld de, vTiles0 tile $00
ld a, [hBattleTurn] ld a, [hBattleTurn]
and a and a
@ -954,7 +939,6 @@ BattleAnimCmd_UpdateActorPic:
ret ret
BattleAnimCmd_RaiseSub: BattleAnimCmd_RaiseSub:
ld a, [rSVBK] ld a, [rSVBK]
push af push af
ld a, 1 ; unnecessary bankswitch? ld a, 1 ; unnecessary bankswitch?
@ -1304,7 +1288,6 @@ endr
dw $0000, $0000 dw $0000, $0000
dw $0000, $0000 dw $0000, $0000
PlayHitSound: PlayHitSound:
ld a, [wNumHits] ld a, [wNumHits]
cp $1 cp $1

View File

@ -134,7 +134,6 @@ BattleBGEffects:
dw BattleBGEffect_WobbleMon dw BattleBGEffect_WobbleMon
dw BattleBGEffect_35 dw BattleBGEffect_35
BattleBGEffect_End: BattleBGEffect_End:
call EndBattleBGEffect call EndBattleBGEffect
ret ret
@ -348,7 +347,6 @@ BattleBGEffect_HideMon:
dw BattleBGEffects_IncrementJumptable dw BattleBGEffects_IncrementJumptable
dw .four dw .four
.zero .zero
call BattleBGEffects_IncrementJumptable call BattleBGEffects_IncrementJumptable
push bc push bc
@ -415,7 +413,6 @@ BattleBGEffect_FeetFollow:
dw BattleBGEffects_IncrementJumptable dw BattleBGEffects_IncrementJumptable
dw .five dw .five
.zero .zero
call BGEffect_CheckFlyDigStatus call BGEffect_CheckFlyDigStatus
jr z, .not_flying_digging jr z, .not_flying_digging
@ -483,7 +480,6 @@ BattleBGEffect_HeadFollow:
dw BattleBGEffects_IncrementJumptable dw BattleBGEffects_IncrementJumptable
dw .five dw .five
.zero .zero
call BGEffect_CheckFlyDigStatus call BGEffect_CheckFlyDigStatus
jr z, .not_flying_digging jr z, .not_flying_digging
@ -554,7 +550,6 @@ BattleBGEffect_27:
dw BattleBGEffects_IncrementJumptable dw BattleBGEffects_IncrementJumptable
dw .four dw .four
.zero .zero
call BattleBGEffects_IncrementJumptable call BattleBGEffects_IncrementJumptable
call BGEffect_CheckBattleTurn call BGEffect_CheckBattleTurn
@ -717,7 +712,6 @@ BattleBGEffect_RunPicResizeScript:
dw .restart dw .restart
dw .end dw .end
.zero .zero
ld hl, BG_EFFECT_STRUCT_03 ld hl, BG_EFFECT_STRUCT_03
add hl, bc add hl, bc
@ -915,7 +909,6 @@ BattleBGEffect_Surf:
dw .one dw .one
dw .two dw .two
.zero .zero
call BattleBGEffects_IncrementJumptable call BattleBGEffects_IncrementJumptable
lb de, 2, 2 lb de, 2, 2
@ -982,7 +975,6 @@ BattleBGEffect_Whirlpool:
dw .one dw .one
dw .two dw .two
.zero .zero
call BattleBGEffects_IncrementJumptable call BattleBGEffects_IncrementJumptable
call BattleBGEffects_ClearLYOverrides call BattleBGEffects_ClearLYOverrides
@ -1056,7 +1048,6 @@ BattleBGEffect_Psychic:
dw .one dw .one
dw .two dw .two
.zero .zero
call BattleBGEffects_IncrementJumptable call BattleBGEffects_IncrementJumptable
call BattleBGEffects_ClearLYOverrides call BattleBGEffects_ClearLYOverrides
@ -1094,7 +1085,6 @@ BattleBGEffect_Teleport:
dw .one dw .one
dw .two dw .two
.zero .zero
call BattleBGEffects_IncrementJumptable call BattleBGEffects_IncrementJumptable
call BattleBGEffects_ClearLYOverrides call BattleBGEffects_ClearLYOverrides
@ -1119,7 +1109,6 @@ BattleBGEffect_NightShade:
dw .one dw .one
dw .two dw .two
.zero .zero
call BattleBGEffects_IncrementJumptable call BattleBGEffects_IncrementJumptable
call BattleBGEffects_ClearLYOverrides call BattleBGEffects_ClearLYOverrides
@ -1150,7 +1139,6 @@ BattleBGEffect_DoubleTeam:
dw .four dw .four
dw .five dw .five
.zero .zero
call BattleBGEffects_IncrementJumptable call BattleBGEffects_IncrementJumptable
call BattleBGEffects_ClearLYOverrides call BattleBGEffects_ClearLYOverrides
@ -1242,7 +1230,6 @@ BattleBGEffect_AcidArmor:
dw .one dw .one
dw .two dw .two
.zero .zero
call BattleBGEffects_IncrementJumptable call BattleBGEffects_IncrementJumptable
call BattleBGEffects_ClearLYOverrides call BattleBGEffects_ClearLYOverrides
@ -1305,7 +1292,6 @@ BattleBGEffect_Withdraw:
dw .one dw .one
dw .two dw .two
.zero .zero
call BattleBGEffects_IncrementJumptable call BattleBGEffects_IncrementJumptable
call BattleBGEffects_ClearLYOverrides call BattleBGEffects_ClearLYOverrides
@ -1355,7 +1341,6 @@ BattleBGEffect_Dig:
dw .two dw .two
dw .three dw .three
.zero .zero
call BattleBGEffects_IncrementJumptable call BattleBGEffects_IncrementJumptable
call BattleBGEffects_ClearLYOverrides call BattleBGEffects_ClearLYOverrides
@ -1422,7 +1407,6 @@ BattleBGEffect_Tackle:
dw Tackle_BGEffect25_2d_two dw Tackle_BGEffect25_2d_two
dw .three dw .three
.zero .zero
call BattleBGEffects_IncrementJumptable call BattleBGEffects_IncrementJumptable
call BattleBGEffects_ClearLYOverrides call BattleBGEffects_ClearLYOverrides
@ -1457,7 +1441,6 @@ BattleBGEffect_25:
dw Tackle_BGEffect25_2d_two dw Tackle_BGEffect25_2d_two
dw .three dw .three
.zero .zero
call BattleBGEffects_IncrementJumptable call BattleBGEffects_IncrementJumptable
call BattleBGEffects_ClearLYOverrides call BattleBGEffects_ClearLYOverrides
@ -1585,7 +1568,6 @@ BattleBGEffect_2d:
dw Tackle_BGEffect25_2d_two dw Tackle_BGEffect25_2d_two
dw .three dw .three
.three .three
call BattleAnim_ResetLCDStatCustom call BattleAnim_ResetLCDStatCustom
ret ret
@ -1633,7 +1615,6 @@ BattleBGEffect_26:
dw .one dw .one
dw .two dw .two
.zero .zero
call BattleBGEffects_IncrementJumptable call BattleBGEffects_IncrementJumptable
call BattleBGEffects_ClearLYOverrides call BattleBGEffects_ClearLYOverrides
@ -1672,7 +1653,6 @@ BattleBGEffect_2c:
dw .one dw .one
dw .two dw .two
.zero .zero
call BattleBGEffects_IncrementJumptable call BattleBGEffects_IncrementJumptable
call BattleBGEffects_ClearLYOverrides call BattleBGEffects_ClearLYOverrides
@ -1727,7 +1707,6 @@ BattleBGEffect_28:
dw .one dw .one
dw .two dw .two
.zero .zero
call BattleBGEffects_IncrementJumptable call BattleBGEffects_IncrementJumptable
call BattleBGEffects_ClearLYOverrides call BattleBGEffects_ClearLYOverrides
@ -1770,7 +1749,6 @@ BattleBGEffect_BounceDown:
dw .one dw .one
dw .two dw .two
.zero .zero
call BattleBGEffects_IncrementJumptable call BattleBGEffects_IncrementJumptable
call BattleBGEffects_ClearLYOverrides call BattleBGEffects_ClearLYOverrides
@ -1928,7 +1906,6 @@ BattleBGEffect_2b:
dw .zero dw .zero
dw .one dw .one
.zero .zero
call BattleBGEffects_IncrementJumptable call BattleBGEffects_IncrementJumptable
call BattleBGEffects_ClearLYOverrides call BattleBGEffects_ClearLYOverrides
@ -1969,7 +1946,6 @@ BattleBGEffect_1c:
dw .one dw .one
dw .two dw .two
.zero .zero
call BattleBGEffects_IncrementJumptable call BattleBGEffects_IncrementJumptable
ld a, $e4 ld a, $e4
@ -2196,7 +2172,6 @@ BattleBGEffect_VibrateMon:
dw .zero dw .zero
dw .one dw .one
.zero .zero
call BattleBGEffects_IncrementJumptable call BattleBGEffects_IncrementJumptable
call BattleBGEffects_ClearLYOverrides call BattleBGEffects_ClearLYOverrides
@ -2242,7 +2217,6 @@ BattleBGEffect_WobbleMon:
dw .one dw .one
dw .two dw .two
.zero .zero
call BattleBGEffects_IncrementJumptable call BattleBGEffects_IncrementJumptable
call BattleBGEffects_ClearLYOverrides call BattleBGEffects_ClearLYOverrides
@ -2407,7 +2381,6 @@ BGEffect_RapidCyclePals:
dw .one_dmg dw .one_dmg
dw .two_dmg dw .two_dmg
.zero_dmg .zero_dmg
call BattleBGEffects_IncrementJumptable call BattleBGEffects_IncrementJumptable
ld a, $e4 ld a, $e4
@ -2472,7 +2445,6 @@ BGEffect_RapidCyclePals:
dw .three_cgb dw .three_cgb
dw .four_cgb dw .four_cgb
.zero_cgb .zero_cgb
call BGEffect_CheckBattleTurn call BGEffect_CheckBattleTurn
jr nz, .player_turn_cgb jr nz, .player_turn_cgb
@ -2932,4 +2904,3 @@ BattleBGEffects_Cosine:
callfar BattleAnim_Cosine_e callfar BattleAnim_Cosine_e
ld a, e ld a, e
ret ret

Some files were not shown because too many files have changed in this diff Show More