Maximise DVs, WRAM fix..?

Implements a fix with the WRAM stack space that pret mentioned.

DVs should be forced to max with the changes I added, will need testing.
This commit is contained in:
May Evans 2022-09-04 00:56:58 +01:00
parent 8ee7e59d47
commit e2c1037033
4 changed files with 8 additions and 8 deletions

View file

@ -28,6 +28,7 @@ Improved areas
QoL Enhancements QoL Enhancements
==== ====
- DVs are erased and replaced with perfect 15s.
- PC added to Celadon Hotel where the invisible event usually is. Why not? - PC added to Celadon Hotel where the invisible event usually is. Why not?
- Artificial Save Delay has been removed. - Artificial Save Delay has been removed.
- Japanese event moves can now be taught via TM/HM; - Japanese event moves can now be taught via TM/HM;

View file

@ -66,9 +66,9 @@ DEF SLP_MASK EQU %111 ; 0-7 turns
DEF MAX_STAT_VALUE EQU 999 DEF MAX_STAT_VALUE EQU 999
; trainer dvs ; trainer dvs, these should be set to 15.
DEF ATKDEFDV_TRAINER EQU $98 DEF ATKDEFDV_TRAINER EQU $FF
DEF SPDSPCDV_TRAINER EQU $88 DEF SPDSPCDV_TRAINER EQU $FF
; wPlayerBattleStatus1 or wEnemyBattleStatus1 bit flags ; wPlayerBattleStatus1 or wEnemyBattleStatus1 bit flags
const_def const_def

View file

@ -6150,10 +6150,9 @@ LoadEnemyMonData:
ld b, SPDSPCDV_TRAINER ld b, SPDSPCDV_TRAINER
jr z, .storeDVs jr z, .storeDVs
; random DVs for wild mon ; random DVs for wild mon
call BattleRandom ld a, ATKDEFDV_TRAINER
ld b, a ld b, SPDSPCDV_TRAINER
call BattleRandom jr z, .storeDVs
.storeDVs
ld hl, wEnemyMonDVs ld hl, wEnemyMonDVs
ld [hli], a ld [hli], a
ld [hl], b ld [hl], b

View file

@ -2328,5 +2328,5 @@ wBoxDataEnd::
SECTION "Stack", WRAM0 SECTION "Stack", WRAM0
; the stack grows downward ; the stack grows downward
ds $7D5 - 1 ds $FE - 1
wStack:: db wStack:: db