FF6 Hacking
[Patch] Relics Damage - Printable Version

+- FF6 Hacking (https://www.ff6hacking.com/forums)
+-- Forum: Hacks, Resources and Tutorials (https://www.ff6hacking.com/forums/forum-1.html)
+--- Forum: Jidoor Auction House (https://www.ff6hacking.com/forums/forum-4.html)
+---- Forum: Patches, Bugfixes, Tweaks (https://www.ff6hacking.com/forums/forum-15.html)
+---- Thread: [Patch] Relics Damage (/thread-3679.html)

Pages: 1 2


RE: [Patch] Relics Damage - PowerPanda - 12-30-2022

(12-23-2022, 03:23 AM)HatZen08 Wrote: I updated the patch with the mentioned fix. You can download it here: Relics Damage 1.1

Hmm... looking at my notes, my working version still has some differences with what was posted. Here's what I have in the Update Damage section of the ASM. The 3 changed/new lines are marked with a "!!!"

Code:
   ;update damage -------------------------------------------------------------
       ADC $11B0           ;add bonus damage with actual damage
!!!    BCS .skip_cap      
!!!    CMP #$FFFF        
!!!    BCC .skip_cap        
.damage_cap
       LDA #$FFFF          ;maximum damage
.skip_cap
       STA $11B0           ;save damage
   
   ;exit
.exit
       PLP
       PLY
       RTL
I don't totally remember why I needed to make that change. I do remember it was necessary though.


RE: [Patch] Relics Damage - HatZen08 - 12-31-2022

I optimized the code of your fix. Thecnically my fix is different from yours but they functionally are the same. Sorry, I couldn't resist the need to reduce the code size by a few bytes.  Smile