Difference between revisions of "24 Dmg ((PA+Y)/2*MA)"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with " [24] 001896b4: 27bdffe8 addiu r29,r29,0xffe8 001896b8: afbf0010 sw r31,0x0010(r29) 001896bc: 0c06216e jal 0x 001885b8 Magic Evade 001896c0: 00000000 nop 0...")
 
m
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
[24]
+
  001896b4: 27bdffe8 addiu r29,r29,0xffe8     |
  001896b4: 27bdffe8 addiu r29,r29,0xffe8
+
  001896b8: afbf0010 sw r31,0x0010(r29)       |
  001896b8: afbf0010 sw r31,0x0010(r29)
+
  001896bc: 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
  001896bc: 0c06216e jal 0x 001885b8      Magic Evade
+
  001896c0: 00000000 nop                     |
  001896c0: 00000000 nop
+
  001896c4: 14400005 bne r2,r0,0x001896dc    {{f/Cond|If Attack is not evaded}}
  001896c4: 14400005 bne r2,r0,0x 001896dc
+
  001896c8: 00000000 nop                         |
  001896c8: 00000000 nop
+
  001896cc: 0c061750 jal 0x00185d40              |{{f/jal|Store MA and PA + Y / 2|Store MA and PA + Y / 2}}  Set XA = MA and YA = (PA + Y)/2
  001896cc: 0c061750 jal 0x 00185d40      Set (PA + Y ) / 2 as Y
+
  001896d0: 00000000 nop                         |
  001896d0: 00000000 nop
+
  001896d4: 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
  001896d4: 0c062259 jal 0x 00188964      Calculate MA*Y with status.
+
  001896d8: 00000000 nop                         |
  001896d8: 00000000 nop
+
  001896dc: 8fbf0010 lw r31,0x0010(r29)       END
  001896dc: 8fbf0010 lw r31,0x0010(r29)
+
  001896e0: 27bd0018 addiu r29,r29,0x0018   
  001896e0: 27bd 0018 addiu r29,r29,0x 0018
+
  001896e4: 03e00008 jr r31                  
  001896e4: 03e00008 jr r31
+
  001896e8: 00000000 nop                    
  001896e8: 00000000 nop
+
=== Return location ===
 +
'''Battle.bin'''
 +
0018b97c - [[Pre Formula Setup (FDC)|Pre Formula Setup]]

Latest revision as of 18:53, 19 April 2022

001896b4: 27bdffe8 addiu r29,r29,0xffe8     |
001896b8: afbf0010 sw r31,0x0010(r29)       |
001896bc: 0c06216e jal 0x001885b8           |-->Magical Evade Calculation If Abillity is evadeable roll Ability Evade byte against Ability base Hit / Returns r2
001896c0: 00000000 nop                      |
001896c4: 14400005 bne r2,r0,0x001896dc     #If Attack is not evaded
001896c8: 00000000 nop                          |
001896cc: 0c061750 jal 0x00185d40               |-->Store MA and PA + Y / 2  Set XA = MA and YA = (PA + Y)/2
001896d0: 00000000 nop                          |
001896d4: 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
001896d8: 00000000 nop                          |
001896dc: 8fbf0010 lw r31,0x0010(r29)       END
001896e0: 27bd0018 addiu r29,r29,0x0018     
001896e4: 03e00008 jr r31                   
001896e8: 00000000 nop                      

Return location

Battle.bin
0018b97c - Pre Formula Setup