mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 23:55:24 +13:00
Voltorb in Fuchsia
simply makes sense tm
This commit is contained in:
parent
15762ead34
commit
46ffe095e6
4 changed files with 24 additions and 10 deletions
|
|
@ -1311,8 +1311,20 @@ ItemUseMedicine:
|
|||
ld a, 10
|
||||
ld b, a
|
||||
ld a, [hl] ; a = MSB of stat experience of the appropriate stat
|
||||
|
||||
cp 100 ; is there already at least 25600 (256 * 100) stat experience?
|
||||
jr nc, .vitaminNoEffect ; if so, vitamins can't add any more
|
||||
|
||||
; Unfinished replacement for the limit, I want to raise it to the max.
|
||||
; Thanks to Vimescarrot for the idea (I am silly)
|
||||
;ld de, %11111111 ;65535
|
||||
;ld a, b
|
||||
;cp 255
|
||||
;jr nz, .notCap
|
||||
;ld a, c
|
||||
;cp 255
|
||||
;jr nz, .notCap
|
||||
|
||||
add b ; add 2560 (256 * 10) stat experience
|
||||
jr nc, .noCarry3 ; a carry should be impossible here, so this will always jump
|
||||
ld a, 255
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue