[Patch] Relics Damage
#11
(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.
Projects:
FFVI: Divergent Paths (Completed) - a complete storyline and gameplay hack of FF6 that adds Leo as a playable character
Reply
#12
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Y Equip Relics bug fix Subtraction 0 1,940 06-28-2019, 03:02 AM
Last Post: Subtraction
  [Patch] Relics Boost HatZen08 0 2,097 05-10-2018, 03:53 AM
Last Post: HatZen08
  [Patch] Fair Damage HatZen08 5 6,660 04-19-2018, 01:18 PM
Last Post: Warrax

Forum Jump:


Users browsing this thread: 2 Guest(s)