Difference between revisions of "14 Set Golem Hit CasF/100*(MA+X)%"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
m
m
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
[14]
+
  0018916c: 27bdffe8 addiu r29,r29,-0x0018   
  0018916c: 27bdffe8 addiu r29,r29,0xffe8
+
  00189170: afbf0010 sw r31,0x0010(r29)      
  00189170: afbf0010 sw r31,0x0010(r29)
+
  00189174: 0c062222 jal 0x00188888          |{{f/jal|Golem_Accuracy|Golem_Accuracy}} Set XA and YA, applies XA changes (Support), uses XA+YA as Hit% (Modified by Attacker faith) / Returns r2
  00189174: 0c062222 jal 0x 00188888    [https://ffhacktics.com/wiki/00188888_-_00188960|Calculate Accuracy as User Faith * (MA + X)%]
+
  00189178: 00000000 nop                     |
  00189178: 00000000 nop
+
  0018917c: 14400007 bne r2,r0,0x0018919c    {{f/Cond|If Attack hits}}
  0018917c: 14400007 bne r2,r0,0x 0018919c
+
  00189180: 34030001 ori r3,r0,0x0001             |{{f/std|<nowiki>r3 = 0x01</nowiki>}}
  00189180: 34030001 ori r3,r0,0x0001
+
  00189184: 3c028019 lui r2,0x8019               |
  00189184: 3c028019 lui r2,0x8019
+
  00189188: 8c422d90 lw r2,0x2d90(r2)             |{{f/adr|<nowiki>r2 = Target Current Action (TCA) data pointer</nowiki>}}
  00189188: 8c422d90 lw r2,0x2d90(r2)
+
  0018918c: 00000000 nop                         |
  0018918c: 00000000 nop
+
  00189190: a4430010 sh r3,0x0010(r2)             |{{f/store|Enable TCA special flag Golem (disables other flags)}}
  00189190: a4430010 sh r3,0x0010(r2)   Set status as golem
+
  00189194: 34030001 ori r3,r0,0x0001             |{{f/std|<nowiki>r3 = 0x01</nowiki>}}
  00189194: 34030001 ori r3,r0,0x0001
+
  00189198: a0430025 sb r3,0x0025(r2)             |{{f/store|Set TCA Attack type to pseudo status (disables others types)}}
  00189198: a0430025 sb r3,0x0025(r2)   Set damage type to Pseudo-Status
+
  0018919c: 8fbf0010 lw r31,0x0010(r29)       END
  0018919c: 8fbf0010 lw r31,0x0010(r29)
+
  001891a0: 27bd0018 addiu r29,r29,0x0018   
  001891a0: 27bd 0018 addiu r29,r29,0x 0018
+
  001891a4: 03e00008 jr r31                  
  001891a4: 03e00008 jr r31
+
  001891a8: 00000000 nop                    
  001891a8: 00000000 nop
+
=== Return locations ===
 +
'''Battle.bin'''
 +
0018b97c - [[Pre Formula Setup (FDC)|Pre Formula Setup]]

Latest revision as of 12:31, 17 April 2022

0018916c: 27bdffe8 addiu r29,r29,-0x0018    
00189170: afbf0010 sw r31,0x0010(r29)       
00189174: 0c062222 jal 0x00188888           |-->Golem_Accuracy Set XA and YA, applies XA changes (Support), uses XA+YA as Hit% (Modified by Attacker faith) / Returns r2
00189178: 00000000 nop                      |
0018917c: 14400007 bne r2,r0,0x0018919c     #If Attack hits
00189180: 34030001 ori r3,r0,0x0001             |r3 = 0x01
00189184: 3c028019 lui r2,0x8019                |
00189188: 8c422d90 lw r2,0x2d90(r2)             |r2 = Target Current Action (TCA) data pointer
0018918c: 00000000 nop                          |
00189190: a4430010 sh r3,0x0010(r2)             |Enable TCA special flag Golem (disables other flags)
00189194: 34030001 ori r3,r0,0x0001             |r3 = 0x01
00189198: a0430025 sb r3,0x0025(r2)             |Set TCA Attack type to pseudo status (disables others types)
0018919c: 8fbf0010 lw r31,0x0010(r29)       END
001891a0: 27bd0018 addiu r29,r29,0x0018     
001891a4: 03e00008 jr r31                   
001891a8: 00000000 nop                      

Return locations

Battle.bin
0018b97c - Pre Formula Setup