...And making the Diamond Armlet, if equipped, always supply the Rare Item. This is the code I have for it...
00180258: 34050064 ori r5,r0,0x0064 Load 100 into r5
0018025c: 34040064 ori r4,r0,0x0064 Load 100 into r4
00180260: 9203001C lbu r3,0x001C(r16) load Accessory
00180264: 10620004 beq r3,r2,0x00180278
00180268: 340200E0 ori r2,r0,0x00E0 branch if Accessory is Diamond Armlet (this doesn't seem to work for me for some reason)
0018026C: 0c017833 jal 0x0005e0cc check if Random is greater/equal to Chance
00180270: 14400004 bne r2,r0,0x00180284 branch if Value is less than 75.
00180274: 3404004B ori r4,r0,0x004B
-------------------------------------------------------------
00180278: 92220002 lbu r2,0x0002(r17) load rare item
0018027c: 080600a2 j 0x00180288
00180280: 00000000 nop
Here is the default routine...
http://ffhacktics.com/wiki/Rare/common_item_determination
Is there something I removed I shouldn't have or am I misunderstanding some basic of MIPS?
It was meant to be a simple change, I didn't expect to have this much trouble with it.
00180258: 34050064 ori r5,r0,0x0064 Load 100 into r5
0018025c: 34040064 ori r4,r0,0x0064 Load 100 into r4
00180260: 9203001C lbu r3,0x001C(r16) load Accessory
00180264: 10620004 beq r3,r2,0x00180278
00180268: 340200E0 ori r2,r0,0x00E0 branch if Accessory is Diamond Armlet (this doesn't seem to work for me for some reason)
0018026C: 0c017833 jal 0x0005e0cc check if Random is greater/equal to Chance
00180270: 14400004 bne r2,r0,0x00180284 branch if Value is less than 75.
00180274: 3404004B ori r4,r0,0x004B
-------------------------------------------------------------
00180278: 92220002 lbu r2,0x0002(r17) load rare item
0018027c: 080600a2 j 0x00180288
00180280: 00000000 nop
Here is the default routine...
http://ffhacktics.com/wiki/Rare/common_item_determination
Is there something I removed I shouldn't have or am I misunderstanding some basic of MIPS?
It was meant to be a simple change, I didn't expect to have this much trouble with it.