Users browsing this thread: 2 Guest(s)
Pony Fantasy VI Remake
Put it a $C266F0, plenty of room. Made sure Rom had a header and the .asm did too. Assembled it, seemed to work. Tested in-game, no effect.
Code:
hirom
;header
!freespace = $C266F0
;(Put attacker level [or Sketcher if applicable] in $11AF) (Modified by Synchysi)
org $C22C21
PHX
LDA $3417 ;(Get Sketcher)
JSL newfunc ;(New function)
NOP #2
STA $11AF ;(Level)
PLX
RTS
org !freespace
newfunc:
;(original code)
BMI exit ;(Branch if no Sketcher)
TAX ;(if there's a valid Sketcher, use their Level
;for attack)
;(end original code)
;(new code)
LDA $11A2 ;(Spell Properties)
LSR A ;(Check if Physical/Magical)
LDA $3B41,x ;(Sketcher's Mag.Pwr)
BCC magical ;(Branch if not physical damage)
;physical
CLC
ADC $3B2C,Y ;(Target's Vigor? [not sure if doubled, but shouldn't be, for monsters])
LSR A ;(A = [Sketcher's Magic + Sketchee's Vigor] / 2)
;add overflow check and cap here
magical:
STA $11AE ;(Set Attacker's Magic or Vigor)
exit:
LDA $3B18,x ;(Level)
RTL
« Next Oldest | Next Newest »
Users browsing this thread: 2 Guest(s)