Difference between revisions of "02 Dmg (Weapon)"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with " [02] Weapon with 25% cast spell 00188ba4: 27bdffe8 addiu r29,r29,0xffe8 00188ba8: afbf0010 sw r31,0x0010(r29) 00188bac: 0c062144 jal 0x 00188510 Physical Evade Calculatio...")
 
m
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
  [02] Weapon with 25% cast spell
+
  [02] Weapon with 19% cast spell
  00188ba4: 27bdffe8 addiu r29,r29,0xffe8
+
  00188ba8: afbf0010 sw r31,0x0010(r29)
+
No Parameters - Returns Nothing
  00188bac: 0c062144 jal 0x 00188510 Physical Evade Calculation
+
  00188bb0: 00000000 nop
+
Proc ID is used for triggering a second ability instead of inflicting a status
  00188bb4: 14400007 bne r2,r0,0x 00188bd4 Branch if attack is evaded
+
Set Some Current Ability flags if Proc is triggered :
  00188bb8: 00000000 nop
+
- 0x801938c8 : set to 0x01 (Post action event?)
  00188bbc: 0c06218e jal 0x 00188638 Physical Damage Calculation (Weapons)
+
- 0x801938c6 : Set to Proc ID (from curent ability 0x801938da )
  00188bc0: 00000000 nop
+
- 0x801938ef : Set to Target ID (post action Target ?) from curent ability 0x801938c1
  00188bc4: 14400003 bne r2,r0,0x 00188bd4 Branch if no damage is dealt?
+
-------------------------------------------------------------------------------------------------
  00188bc8: 00000000 nop
+
  00188ba4: 27bdffe8 addiu r29,r29,-0x0018    |
  00188bcc: 0c061db9 jal 0x 001876e4 Spell Proc
+
  00188ba8: afbf0010 sw r31,0x0010(r29)       |
  00188bd0: 00000000 nop
+
  00188bac: 0c062144 jal 0x00188510          |{{f/jal|Physical Evade Calculation|Physical Evade Calculation}} If Abillity is evadeable roll Ability Evade byte against Ability base Hit
  00188bd4: 8fbf0010 lw r31,0x0010(r29)
+
  00188bb0: 00000000 nop                     |
  00188bd8: 27bd 0018 addiu r29,r29,0x 0018
+
  00188bb4: 14400007 bne r2,r0,0x00188bd4    {{f/Cond|If Attack Hits}} /Else branch to END
  00188bdc: 03e00008 jr r31
+
  00188bb8: 00000000 nop                         |
 +
  00188bbc: 0c06218e jal 0x00188638              |{{f/jal|Weapon Damage Calculation|Weapon Damage Calculation}} Set XA and YA - Alters XA (Status/Elements/Compat/Support/Crit.) - Store XA*YA as HP dmg (Deals with absorption too) - Roll Proc (19%)
 +
  00188bc0: 00000000 nop                         |
 +
  00188bc4: 14400003 bne r2,r0,0x00188bd4        {{f/Cond|If Proc is triggered}}
 +
  00188bc8: 00000000 nop                             |
 +
  00188bcc: 0c061db9 jal 0x001876e4                  |{{f/jal|Store Reaction/Proc ID and Target|Store Reaction/Proc ID and Target}} Set some flags for post action Proc
 +
  00188bd0: 00000000 nop                             |
 +
  00188bd4: 8fbf0010 lw r31,0x0010(r29)       END       
 +
  00188bd8: 27bd0018 addiu r29,r29,0x0018           
 +
  00188bdc: 03e00008 jr r31                          
 
  00188be0: 00000000 nop
 
  00188be0: 00000000 nop
 +
=== Return location ===
 +
'''Battle.bin'''
 +
  8018b97c - [[Pre Formula Setup (FDC)|Pre Formula Setup]]

Latest revision as of 19:50, 7 April 2022

[02] Weapon with 19% cast spell

No Parameters - Returns Nothing

Proc ID is used for triggering a second ability instead of inflicting a status
Set Some Current Ability flags if Proc is triggered :
- 0x801938c8 : set to 0x01 (Post action event?)
- 0x801938c6 : Set to Proc ID (from curent ability 0x801938da )
- 0x801938ef : Set to Target ID (post action Target ?) from curent ability 0x801938c1
-------------------------------------------------------------------------------------------------
00188ba4: 27bdffe8 addiu r29,r29,-0x0018    |
00188ba8: afbf0010 sw r31,0x0010(r29)       |
00188bac: 0c062144 jal 0x00188510           |-->Physical Evade Calculation If Abillity is evadeable roll Ability Evade byte against Ability base Hit
00188bb0: 00000000 nop                      |
00188bb4: 14400007 bne r2,r0,0x00188bd4     #If Attack Hits /Else branch to END
00188bb8: 00000000 nop                          |
00188bbc: 0c06218e jal 0x00188638               |-->Weapon Damage Calculation Set XA and YA - Alters XA (Status/Elements/Compat/Support/Crit.) - Store XA*YA as HP dmg (Deals with absorption too) - Roll Proc (19%)
00188bc0: 00000000 nop                          |
00188bc4: 14400003 bne r2,r0,0x00188bd4         #If Proc is triggered
00188bc8: 00000000 nop                              |
00188bcc: 0c061db9 jal 0x001876e4                   |-->Store Reaction/Proc ID and Target Set some flags for post action Proc
00188bd0: 00000000 nop                              |
00188bd4: 8fbf0010 lw r31,0x0010(r29)       END        
00188bd8: 27bd0018 addiu r29,r29,0x0018             
00188bdc: 03e00008 jr r31                           
00188be0: 00000000 nop

Return location

Battle.bin
 8018b97c - Pre Formula Setup