Users browsing this thread: 1 Guest(s)
Request: Monster damage in back row only reduced by 25% instead of 50%

#2
Posts: 3,971
Threads: 279
Thanks Received: 238
Thanks Given: 58
Joined: Oct 2011
Reputation: 65
Status
Tissue-aware
You can try this, to be assembled with xkas with a unheadered ROM. I have not tested the code though. You also might have to change the org $C26469 because that free space might be taken by patches already applied. I also don't know if that code is compatible with the 1.1 ROM, if problem check if the $C2339D region is same as 1.0.

To assemble:
Code:
xkas filename.asm romname.smc

Code:
hirom

org $C2339D
jsr free_space
sep #$20       ; 8-bit acc
nop

org $C26469
free_space:
rep #$20       ; 16-bit acc
lda $11B0      ; load damage
lsr a          ; divide by 2
lsr a          ; divide by 2
sta $10        ; save in temp RAM
lda $11B0      ; load damage
sec              
sbc $10        ; damage - 25%
sta $11B0      ; save as damage
rts

Edit: I had forgot to add the "hirom" at top of ASM file.
  Find
Quote  



Messages In This Thread
RE: Request: Back row = 1/4 damage taken instead of 1/2 - by madsiur - 09-16-2018, 05:50 PM

Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite