Difference between revisions of "XA * YA Calculation"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
Line 12: Line 12:
 
  00186594: 03e00008 jr r31
 
  00186594: 03e00008 jr r31
 
  00186598: a4620004 sh r2,0x0004(r3) Store HP Damage
 
  00186598: a4620004 sh r2,0x0004(r3) Store HP Damage
'''Return Location'''
+
 
  001886a4 - [[Damage Calculation]]
+
== Return Location ==
  0018877c - [[Elemental XA * YA]]
+
*Battle.bin
  00188858 - [[Magical XA * YA]]
+
  001886bc: [[Damage Calculation]]
  00188d3c - Formula 07
+
  00188784: [[Elemental XA * YA]]
  0018967c - Formula 23
+
  00188870: [[Magical XA * YA]]
  00189cd0 - Formula 31
+
  00188d64: [[07 Heal_(Weapon)]]
  00189e94 - Formula 34
+
  00189694: [[23 Heal_(MA*Y)]]
  0018ab98 - Formula 63
+
  00189d10: [[31 Dmg_((PA+Y)/2*PA)]]
  0018ac44 - Formula 64
+
  00189eb4: [[34 Heal_(PA*Y) HealMP_(PA*Y/2)]]
 +
  0018ac00: [[63 Dmg_(SP*WP)]]
 +
  0018ac5c: [[64 Dmg_(PA * WP); if using Spear (PA * 3/2 * WP); if weaponless (PA * Brave /100 * WP)]]

Revision as of 12:12, 6 March 2012

00186568: 3c038019 lui r3,0x8019
0018656c: 946338ce lhu r3,0x38ce(r3)		Load XA
00186570: 3c028019 lui r2,0x8019
00186574: 944238d0 lhu r2,0x38d0(r2)		Load YA
00186578: 00000000 nop
0018657c: 00620018 mult r3,r2			XA * YA
00186580: 3c038019 lui r3,0x8019
00186584: 8c632d90 lw r3,0x2d90(r3)		Load Target Current Action Data Pointer
00186588: 34020080 ori r2,r0,0x0080		r2 = 80 (Attack Type = HP Damage)
0018658c: a0620025 sb r2,0x0025(r3)		Store Attack Type
00186590: 00001012 mflo r2			r2 = XA * YA
00186594: 03e00008 jr r31
00186598: a4620004 sh r2,0x0004(r3)		Store HP Damage

Return Location

  • Battle.bin
001886bc: Damage Calculation
00188784: Elemental XA * YA
00188870: Magical XA * YA
00188d64: 07 Heal_(Weapon)
00189694: 23 Heal_(MA*Y)
00189d10: 31 Dmg_((PA+Y)/2*PA)
00189eb4: 34 Heal_(PA*Y) HealMP_(PA*Y/2)
0018ac00: 63 Dmg_(SP*WP)
0018ac5c: 64 Dmg_(PA * WP); if using Spear (PA * 3/2 * WP); if weaponless (PA * Brave /100 * WP)