Wild Pokemon functions and data

Replaced encounter rates with percent values
Added new constants denoting the number of wild Pokemon in the grass and water wild constructs
Annotated and relabeled the encounter generating functions
Renamed a WRAM address associaed with the temporary storage of the wild Pokemon's species
Moved spawn constants to constants/map_constants.asm for use anywhere in the disassembly
This commit is contained in:
PikalaxALT
2015-07-23 03:41:52 -04:00
parent 4c480a23dc
commit 185b0a1c86
20 changed files with 2839 additions and 2787 deletions

View File

@@ -218,16 +218,16 @@ endr
ld c, [hl]
push bc
ld hl, WildMons1
ld hl, JohtoGrassWildMons
.greater_than_10
ld a, BANK(WildMons1)
ld a, BANK(JohtoGrassWildMons)
call GetFarByte
cp -1
jr z, .done2
inc hl
cp b
jr nz, .next
ld a, BANK(WildMons1)
ld a, BANK(JohtoGrassWildMons)
call GetFarByte
cp c
jr z, .done
@@ -263,7 +263,7 @@ rept 2
add hl, de
endr
inc hl
ld a, BANK(WildMons1)
ld a, BANK(JohtoGrassWildMons)
call GetFarByte
ld [wd265], a
ld [CurPartySpecies], a