BaseStats is now BaseData

This commit is contained in:
yenatch
2013-04-29 15:08:13 -04:00
parent 652d26bb05
commit f2185cd0e4
4 changed files with 275 additions and 274 deletions

View File

@@ -2020,7 +2020,7 @@ Function0x34a2a: ; 34a2a
ld a, [hl] ld a, [hl]
ld [CurSpecies], a ld [CurSpecies], a
call GetBaseStats call GetBaseData
ld a, [LastEnemyCounterMove] ld a, [LastEnemyCounterMove]
dec a dec a
ld hl, $5afd ld hl, $5afd
@@ -2200,7 +2200,7 @@ Function0x34b20: ; 34b20
push hl push hl
ld [CurSpecies], a ld [CurSpecies], a
call GetBaseStats call GetBaseData
ld a, [LastEnemyCounterMove] ld a, [LastEnemyCounterMove]
and a and a
jr z, .asm_34b4a jr z, .asm_34b4a
@@ -3929,7 +3929,7 @@ BattleCommanda1: ; 35461
call FarBattleTextBox call FarBattleTextBox
ld a, [BattleMonSpecies] ld a, [BattleMonSpecies]
ld [CurSpecies], a ld [CurSpecies], a
call GetBaseStats call GetBaseData
ld a, [$d239] ld a, [$d239]
ld c, a ld c, a
push bc push bc
@@ -3937,7 +3937,7 @@ BattleCommanda1: ; 35461
call Function0x355bd call Function0x355bd
ld a, [hl] ld a, [hl]
ld [CurSpecies], a ld [CurSpecies], a
call GetBaseStats call GetBaseData
ld a, [$d238] ld a, [$d238]
pop bc pop bc
ld b, a ld b, a

View File

@@ -3502,27 +3502,27 @@ GetMoveName: ; 34f8
INCBIN "baserom.gbc", $350c, $3856 - $350c INCBIN "baserom.gbc", $350c, $3856 - $350c
GetBaseStats: ; 3856 GetBaseData: ; 3856
push bc push bc
push de push de
push hl push hl
ld a, [hROMBank] ld a, [hROMBank]
push af push af
ld a, BANK(BaseStats) ld a, BANK(BaseData)
rst Bankswitch rst Bankswitch
; Egg doesn't have base stats ; Egg doesn't have BaseData
ld a, [CurSpecies] ld a, [CurSpecies]
cp EGG cp EGG
jr z, .egg jr z, .egg
; Get base stats ; Get BaseData
dec a dec a
ld bc, BaseStats1 - BaseStats0 ld bc, BaseData1 - BaseData0
ld hl, BaseStats ld hl, BaseData
call AddNTimes call AddNTimes
ld de, CurBaseStats ld de, CurBaseData
ld bc, BaseStats1 - BaseStats0 ld bc, BaseData1 - BaseData0
call CopyBytes call CopyBytes
jr .end jr .end
@@ -3549,7 +3549,7 @@ GetBaseStats: ; 3856
.end .end
; Replace Pokedex # with species ; Replace Pokedex # with species
ld a, [CurSpecies] ld a, [CurSpecies]
ld [CurBaseStats], a ld [CurBaseData], a
pop af pop af
rst Bankswitch rst Bankswitch
@@ -6734,8 +6734,8 @@ LoadEnemyMon: ; 3e8eb
ld [CurSpecies], a ld [CurSpecies], a
ld [CurPartySpecies], a ld [CurPartySpecies], a
; Grab the base stats for this species ; Grab the BaseData for this species
call GetBaseStats call GetBaseData
; Let's get the item: ; Let's get the item:
@@ -6754,7 +6754,7 @@ LoadEnemyMon: ; 3e8eb
.WildItem .WildItem
; In a wild battle, we pull from the item slots in base stats ; In a wild battle, we pull from the item slots in BaseData
; Force Item1 ; Force Item1
; Used for Ho-Oh, Lugia and Snorlax encounters ; Used for Ho-Oh, Lugia and Snorlax encounters
@@ -8963,12 +8963,12 @@ GetGender: ; 50bdd
push bc push bc
ld a, [CurPartySpecies] ld a, [CurPartySpecies]
dec a dec a
ld hl, BaseStats + 13 ; BASE_GENDER ld hl, BaseData + 13 ; BASE_GENDER
ld bc, BaseStats1 - BaseStats ld bc, BaseData1 - BaseData
call AddNTimes call AddNTimes
pop bc pop bc
ld a, BANK(BaseStats) ld a, BANK(BaseData)
call GetFarByte call GetFarByte
@@ -9003,7 +9003,7 @@ GetGender: ; 50bdd
INCBIN "baserom.gbc", $50c50, $51424 - $50c50 INCBIN "baserom.gbc", $50c50, $51424 - $50c50
BaseStats: BaseData:
INCLUDE "stats/base_stats.asm" INCLUDE "stats/base_stats.asm"
PokemonNames: PokemonNames:

File diff suppressed because it is too large Load Diff

View File

@@ -1165,9 +1165,10 @@ UnownLetter: ; d234
ds 1 ds 1
CurBaseStats: ; d236 CurBaseData: ; d236
BaseDexNo: ; d236 BaseDexNo: ; d236
ds 1 ds 1
BaseStats: ; d237
BaseHP: ; d237 BaseHP: ; d237
ds 1 ds 1
BaseAttack: ; d238 BaseAttack: ; d238