Quote from: Zantetsuken on August 14, 2019, 10:24:34 am
Can someone make an ASM hack to change concentrate to just reduce target evasion by half or nullify class evasion?
I found one posted by Rfh long ago, but it does not seem to work.
Try this one (not tested):
Code Select
<Patch name="Concentrate div by 2 all evades instead of null them - ASM version">
<Description>Concentrate divides by 2 all target evade types instead of nulling them.</Description>
<Location file="BATTLE_BIN" offset="1852E4" mode="ASM" offsetMode="RAM">
lui a0,0x8019
lw v0,0x2d94(a0) #Load Attacker Data Pointer
ori a1,zero,0x0004 #All four evades.
lbu v0,0x0090(v0) #Load Attacker's 2nd set of Support
addu a0,a0,a1
andi v0,v0,0x0001
beq v0,zero,EXIT #Branch if Attacker Doesn't have Concentrate
LOOP: addiu a0,a0,0xffff
lbu v1,0x38de(a0)
addiu a1,a1,0xffff
srl v1,v1,0x01 #Amount to shift 1 equals div2, 2 equals div4
bgtz a1,LOOP
sb v1,0x38de(a0)
EXIT: jr ra
nop
nop
nop
</Location>
</Patch>
<Patch name="Concentrate div by 2 all evades instead of null them - HEX version">
<Description>Concentrate divides by 2 all target evade types instead of nulling them.</Description>
<Location file="BATTLE_BIN" offset="11E2E4">
1980043C
942D828C
04000534
90004290
21208500
01004230
06004010
FFFF8424
DE388390
FFFFA524
42180300
FBFFA01C
DE3883A0
0800E003
00000000
00000000
00000000
</Location>
</Patch>