Functional Hyper Training!

There are ways this can be improved (SFX, menu message, insta-recalc stats), but this finishes the Hyper Training functionality.

Talk to James, give him a Bottle Cap, he boosts your DVs to max, and then he deducts a Bottle Cap.

Notable that vanilla vitamins don't recalc stats immediately as well, so maybe the recalc bit isn't necessary.
This commit is contained in:
Llinos Evans 2023-05-11 20:32:46 +01:00
parent 9bc7505195
commit e6a74546c2
3 changed files with 47 additions and 22 deletions

View file

@ -20,10 +20,10 @@ DisplayPokemartDialogue_::
; This code is useless. It copies the address of the pokemart's inventory to hl,
; but the address is never used.
ld hl, wItemListPointer
ld a, [hli]
ld l, [hl]
ld h, a
; ld hl, wItemListPointer
; ld a, [hli]
; ld l, [hl]
; ld h, a
ld a, [wMenuExitMethod]
cp CANCELLED_MENU
@ -95,9 +95,9 @@ DisplayPokemartDialogue_::
; The following code is supposed to check if the player chose No, but the above
; check already catches it.
ld a, [wChosenMenuItem]
dec a
jr z, .sellMenuLoop
; ld a, [wChosenMenuItem]
; dec a
; jr z, .sellMenuLoop
.sellItem
ld a, [wBoughtOrSoldItemInMart]
@ -173,9 +173,9 @@ DisplayPokemartDialogue_::
; The following code is supposed to check if the player chose No, but the above
; check already catches it.
ld a, [wChosenMenuItem]
dec a
jr z, .buyMenuLoop
; ld a, [wChosenMenuItem]
; dec a
; jr z, .buyMenuLoop
.buyItem
call .isThereEnoughMoney