Users browsing this thread: 1 Guest(s)
Request: Monster damage in back row only reduced by 25% instead of 50%
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:
Edit: I had forgot to add the "hirom" at top of ASM file.
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.
« Next Oldest | Next Newest »
|
||||
Users browsing this thread: 1 Guest(s)