If we open the addresses that GratedShtick provided with febuilder’s disassembler, we can potentially make some sense of what is happening.
The number in register 2 is being shifted left by 1. Eg. 0110b becomes 1100b. This is the same as multiplying it by 2^n. So we can easily change that to x2, x4, x8, x16, etc.
If I go back in the address to disassemble a little bit, we can see that febuilder’s documentation calls this “BattleLoadHit”:
If you want to do something more complicated with it, you can’t write it inline, which becomes more annoying to write a hack for.
To modify avoid, let’s look at GratedShtick’s DSFE avoid hack:
It seems to be around 0x2ABEE
Teq doq shows 0x57 as Terrain Avoid, so I avoided that part.
And it shows 0x5E as attack speed, so we want to replace that part.
And luck is 0x19
I decided to use Schtick’s dsfe avoid as speed+luck/2 as a basis. I installed the patch and futzed around with the asm for a little bit.
Honestly I don’t understand everything that’s going on. But I replaced loading AS with Luck near the top. Then I changed LSR #0x1
(which was dividing luck by 2^1) into LSL to multiply luck by 2^1 instead.
Seth has 13 luck, so it seems to work.
COMBO=Fix1: avoid=speed+luck/2|FIX1|Fix2: avoid=speed+luck|FIX2|Fix3: avoid=luck*3|FIX3|Default: avoid=speed*2+luck|DEFT
FIX3:0x2ABE8=0x19 0x20 0x00 0x21 0x10 0x56 0x11 0x1C 0x57 0x31 0x09 0x78 0x09 0x06 0x09 0x16 0x09 0x18 0x19 0x20 0x10 0x56 0x40 0x00