Users browsing this thread: 1 Guest(s)
Just a thought
07-04-2015, 06:05 AM
You need to change the code related with the healing of the Tintinabar relic. For the Tintinabar, the relevant code for its healing is from C0/4A7A to C0/4A92. It is executed by each step.
I was curious and did a smal code for it. I tested it (rom: English, 1.0, with header) and it apparently works. You can compile it with asar. The code is:
I was curious and did a smal code for it. I tested it (rom: English, 1.0, with header) and it apparently works. You can compile it with asar. The code is:
Code:
header
hirom
org $C04A93
continue_address:
org $C04A7A
mp_heal_by_step:
JSR $AFA3 ;stores max mp at $1E
REP #$21 ;set C, clear carry
LDA $160D,Y ;current mp
ADC #$0001 ;add 1
CMP $1E ;check max MP
BCC .skip ;set current MP if below max MP
LDA $1E ;load max MP
.skip
STA $160D,Y ;save as current mp
TDC ;clear C
SEP #$20 ;set A
BRA continue_address ;continue normal code
warnpc $C04A93
« Next Oldest | Next Newest »
|
||||
Users browsing this thread: 1 Guest(s)