Difference between revisions of "1E Dmg ((MA+Y)*MA/2)"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
m
 
Line 1: Line 1:
   1e]
+
Hard coded mechanics : This formula is a multi Hit formula. Number of hits = random  from 1 to Ability X   ([[Current_Action_Ability_Data_Setting_/_Multi_Hit_Formulas|See here]] : line 0017d5e0)
  00189434: 27bdffe8 addiu r29,r29,0xffe8
+
----------------------------------------------------------------------------------------------------------
  00189438: afbf0010 sw r31,0x0010(r29)
+
  00189434: 27bdffe8 addiu r29,r29,-0x0018    |
  0018943c: 0c06216e jal 0x 001885b8  [[Magical Evade Calculation]]
+
  00189438: afbf0010 sw r31,0x0010(r29)       |
  00189440: 00000000 nop
+
  0018943c: 0c06216e jal 0x001885b8          |{{f/jal|Magical Evade Calculation|Magical Evade Calculation}} If Abillity is evadeable roll Ability Evade byte against Ability base Hit
  00189444: 14400003 bne r2,r0,0x 00189454
+
  00189440: 00000000 nop                     |
  00189448: 00000000 nop
+
  00189444: 14400003 bne r2,r0,0x00189454    {{f/Cond|If Attack is not Evaded}}
  0018944c: 0c062269 jal 0x 001889a4  [[2Truth/Formula 5E-5F Calculate damage]]
+
  00189448: 00000000 nop                         |
  00189450: 00000000 nop
+
  0018944c: 0c062269 jal 0x001889a4              |{{f/jal|2Truth/Formula 5E-5F Calculate damage|2Truth/Formula 5E-5F Calculate damage}} Set Damage (MA * (MA+Y)/2) - Altered by M-Support/Status/Element - Roll Status Proc (19%)
  00189454: 8fbf0010 lw r31,0x0010(r29)
+
  00189450: 00000000 nop                         |
  00189458: 27bd 0018 addiu r29,r29,0x 0018
+
  00189454: 8fbf0010 lw r31,0x0010(r29)       END
  0018945c: 03e00008 jr r31
+
  00189458: 27bd0018 addiu r29,r29,0x0018       
  00189460: 00000000 nop
+
  0018945c: 03e00008 jr r31                    
 +
  00189460: 00000000 nop                        
 +
=== Return location ===
 +
'''Battle.bin'''
 +
0018b97c - [[Pre Formula Setup (FDC)|Pre Formula Setup]]

Latest revision as of 19:23, 18 April 2022

Hard coded mechanics : This formula is a multi Hit formula. Number of hits = random  from 1 to Ability X   (See here : line 0017d5e0)
----------------------------------------------------------------------------------------------------------
00189434: 27bdffe8 addiu r29,r29,-0x0018    |
00189438: afbf0010 sw r31,0x0010(r29)       |
0018943c: 0c06216e jal 0x001885b8           |-->Magical Evade Calculation If Abillity is evadeable roll Ability Evade byte against Ability base Hit
00189440: 00000000 nop                      |
00189444: 14400003 bne r2,r0,0x00189454     #If Attack is not Evaded
00189448: 00000000 nop                          |
0018944c: 0c062269 jal 0x001889a4               |-->2Truth/Formula 5E-5F Calculate damage Set Damage (MA * (MA+Y)/2) - Altered by M-Support/Status/Element - Roll Status Proc (19%)
00189450: 00000000 nop                          |
00189454: 8fbf0010 lw r31,0x0010(r29)       END
00189458: 27bd0018 addiu r29,r29,0x0018        
0018945c: 03e00008 jr r31                      
00189460: 00000000 nop                         

Return location

Battle.bin
0018b97c - Pre Formula Setup