Users browsing this thread: 1 Guest(s)
[Patch] Relics Damage

#11
Posts: 617
Threads: 49
Thanks Received: 0
Thanks Given: 5
Joined: Feb 2017
Reputation: 25
Status
None
(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
  Find
Quote  

#12
Posts: 149
Threads: 21
Thanks Received: 40
Thanks Given: 3
Joined: Dec 2013
Reputation: 9
Status
Auto-life
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
  Find
Quote  
[-] The following 3 users say Thank You to HatZen08 for this post:
  • Dev J (01-02-2023), PowerPanda (12-31-2022), Warrax (12-31-2022)



Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite