Difference between revisions of "4E Dmg (MA*Y)"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
m
 
Line 1: Line 1:
 
  [4e]
 
  [4e]
  0018a420: 27bdffe8 addiu r29,r29,0xffe8
+
  0018a420: 27bdffe8 addiu r29,r29,-0x0018    |
  0018a424: afbf0010 sw r31,0x0010(r29)
+
  0018a424: afbf0010 sw r31,0x0010(r29)       |
  0018a428: 0c06216e jal 0x 001885b8      [[Magical Evade Calculation]]
+
  0018a428: 0c06216e jal 0x001885b8          |{{f/jal|Magical Evade Calculation|Magical Evade Calculation}} If Abillity is evadeable roll Ability Evade byte against Ability base Hit / Returns r2
  0018a42c: 00000000 nop
+
  0018a42c: 00000000 nop                     |
  0018a430: 14400005 bne r2,r0,0x 0018a448
+
  0018a430: 14400005 bne r2,r0,0x0018a448    {{f/Cond|If Attack is not evaded}}
  0018a434: 00000000 nop
+
  0018a434: 00000000 nop                         |
  0018a438: 0c061725 jal 0x 00185c94      [[Store MA and Y]]
+
  0018a438: 0c061725 jal 0x00185c94              |{{f/jal|Store MA and Y|Store MA and Y}} XA = Attacker's MA and YA = used Ability Y
  0018a43c: 00000000 nop
+
  0018a43c: 00000000 nop                         |
  0018a440: 0c062259 jal 0x 00188964      [[Truth/Formula 5E-5F Magical damage]]
+
  0018a440: 0c062259 jal 0x00188964              |{{f/jal|Truth/Formula 5E-5F Magical damage|Truth/Formula 5E-5F Magical damage}} Modify XA (Element/Support…) set HP damage (XA*YA) process it through elemental resistances, Roll +/- Add status
  0018a444: 00000000 nop
+
  0018a444: 00000000 nop                         |
  0018a448: 8fbf0010 lw r31,0x0010(r29)
+
  0018a448: 8fbf0010 lw r31,0x0010(r29)       END
  0018a44c: 27bd0018 addiu r29,r29,0x 0018
+
  0018a44c: 27bd0018 addiu r29,r29,0x0018
  0018a450: 03e00008 jr r31
+
  0018a450: 03e00008 jr r31
 
  0018a454: 00000000 nop
 
  0018a454: 00000000 nop
 +
=== Return location ===
 +
'''Battle.bin'''
 +
0018b97c - [[Pre Formula Setup (FDC)|Pre Formula Setup]]

Latest revision as of 19:34, 25 April 2022

[4e]
0018a420: 27bdffe8 addiu r29,r29,-0x0018    |
0018a424: afbf0010 sw r31,0x0010(r29)       |
0018a428: 0c06216e jal 0x001885b8           |-->Magical Evade Calculation If Abillity is evadeable roll Ability Evade byte against Ability base Hit / Returns r2
0018a42c: 00000000 nop                      |
0018a430: 14400005 bne r2,r0,0x0018a448     #If Attack is not evaded
0018a434: 00000000 nop                          |
0018a438: 0c061725 jal 0x00185c94               |-->Store MA and Y XA = Attacker's MA and YA = used Ability Y
0018a43c: 00000000 nop                          |
0018a440: 0c062259 jal 0x00188964               |-->Truth/Formula 5E-5F Magical damage Modify XA (Element/Support…) set HP damage (XA*YA) process it through elemental resistances, Roll +/- Add status
0018a444: 00000000 nop                          |
0018a448: 8fbf0010 lw r31,0x0010(r29)       END
0018a44c: 27bd0018 addiu r29,r29,0x0018
0018a450: 03e00008 jr r31
0018a454: 00000000 nop

Return location

Battle.bin
0018b97c - Pre Formula Setup