Users browsing this thread: 1 Guest(s)
Just a thought

#3
Posts: 149
Threads: 21
Thanks Received: 40
Thanks Given: 3
Joined: Dec 2013
Reputation: 9
Status
Auto-life
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:

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
  Find
Quote  



Messages In This Thread
Just a thought - by Cyprus - 07-03-2015, 09:07 PM
RE: Just a thought - by Gi Nattak - 07-03-2015, 10:18 PM
RE: Just a thought - by HatZen08 - 07-04-2015, 06:05 AM

Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite