Arrays end with -1, not $ff

This commit is contained in:
Remy Oukaour 2018-01-10 22:53:42 -05:00
parent 546f1f7115
commit 0a3b251dcb
19 changed files with 884 additions and 881 deletions

View File

@ -22,6 +22,7 @@ BASE_PRIORITY EQU 1
; type effectiveness factors, scaled by 10
SUPER_EFFECTIVE EQU 20
MORE_EFFECTIVE EQU 15
EFFECTIVE EQU 10
NOT_VERY_EFFECTIVE EQU 05
NO_EFFECT EQU 00

View File

@ -43,7 +43,7 @@ MartCherrygrove: ; 160ed
db ANTIDOTE
db PARLYZ_HEAL
db AWAKENING
db $ff
db -1 ; end
; 160f3
MartCherrygroveDex: ; 160f3
@ -53,7 +53,7 @@ MartCherrygroveDex: ; 160f3
db ANTIDOTE
db PARLYZ_HEAL
db AWAKENING
db $ff
db -1 ; end
; 160fa
MartViolet: ; 160fa
@ -68,7 +68,7 @@ MartViolet: ; 160fa
db X_ATTACK
db X_SPEED
db FLOWER_MAIL
db $ff
db -1 ; end
; 16106
MartAzalea: ; 16106
@ -82,7 +82,7 @@ MartAzalea: ; 16106
db ANTIDOTE
db PARLYZ_HEAL
db FLOWER_MAIL
db $ff
db -1 ; end
; 16111
MartCianwood: ; 16111
@ -92,7 +92,7 @@ MartCianwood: ; 16111
db HYPER_POTION
db FULL_HEAL
db REVIVE
db $ff
db -1 ; end
; 16118
MartGoldenrod2F1: ; 16118
@ -104,7 +104,7 @@ MartGoldenrod2F1: ; 16118
db AWAKENING
db BURN_HEAL
db ICE_HEAL
db $ff
db -1 ; end
; 16121
MartGoldenrod2F2: ; 16121
@ -117,7 +117,7 @@ MartGoldenrod2F2: ; 16121
db FULL_HEAL
db POKE_DOLL
db FLOWER_MAIL
db $ff
db -1 ; end
; 1612b
MartGoldenrod3F: ; 1612b
@ -129,7 +129,7 @@ MartGoldenrod3F: ; 1612b
db DIRE_HIT
db GUARD_SPEC
db X_ACCURACY
db $ff
db -1 ; end
; 16134
MartGoldenrod4F: ; 16134
@ -139,7 +139,7 @@ MartGoldenrod4F: ; 16134
db CARBOS
db CALCIUM
db HP_UP
db $ff
db -1 ; end
; 1613b
MartGoldenrod5F1: ; 1613b
@ -147,7 +147,7 @@ MartGoldenrod5F1: ; 1613b
db TM_THUNDERPUNCH
db TM_FIRE_PUNCH
db TM_ICE_PUNCH
db $ff
db -1 ; end
; 16140
MartGoldenrod5F2: ; 16140
@ -156,7 +156,7 @@ MartGoldenrod5F2: ; 16140
db TM_FIRE_PUNCH
db TM_ICE_PUNCH
db TM_HEADBUTT
db $ff
db -1 ; end
; 16146
MartGoldenrod5F3: ; 16146
@ -165,7 +165,7 @@ MartGoldenrod5F3: ; 16146
db TM_FIRE_PUNCH
db TM_ICE_PUNCH
db TM_ROCK_SMASH
db $ff
db -1 ; end
; 1614c
MartGoldenrod5F4: ; 1614c
@ -175,7 +175,7 @@ MartGoldenrod5F4: ; 1614c
db TM_ICE_PUNCH
db TM_HEADBUTT
db TM_ROCK_SMASH
db $ff
db -1 ; end
; 16153
MartOlivine: ; 16153
@ -189,7 +189,7 @@ MartOlivine: ; 16153
db ICE_HEAL
db SUPER_REPEL
db SURF_MAIL
db $ff
db -1 ; end
; 1615e
MartEcruteak: ; 1615e
@ -204,7 +204,7 @@ MartEcruteak: ; 1615e
db BURN_HEAL
db ICE_HEAL
db REVIVE
db $ff
db -1 ; end
; 1616a
MartMahogany1: ; 1616a
@ -213,7 +213,7 @@ MartMahogany1: ; 1616a
db SLOWPOKETAIL
db POKE_BALL
db POTION
db $ff
db -1 ; end
; 16170
MartMahogany2: ; 16170
@ -227,7 +227,7 @@ MartMahogany2: ; 16170
db SUPER_REPEL
db REVIVE
db FLOWER_MAIL
db $ff
db -1 ; end
; 1617b
MartBlackthorn: ; 1617b
@ -241,7 +241,7 @@ MartBlackthorn: ; 1617b
db MAX_REPEL
db X_DEFEND
db X_ATTACK
db $ff
db -1 ; end
; 16186
MartViridian: ; 16186
@ -255,7 +255,7 @@ MartViridian: ; 16186
db AWAKENING
db BURN_HEAL
db FLOWER_MAIL
db $ff
db -1 ; end
; 16191
MartPewter: ; 16191
@ -267,7 +267,7 @@ MartPewter: ; 16191
db PARLYZ_HEAL
db AWAKENING
db BURN_HEAL
db $ff
db -1 ; end
; 1619a
MartCerulean: ; 1619a
@ -281,7 +281,7 @@ MartCerulean: ; 1619a
db X_ATTACK
db DIRE_HIT
db SURF_MAIL
db $ff
db -1 ; end
; 161a5
MartLavender: ; 161a5
@ -294,7 +294,7 @@ MartLavender: ; 161a5
db PARLYZ_HEAL
db AWAKENING
db BURN_HEAL
db $ff
db -1 ; end
; 161af
MartVermilion: ; 161af
@ -307,7 +307,7 @@ MartVermilion: ; 161af
db AWAKENING
db BURN_HEAL
db LITEBLUEMAIL
db $ff
db -1 ; end
; 161b9
MartCeladon2F1: ; 161b9
@ -319,7 +319,7 @@ MartCeladon2F1: ; 161b9
db REVIVE
db SUPER_REPEL
db MAX_REPEL
db $ff
db -1 ; end
; 161c2
MartCeladon2F2: ; 161c2
@ -334,7 +334,7 @@ MartCeladon2F2: ; 161c2
db ICE_HEAL
db AWAKENING
db PARLYZ_HEAL
db $ff
db -1 ; end
; 161ce
MartCeladon3F: ; 161ce
@ -344,7 +344,7 @@ MartCeladon3F: ; 161ce
db TM_PROTECT
db TM_RAIN_DANCE
db TM_SANDSTORM
db $ff
db -1 ; end
; 161d5
MartCeladon4F: ; 161d5
@ -352,7 +352,7 @@ MartCeladon4F: ; 161d5
db POKE_DOLL
db LOVELY_MAIL
db SURF_MAIL
db $ff
db -1 ; end
; 161da
MartCeladon5F1: ; 161da
@ -362,7 +362,7 @@ MartCeladon5F1: ; 161da
db IRON
db CARBOS
db CALCIUM
db $ff
db -1 ; end
; 161e1
MartCeladon5F2: ; 161e1
@ -374,7 +374,7 @@ MartCeladon5F2: ; 161e1
db X_DEFEND
db X_SPEED
db X_SPECIAL
db $ff
db -1 ; end
; 161ea
MartFuchsia: ; 161ea
@ -386,7 +386,7 @@ MartFuchsia: ; 161ea
db FULL_HEAL
db MAX_REPEL
db FLOWER_MAIL
db $ff
db -1 ; end
; 161f3
MartSaffron: ; 161f3
@ -399,7 +399,7 @@ MartSaffron: ; 161f3
db X_ATTACK
db X_DEFEND
db FLOWER_MAIL
db $ff
db -1 ; end
; 161fd
MartMtMoon: ; 161fd
@ -410,7 +410,7 @@ MartMtMoon: ; 161fd
db LEMONADE
db REPEL
db PORTRAITMAIL
db $ff
db -1 ; end
; 16205
MartIndigoPlateau: ; 16205
@ -422,7 +422,7 @@ MartIndigoPlateau: ; 16205
db FULL_RESTORE
db REVIVE
db FULL_HEAL
db $ff
db -1 ; end
; 1620e
MartUnderground: ; 1620e
@ -431,12 +431,12 @@ MartUnderground: ; 1620e
db ENERGY_ROOT
db HEAL_POWDER
db REVIVAL_HERB
db $ff
db -1 ; end
; 16214
DefaultMart: ; 16214
db 2 ; # items
db POKE_BALL
db POTION
db $ff
db -1 ; end
; 16218

97
data/moves/grammar.asm Normal file
View File

@ -0,0 +1,97 @@
; Used by GetMoveGrammar (see engine/battle/used_move_text.asm)
; Each move is given an identifier for what usedmovetext to use (0-4).
; Made redundant in English localization.
MoveGrammar: ; 105e7a
; 0
db SWORDS_DANCE
db GROWTH
db STRENGTH
db HARDEN
db MINIMIZE
db SMOKESCREEN
db WITHDRAW
db DEFENSE_CURL
db EGG_BOMB
db SMOG
db BONE_CLUB
db FLASH
db SPLASH
db ACID_ARMOR
db BONEMERANG
db REST
db SHARPEN
db SUBSTITUTE
db MIND_READER
db SNORE
db PROTECT
db SPIKES
db ENDURE
db ROLLOUT
db SWAGGER
db SLEEP_TALK
db HIDDEN_POWER
db PSYCH_UP
db EXTREMESPEED
db 0 ; end set
; 1
db RECOVER
db TELEPORT
db BIDE
db SELFDESTRUCT
db AMNESIA
db FLAIL
db 0 ; end set
; 2
db MEDITATE
db AGILITY
db MIMIC
db DOUBLE_TEAM
db BARRAGE
db TRANSFORM
db STRUGGLE
db SCARY_FACE
db 0 ; end set
; 3
db POUND
db SCRATCH
db VICEGRIP
db WING_ATTACK
db FLY
db BIND
db SLAM
db HORN_ATTACK
db WRAP
db THRASH
db TAIL_WHIP
db LEER
db BITE
db GROWL
db ROAR
db SING
db PECK
db ABSORB
db STRING_SHOT
db EARTHQUAKE
db FISSURE
db DIG
db TOXIC
db SCREECH
db METRONOME
db LICK
db CLAMP
db CONSTRICT
db POISON_GAS
db BUBBLE
db SLASH
db SPIDER_WEB
db NIGHTMARE
db CURSE
db FORESIGHT
db CHARM
db ATTRACT
db ROCK_SMASH
db 0 ; end set
; all other moves = 4
db -1 ; end
; 105ed0

View File

@ -26,7 +26,7 @@ if !_CRYSTAL
endc
db RAZOR_WIND
db PETAL_DANCE
db $ff
db -1 ; end
CharmanderEggMoves:
db BELLY_DRUM
@ -35,7 +35,7 @@ CharmanderEggMoves:
db BITE
db OUTRAGE
db BEAT_UP
db $ff
db -1 ; end
SquirtleEggMoves:
db MIRROR_COAT
@ -44,7 +44,7 @@ SquirtleEggMoves:
db CONFUSION
db FORESIGHT
db FLAIL
db $ff
db -1 ; end
PidgeyEggMoves:
db PURSUIT
@ -53,7 +53,7 @@ PidgeyEggMoves:
if !_CRYSTAL
db STEEL_WING
endc
db $ff
db -1 ; end
RattataEggMoves:
db SCREECH
@ -62,7 +62,7 @@ RattataEggMoves:
db BITE
db COUNTER
db REVERSAL
db $ff
db -1 ; end
SpearowEggMoves:
db FAINT_ATTACK
@ -70,7 +70,7 @@ SpearowEggMoves:
db SCARY_FACE
db QUICK_ATTACK
db TRI_ATTACK
db $ff
db -1 ; end
EkansEggMoves:
db PURSUIT
@ -80,7 +80,7 @@ EkansEggMoves:
if _CRYSTAL
db CRUNCH
endc
db $ff
db -1 ; end
SandshrewEggMoves:
db FLAIL
@ -90,7 +90,7 @@ SandshrewEggMoves:
if _CRYSTAL
db METAL_CLAW
endc
db $ff
db -1 ; end
NidoranFEggMoves:
db SUPERSONIC
@ -100,7 +100,7 @@ NidoranFEggMoves:
db CHARM
db COUNTER
db BEAT_UP
db $ff
db -1 ; end
NidoranMEggMoves:
db SUPERSONIC
@ -110,7 +110,7 @@ NidoranMEggMoves:
db AMNESIA
db COUNTER
db BEAT_UP
db $ff
db -1 ; end
VulpixEggMoves:
db FAINT_ATTACK
@ -118,7 +118,7 @@ VulpixEggMoves:
db FLAIL
db SPITE
db DISABLE
db $ff
db -1 ; end
ZubatEggMoves:
db QUICK_ATTACK
@ -126,7 +126,7 @@ ZubatEggMoves:
db FAINT_ATTACK
db GUST
db WHIRLWIND
db $ff
db -1 ; end
OddishEggMoves:
db SWORDS_DANCE
@ -136,7 +136,7 @@ OddishEggMoves:
if !_CRYSTAL
db CHARM
endc
db $ff
db -1 ; end
ParasEggMoves:
db FALSE_SWIPE
@ -149,13 +149,13 @@ if !_CRYSTAL
endc
db LIGHT_SCREEN
db PURSUIT
db $ff
db -1 ; end
VenonatEggMoves:
db BATON_PASS
db SCREECH
db GIGA_DRAIN
db $ff
db -1 ; end
DiglettEggMoves:
db FAINT_ATTACK
@ -163,14 +163,14 @@ DiglettEggMoves:
db ANCIENTPOWER
db PURSUIT
db BEAT_UP
db $ff
db -1 ; end
MeowthEggMoves:
db SPITE
db CHARM
db HYPNOSIS
db AMNESIA
db $ff
db -1 ; end
PsyduckEggMoves:
db ICE_BEAM
@ -183,7 +183,7 @@ PsyduckEggMoves:
if _CRYSTAL
db CROSS_CHOP
endc
db $ff
db -1 ; end
MankeyEggMoves:
db ROCK_SLIDE
@ -192,7 +192,7 @@ MankeyEggMoves:
db COUNTER
db REVERSAL
db BEAT_UP
db $ff
db -1 ; end
GrowlitheEggMoves:
db BODY_SLAM
@ -200,7 +200,7 @@ GrowlitheEggMoves:
db CRUNCH
db THRASH
db FIRE_SPIN
db $ff
db -1 ; end
PoliwagEggMoves:
db MIST
@ -208,20 +208,20 @@ PoliwagEggMoves:
db BUBBLEBEAM
db HAZE
db MIND_READER
db $ff
db -1 ; end
AbraEggMoves:
db LIGHT_SCREEN
db ENCORE
db BARRIER
db $ff
db -1 ; end
MachopEggMoves:
db LIGHT_SCREEN
db MEDITATE
db ROLLING_KICK
db ENCORE
db $ff
db -1 ; end
BellsproutEggMoves:
db SWORDS_DANCE
@ -229,7 +229,7 @@ BellsproutEggMoves:
db REFLECT
db SYNTHESIS
db LEECH_LIFE
db $ff
db -1 ; end
TentacoolEggMoves:
db AURORA_BEAM
@ -237,12 +237,12 @@ TentacoolEggMoves:
db RAPID_SPIN
db HAZE
db SAFEGUARD
db $ff
db -1 ; end
GeodudeEggMoves:
db MEGA_PUNCH
db ROCK_SLIDE
db $ff
db -1 ; end
PonytaEggMoves:
db FLAME_WHEEL
@ -251,14 +251,14 @@ PonytaEggMoves:
db HYPNOSIS
db CHARM
db QUICK_ATTACK
db $ff
db -1 ; end
SlowpokeEggMoves:
db SAFEGUARD
db BELLY_DRUM
db FUTURE_SIGHT
db STOMP
db $ff
db -1 ; end
FarfetchDEggMoves:
if !_CRYSTAL
@ -269,7 +269,7 @@ endc
db GUST
db QUICK_ATTACK
db FLAIL
db $ff
db -1 ; end
DoduoEggMoves:
db QUICK_ATTACK
@ -277,7 +277,7 @@ DoduoEggMoves:
db HAZE
db FAINT_ATTACK
db FLAIL
db $ff
db -1 ; end
SeelEggMoves:
db LICK
@ -286,13 +286,13 @@ SeelEggMoves:
db PECK
db SLAM
db ENCORE
db $ff
db -1 ; end
GrimerEggMoves:
db HAZE
db MEAN_LOOK
db LICK
db $ff
db -1 ; end
ShellderEggMoves:
db BUBBLEBEAM
@ -300,23 +300,23 @@ ShellderEggMoves:
db BARRIER
db RAPID_SPIN
db SCREECH
db $ff
db -1 ; end
GastlyEggMoves:
db PSYWAVE
db PERISH_SONG
db HAZE
db $ff
db -1 ; end
OnixEggMoves:
db ROCK_SLIDE
db FLAIL
db $ff
db -1 ; end
DrowzeeEggMoves:
db LIGHT_SCREEN
db BARRIER
db $ff
db -1 ; end
KrabbyEggMoves:
db DIG
@ -324,7 +324,7 @@ KrabbyEggMoves:
db AMNESIA
db FLAIL
db SLAM
db $ff
db -1 ; end
ExeggcuteEggMoves:
db SYNTHESIS
@ -332,7 +332,7 @@ ExeggcuteEggMoves:
db REFLECT
db MEGA_DRAIN
db ANCIENTPOWER
db $ff
db -1 ; end
CuboneEggMoves:
db ROCK_SLIDE
@ -344,13 +344,13 @@ CuboneEggMoves:
if _CRYSTAL
db SWORDS_DANCE
endc
db $ff
db -1 ; end
LickitungEggMoves:
db BELLY_DRUM
db MAGNITUDE
db BODY_SLAM
db $ff
db -1 ; end
KoffingEggMoves:
db SCREECH
@ -358,7 +358,7 @@ KoffingEggMoves:
db PSYBEAM
db DESTINY_BOND
db PAIN_SPLIT
db $ff
db -1 ; end
RhyhornEggMoves:
db CRUNCH
@ -368,13 +368,13 @@ RhyhornEggMoves:
db PURSUIT
db COUNTER
db MAGNITUDE
db $ff
db -1 ; end
ChanseyEggMoves:
db PRESENT
db METRONOME
db HEAL_BELL
db $ff
db -1 ; end
TangelaEggMoves:
db FLAIL
@ -382,7 +382,7 @@ TangelaEggMoves:
db MEGA_DRAIN
db REFLECT
db AMNESIA
db $ff
db -1 ; end
KangaskhanEggMoves:
db STOMP
@ -390,7 +390,7 @@ KangaskhanEggMoves:
db FOCUS_ENERGY
db SAFEGUARD
db DISABLE
db $ff
db -1 ; end
HorseaEggMoves:
db FLAIL
@ -399,27 +399,27 @@ HorseaEggMoves:
db DISABLE
db SPLASH
db DRAGON_RAGE
db $ff
db -1 ; end
GoldeenEggMoves:
db PSYBEAM
db HAZE
db HYDRO_PUMP
db $ff
db -1 ; end
if !_CRYSTAL
StaryuEggMoves:
db AURORA_BEAM
db BARRIER
db SUPERSONIC
db $ff
db -1 ; end
endc
MrMimeEggMoves:
db FUTURE_SIGHT
db HYPNOSIS
db MIMIC
db $ff
db -1 ; end
ScytherEggMoves:
db COUNTER
@ -428,22 +428,22 @@ ScytherEggMoves:
db RAZOR_WIND
db REVERSAL
db LIGHT_SCREEN
db $ff
db -1 ; end
PinsirEggMoves:
db FURY_ATTACK
db FLAIL
db $ff
db -1 ; end
LaprasEggMoves:
db AURORA_BEAM
db FORESIGHT
db $ff
db -1 ; end
EeveeEggMoves:
db FLAIL
db CHARM
db $ff
db -1 ; end
OmanyteEggMoves:
db BUBBLEBEAM
@ -451,7 +451,7 @@ OmanyteEggMoves:
db SLAM
db SUPERSONIC
db HAZE
db $ff
db -1 ; end
KabutoEggMoves:
db BUBBLEBEAM
@ -459,7 +459,7 @@ KabutoEggMoves:
db RAPID_SPIN
db DIG
db FLAIL
db $ff
db -1 ; end
AerodactylEggMoves:
db WHIRLWIND
@ -468,21 +468,21 @@ AerodactylEggMoves:
if !_CRYSTAL
db STEEL_WING
endc
db $ff
db -1 ; end
SnorlaxEggMoves:
db LICK
if !_CRYSTAL
db CHARM
endc
db $ff
db -1 ; end
DratiniEggMoves:
db LIGHT_SCREEN
db MIST
db HAZE
db SUPERSONIC
db $ff
db -1 ; end
ChikoritaEggMoves:
db VINE_WHIP
@ -491,7 +491,7 @@ ChikoritaEggMoves:
db ANCIENTPOWER
db FLAIL
db SWORDS_DANCE
db $ff
db -1 ; end
CyndaquilEggMoves:
db FURY_SWIPES
@ -502,7 +502,7 @@ CyndaquilEggMoves:
if _CRYSTAL
db SUBMISSION
endc
db $ff
db -1 ; end
TotodileEggMoves:
db CRUNCH
@ -511,7 +511,7 @@ TotodileEggMoves:
db ANCIENTPOWER
db RAZOR_WIND
db ROCK_SLIDE
db $ff
db -1 ; end
SentretEggMoves:
db DOUBLE_EDGE
@ -519,7 +519,7 @@ SentretEggMoves:
db SLASH
db FOCUS_ENERGY
db REVERSAL
db $ff
db -1 ; end
HoothootEggMoves:
db MIRROR_MOVE
@ -530,13 +530,13 @@ HoothootEggMoves:
if _CRYSTAL
db SKY_ATTACK
endc
db $ff
db -1 ; end
LedybaEggMoves:
db PSYBEAM
db BIDE
db LIGHT_SCREEN
db $ff
db -1 ; end
SpinarakEggMoves:
db PSYBEAM
@ -544,13 +544,13 @@ SpinarakEggMoves:
db SONICBOOM
db BATON_PASS
db PURSUIT
db $ff
db -1 ; end
ChinchouEggMoves:
db FLAIL
db SUPERSONIC
db SCREECH
db $ff
db -1 ; end
PichuEggMoves:
db REVERSAL
@ -558,7 +558,7 @@ PichuEggMoves:
db PRESENT
db ENCORE
db DOUBLESLAP
db $ff
db -1 ; end
CleffaEggMoves:
db PRESENT
@ -567,13 +567,13 @@ CleffaEggMoves:
db BELLY_DRUM
db SPLASH
db MIMIC
db $ff
db -1 ; end
IgglybuffEggMoves:
db PERISH_SONG
db PRESENT
db FAINT_ATTACK
db $ff
db -1 ; end
TogepiEggMoves:
db PRESENT
@ -581,7 +581,7 @@ TogepiEggMoves:
db PECK
db FORESIGHT
db FUTURE_SIGHT
db $ff
db -1 ; end
NatuEggMoves:
db HAZE
@ -589,7 +589,7 @@ NatuEggMoves:
db QUICK_ATTACK
db FAINT_ATTACK
db STEEL_WING
db $ff
db -1 ; end
MareepEggMoves:
db THUNDERBOLT
@ -598,7 +598,7 @@ MareepEggMoves:
db SAFEGUARD
db SCREECH
db REFLECT
db $ff
db -1 ; end
MarillEggMoves:
db LIGHT_SCREEN
@ -609,11 +609,11 @@ MarillEggMoves:
db PERISH_SONG
db SUPERSONIC
db FORESIGHT
db $ff
db -1 ; end
SudowoodoEggMoves:
db SELFDESTRUCT
db $ff
db -1 ; end
HoppipEggMoves:
db CONFUSION
@ -623,7 +623,7 @@ HoppipEggMoves:
db REFLECT
db AMNESIA
db PAY_DAY
db $ff
db -1 ; end
AipomEggMoves:
db COUNTER
@ -634,19 +634,19 @@ AipomEggMoves:
db SLAM
db DOUBLESLAP
db BEAT_UP
db $ff
db -1 ; end
YanmaEggMoves:
db WHIRLWIND
db REVERSAL
db LEECH_LIFE
db $ff
db -1 ; end
WooperEggMoves:
db BODY_SLAM
db ANCIENTPOWER
db SAFEGUARD
db $ff
db -1 ; end
MurkrowEggMoves:
db WHIRLWIND
@ -657,12 +657,12 @@ MurkrowEggMoves:
if _CRYSTAL
db SKY_ATTACK
endc
db $ff
db -1 ; end
MisdreavusEggMoves:
db SCREECH
db DESTINY_BOND
db $ff
db -1 ; end
GirafarigEggMoves:
db TAKE_DOWN
@ -670,14 +670,14 @@ GirafarigEggMoves:
db FORESIGHT
db FUTURE_SIGHT
db BEAT_UP
db $ff
db -1 ; end
PinecoEggMoves:
db REFLECT
db PIN_MISSILE
db FLAIL
db SWIFT
db $ff
db -1 ; end
DunsparceEggMoves:
db BIDE
@ -685,14 +685,14 @@ DunsparceEggMoves:
db ROCK_SLIDE
db BITE
db RAGE
db $ff
db -1 ; end
GligarEggMoves:
db METAL_CLAW
db WING_ATTACK
db RAZOR_WIND
db COUNTER
db $ff
db -1 ; end
SnubbullEggMoves:
db METRONOME
@ -703,24 +703,24 @@ SnubbullEggMoves:
db HEAL_BELL
db LICK
db LEER
db $ff
db -1 ; end
QwilfishEggMoves:
db FLAIL
db HAZE
db BUBBLEBEAM
db SUPERSONIC
db $ff
db -1 ; end
ShuckleEggMoves:
db SWEET_SCENT
db $ff
db -1 ; end
HeracrossEggMoves:
db HARDEN
db BIDE
db FLAIL
db $ff
db -1 ; end
SneaselEggMoves:
db COUNTER
@ -728,7 +728,7 @@ SneaselEggMoves:
db FORESIGHT
db REFLECT
db BITE
db $ff
db -1 ; end
TeddiursaEggMoves:
db CRUNCH
@ -739,11 +739,11 @@ TeddiursaEggMoves:
if _CRYSTAL
db METAL_CLAW
endc
db $ff
db -1 ; end
SlugmaEggMoves:
db ACID_ARMOR
db $ff
db -1 ; end
SwinubEggMoves:
db TAKE_DOWN
@ -751,7 +751,7 @@ SwinubEggMoves:
db BODY_SLAM
db ROCK_SLIDE
db ANCIENTPOWER
db $ff
db -1 ; end
CorsolaEggMoves:
db ROCK_SLIDE
@ -759,7 +759,7 @@ CorsolaEggMoves:
db SCREECH
db MIST
db AMNESIA
db $ff
db -1 ; end
RemoraidEggMoves:
db AURORA_BEAM
@ -767,7 +767,7 @@ RemoraidEggMoves:
db SUPERSONIC
db HAZE
db SCREECH
db $ff
db -1 ; end
DelibirdEggMoves:
db AURORA_BEAM
@ -775,14 +775,14 @@ DelibirdEggMoves:
db FUTURE_SIGHT
db SPLASH
db RAPID_SPIN
db $ff
db -1 ; end
MantineEggMoves:
db TWISTER
db HYDRO_PUMP
db HAZE
db SLAM
db $ff
db -1 ; end
SkarmoryEggMoves:
db DRILL_PECK
@ -791,7 +791,7 @@ SkarmoryEggMoves:
if _CRYSTAL
db SKY_ATTACK
endc
db $ff
db -1 ; end
HoundourEggMoves:
db FIRE_SPIN
@ -801,7 +801,7 @@ HoundourEggMoves:
db SPITE
db REVERSAL
db BEAT_UP
db $ff
db -1 ; end
PhanpyEggMoves:
db FOCUS_ENERGY
@ -810,7 +810,7 @@ PhanpyEggMoves:
if _CRYSTAL
db WATER_GUN
endc
db $ff
db -1 ; end
StantlerEggMoves:
db REFLECT
@ -818,21 +818,21 @@ StantlerEggMoves:
db DISABLE
db LIGHT_SCREEN
db BITE
db $ff
db -1 ; end
TyrogueEggMoves:
db RAPID_SPIN
db HI_JUMP_KICK
db MACH_PUNCH
db MIND_READER
db $ff
db -1 ; end
SmoochumEggMoves:
if !_CRYSTAL
db LOVELY_KISS
endc
db MEDITATE
db $ff
db -1 ; end
ElekidEggMoves:
db KARATE_CHOP
@ -842,7 +842,7 @@ ElekidEggMoves:
if _CRYSTAL
db CROSS_CHOP
endc
db $ff
db -1 ; end
MagbyEggMoves:
db KARATE_CHOP
@ -852,13 +852,13 @@ MagbyEggMoves:
if _CRYSTAL
db CROSS_CHOP
endc
db $ff
db -1 ; end
MiltankEggMoves:
db PRESENT
db REVERSAL
db SEISMIC_TOSS
db $ff
db -1 ; end
LarvitarEggMoves:
db PURSUIT
@ -866,7 +866,7 @@ LarvitarEggMoves:
db OUTRAGE
db FOCUS_ENERGY
db ANCIENTPOWER
db $ff
db -1 ; end
NoEggMoves:
db $ff
db -1 ; end

File diff suppressed because it is too large Load Diff

View File

@ -291,7 +291,7 @@ AI_Items: ; 39196
dbw X_DEFEND, .XDefend
dbw X_SPEED, .XSpeed
dbw X_SPECIAL, .XSpecial
db $ff
db -1 ; end
; 381be
.FullHeal: ; 381be

View File

@ -68,7 +68,7 @@ AI_Basic: ; 38591
db EFFECT_TOXIC
db EFFECT_POISON
db EFFECT_PARALYZE
db $ff
db -1 ; end
; 385e0
@ -400,7 +400,7 @@ AI_Smart: ; 386be
dbw EFFECT_SOLARBEAM, AI_Smart_Solarbeam
dbw EFFECT_THUNDER, AI_Smart_Thunder
dbw EFFECT_FLY, AI_Smart_Fly
db $ff
db -1 ; end
; 387e3
@ -1553,7 +1553,7 @@ AI_Smart_Encore: ; 38c3b
db AEROBLAST
db COTTON_SPORE
db POWDER_SNOW
db $ff
db -1 ; end
; 38ca4
@ -2214,7 +2214,7 @@ AI_Smart_Sandstorm: ; 38f7a
db ROCK
db GROUND
db STEEL
db $ff
db -1 ; end
; 38fac
@ -2533,7 +2533,7 @@ RainDanceMoves: ; 390e7
db CRABHAMMER
db OCTAZOOKA
db WHIRLPOOL
db $ff
db -1 ; end
; 390f3
@ -2622,7 +2622,7 @@ SunnyDayMoves: ; 39134
db SACRED_FIRE
db MORNING_SUN
db SYNTHESIS
db $ff
db -1 ; end
; 3913d
@ -3125,7 +3125,7 @@ UsefulMoves: ; 39301
db FIRE_BLAST
db SOFTBOILED
db SUPER_FANG
db $ff
db -1 ; end
; 39315
@ -3209,7 +3209,7 @@ AI_Opportunist: ; 39315
db CONVERSION
db SUBSTITUTE
db FLAME_WHEEL
db $ff
db -1 ; end
; 39369
@ -3324,7 +3324,7 @@ AI_Aggressive: ; 39369
db EFFECT_RAMPAGE
db EFFECT_MULTI_HIT
db EFFECT_DOUBLE_HIT
db $ff
db -1 ; end
; 393e7
@ -3350,7 +3350,7 @@ AIDamageCalc: ; 393e7
db EFFECT_STATIC_DAMAGE
db EFFECT_LEVEL_DAMAGE
db EFFECT_PSYWAVE
db $ff
db -1 ; end
; 39418
@ -3406,7 +3406,7 @@ AI_Cautious: ; 39418
db CONVERSION
db SUBSTITUTE
db SPIKES
db $ff
db -1 ; end
; 39453
@ -3544,7 +3544,7 @@ endr
.RiskyMoves:
db EFFECT_SELFDESTRUCT
db EFFECT_OHKO
db $ff
db -1 ; end
; 39502

View File

@ -4548,7 +4548,7 @@ UseHeldStatusHealingItem: ; 3dde9
db HELD_HEAL_SLEEP, SLP
db HELD_HEAL_PARALYZE, 1 << PAR
db HELD_HEAL_STATUS, ALL_STATUS
db $ff
db -1 ; end
; 3de51
UseConfusionHealingItem: ; 3de51
@ -4672,7 +4672,7 @@ HandleStatBoostingHeldItems: ; 3de97
dbw HELD_SP_DEFENSE_UP, BattleCommand_SpecialDefenseUp
dbw HELD_ACCURACY_UP, BattleCommand_AccuracyUp
dbw HELD_EVASION_UP, BattleCommand_EvasionUp
db $ff
db -1 ; end
; 3df12
GetPartymonItem: ; 3df12

View File

@ -31,7 +31,7 @@ BattleCommand_Present: ; 37874
ld c, 0
.next
ld a, [hli]
cp $ff
cp -1
jr z, .heal_effect ; 378a4 $11
cp b
jr nc, .got_power ; 378a7 $4
@ -89,5 +89,5 @@ BattleCommand_Present: ; 37874
db 40 percent, 40
db 70 percent + 1, 80
db 80 percent, 120
db $ff
db -1 ; end
; 3790e

View File

@ -146,15 +146,15 @@ DoWeatherModifiers: ; fbda4
ret
.WeatherTypeModifiers:
db WEATHER_RAIN, WATER, 15
db WEATHER_RAIN, FIRE, 05
db WEATHER_SUN, FIRE, 15
db WEATHER_SUN, WATER, 05
db $ff
db WEATHER_RAIN, WATER, MORE_EFFECTIVE
db WEATHER_RAIN, FIRE, NOT_VERY_EFFECTIVE
db WEATHER_SUN, FIRE, MORE_EFFECTIVE
db WEATHER_SUN, WATER, NOT_VERY_EFFECTIVE
db -1 ; end
.WeatherMoveModifiers:
db WEATHER_RAIN, EFFECT_SOLARBEAM, 05
db $ff
db WEATHER_RAIN, EFFECT_SOLARBEAM, NOT_VERY_EFFECTIVE
db -1 ; end
; fbe24
@ -183,7 +183,7 @@ DoBadgeTypeBoosts: ; fbe24
.CheckBadge:
ld a, [hl]
cp $ff
cp -1
jr z, .done
srl b
@ -236,22 +236,24 @@ DoBadgeTypeBoosts: ; fbe24
ret
.BadgeTypes:
db FLYING ; zephyrbadge
db BUG ; hivebadge
db NORMAL ; plainbadge
db GHOST ; fogbadge
db STEEL ; mineralbadge
db FIGHTING ; stormbadge
db ICE ; glacierbadge
db DRAGON ; risingbadge
db ROCK ; boulderbadge
db WATER ; cascadebadge
db ELECTRIC ; thunderbadge
db GRASS ; rainbowbadge
db POISON ; soulbadge
db PSYCHIC ; marshbadge
db FIRE ; volcanobadge
db GROUND ; earthbadge
db $ff
; entries correspond to wJohtoBadges constants
db FLYING ; ZEPHYRBADGE
db BUG ; HIVEBADGE
db NORMAL ; PLAINBADGE
db GHOST ; FOGBADGE
db STEEL ; MINERALBADGE
db FIGHTING ; STORMBADGE
db ICE ; GLACIERBADGE
db DRAGON ; RISINGBADGE
; fallthrough
; entries correspond to wKantoBadges constants
db ROCK ; BOULDERBADGE
db WATER ; CASCADEBADGE
db ELECTRIC ; THUNDERBADGE
db GRASS ; RAINBOWBADGE
db POISON ; SOULBADGE
db PSYCHIC ; MARSHBADGE
db FIRE ; VOLCANOBADGE
db GROUND ; EARTHBADGE
db -1 ; end
; fbe91

View File

@ -157,12 +157,12 @@ GetMoveGrammar: ; 105e5c
.loop
ld a, [hli]
; end of table?
cp $ff
cp -1
jr z, .end
; match?
cp c
jr z, .end
; advance grammar type at $00
; advance grammar type at 0
and a
jr nz, .loop
; next grammar type
@ -179,106 +179,7 @@ GetMoveGrammar: ; 105e5c
ret
; 105e7a
MoveGrammar: ; 105e7a
; made redundant in localization
; each move is given an identifier for what usedmovetext to use (0-4):
; 0
db SWORDS_DANCE
db GROWTH
db STRENGTH
db HARDEN
db MINIMIZE
db SMOKESCREEN
db WITHDRAW
db DEFENSE_CURL
db EGG_BOMB
db SMOG
db BONE_CLUB
db FLASH
db SPLASH
db ACID_ARMOR
db BONEMERANG
db REST
db SHARPEN
db SUBSTITUTE
db MIND_READER
db SNORE
db PROTECT
db SPIKES
db ENDURE
db ROLLOUT
db SWAGGER
db SLEEP_TALK
db HIDDEN_POWER
db PSYCH_UP
db EXTREMESPEED
db 0 ; end set
; 1
db RECOVER
db TELEPORT
db BIDE
db SELFDESTRUCT
db AMNESIA
db FLAIL
db 0 ; end set
; 2
db MEDITATE
db AGILITY
db MIMIC
db DOUBLE_TEAM
db BARRAGE
db TRANSFORM
db STRUGGLE
db SCARY_FACE
db 0 ; end set
; 3
db POUND
db SCRATCH
db VICEGRIP
db WING_ATTACK
db FLY
db BIND
db SLAM
db HORN_ATTACK
db WRAP
db THRASH
db TAIL_WHIP
db LEER
db BITE
db GROWL
db ROAR
db SING
db PECK
db ABSORB
db STRING_SHOT
db EARTHQUAKE
db FISSURE
db DIG
db TOXIC
db SCREECH
db METRONOME
db LICK
db CLAMP
db CONSTRICT
db POISON_GAS
db BUBBLE
db SLASH
db SPIDER_WEB
db NIGHTMARE
db CURSE
db FORESIGHT
db CHARM
db ATTRACT
db ROCK_SMASH
db 0 ; end set
; all other moves = 4
db $ff ; end
; 105ed0
INCLUDE "data/moves/grammar.asm"
UpdateUsedMoves: ; 105ed0

View File

@ -137,7 +137,7 @@ Special_DisplayUnownWords: ; 8ae68
.loop2
ld a, [de]
inc de
cp $ff
cp -1
jr nz, .loop2
dec c
jr nz, .loop2
@ -175,7 +175,7 @@ endc
db x
shift
endr
db $ff
db -1 ; end
ENDM
.UnownText: ; 8aebc

View File

@ -748,7 +748,7 @@ BallMultiplierFunctionTable:
dbw MOON_BALL, MoonBallMultiplier
dbw LOVE_BALL, LoveBallMultiplier
dbw PARK_BALL, ParkBallMultiplier
db $ff
db -1 ; end
UltraBallMultiplier:
; multiply catch rate by 2

View File

@ -774,12 +774,12 @@ Dakutens: ; Dummied out
db "サザ", "シジ", "スズ", "セゼ", "ソゾ"
db "タダ", "チヂ", "ツヅ", "テデ", "トド"
db "ハバ", "ヒビ", "フブ", "へべ", "ホボ"
db $ff
db -1 ; end
Handakutens: ; Dummied out
db "はぱ", "ひぴ", "ふぷ", "へぺ", "ほぽ"
db "ハパ", "ヒピ", "フプ", "へぺ", "ホポ"
db $ff
db -1 ; end
; 11bbc

View File

@ -77,7 +77,7 @@ GetPlayerSprite: ; 14183
cp c
jr z, .good
inc hl
cp $ff
cp -1
jr nz, .loop
; Any player state not in the array defaults to Chris's sprite.
@ -100,14 +100,14 @@ GetPlayerSprite: ; 14183
db PLAYER_BIKE, SPRITE_CHRIS_BIKE
db PLAYER_SURF, SPRITE_SURF
db PLAYER_SURF_PIKA, SPRITE_SURFING_PIKACHU
db $ff
db -1 ; end
.Kris:
db PLAYER_NORMAL, SPRITE_KRIS
db PLAYER_BIKE, SPRITE_KRIS_BIKE
db PLAYER_SURF, SPRITE_SURF
db PLAYER_SURF_PIKA, SPRITE_SURFING_PIKACHU
db $ff
db -1 ; end
; 141c9

View File

@ -1,11 +1,13 @@
SLOTS_NOBIAS EQU -1
SLOTS_NOMATCH EQU -1
SLOTS_SEVEN EQU $00
SLOTS_NO_BIAS EQU -1
SLOTS_NO_MATCH EQU -1
SLOTS_SEVEN EQU $00
SLOTS_POKEBALL EQU $04
SLOTS_CHERRY EQU $08
SLOTS_PIKACHU EQU $0c
SLOTS_CHERRY EQU $08
SLOTS_PIKACHU EQU $0c
SLOTS_SQUIRTLE EQU $10
SLOTS_STARYU EQU $14
SLOTS_STARYU EQU $14
REEL_SIZE EQU 15
; Constants for slot_reel offsets (see macros/wram.asm)
@ -148,7 +150,7 @@ _SlotMachine:
ld [hl], $40
xor a ; SLOTS_INIT
ld [wJumptableIndex], a
ld a, SLOTS_NOBIAS
ld a, SLOTS_NO_BIAS
ld [wSlotBias], a
ld de, MUSIC_GAME_CORNER
call PlayMusic
@ -309,7 +311,7 @@ SlotsAction_Init: ; 9287e (24:687e)
xor a
ld [wFirstTwoReelsMatching], a
ld [wFirstTwoReelsMatchingSevens], a
ld a, SLOTS_NOMATCH
ld a, SLOTS_NO_MATCH
ld [wSlotMatched], a
ret
@ -417,7 +419,7 @@ SlotsAction_WaitStopReel3: ; 9293a (24:693a)
SlotsAction_FlashIfWin: ; 92955 (24:6955)
ld a, [wSlotMatched]
cp SLOTS_NOMATCH
cp SLOTS_NO_MATCH
jr nz, .GotIt
call SlotsAction_Next
call SlotsAction_Next
@ -587,7 +589,7 @@ Slots_StopReel2: ; 92a2e (24:6a2e)
ld a, [wSlotBias]
and a
jr z, .skip
cp SLOTS_NOBIAS
cp SLOTS_NO_BIAS
jr nz, .dont_jump
.skip
call .CheckReel1ForASeven
@ -997,7 +999,7 @@ ReelAction_StopReel1: ; 92c5e
; even if the current bet won't allow lining it up.
ld a, [wSlotBias]
cp SLOTS_NOBIAS
cp SLOTS_NO_BIAS
jr z, .NoBias
ld hl, REEL_MANIP_COUNTER
add hl, bc
@ -1043,7 +1045,7 @@ ReelAction_StopReel2: ; 92c86
jr z, .NoBias
.nope
ld a, [wSlotBias]
cp SLOTS_NOBIAS
cp SLOTS_NO_BIAS
jr z, .NoBias
ld hl, REEL_MANIP_COUNTER
add hl, bc
@ -1079,7 +1081,7 @@ ReelAction_StopReel3: ; 92ca9
.NoMatch:
ld a, [wSlotBias]
cp SLOTS_NOBIAS
cp SLOTS_NO_BIAS
jr z, .NoBias
ld hl, REEL_MANIP_COUNTER
add hl, bc
@ -1532,7 +1534,7 @@ Slots_CheckMatchedFirstTwoReels: ; 92e94
; 92f1d
Slots_CheckMatchedAllThreeReels: ; 92f1d
ld a, SLOTS_NOMATCH
ld a, SLOTS_NO_MATCH
ld [wSlotMatched], a
call Slots_GetCurrentReelState
call Slots_CopyReelState
@ -1552,7 +1554,7 @@ Slots_CheckMatchedAllThreeReels: ; 92f1d
.return
ld a, [wSlotMatched]
cp SLOTS_NOMATCH
cp SLOTS_NO_MATCH
jr nz, .matched_nontrivial
and a
ret
@ -1753,7 +1755,7 @@ Slots_InitBias: ; 93002 (24:7002)
db $14, SLOTS_SQUIRTLE ; 5/128
db $28, SLOTS_PIKACHU ; 5/64
db $30, SLOTS_CHERRY ; 1/32
db $ff, SLOTS_NOBIAS ; everything else
db $ff, SLOTS_NO_BIAS ; everything else
; 93031
.Lucky: ; 93031
@ -1763,7 +1765,7 @@ Slots_InitBias: ; 93002 (24:7002)
db $10, SLOTS_SQUIRTLE ; 1/32
db $1e, SLOTS_PIKACHU ; 7/128
db $50, SLOTS_CHERRY ; 25/128
db $ff, SLOTS_NOBIAS ; everything else
db $ff, SLOTS_NO_BIAS ; everything else
; 9303f
Slots_IlluminateBetLights: ; 9303f (24:703f)
@ -1924,7 +1926,7 @@ Slots_AskPlayAgain: ; 930e9 (24:70e9)
Slots_GetPayout: ; 93124 (24:7124)
ld a, [wSlotMatched]
cp SLOTS_NOMATCH
cp SLOTS_NO_MATCH
jr z, .no_win
srl a
ld e, a
@ -1957,7 +1959,7 @@ Slots_GetPayout: ; 93124 (24:7124)
Slots_PayoutText: ; 93158 (24:7158)
ld a, [wSlotMatched]
cp SLOTS_NOMATCH
cp SLOTS_NO_MATCH
jr nz, .MatchedSomething
ld hl, .Text_Darn
call PrintText
@ -2047,7 +2049,7 @@ endr
call Random
and %0010100
ret z ; 25% chance to stick with seven symbol bias
ld a, SLOTS_NOBIAS
ld a, SLOTS_NO_BIAS
ld [wSlotBias], a
ret
@ -2055,7 +2057,7 @@ endr
call Random
and %0011100
ret z ; 12.5% chance to stick with seven symbol bias
ld a, SLOTS_NOBIAS
ld a, SLOTS_NO_BIAS
ld [wSlotBias], a
ret

View File

@ -25,7 +25,7 @@ CeladonDeptStoreElevatorData:
elevfloor FLOOR_4F, 3, CELADON_DEPT_STORE_4F
elevfloor FLOOR_5F, 3, CELADON_DEPT_STORE_5F
elevfloor FLOOR_6F, 2, CELADON_DEPT_STORE_6F
db $ff ; end
db -1 ; end
CeladonDeptStoreElevator_MapEventHeader:
; filler

View File

@ -1966,32 +1966,32 @@ Unknown_89bd8: ; 89bd8
; 89be0
Unknown_89be0: ; 89be0
db $01, $12, $4e, $01, $00
db $01, $19, $4e, $01, $40
db $01, $12, $72, $01, $20
db $01, $19, $72, $01, $60
db $ff
db $01, $12, $4e, $01, 0
db $01, $19, $4e, $01, 0 | Y_FLIP
db $01, $12, $72, $01, 0 | X_FLIP
db $01, $19, $72, $01, 0 | X_FLIP | Y_FLIP
db -1 ; end
Unknown_89bf5: ; 89bf5
db $01, $60, $16, $01, $00
db $01, $62, $16, $01, $40
db $01, $60, $92, $01, $20
db $01, $62, $92, $01, $60
db $ff
db $01, $60, $16, $01, 0
db $01, $62, $16, $01, 0 | Y_FLIP
db $01, $60, $92, $01, 0 | X_FLIP
db $01, $62, $92, $01, 0 | X_FLIP | Y_FLIP
db -1 ; end
Unknown_89c0a: ; 89c0a
db $01, $78, $66, $01, $00
db $01, $78, $66, $01, $40
db $01, $78, $92, $01, $20
db $01, $78, $92, $01, $60
db $ff
db $01, $78, $66, $01, 0
db $01, $78, $66, $01, 0 | Y_FLIP
db $01, $78, $92, $01, 0 | X_FLIP
db $01, $78, $92, $01, 0 | X_FLIP | Y_FLIP
db -1 ; end
Unknown_89c1f: ; 89c1f
db $01, $80, $66, $01, $00
db $01, $80, $66, $01, $40
db $01, $80, $92, $01, $20
db $01, $80, $92, $01, $60
db $ff
db $01, $80, $66, $01, 0
db $01, $80, $66, $01, 0 | Y_FLIP
db $01, $80, $92, $01, 0 | X_FLIP
db $01, $80, $92, $01, 0 | X_FLIP | Y_FLIP
db -1 ; end
; 89c34
Function89c34: ; 89c34 (22:5c34)

View File

@ -5844,7 +5844,7 @@ Unknown_116815: ; 116815
db $c, $5
db $9, $8
db $8, $4
db $ff
db -1 ; end
Unknown_11683e: ; 11683e
db $fd, $20
@ -5867,7 +5867,7 @@ Unknown_11683e: ; 11683e
db $12, $5
db $f, $8
db $e, $4
db $ff
db -1 ; end
Unknown_116867: ; 116867
db $14, $8
@ -5910,7 +5910,7 @@ Unknown_116881: ; 116881
db $fd, $2
db $23, $2
db $fd, $40
db $ff
db -1 ; end
Unknown_1168ae: ; 1168ae
db $24, $4