Difference between revisions of "Weapon Element Strengthen"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with " Weapon Element Strengthen Calculation 00185fa4: 3c028019 lui r2,0x8019 00185fa8: 8c422d94 lw r2,0x2d94(r2) Load Attacker's Data Pointer 00185fac: 3c038019 lui r3,0x8019 ...")
 
Line 22: Line 22:
 
  00185ff4: 03e00008 jr r31
 
  00185ff4: 03e00008 jr r31
 
  00185ff8: 00000000 nop
 
  00185ff8: 00000000 nop
 +
 +
 +
== Return Locations ==
 +
 +
*Battle.bin
 +
00188650: [[Weapon Damage Calculation]]
 +
00188c5c: [[04 Magic Gun]]
 +
00189b40: [[2D Dmg_(PA*(WP+Y)) 100% Status]]
 +
00189c04: [[2E Equipped:Break Dmg_(PA*WP)]]

Revision as of 04:40, 6 March 2012

Weapon Element Strengthen Calculation
00185fa4: 3c028019 lui r2,0x8019
00185fa8: 8c422d94 lw r2,0x2d94(r2)		Load Attacker's Data Pointer
00185fac: 3c038019 lui r3,0x8019
00185fb0: 90633904 lbu r3,0x3904(r3)		Load Weapon's Element
00185fb4: 90420071 lbu r2,0x0071(r2)		Load Attacker's Elements Strengthened
00185fb8: 00000000 nop
00185fbc: 00431024 and r2,r2,r3
00185fc0: 1040000c beq r2,r0,0x00185ff4		Branch if Weapon's Element is not Strengthened
00185fc4: 00000000 nop
00185fc8: 3c038019 lui r3,0x8019
00185fcc: 846338ce lh r3,0x38ce(r3)		Load XA
00185fd0: 00000000 nop
00185fd4: 00031080 sll r2,r3,0x02		XA * 4
00185fd8: 00431021 addu r2,r2,r3		XA * 5
00185fdc: 04410002 bgez r2,0x00185fe8		Branch if XA >= 0
00185fe0: 00000000 nop
00185fe4: 24420003 addiu r2,r2,0x0003		XA + 3
00185fe8: 00021083 sra r2,r2,0x02		XA * 5 / 4
00185fec: 3c018019 lui r1,0x8019
00185ff0: a42238ce sh r2,0x38ce(r1)		Store new XA
00185ff4: 03e00008 jr r31
00185ff8: 00000000 nop


Return Locations

  • Battle.bin
00188650: Weapon Damage Calculation
00188c5c: 04 Magic Gun
00189b40: 2D Dmg_(PA*(WP+Y)) 100% Status
00189c04: 2E Equipped:Break Dmg_(PA*WP)