Clear targeting panel data?

From Final Fantasy Hacktics Wiki
Revision as of 12:44, 4 June 2024 by Orkney (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
BATTLE.BIN :  - Clear targeting panel data?
Clear AoE Byte and Green Flag Byte in the whole Targetable grid (0x80192dd8)
------------------------------------------------------------------------------------------
Parameter : Nothing
Return : Nothing
------------------------------------------------------------------------------------------
0017ded0: 00002021 addu r4,r0,r0             |Initialize Tile counter
0017ded4: 3c038019 lui r3,0x8019             |
0017ded8: 24632dd8 addiu r3,r3,0x2dd8        |Dynamic pointer to Targetable grid data
                                            @LOOP - Clear bytes 0x00 and 0x01 in the whole table
0017dedc: a0600000 sb r0,0x0000(r3)              |Initialize Byte 0x00 (AoE value) Max at the center, 0x01 at the edges
0017dee0: a0600001 sb r0,0x0001(r3)              |Turn Green Flag OFF
0017dee4: 24840001 addiu r4,r4,0x0001            |Counter +1
0017dee8: 28820200 slti r2,r4,0x0200             |
0017deec: 1440fffb bne r2,r0,0x0017dedc      #Loop 0x200 Times
0017def0: 24630005 addiu r3,r3,0x0005            |Add tile's offset in Targetable grid (0x5 for each tile)
0017def4: 03e00008 jr r31
0017def8: 00000000 nop
BATTLE.BIN
 00179f40: Set_Jump_Ability_Targeting
 0017a1ac: Calculate_ability_range_with_map_parameters?
 0017a574: Set_targeting_for_weapon_attack_2