mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-11-14 00:56:40 +13:00
Define constants for default trainer DVs
This commit is contained in:
parent
8c83ebe966
commit
58f1089370
|
|
@ -39,6 +39,10 @@ SLP EQU %111 ; sleep counter
|
||||||
|
|
||||||
MAX_STAT_VALUE EQU 999
|
MAX_STAT_VALUE EQU 999
|
||||||
|
|
||||||
|
; trainer dvs
|
||||||
|
ATKDEFDV_TRAINER EQU $98
|
||||||
|
SPDSPCDV_TRAINER EQU $88
|
||||||
|
|
||||||
; volatile statuses 1
|
; volatile statuses 1
|
||||||
const_def
|
const_def
|
||||||
const STORING_ENERGY ; 0 ; Bide
|
const STORING_ENERGY ; 0 ; Bide
|
||||||
|
|
|
||||||
|
|
@ -6104,8 +6104,8 @@ LoadEnemyMonData:
|
||||||
ld a, [wIsInBattle]
|
ld a, [wIsInBattle]
|
||||||
cp $2 ; is it a trainer battle?
|
cp $2 ; is it a trainer battle?
|
||||||
; fixed DVs for trainer mon
|
; fixed DVs for trainer mon
|
||||||
ld a, $98
|
ld a, ATKDEFDV_TRAINER
|
||||||
ld b, $88
|
ld b, SPDSPCDV_TRAINER
|
||||||
jr z, .storeDVs
|
jr z, .storeDVs
|
||||||
; random DVs for wild mon
|
; random DVs for wild mon
|
||||||
call BattleRandom
|
call BattleRandom
|
||||||
|
|
|
||||||
|
|
@ -75,8 +75,8 @@ _AddPartyMon::
|
||||||
push hl
|
push hl
|
||||||
ld a, [wMonDataLocation]
|
ld a, [wMonDataLocation]
|
||||||
and $f
|
and $f
|
||||||
ld a, $98 ; set enemy trainer mon IVs to fixed average values
|
ld a, ATKDEFDV_TRAINER ; set enemy trainer mon IVs to fixed average values
|
||||||
ld b, $88
|
ld b, SPDSPCDV_TRAINER
|
||||||
jr nz, .next4
|
jr nz, .next4
|
||||||
|
|
||||||
; If the mon is being added to the player's party, update the pokedex.
|
; If the mon is being added to the player's party, update the pokedex.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue