Difference between revisions of "03 Dmg (WP^2)"
Jump to navigation
Jump to search
m (Added links to documented routines: chage calculation and damage calculation) |
m |
||
Line 1: | Line 1: | ||
[03] Guns | [03] Guns | ||
− | 00188be4: 3c028019 lui r2,0x8019 | + | |
− | 00188be8: 90423902 lbu r2,0x3902(r2) | + | No Parameters - Returns Nothing |
− | 00188bec: 27bdffe8 addiu r29,r29, | + | |
− | 00188bf0: afbf0010 sw r31,0x0010(r29) | + | No elemental mechanics. |
− | 00188bf4: 3c018019 lui r1,0x8019 | + | Hard coded Proc mechanics ([[#Hard coded mechanics|see notes]]) |
− | 00188bf8: a42238ce sh r2,0x38ce(r1) | + | ---------------------------------------------------------------------------------------- |
− | 00188bfc: 3c018019 lui r1,0x8019 | + | 00188be4: 3c028019 lui r2,0x8019 |
− | 00188c00: a42238d0 sh r2,0x38d0(r1) | + | 00188be8: 90423902 lbu r2,0x3902(r2) |{{f/load|<nowiki>r2 = Current Ability Weapon Power (WP)</nowiki>}} {{f/std| 0x80193902 / 80193902}} |
− | 00188c04: 0c0617e0 jal | + | 00188bec: 27bdffe8 addiu r29,r29,-0x0018 | |
− | 00188c08: 00000000 nop | + | 00188bf0: afbf0010 sw r31,0x0010(r29) | |
− | 00188c0c: 0c0621a9 jal | + | 00188bf4: 3c018019 lui r1,0x8019 | |
− | 00188c10: 00000000 nop | + | 00188bf8: a42238ce sh r2,0x38ce(r1) |{{f/store|Store WP in Current Ability XA}} {{f/std| 0x801938ce / 801938ce}} |
− | 00188c14: 8fbf0010 lw r31,0x0010(r29) | + | 00188bfc: 3c018019 lui r1,0x8019 | |
− | 00188c18: | + | 00188c00: a42238d0 sh r2,0x38d0(r1) |{{f/store|Store WP in Current Ability YA}} {{f/std| 0x801938d0 / 801938d0}} |
− | 00188c1c: 03e00008 jr r31 | + | 00188c04: 0c0617e0 jal 0x00185f80 |{{f/jal|Charge Calculation|Charge Calculation}} Add charge power to XA |
+ | 00188c08: 00000000 nop | | ||
+ | 00188c0c: 0c0621a9 jal 0x001886a4 |{{f/jal|Damage Calculation|Damage Calculation}} Alters XA (Status, Support, Compatibility, Crit.) - Store XA*YA as Target current action HP damage | ||
+ | 00188c10: 00000000 nop | | ||
+ | 00188c14: 8fbf0010 lw r31,0x0010(r29) | ||
+ | 00188c18: 27bd0018 addiu r29,r29,0x0018 | ||
+ | 00188c1c: 03e00008 jr r31 | ||
00188c20: 00000000 nop | 00188c20: 00000000 nop | ||
+ | === Hard coded mechanics === | ||
+ | In [[Pre_Formula_Setup_(FDC)|Pre Formula Setup]] Current Ability Proc ID (0x801938da) is forced to 0x00 when loading data from Status table. (See line 0018b900 ) | ||
+ | - The value at 0x801938da is preserved | ||
+ | - The data stored in Current Ability 0x80193906 to 0x8019390b are the data from the Inflict Status 0x00 (nothing enabled in patcher) | ||
+ | === Return location === | ||
+ | 0018b97c: [[Pre_Formula_Setup_(FDC)|Pre Formula Setup]] |
Latest revision as of 20:08, 7 April 2022
[03] Guns No Parameters - Returns Nothing No elemental mechanics. Hard coded Proc mechanics (see notes) ---------------------------------------------------------------------------------------- 00188be4: 3c028019 lui r2,0x8019 00188be8: 90423902 lbu r2,0x3902(r2) |r2 = Current Ability Weapon Power (WP) 0x80193902 / 80193902 00188bec: 27bdffe8 addiu r29,r29,-0x0018 | 00188bf0: afbf0010 sw r31,0x0010(r29) | 00188bf4: 3c018019 lui r1,0x8019 | 00188bf8: a42238ce sh r2,0x38ce(r1) |Store WP in Current Ability XA 0x801938ce / 801938ce 00188bfc: 3c018019 lui r1,0x8019 | 00188c00: a42238d0 sh r2,0x38d0(r1) |Store WP in Current Ability YA 0x801938d0 / 801938d0 00188c04: 0c0617e0 jal 0x00185f80 |-->Charge Calculation Add charge power to XA 00188c08: 00000000 nop | 00188c0c: 0c0621a9 jal 0x001886a4 |-->Damage Calculation Alters XA (Status, Support, Compatibility, Crit.) - Store XA*YA as Target current action HP damage 00188c10: 00000000 nop | 00188c14: 8fbf0010 lw r31,0x0010(r29) 00188c18: 27bd0018 addiu r29,r29,0x0018 00188c1c: 03e00008 jr r31 00188c20: 00000000 nop
Hard coded mechanics
In Pre Formula Setup Current Ability Proc ID (0x801938da) is forced to 0x00 when loading data from Status table. (See line 0018b900 ) - The value at 0x801938da is preserved - The data stored in Current Ability 0x80193906 to 0x8019390b are the data from the Inflict Status 0x00 (nothing enabled in patcher)
Return location
0018b97c: Pre Formula Setup