Difference between revisions of "Store Weapon Attack Data"
Jump to navigation
Jump to search
(Created page with " Store Weapon? Attack Data 0019a52c: 340200ff ori r2,r0,0x00ff r2 = FF 0019a530: 10a2002f beq r5,r2,0x 0019a5f0 Branch if Unarmed 0019a534: 000510c0 sll r2,r5,0x03 ID * ...") |
m (return link) |
||
Line 51: | Line 51: | ||
0019a5f0: 03e00008 jr r31 | 0019a5f0: 03e00008 jr r31 | ||
0019a5f4: 00000000 nop | 0019a5f4: 00000000 nop | ||
+ | === Return locations === | ||
+ | '''Battle.bin''' | ||
+ | 0019a3d0: [[Set_AI_Flags/Usable_Abilities]] | ||
+ | 0019a3e0: [[Set_AI_Flags/Usable_Abilities]] |
Revision as of 11:00, 2 April 2022
Store Weapon? Attack Data 0019a52c: 340200ff ori r2,r0,0x00ff r2 = FF 0019a530: 10a2002f beq r5,r2,0x 0019a5f0 Branch if Unarmed 0019a534: 000510c0 sll r2,r5,0x03 ID * 8 0019a538: 3c038006 lui r3,0x8006 0019a53c: 24633ab8 addiu r3,r3,0x3ab8 0019a540: 00433821 addu r7,r2,r3 0019a544: 90e30001 lbu r3,0x0001(r7) Load Weapon's Attack Flags 0019a548: 00000000 nop 0019a54c: 30620010 andi r2,r3,0x0010 0019a550: 10400004 beq r2,r0,0x 0019a564 Branch if not Arcing 0019a554: 00000000 nop 0019a558: 90820003 lbu r2,0x0003(r4) Load AI Behavior Flags 3 0019a55c: 0806695f j 0x 0019a57c 0019a560: 34420080 ori r2,r2,0x0080 Enable Arc Attack? 0019a564: 30620020 andi r2,r3,0x0020 0019a568: 10400005 beq r2,r0,0x 0019a580 Branch if not Direct 0019a56c: 00000000 nop 0019a570: 90820003 lbu r2,0x0003(r4) Load AI Behavior Flags 3 0019a574: 00000000 nop 0019a578: 34420040 ori r2,r2,0x0040 Enable Enable Direct Attack 0019a57c: a0820003 sb r2,0x0003(r4) Store new AI Behavior Flags 3 0019a580: 90e30002 lbu r3,0x0002(r7) Load Weapon's Formula 0019a584: 34020006 ori r2,r0,0x0006 r2 = 6 0019a588: 10620006 beq r3,r2,0x 0019a5a4 Branch if Formula = HP Absorb Weapon 0019a58c: 00000000 nop 0019a590: 34020007 ori r2,r0,0x0007 0019a594: 10620006 beq r3,r2,0x 0019a5b0 Branch if Formula = Healing Weapon 0019a598: 00000000 nop 0019a59c: 0806696f j 0x 0019a5bc 0019a5a0: 00000000 nop 0019a5a4: 8cc20000 lw r2,0x0000(r6) Load Stack Flags 0019a5a8: 08066972 j 0x 0019a5c8 0019a5ac: 34420002 ori r2,r2,0x0002 Enable 0x02 (absorption) 0019a5b0: 8cc20000 lw r2,0x0000(r6) Load Stack Flags 0019a5b4: 08066972 j 0x 0019a5c8 0019a5b8: 34420004 ori r2,r2,0x0004 Enable 0x04 (healing) 0019a5bc: 8cc20000 lw r2,0x0000(r6) Load Stack Flags 0019a5c0: 00000000 nop 0019a5c4: 34420001 ori r2,r2,0x0001 Enable 0x01 (normal) 0019a5c8: acc20000 sw r2,0x0000(r6) Store new Stack Flags 0019a5cc: a0850004 sb r5,0x0004(r4) Store Weapon ID 0019a5d0: 90e20000 lbu r2,0x0000(r7) Load Weapon Range 0019a5d4: 00000000 nop 0019a5d8: a0820000 sb r2,0x0000(r4) Store Weapon Range 0019a5dc: 90820005 lbu r2,0x0005(r4) Load Attack Elements 0019a5e0: 90e30006 lbu r3,0x0006(r7) Load Weapon's Elements 0019a5e4: 00000000 nop 0019a5e8: 00431025 or r2,r2,r3 Enable Weapon's Elements 0019a5ec: a0820005 sb r2,0x0005(r4) Store new Attack Elements 0019a5f0: 03e00008 jr r31 0019a5f4: 00000000 nop
Return locations
Battle.bin 0019a3d0: Set_AI_Flags/Usable_Abilities 0019a3e0: Set_AI_Flags/Usable_Abilities