Difference between revisions of "Equipment Evasion Setting (Physical)"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with " Equipment Evasion Setting (Physical) 00184f9c: 3c048019 lui r4,0x8019 00184fa0: 8c842d98 lw r4,0x2d98(r4) Load Target Data Pointer 00184fa4: 27bdffe8 addiu r29,r29,0xffe8...")
 
Line 138: Line 138:
 
  001851bc: 03e00008 jr r31
 
  001851bc: 03e00008 jr r31
 
  001851c0: 00000000 nop
 
  001851c0: 00000000 nop
 +
 +
 +
== Return Locations ==
 +
 +
00188518: [[Physical Evade Calculation]]
 +
00188570: [[Physical Evade Calculation(Charge)]]

Revision as of 14:39, 2 March 2012

Equipment Evasion Setting (Physical)
00184f9c: 3c048019 lui r4,0x8019
00184fa0: 8c842d98 lw r4,0x2d98(r4)		Load Target Data Pointer
00184fa4: 27bdffe8 addiu r29,r29,0xffe8
00184fa8: afbf0010 sw r31,0x0010(r29)
00184fac: 9082008e lbu r2,0x008e(r4)		Load 4th set of Reactions (Target)
00184fb0: 00000000 nop
00184fb4: 30420040 andi r2,r2,0x0040
00184fb8: 10400004 beq r2,r0,0x00184fcc		Branch if No Weapon Guard
00184fbc: 00003821 addu r7,r0,r0
00184fc0: 0c0604c3 jal 0x0018130c		Weapon Guard Usability
00184fc4: 00000000 nop
00184fc8: 2c470001 sltiu r7,r2,0x0001		r7 = 1 if able to use WG
00184fcc: 3c048019 lui r4,0x8019
00184fd0: 8c842d98 lw r4,0x2d98(r4)		Load Target Data Pointer
00184fd4: 34020064 ori r2,r0,0x0064		r2 = 100 (Base Hit)
00184fd8: 3c018019 lui r1,0x8019
00184fdc: a02238dc sb r2,0x38dc(r1)		Base Hit Rate = 100
00184fe0: 3c018019 lui r1,0x8019
00184fe4: a02038de sb r0,0x38de(r1)		Accessory Evade = 0
00184fe8: 3c018019 lui r1,0x8019
00184fec: a02038df sb r0,0x38df(r1)		Weapon Evade = 0
00184ff0: 3c018019 lui r1,0x8019
00184ff4: a02038e0 sb r0,0x38e0(r1)		Shield Evade = 0
00184ff8: 90820043 lbu r2,0x0043(r4)		Load Character's Class Evade
00184ffc: 3c018019 lui r1,0x8019
00185000: a02238e1 sb r2,0x38e1(r1)		Store Class Evade
00185004: 90820006 lbu r2,0x0006(r4)		Load Target's Gender
00185008: 00000000 nop
0018500c: 30420020 andi r2,r2,0x0020
00185010: 14400068 bne r2,r0,0x001851b4		Branch if Target is a Monster
00185014: 00000000 nop
00185018: 9082001c lbu r2,0x001c(r4)		Load Target's Accessory ID
0018501c: 00000000 nop
00185020: 00021840 sll r3,r2,0x01		Acc. ID * 2
00185024: 00621821 addu r3,r3,r2		Acc. ID * 3
00185028: 00031880 sll r3,r3,0x02		Acc. ID * 12
0018502c: 3c018006 lui r1,0x8006
00185030: 00230821 addu r1,r1,r3
00185034: 90252ebb lbu r5,0x2ebb(r1)		Load Accessory's Equipment Type
00185038: 00000000 nop
0018503c: 30a20008 andi r2,r5,0x000 8
00185040: 1040000b beq r2,r0,0x00185070		Branch if Accessory isn't an  Accessory
00185044: 00000000 nop
00185048: 3c018006 lui r1,0x8006
0018504c: 00230821 addu r1,r1,r3
00185050: 90222ebc lbu r2,0x2ebc(r1)		Load Accessory's Second Table ID
00185054: 00000000 nop
00185058: 00021040 sll r2,r2,0x01		Acc. ID * 2
0018505c: 3c018006 lui r1,0x8006
00185060: 00220821 addu r1,r1,r2
00185064: 90223f58 lbu r2,0x3f58(r1)		Load Accessory's Evade
00185068: 3c018019 lui r1,0x8019
0018506c: a02238de sb r2,0x38de(r1)		Store Accessory's Evade
00185070: 9083001d lbu r3,0x001d(r4)		Load Target's RH Weapon
00185074: 00000000 nop
00185078: 00031040 sll r2,r3,0x01		RHW ID * 2
0018507c: 00431021 addu r2,r2,r3		RHW ID * 3
00185080: 00021080 sll r2,r2,0x02		RHW ID * 12
00185084: 3c018006 lui r1,0x8006
00185088: 00220821 addu r1,r1,r2
0018508c: 90252ebb lbu r5,0x2ebb(r1)		Load RH Weapon's Equipment Type
00185090: 9083001e lbu r3,0x001e(r4)		Load Target's RH Shield ID
00185094: 3c018006 lui r1,0x8006
00185098: 00220821 addu r1,r1,r2
0018509c: 90242ebc lbu r4,0x2ebc(r1)		Load RH Weapon's Second Table ID
001850a0: 00031040 sll r2,r3,0x01		RHS ID * 2
001850a4: 00431021 addu r2,r2,r3		RHS ID * 3
001850a8: 00021080 sll r2,r2,0x02		RHS ID * 12
001850ac: 3c018006 lui r1,0x8006
001850b0: 00220821 addu r1,r1,r2
001850b4: 90232ebb lbu r3,0x2ebb(r1)		Load RH Shield's Equipment Type
001850b8: 3c018006 lui r1,0x8006
001850bc: 00220821 addu r1,r1,r2
001850c0: 90262ebc lbu r6,0x2ebc(r1)		Load RH Shield's Second Table ID
001850c4: 30a20080 an di r2,r5,0x0080
001850c8: 10400008 be q r2,r0,0x001850ec		Branch if RH Weapon is not a Weapon
001850cc: 00000000 no p
001850d0: 10e00006 beq r7,r0,0x001850ec		Branch if unable to use Weapon  Guard
001850d4: 000410c0 sll r2,r4,0x03		RHW ID * 8
001850d8: 3c018006 lui r1,0x8006
001850dc: 00220821 addu r1,r1,r2
001850e0: 90223abd lbu r2,0x3abd(r1)		Load RH Weapon's Evade
001850e4: 08061441 j 0x00185104			Jumps past RH Shield section
001850e8: 00000000 nop
001850ec: 30620040 andi r2,r3,0x0040
001850f0: 10400006 beq r2,r0,0x0018510c		Branch if RH Shield is not a Shield
001850f4: 00061040 sll r2,r6,0x01		RHS ID * 2
001850f8: 3c018006 lui r1,0x8006
001850fc: 00220821 addu r1,r1,r2
00185100: 90223eb8 lbu r2,0x3eb8(r1)		Load RH Shield's Evade
00185104: 3c018019 lui r1,0x8019
00185108: a02238df sb r2,0x38df(r1)		Store RH Equipment's Evade
0018510c: 3c048019 lui r4,0x8019
00185110: 8c842d98 lw r4,0x2d98(r4)		Load Target's Data Pointer
00185114: 00000000 nop
00185118: 9083001f lbu r3,0x001f(r4)		Load LH Weapon ID
0018511c: 00000000 nop
00185120: 00031040 sll r2,r3,0x01		LHW ID * 2
00185124: 00431021 addu r2,r2,r3		LHW ID * 3
00185128: 00021080 sll r2,r2,0x02		LHW ID * 12
0018512c: 3c018006 lui r1,0x8006
00185130: 00220821 addu r1,r1,r2
00185134: 90252ebb lbu r5,0x2ebb(r1)		Load LH Weapon's Equipment Type
00185138: 90830020 lbu r3,0x0020(r4)		Load LH Shield ID
0018513c: 3c018006 lui r1,0x8006
00185140: 00220821 addu r1,r1,r2
00185144: 90242ebc lbu r4,0x2ebc(r1)		Load LH Weapon's Second Table ID
00185148: 00031040 sll r2,r3,0x01		LHS ID * 2
0018514c: 00431021 addu r2,r2,r3		LHS ID * 3
00185150: 00021080 sll r2,r2,0x02		LHS ID * 12
00185154: 3c018006 lui r1,0x8006
00185158: 00220821 addu r1,r1,r2
0018515c: 90232ebb lbu r3,0x2ebb(r1)		Load LH Shield's Equipment Type
00185160: 3c018006 lui r1,0x8006
00185164: 00220821 addu r1,r1,r2
00185168: 90262ebc lbu r6,0x2ebc(r1)		Load LH Shield's Second Table ID
0018516c: 30a20080 andi r2,r5,0x0080
00185170: 10400008 beq r2,r0,0x00185194		Branch if LH Weapon is not a Weapon
00185174: 00000000 nop 
00185178: 10e00006 beq r7,r0,0x00185194		Branch if unable to use Weapon  Guard
0018517c: 000410c0 sll r2,r4,0x03		LHW ID * 8
00185180: 3c018006 lui r1,0x8006
00185184: 00220821 addu r1,r1,r2
00185188: 90223abd lbu r2,0x3abd(r1)		Load LH Weapon's Evade
0018518c: 0806146b j 0x001851ac			Jumps past LH Shield section
00185190: 00000000 nop
00185194: 30620040 andi r2,r3,0x0040
00185198: 10400006 beq r2,r0,0x001851b4		Branch if LH Shield is not a Shield
0018519c: 00061040 sll r2,r6,0x01		LHS ID * 2
001851a0: 3c018006 lui r1,0x8006
001851a4: 00220821 addu r1,r1,r2
001851a8: 90223eb8 lbu r2,0x3eb8(r1)		Load LH Sheild Evade
001851ac: 3c018019 lui r1,0x8019
001851b0: a02238e0 sb r2,0x38e0(r1)		Store LH Equipment's Evade
001851b4: 8fbf0010 lw r31,0x0010(r29)
001851b8: 27bd0018 addiu r29,r29,0x0018
001851bc: 03e00008 jr r31
001851c0: 00000000 nop


Return Locations

00188518: Physical Evade Calculation
00188570: Physical Evade Calculation(Charge)