mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-09-17 02:40:50 +12:00
wild DV buff
It doesn't appear to work properly for ATK/DEF, but SPC/SPE worked with a couple Bellsprout so it's good enough for now.
This commit is contained in:
parent
b857f71b5a
commit
3180772ed1
|
@ -68,7 +68,7 @@ DEF MAX_STAT_VALUE EQU 999
|
||||||
|
|
||||||
; trainer dvs, these should be set to 15.
|
; trainer dvs, these should be set to 15.
|
||||||
DEF ATKDEFDV_TRAINER EQU $FF
|
DEF ATKDEFDV_TRAINER EQU $FF
|
||||||
DEF SPDSPCDV_TRAINER EQU $FF
|
DEF SPDSPCDV_TRAINER EQU $FF
|
||||||
|
|
||||||
; wPlayerBattleStatus1 or wEnemyBattleStatus1 bit flags
|
; wPlayerBattleStatus1 or wEnemyBattleStatus1 bit flags
|
||||||
const_def
|
const_def
|
||||||
|
|
|
@ -6151,7 +6151,8 @@ LoadEnemyMonData:
|
||||||
jr z, .storeDVs
|
jr z, .storeDVs
|
||||||
; random DVs for wild mon
|
; random DVs for wild mon
|
||||||
call BattleRandom
|
call BattleRandom
|
||||||
ld b, a
|
ld a, ATKDEFDV_TRAINER
|
||||||
|
ld b, SPDSPCDV_TRAINER
|
||||||
call BattleRandom
|
call BattleRandom
|
||||||
.storeDVs
|
.storeDVs
|
||||||
ld hl, wEnemyMonDVs
|
ld hl, wEnemyMonDVs
|
||||||
|
|
Loading…
Reference in a new issue