Users browsing this thread: 1 Guest(s)
Boomerang & Sniper 75%
It work. Tq madsiur & subtraction. This one below is without checking the floating tgt & max dmg all the time.
header
org $C238FD
branch1:
org $C238FE
INC $BC ; (Add 1 to damage incrementor; this keeps the behavior the same for cases where you attack
; a flying enemy with a command other than fight, but you can move it down with the others
; if you don't care about that.
LDA $B5
CMP #$00
BNE branch1 ; (Exit if command not Fight?)
INC $BC
INC $BC
INC $BC ; (Add another 3 to damage incrementor)
LDA #$08
STA $B5 ; (Store Throw for *purposes of animation*)
LDA $B7 ; (get graphic index)
DEC
STA $B6 ; (undo earlier adjustment, save as Throw parameter)
JMP $35BB ; (Update a previous entry in ($76) animation buffer
; with data in $B4 - $B7)
Now I'm going to test 50-50 on 600% dmg, but correct me if I'm wrong below.
"ADC #$05" is x6 dmg (I think), but what about "LDS $BC" & "STA $BC"?
header
org $C238FD
branch1:
org $C238FE
INC $BC ; (Add 1 to damage incrementor; this keeps the behavior the same for cases where you attack
; a flying enemy with a command other than fight, but you can move it down with the others
; if you don't care about that.
LDA $B5
CMP #$00
BNE branch1 ; (Exit if command not Fight?)
INC $BC
INC $BC
INC $BC ; (Add another 3 to damage incrementor)
LDA #$08
STA $B5 ; (Store Throw for *purposes of animation*)
LDA $B7 ; (get graphic index)
DEC
STA $B6 ; (undo earlier adjustment, save as Throw parameter)
JMP $35BB ; (Update a previous entry in ($76) animation buffer
; with data in $B4 - $B7)
(02-18-2020, 04:07 AM)Subtraction Wrote: If you want it to do more damage, you could add more "INC $BC"s, but that'd take up more space and you'd have to move some or all of the code to a subroutine. It's probably better to just replace the "INC $BC"s with something like "LDA $BC, ADC #$05, STA $BC".It work Subtraction, it hit "floating" atk with I assume x6 dmg all the time. And now it is too OP, lol.
Now I'm going to test 50-50 on 600% dmg, but correct me if I'm wrong below.
"ADC #$05" is x6 dmg (I think), but what about "LDS $BC" & "STA $BC"?
« Next Oldest | Next Newest »
|
||||
Users browsing this thread: 1 Guest(s)