From 021592d2192675357d3e9fcfa7d1718bfe6142e2 Mon Sep 17 00:00:00 2001 From: Ethan Roseman Date: Fri, 27 May 2022 09:03:19 -0400 Subject: [PATCH] Misc decomp 70 (#716) * aura_appendGfx * 3 more action commands * fire_shell * hammer, hurricane * spiny_surge * data stuff, cleanup, whirlwind * warnings * water_block data and func * water_block * effect stuff cleanup * big_snowflakes effect * data cleanup, fpr abi regs * 2 battle item funcs + data * 2 mo * shooting_star func * 3 16F740 funcs * btl_state_update_end_battle * map funcs * more dedupe * cleanin * draw_entity_model_C/D * effect butterflies, btl state funcs * it is done * it is done * PR comments, some cleanup --- diff_settings.py | 1 + include/common_structs.h | 10 +- include/effects.h | 377 +++--- include/effects_internal.h | 6 +- include/enums.h | 6 +- include/functions.h | 18 +- include/gcc/memory.h | 23 + include/gcc/string.h | 42 + include/model.h | 1 + include/xstdio.h | 37 + src/16F740.c | 873 +++++++++++- src/5B320.c | 10 +- src/7E9D0.c | 5 +- src/C50A0.c | 14 +- src/battle/action_cmd/body_slam.c | 159 ++- src/battle/action_cmd/bomb.c | 18 +- src/battle/action_cmd/break_free.c | 176 ++- src/battle/action_cmd/dizzy_shell.c | 173 ++- src/battle/action_cmd/fire_shell.c | 190 ++- src/battle/action_cmd/hammer.c | 289 +++- src/battle/action_cmd/hurricane.c | 275 +++- src/battle/action_cmd/mega_shock.c | 24 +- src/battle/action_cmd/power_shock.c | 164 +-- src/battle/action_cmd/smack.c | 2 - src/battle/action_cmd/spiny_surge.c | 185 ++- src/battle/action_cmd/spook.c | 203 ++- src/battle/action_cmd/squirt.c | 163 ++- src/battle/action_cmd/tidal_wave.c | 74 +- src/battle/action_cmd/water_block.c | 586 +++++++- src/battle/action_cmd/whirlwind.c | 346 ++++- src/battle/area_arn/actor/tubbas_heart.c | 10 +- src/battle/area_kpa2/69F320.c | 9 +- src/battle/area_kpa2/6A2B50.c | 40 +- src/battle/area_omo/actor/groove_guy.c | 4 +- src/battle/area_tik2/608AB0.c | 2 +- src/battle/area_tik2/608CB0.c | 8 +- src/battle/item/insecticide_herb.c | 29 +- src/battle/item/mystery.c | 253 ++-- src/battle/item/shooting_star.c | 50 +- src/battle/item/strange_cake.c | 278 ++-- src/battle/partner/watt.c | 22 +- src/common/UnkEffect6FFunc.inc.c | 16 +- src/common/UnkWaterFountainFunc.inc.c | 31 + src/common/UnkWhirlwindEffectFunc.inc.c | 10 +- src/effects/aura.c | 146 +- src/effects/big_snowflakes.c | 127 +- src/effects/butterflies.c | 172 ++- src/effects/small_gold_sparkle.c | 2 +- src/entity.c | 67 +- src/evt/fx_api.c | 2 +- src/hud_element.h | 1 - src/os/3FEA0.c | 9 - src/os/xprintf.c | 242 ++++ src/world/action/spin.c | 54 +- src/world/area_dro/dro_02/9694C0.c | 9 +- src/world/area_flo/flo_07/CAC1F0.c | 30 +- src/world/area_flo/flo_14/CCB310.c | 2 - src/world/area_flo/flo_18/CDC6A0.c | 40 +- src/world/area_jan/jan_00/B216E0.c | 29 +- src/world/area_kgr/kgr_01/8A9B70.c | 13 +- src/world/area_kmr/kmr_02/8B0070.c | 3 +- src/world/area_kmr/kmr_11/8DA3A0.c | 3 +- src/world/area_kzn/kzn_06/C6CD10.c | 1 + src/world/area_mac/mac_05/852170.c | 4 +- src/world/area_mac/mac_05/855560.c | 18 +- src/world/area_mac/mac_06/864B40.c | 4 +- src/world/area_mac/mac_06/865000.c | 18 +- src/world/area_obk/obk_02/BC2A90.c | 2 +- src/world/area_obk/obk_05/BCD7D0.c | 34 +- src/world/area_obk/obk_07/BCEEB0.c | 2 +- src/world/area_obk/obk_08/BD4110.c | 34 +- src/world/area_omo/omo_04/DAF240.c | 3 +- src/world/area_omo/omo_07/DC04D0.c | 3 +- src/world/area_omo/omo_09/DD02E0.c | 3 +- src/world/area_osr/osr_03/AB62B0.c | 10 +- src/world/common/StarSpiritEffectFunc.inc.c | 56 +- src/world/common/UnkAngleFunc001.inc.c | 35 + src/world/common/UnkAngleFunc004.inc.c | 36 + src/world/common/UnkAngleFunc005.inc.c | 36 + src/world/common/UnkFloatFunc001.inc.c | 24 + src/world/common/UnkNpcPosFunc.inc.c | 16 + src/world/common/UnkPlayerPosFunc.inc.c | 15 + src/world/common/UnkVtxFunc.inc.c | 7 + src/world/common/resolve_npc.inc.c | 11 + src/world/common/unkAngleFuncs023.inc.c | 36 + tools/sortsymz.py | 2 +- ver/us/asm/data/1AF2D0.data.s | 5 +- .../asm/data/battle/action_cmd/422A90.data.s | 6 - .../asm/data/battle/action_cmd/423C30.data.s | 6 - .../asm/data/battle/action_cmd/424550.data.s | 93 -- .../asm/data/battle/action_cmd/426970.data.s | 12 - .../asm/data/battle/action_cmd/427320.data.s | 21 - .../asm/data/battle/action_cmd/428280.data.s | 12 - .../asm/data/battle/action_cmd/4292C0.data.s | 9 - .../asm/data/battle/action_cmd/42A480.data.s | 15 - .../asm/data/battle/action_cmd/42B650.data.s | 84 -- .../asm/data/battle/action_cmd/42CEB0.data.s | 9 - .../asm/data/battle/action_cmd/42D9B0.data.s | 9 - .../asm/data/battle/action_cmd/42F680.data.s | 12 - .../asm/data/battle/action_cmd/42FFC0.data.s | 12 - .../asm/data/battle/action_cmd/430940.data.s | 12 - .../asm/data/battle/area_kpa2/6A44E0.data.s | 159 --- .../asm/data/battle/area_tik2/60ABD0.data.s | 6 +- ver/us/asm/data/effects/363890.data.s | 21 - .../data/world/area_jan/jan_00/B25E90.data.s | 24 +- .../data/world/area_kmr/kmr_02/8B5640.data.s | 2 +- .../data/world/area_kmr/kmr_11/8DE400.data.s | 2 +- .../data/world/area_mac/mac_05/856650.data.s | 2 +- .../data/world/area_mac/mac_05/862BC0.data.s | 24 +- .../data/world/area_mac/mac_06/8661D0.data.s | 2 +- .../data/world/area_mac/mac_06/8666A0.data.s | 24 +- .../data/world/area_obk/obk_02/BC3720.data.s | 2 +- .../data/world/area_obk/obk_07/BD14F0.data.s | 2 +- .../data/world/area_omo/omo_04/DAF3E0.data.s | 2 +- .../data/world/area_omo/omo_07/DC3730.data.s | 2 +- .../data/world/area_omo/omo_09/DD6BB0.data.s | 2 +- .../16F740/btl_merlee_on_first_strike.s | 125 -- .../16F740/btl_merlee_on_start_turn.s | 109 -- .../btl_state_update_begin_partner_turn.s | 234 ---- .../16F740/btl_state_update_end_battle.s | 242 ---- .../btl_state_update_partner_striking_first.s | 316 ----- .../16F740/btl_state_update_run_away.s | 366 ----- .../body_slam/func_802A92D4_4285B4.s | 258 ---- .../break_free/func_802A92DC_4236CC.s | 278 ---- .../dizzy_shell/func_802A928C_4263FC.s | 307 ----- .../fire_shell/func_802A9294_426C64.s | 394 ------ .../action_cmd/hammer/func_802A936C_42236C.s | 451 ------- .../hurricane/func_802A92A0_42F980.s | 363 ----- .../power_shock/func_802A9310_42D220.s | 4 +- .../spiny_surge/func_802A9254_42F074.s | 345 ----- .../action_cmd/spook/func_802A9298_4302B8.s | 381 ------ .../action_cmd/squirt/func_802A9208_429F28.s | 295 ---- .../water_block/func_802A9000_42A4F0.s | 242 ---- .../water_block/func_802A948C_42A97C.s | 830 ------------ .../whirlwind/func_802A9000_423C70.s | 128 -- .../whirlwind/func_802A91E0_423E50.s | 76 -- .../whirlwind/func_802A92F0_423F60.s | 309 ----- .../area_kpa2/69F320/func_80218AA4_69FCA4.s | 25 + .../area_kpa2/69F320/func_80219818_6A0A18.s | 25 + .../area_kpa2/69F320/func_8021ABD8_6A1DD8.s | 28 + .../area_kpa2/69F320/func_8021B678_6A2878.s | 7 + .../area_kpa2/6A2B50/func_8021B9A8_6A2BA8.s | 10 + .../area_kpa2/6A2B50/func_8021C520_6A3720.s | 28 + .../area_kpa2/6A2B50/func_8021CFC0_6A41C0.s | 7 + .../area_kpa2/6A2B50/func_8021D290_6A4490.s | 61 + .../area_tik2/608AB0/func_80218058_608B08.s | 110 -- .../area_tik2/608CB0/func_802184E4_608F94.s | 107 -- .../area_tik2/608CB0/func_80218884_609334.s | 107 -- ...battle_item_mystery_func_802A123C_72C7EC.s | 112 -- ...battle_item_mystery_func_802A13E4_72C994.s | 334 ----- ..._item_shooting_star_func_802A123C_71D9AC.s | 89 -- ...e_item_strange_cake_func_802A123C_73153C.s | 112 -- ...e_item_strange_cake_func_802A13E4_7316E4.s | 303 ----- .../effects/aura/aura_appendGfx.s | 407 ------ .../big_snowflakes/big_snowflakes_appendGfx.s | 191 --- .../big_snowflakes/big_snowflakes_main.s | 126 -- .../big_snowflakes/big_snowflakes_update.s | 148 -- .../butterflies/butterflies_appendGfx.s | 179 --- .../effects/butterflies/butterflies_main.s | 71 - .../effects/butterflies/butterflies_update.s | 186 --- .../nonmatchings/entity/draw_entity_model_C.s | 71 - .../nonmatchings/entity/draw_entity_model_D.s | 71 - ver/us/asm/nonmatchings/os/3FEA0/_Printf.s | 411 ------ ver/us/asm/nonmatchings/os/3FEA0/_Putfld.s | 348 ----- .../jan_00/B216E0/func_802411A0_B216E0.s | 26 - .../jan_00/B216E0/func_802411EC_B2172C.s | 92 -- .../jan_00/B216E0/func_802415B0_B21AF0.s | 47 - .../jan_00/B216E0/func_80241654_B21B94.s | 47 - .../jan_00/B216E0/func_802416F8_B21C38.s | 97 -- .../jan_00/B216E0/func_80241868_B21DA8.s | 66 - ...241338_B21878.s => jan_00_unkVtxFunc001.s} | 2 +- .../kmr_02/8B0070/func_80242860_8B28D0.s | 59 - .../kmr_11/8DA3A0/func_80240DDC_8DAEDC.s | 61 - .../mac_05/852170/func_8024030C_85247C.s | 97 -- .../mac_05/855560/func_802433F0_855560.s | 26 - .../mac_05/855560/func_8024343C_8555AC.s | 92 -- .../mac_05/855560/func_80243800_855970.s | 47 - .../mac_05/855560/func_802438A4_855A14.s | 47 - .../mac_05/855560/func_80243948_855AB8.s | 97 -- .../mac_05/855560/func_80243AB8_855C28.s | 63 - ...243588_8556F8.s => mac_05_unkVtxFunc001.s} | 2 +- .../mac_06/864B40/func_8024030C_864E4C.s | 97 -- .../mac_06/865000/func_802404C0_865000.s | 26 - .../mac_06/865000/func_8024050C_86504C.s | 92 -- .../mac_06/865000/func_802408D0_865410.s | 47 - .../mac_06/865000/func_80240974_8654B4.s | 47 - .../mac_06/865000/func_80240A18_865558.s | 97 -- .../mac_06/865000/func_80240B88_8656C8.s | 63 - ...240658_865198.s => mac_06_unkVtxFunc001.s} | 2 +- .../obk_02/BC2A90/func_8024000C_BC2A9C.s | 109 -- .../obk_05/BCD7D0/func_802407AC_BCD80C.s | 109 -- .../obk_07/BCEEB0/func_802402CC_BCEEBC.s | 109 -- .../obk_08/BD4110/func_80240FE4_BD4854.s | 109 -- .../omo_04/DAF240/func_80241E40_DAF240.s | 60 - .../omo_07/DC04D0/func_80243220_DC04D0.s | 60 - .../omo_09/DD02E0/func_80243610_DD02E0.s | 60 - .../osr_03/AB62B0/func_802400C4_AB6354.s | 59 - ver/us/splat.yaml | 79 +- ver/us/symbol_addrs.txt | 1187 +++++++++++++++-- ver/us/undefined_syms.txt | 28 +- 200 files changed, 6745 insertions(+), 13556 deletions(-) create mode 100644 include/gcc/memory.h create mode 100755 include/gcc/string.h create mode 100755 include/xstdio.h create mode 100644 src/common/UnkWaterFountainFunc.inc.c delete mode 100644 src/os/3FEA0.c create mode 100644 src/os/xprintf.c create mode 100644 src/world/common/UnkAngleFunc001.inc.c create mode 100644 src/world/common/UnkAngleFunc004.inc.c create mode 100644 src/world/common/UnkAngleFunc005.inc.c create mode 100644 src/world/common/UnkFloatFunc001.inc.c create mode 100644 src/world/common/UnkNpcPosFunc.inc.c create mode 100644 src/world/common/UnkPlayerPosFunc.inc.c create mode 100644 src/world/common/UnkVtxFunc.inc.c create mode 100644 src/world/common/resolve_npc.inc.c create mode 100644 src/world/common/unkAngleFuncs023.inc.c delete mode 100644 ver/us/asm/data/battle/action_cmd/422A90.data.s delete mode 100644 ver/us/asm/data/battle/action_cmd/423C30.data.s delete mode 100644 ver/us/asm/data/battle/action_cmd/424550.data.s delete mode 100644 ver/us/asm/data/battle/action_cmd/426970.data.s delete mode 100644 ver/us/asm/data/battle/action_cmd/427320.data.s delete mode 100644 ver/us/asm/data/battle/action_cmd/428280.data.s delete mode 100644 ver/us/asm/data/battle/action_cmd/4292C0.data.s delete mode 100644 ver/us/asm/data/battle/action_cmd/42A480.data.s delete mode 100644 ver/us/asm/data/battle/action_cmd/42B650.data.s delete mode 100644 ver/us/asm/data/battle/action_cmd/42CEB0.data.s delete mode 100644 ver/us/asm/data/battle/action_cmd/42D9B0.data.s delete mode 100644 ver/us/asm/data/battle/action_cmd/42F680.data.s delete mode 100644 ver/us/asm/data/battle/action_cmd/42FFC0.data.s delete mode 100644 ver/us/asm/data/battle/action_cmd/430940.data.s delete mode 100644 ver/us/asm/data/effects/363890.data.s delete mode 100644 ver/us/asm/nonmatchings/16F740/btl_merlee_on_first_strike.s delete mode 100644 ver/us/asm/nonmatchings/16F740/btl_merlee_on_start_turn.s delete mode 100644 ver/us/asm/nonmatchings/16F740/btl_state_update_begin_partner_turn.s delete mode 100644 ver/us/asm/nonmatchings/16F740/btl_state_update_end_battle.s delete mode 100644 ver/us/asm/nonmatchings/16F740/btl_state_update_partner_striking_first.s delete mode 100644 ver/us/asm/nonmatchings/16F740/btl_state_update_run_away.s delete mode 100644 ver/us/asm/nonmatchings/battle/action_cmd/body_slam/func_802A92D4_4285B4.s delete mode 100644 ver/us/asm/nonmatchings/battle/action_cmd/break_free/func_802A92DC_4236CC.s delete mode 100644 ver/us/asm/nonmatchings/battle/action_cmd/dizzy_shell/func_802A928C_4263FC.s delete mode 100644 ver/us/asm/nonmatchings/battle/action_cmd/fire_shell/func_802A9294_426C64.s delete mode 100644 ver/us/asm/nonmatchings/battle/action_cmd/hammer/func_802A936C_42236C.s delete mode 100644 ver/us/asm/nonmatchings/battle/action_cmd/hurricane/func_802A92A0_42F980.s delete mode 100644 ver/us/asm/nonmatchings/battle/action_cmd/spiny_surge/func_802A9254_42F074.s delete mode 100644 ver/us/asm/nonmatchings/battle/action_cmd/spook/func_802A9298_4302B8.s delete mode 100644 ver/us/asm/nonmatchings/battle/action_cmd/squirt/func_802A9208_429F28.s delete mode 100644 ver/us/asm/nonmatchings/battle/action_cmd/water_block/func_802A9000_42A4F0.s delete mode 100644 ver/us/asm/nonmatchings/battle/action_cmd/water_block/func_802A948C_42A97C.s delete mode 100644 ver/us/asm/nonmatchings/battle/action_cmd/whirlwind/func_802A9000_423C70.s delete mode 100644 ver/us/asm/nonmatchings/battle/action_cmd/whirlwind/func_802A91E0_423E50.s delete mode 100644 ver/us/asm/nonmatchings/battle/action_cmd/whirlwind/func_802A92F0_423F60.s delete mode 100644 ver/us/asm/nonmatchings/battle/area_tik2/608AB0/func_80218058_608B08.s delete mode 100644 ver/us/asm/nonmatchings/battle/area_tik2/608CB0/func_802184E4_608F94.s delete mode 100644 ver/us/asm/nonmatchings/battle/area_tik2/608CB0/func_80218884_609334.s delete mode 100644 ver/us/asm/nonmatchings/battle/item/mystery/battle_item_mystery_func_802A123C_72C7EC.s delete mode 100644 ver/us/asm/nonmatchings/battle/item/mystery/battle_item_mystery_func_802A13E4_72C994.s delete mode 100644 ver/us/asm/nonmatchings/battle/item/shooting_star/battle_item_shooting_star_func_802A123C_71D9AC.s delete mode 100644 ver/us/asm/nonmatchings/battle/item/strange_cake/battle_item_strange_cake_func_802A123C_73153C.s delete mode 100644 ver/us/asm/nonmatchings/battle/item/strange_cake/battle_item_strange_cake_func_802A13E4_7316E4.s delete mode 100644 ver/us/asm/nonmatchings/effects/aura/aura_appendGfx.s delete mode 100644 ver/us/asm/nonmatchings/effects/big_snowflakes/big_snowflakes_appendGfx.s delete mode 100644 ver/us/asm/nonmatchings/effects/big_snowflakes/big_snowflakes_main.s delete mode 100644 ver/us/asm/nonmatchings/effects/big_snowflakes/big_snowflakes_update.s delete mode 100644 ver/us/asm/nonmatchings/effects/butterflies/butterflies_appendGfx.s delete mode 100644 ver/us/asm/nonmatchings/effects/butterflies/butterflies_main.s delete mode 100644 ver/us/asm/nonmatchings/effects/butterflies/butterflies_update.s delete mode 100644 ver/us/asm/nonmatchings/entity/draw_entity_model_C.s delete mode 100644 ver/us/asm/nonmatchings/entity/draw_entity_model_D.s delete mode 100644 ver/us/asm/nonmatchings/os/3FEA0/_Printf.s delete mode 100644 ver/us/asm/nonmatchings/os/3FEA0/_Putfld.s delete mode 100644 ver/us/asm/nonmatchings/world/area_jan/jan_00/B216E0/func_802411A0_B216E0.s delete mode 100644 ver/us/asm/nonmatchings/world/area_jan/jan_00/B216E0/func_802411EC_B2172C.s delete mode 100644 ver/us/asm/nonmatchings/world/area_jan/jan_00/B216E0/func_802415B0_B21AF0.s delete mode 100644 ver/us/asm/nonmatchings/world/area_jan/jan_00/B216E0/func_80241654_B21B94.s delete mode 100644 ver/us/asm/nonmatchings/world/area_jan/jan_00/B216E0/func_802416F8_B21C38.s delete mode 100644 ver/us/asm/nonmatchings/world/area_jan/jan_00/B216E0/func_80241868_B21DA8.s rename ver/us/asm/nonmatchings/world/area_jan/jan_00/B216E0/{func_80241338_B21878.s => jan_00_unkVtxFunc001.s} (99%) delete mode 100644 ver/us/asm/nonmatchings/world/area_kmr/kmr_02/8B0070/func_80242860_8B28D0.s delete mode 100644 ver/us/asm/nonmatchings/world/area_kmr/kmr_11/8DA3A0/func_80240DDC_8DAEDC.s delete mode 100644 ver/us/asm/nonmatchings/world/area_mac/mac_05/852170/func_8024030C_85247C.s delete mode 100644 ver/us/asm/nonmatchings/world/area_mac/mac_05/855560/func_802433F0_855560.s delete mode 100644 ver/us/asm/nonmatchings/world/area_mac/mac_05/855560/func_8024343C_8555AC.s delete mode 100644 ver/us/asm/nonmatchings/world/area_mac/mac_05/855560/func_80243800_855970.s delete mode 100644 ver/us/asm/nonmatchings/world/area_mac/mac_05/855560/func_802438A4_855A14.s delete mode 100644 ver/us/asm/nonmatchings/world/area_mac/mac_05/855560/func_80243948_855AB8.s delete mode 100644 ver/us/asm/nonmatchings/world/area_mac/mac_05/855560/func_80243AB8_855C28.s rename ver/us/asm/nonmatchings/world/area_mac/mac_05/855560/{func_80243588_8556F8.s => mac_05_unkVtxFunc001.s} (99%) delete mode 100644 ver/us/asm/nonmatchings/world/area_mac/mac_06/864B40/func_8024030C_864E4C.s delete mode 100644 ver/us/asm/nonmatchings/world/area_mac/mac_06/865000/func_802404C0_865000.s delete mode 100644 ver/us/asm/nonmatchings/world/area_mac/mac_06/865000/func_8024050C_86504C.s delete mode 100644 ver/us/asm/nonmatchings/world/area_mac/mac_06/865000/func_802408D0_865410.s delete mode 100644 ver/us/asm/nonmatchings/world/area_mac/mac_06/865000/func_80240974_8654B4.s delete mode 100644 ver/us/asm/nonmatchings/world/area_mac/mac_06/865000/func_80240A18_865558.s delete mode 100644 ver/us/asm/nonmatchings/world/area_mac/mac_06/865000/func_80240B88_8656C8.s rename ver/us/asm/nonmatchings/world/area_mac/mac_06/865000/{func_80240658_865198.s => mac_06_unkVtxFunc001.s} (99%) delete mode 100644 ver/us/asm/nonmatchings/world/area_obk/obk_02/BC2A90/func_8024000C_BC2A9C.s delete mode 100644 ver/us/asm/nonmatchings/world/area_obk/obk_05/BCD7D0/func_802407AC_BCD80C.s delete mode 100644 ver/us/asm/nonmatchings/world/area_obk/obk_07/BCEEB0/func_802402CC_BCEEBC.s delete mode 100644 ver/us/asm/nonmatchings/world/area_obk/obk_08/BD4110/func_80240FE4_BD4854.s delete mode 100644 ver/us/asm/nonmatchings/world/area_omo/omo_04/DAF240/func_80241E40_DAF240.s delete mode 100644 ver/us/asm/nonmatchings/world/area_omo/omo_07/DC04D0/func_80243220_DC04D0.s delete mode 100644 ver/us/asm/nonmatchings/world/area_omo/omo_09/DD02E0/func_80243610_DD02E0.s delete mode 100644 ver/us/asm/nonmatchings/world/area_osr/osr_03/AB62B0/func_802400C4_AB6354.s diff --git a/diff_settings.py b/diff_settings.py index 34c3e65606..48aad93d95 100644 --- a/diff_settings.py +++ b/diff_settings.py @@ -7,3 +7,4 @@ def apply(config, args): config['mapfile'] = f'{ver_dir}build/papermario.map' config['source_directories'] = ['src', f'{ver_dir}asm', 'include', f'{ver_dir}assets'] config['make_command'] = ['ninja'] + config['objdump_flags'] = ['-M','reg-names=32'] diff --git a/include/common_structs.h b/include/common_structs.h index 46dcbb558b..652c22f1a5 100644 --- a/include/common_structs.h +++ b/include/common_structs.h @@ -245,7 +245,7 @@ typedef struct PlayerData { /* 0x1C8 */ s16 storedItems[32]; /* 0x208 */ s16 equippedBadges[64]; /* 0x288 */ char unk_288; - /* 0x289 */ u8 merleeSpellType; + /* 0x289 */ s8 merleeSpellType; /* 0x28A */ s8 merleeCastsLeft; /* 0x28B */ char unk_28B; /* 0x28C */ s16 merleeTurnCount; @@ -1616,7 +1616,7 @@ typedef struct ActorPartBlueprint { /* 0x14 */ s32 eventFlags; /* 0x18 */ s32 elementImmunityFlags; /* 0x1C */ s8 unk_1C; - /* 0x1C */ s8 unk_1D; + /* 0x1D */ s8 unk_1D; /* 0x1E */ char unk_1E[2]; /* 0x20 */ s32 unk_20; } ActorPartBlueprint; // size = 0x24 @@ -2048,7 +2048,7 @@ typedef struct PlayerStatus { /* 0x0CC */ s32 shadowID; /* 0x0D0 */ f32* unk_D0; /* 0x0D4 */ f32 spinRate; - /* 0x0D8 */ UNK_PTR** unk_D8; + /* 0x0D8 */ struct EffectInstance* unk_D8; // effect 46 /* 0x0DC */ s32 currentButtons; /* 0x0E0 */ s32 pressedButtons; /* 0x0E4 */ s32 heldButtons; @@ -2283,7 +2283,7 @@ typedef struct PartnerActionStatus { typedef struct EntityModel { /* 0x00 */ s32 flags; - /* 0x04 */ u8 renderMode; + /* 0x04 */ s8 renderMode; /* 0x05 */ u8 unk_05; /* 0x06 */ u8 unk_06; /* 0x07 */ u8 unk_07; @@ -2291,7 +2291,7 @@ typedef struct EntityModel { /* 0x0C */ f32 timeScale; ///< Default is 1.0 /* 0x10 */ s32* cmdListReadPos; /* 0x14 */ Gfx* displayList; - /* 0x18 */ Matrix4s transform; + /* 0x18 */ Mtx transform; /* 0x58 */ s32* cmdListSavedPos; /* 0x5C */ Vtx* vertexArray; /* 0x60 */ UNK_FUN_PTR(fpSetupGfxCallback); diff --git a/include/effects.h b/include/effects.h index 804f520812..1f2c776671 100644 --- a/include/effects.h +++ b/include/effects.h @@ -142,66 +142,29 @@ enum EffectID { EFFECT_86, }; -typedef struct { - char unk_00[0x38]; - f32 unk_38[4]; -} EffectUnkStruct1; - -typedef struct EffectStruct { - char unk_00[0x4]; - f32 unk_04; - f32 unk_08; - f32 unk_0C; - f32 unk_10; - char unk_14[0x4]; - s32 unk_18; - s32 unk_1C; - s32 unk_20; - X32 unk_24; - s32 unk_28; - s32 unk_2C; - s32 unk_30; - u8 unk_34; - s32 unk_38; - char unk_3C[0xC]; - EffectUnkStruct1* unk_48; - char unk_4C[0x24]; - s32 unk_70; - s32 unk_74; -} EffectStruct; - -typedef struct StarSpiritEffectUnkStruct { - char unk_00[0xC]; - EffectStruct* unk_0C; -} StarSpiritEffectUnkStruct; - -typedef struct StarSpiritEffect { - /* 0x00 */ f32 unk_00; - /* 0x04 */ f32 unk_04; +typedef struct StarSpiritsEnergyFXData { + /* 0x00 */ char unk_00[0x8]; /* 0x08 */ f32 unk_08; /* 0x0C */ f32 unk_0C; /* 0x10 */ f32 unk_10; - /* 0x14 */ f32 unk_14; - /* 0x18 */ f32 unk_18; - /* 0x1C */ f32 unk_1C; - /* 0x20 */ f32 unk_20; + /* 0x14 */ char unk_14[0x20]; + /* 0x34 */ s32 unk_34; + /* 0x38 */ char unk_38[0x38]; + /* 0x70 */ s32 unk_70; + /* 0x74 */ s32 unk_74; +} StarSpiritsEnergyFXData; // size = ? + +typedef struct SpiritCardFXData { + /* 0x00 */ char unk_00[0x4]; + /* 0x04 */ f32 unk_04; + /* 0x08 */ f32 unk_08; + /* 0x0C */ f32 unk_0C; + /* 0x10 */ char unk_10[0x10]; + /* 0x20 */ s32 unk_20; /* 0x24 */ f32 unk_24; - /* 0x28 */ f32 unk_28; - /* 0x2C */ f32 unk_2C; - /* 0x30 */ f32 unk_30; - /* 0x34 */ f32 unk_34; - /* 0x38 */ s32 unk_38; - /* 0x3C */ s32 unk_3C; - /* 0x40 */ s32 unk_40; // a shadowID - /* 0x44 */ s16 unk_44; - /* 0x46 */ s16 unk_46; - /* 0x48 */ s16 unk_48; - /* 0x4A */ s16 unk_4A; - /* 0x4C */ s16 unk_4C; - /* 0x4E */ s16 unk_4E; - /* 0x50 */ struct StarSpiritEffectUnkStruct* unk_50; - /* 0x54 */ struct StarSpiritEffectUnkStruct* unk_54; -} StarSpiritEffect; // size = 0x58 + /* 0x28 */ char unk_28[0xC]; + /* 0x34 */ s8 unk_34; +} SpiritCardFXData; // ? typedef struct BigSmokePuffFXData { /* 0x00 */ s16 unk_00; @@ -219,6 +182,21 @@ typedef struct BigSmokePuffFXData { /* 0x28 */ char unk_28[0x4]; } BigSmokePuffFXData; // size = 0x2C +typedef struct BigSnowflakeFXData { + /* 0x00 */ s32 unk_00; + /* 0x04 */ f32 unk_04; + /* 0x08 */ f32 unk_08; + /* 0x0C */ f32 unk_0C; + /* 0x10 */ f32 unk_10; + /* 0x14 */ f32 unk_14; + /* 0x18 */ f32 unk_18; + /* 0x1C */ f32 unk_1C; + /* 0x20 */ f32 unk_20; + /* 0x24 */ s32 unk_24; + /* 0x28 */ s32 unk_28; + /* 0x2C */ s32 unk_2C; +} BigSnowflakeFXData; // size = 0x30 + typedef struct LandingDustFXData { /* 0x00 */ u16 type; /* 0x02 */ char unk_02[0x2]; @@ -535,6 +513,19 @@ typedef struct SleepBubbleFXData { /* 0xC8 */ f32 unk_C8; } SleepBubbleFXData; // size = 0xCC +typedef struct WaterFountainFXData { + /* 0x00 */ char unk_00[0x18]; + /* 0x18 */ s32 unk_18; + /* 0x1C */ s32 unk_1C; + /* 0x20 */ s32 unk_20; + /* 0x24 */ char unk_24[0x4]; + /* 0x28 */ s32 unk_28; + /* 0x2C */ s32 unk_2C; + /* 0x30 */ s32 unk_30; + /* 0x34 */ char unk_34[0x4]; + /* 0x38 */ f32 unk_38; +} WaterFountainFXData; // size = ? + typedef struct AuraFXData { /* 0x00 */ s32 type; /* 0x04 */ Vec3f pos; @@ -544,7 +535,7 @@ typedef struct AuraFXData { /* 0x1C */ f32 unk_1C; /* 0x20 */ f32 unk_20; /* 0x24 */ f32 unk_24; - /* 0x28 */ s32 unk_28; + /* 0x28 */ s32 primA; /* 0x2C */ s32 unk_2C; /* 0x30 */ s32 unk_30; /* 0x34 */ f32 unk_34; @@ -563,13 +554,13 @@ typedef struct AuraFXData { s32 s; f32 f; } unk_64; - /* 0x68 */ u8 unk_68; - /* 0x69 */ u8 unk_69; - /* 0x6A */ u8 unk_6A; - /* 0x6B */ u8 unk_6B; - /* 0x6C */ u8 unk_6C; - /* 0x6D */ u8 unk_6D; - /* 0x6E */ u8 unk_6E; + /* 0x68 */ u8 primR; + /* 0x69 */ u8 primG; + /* 0x6A */ u8 primB; + /* 0x6B */ u8 envR; + /* 0x6C */ u8 envG; + /* 0x6D */ u8 engB; + /* 0x6E */ u8 engA; } AuraFXData; // size = 0x70 typedef struct BlastFXData { @@ -660,98 +651,15 @@ typedef struct DamageIndicatorFXData { /* 0x3C */ s32 numParts; } DamageIndicatorFXData; // size = 0x40 -// TODO figure out what this actually is -// fx_quizmo_stage invokes gEffectTable[78]'s entryPoint function -// fx_cold_breath invokes gEffectTable[111]'s entryPoint function -// fx_star_spirits_energy invokes gEffectTable[131]'s entryPoint function -// These functions are currently typed to return void -// Assume they return an Effect*, and this struct is accessed at unk_0C, -// but this struct differs from EffectInstanceData -// Search for "struct N(temp)" for examples -typedef struct EffectInstanceDataThing { - char unk_00[0x4]; - f32 unk_04; - f32 unk_08; - f32 unk_0C; - f32 unk_10; - char unk_14[0x4]; - s32 unk_18; - s32 unk_1C; - s32 unk_20; - X32 unk_24; - s32 unk_28; - s32 unk_2C; - s32 unk_30; - s32 unk_34; - s32 unk_38; - char unk_3C[0xC]; - EffectUnkStruct1* unk_48; - char unk_4C[0x24]; - s32 unk_70; - s32 unk_74; -} EffectInstanceDataThing; // TODO remove / convert to appropriate effect data struct - -typedef struct EffectInstanceData { - /* 0x00 */ EffectInstanceDataThing* unk_00; - /* 0x04 */ Vec3f pos; - /* 0x10 */ Vec3f rotation; - /* 0x1C */ Vec3f scale; - /* 0x28 */ f32 unk_28; - /* 0x2C */ s32 unk_2C; - /* 0x30 */ f32 unk_30; - /* 0x34 */ f32 unk_34; - /* 0x38 */ f32 unk_38; - /* 0x3C */ s32 unk_3C; - /* 0x40 */ char unk_40[0x24]; - /* 0x64 */ f32 unk_64; - /* 0x68 */ char unk_68[0x18]; -} EffectInstanceData; // size = 0x80 - -typedef struct EffectInstance { - /* 0x00 */ s32 flags; - /* 0x04 */ s32 effectIndex; - /* 0x08 */ s32 numParts; - /* 0x0C */ void* data; - /* 0x10 */ struct EffectGraphics* graphics; -} EffectInstance; // size = 0x14 - -typedef struct EffectBlueprint { - /* 0x00 */ s32 unk_00; - /* 0x04 */ s32 effectID; - /* 0x08 */ void (*init)(EffectInstance* effectInst); - /* 0x0C */ void (*update)(EffectInstance* effectInst); - /* 0x10 */ void (*renderWorld)(EffectInstance* effectInst); - /* 0x14 */ void (*unk_14)(EffectInstance* effectInst); -} EffectBlueprint; // size = 0x18 - -typedef struct EffectGraphics { - /* 0x00 */ s32 flags; - /* 0x04 */ s32 effectIndex; - /* 0x08 */ s32 instanceCounter; - /* 0x0C */ s32 freeDelay; - /* 0x10 */ void (*update)(EffectInstance* effectInst); - /* 0x14 */ void (*renderWorld)(EffectInstance* effectInst); - /* 0x18 */ void (*renderUI)(EffectInstance* effectInst); - /* 0x1C */ s32* data; -} EffectGraphics; // size = 0x20 - -typedef struct EffectTableEntry { - /* 0x00 */ void (*entryPoint); - /* 0x04 */ void* dmaStart; - /* 0x08 */ void* dmaEnd; - /* 0x0C */ void* dmaDest; - /* 0x10 */ void* graphicsDmaStart; - /* 0x14 */ void* graphicsDmaEnd; -} EffectTableEntry; // size = 0x18 - -typedef struct EffectWhirlwind { - /* 0x00 */ char unk_00[40]; +// seems to actually be PlayerStatus, but it's too large seemingly given the bss padding in UnkWhirlwindEffectFunc.inc.c +typedef struct EffectWhirlwindUnk { + /* 0x00 */ char unk_00[0x28]; /* 0x28 */ f32 unk_28; /* 0x2C */ f32 unk_2C; /* 0x30 */ f32 unk_30; -} EffectWhirlwind; +} EffectWhirlwindUnk; -typedef struct Effect6BData { +typedef struct Effect6BFXData { /* 0x00 */ s32 unk_00; /* 0x04 */ Vec3f pos; /* 0x10 */ char unk_10[12]; @@ -764,16 +672,32 @@ typedef struct Effect6BData { /* 0x38 */ f32 unk_38; /* 0x3C */ s32 unk_3C; /* 0x40 */ char unk_40[0x4]; -} Effect6BData; // size = 0x44 +} Effect6BFXData; // size = 0x44 -typedef struct Effect6BInstance { - /* 0x00 */ s32 unk_00; - /* 0x04 */ char unk_04[8]; - /* 0x0C */ Effect6BData* data; -} Effect6BInstance; +typedef struct ColdBreathFXData { + /* 0x00 */ char unk_00[0x18]; + /* 0x18 */ s32 unk_18; + /* 0x1C */ s32 unk_1C; + /* 0x20 */ s32 unk_20; + /* 0x24 */ char unk_24[0x4]; + /* 0x28 */ s32 unk_28; + /* 0x2C */ s32 unk_2C; + /* 0x30 */ s32 unk_30; +} ColdBreathFXData; // size = ? -typedef struct Effect6FData { - /* 0x00 */ EffectInstanceDataThing* unk_00; +typedef struct LightningFXData { + /* 0x00 */ char unk_00[0x30]; + /* 0x30 */ s32 unk_30; + /* 0x34 */ s32 unk_34; + /* 0x38 */ s32 unk_38; + /* 0x3C */ char unk_3C[0x4]; + /* 0x40 */ s32 unk_40; + /* 0x44 */ s32 unk_44; + /* 0x48 */ s32 unk_48; +} LightningFXData; // size = ? + +typedef struct Effect6FFXData { + /* 0x00 */ char unk_00[0x4]; /* 0x04 */ Vec3f pos; /* 0x10 */ Vec3i rotation; /* 0x1C */ Vec3i scale; @@ -782,15 +706,49 @@ typedef struct Effect6FData { /* 0x38 */ f32 unk_38; /* 0x3C */ s32 unk_3C; /* 0x40 */ char unk_40[0x4]; -} Effect6FData; // size = 0x44 +} Effect6FFXData; // size = 0x44 -typedef struct Effect6FInstance { - /* 0x00 */ s32 flags; - /* 0x04 */ s32 effectIndex; - /* 0x08 */ s32 numParts; - /* 0x0C */ Effect6FData* data; - /* 0x10 */ struct EffectGraphics* effect; -} Effect6FInstance; +typedef struct MiscParticlesFXData { + char unk_00[0x38]; + s32 unk_38; + s32 unk_3C; + s32 unk_40; + char unk_44[0x4]; + s32 unk_48; + s32 unk_4C; + s32 unk_50; +} MiscParticlesFXData; // size = ? + +typedef struct ButterflyFXData { + /* 0x00 */ s32 unk_00; + /* 0x04 */ s32 unk_04; + /* 0x08 */ s32 unk_08; + /* 0x0C */ f32 unk_0C; + /* 0x10 */ f32 unk_10; + /* 0x14 */ f32 unk_14; + /* 0x18 */ f32 unk_18; + /* 0x1C */ f32 unk_1C; + /* 0x20 */ f32 unk_20; + /* 0x24 */ s32 unk_24; + /* 0x28 */ f32 unk_28; + /* 0x2C */ s32 unk_2C; + /* 0x30 */ s32 unk_30; + /* 0x34 */ f32 unk_34; + /* 0x38 */ f32 unk_38; + /* 0x3C */ f32 unk_3C; + /* 0x40 */ f32 unk_40; + /* 0x44 */ f32 unk_44; +} ButterflyFXData; // size = 0x48 + +typedef struct Effect46FXData { + /* 0x00 */ char unk_00[0x24]; + /* 0x04 */ s32 unk_24; +} Effect46FXData; // size = 0x44 + +typedef struct ThunderboltRingFXData { + /* 0x00 */ char unk_00[0x30]; + /* 0x30 */ s32 unk_30; +} ThunderboltRingFXData; // size = ? // fx_quizmo_stage typedef struct EffectDataQuizStage { @@ -821,6 +779,87 @@ typedef struct EffectDataQuizVannaT { /* 0x1C */ s32 anim; } EffectDataQuizVannaT; // size = 0x20 +typedef struct EffectInstanceData { + /* 0x00 */ s32 unk_00; + /* 0x04 */ Vec3f pos; + /* 0x10 */ Vec3f rotation; + /* 0x1C */ Vec3f scale; + /* 0x28 */ f32 unk_28; + /* 0x2C */ s32 unk_2C; + /* 0x30 */ f32 unk_30; + /* 0x34 */ f32 unk_34; + /* 0x38 */ f32 unk_38; + /* 0x3C */ s32 unk_3C; + /* 0x40 */ char unk_40[0x24]; + /* 0x64 */ f32 unk_64; + /* 0x68 */ char unk_68[0x18]; +} EffectInstanceData; // size = 0x80 + +typedef struct EffectInstance { + /* 0x00 */ s32 flags; + /* 0x04 */ s32 effectIndex; + /* 0x08 */ s32 numParts; + /* 0x0C */ void* data; + /* 0x10 */ struct EffectGraphics* graphics; +} EffectInstance; // size = 0x14 + +typedef struct StarSpiritData { + /* 0x00 */ f32 unk_00; + /* 0x04 */ f32 unk_04; + /* 0x08 */ f32 unk_08; + /* 0x0C */ f32 unk_0C; + /* 0x10 */ f32 unk_10; + /* 0x14 */ f32 unk_14; + /* 0x18 */ f32 unk_18; + /* 0x1C */ f32 unk_1C; + /* 0x20 */ f32 unk_20; + /* 0x24 */ f32 unk_24; + /* 0x28 */ f32 unk_28; + /* 0x2C */ f32 unk_2C; + /* 0x30 */ f32 unk_30; + /* 0x34 */ f32 unk_34; + /* 0x38 */ s32 unk_38; + /* 0x3C */ s32 unk_3C; + /* 0x40 */ s32 unk_40; // a shadowID + /* 0x44 */ s16 unk_44; + /* 0x46 */ s16 unk_46; + /* 0x48 */ s16 unk_48; + /* 0x4A */ s16 unk_4A; + /* 0x4C */ s16 unk_4C; + /* 0x4E */ s16 unk_4E; + /* 0x50 */ EffectInstance* unk_50; + /* 0x54 */ EffectInstance* unk_54; +} StarSpiritData; // size = 0x58 + +typedef struct EffectBlueprint { + /* 0x00 */ s32 unk_00; + /* 0x04 */ s32 effectID; + /* 0x08 */ void (*init)(EffectInstance* effectInst); + /* 0x0C */ void (*update)(EffectInstance* effectInst); + /* 0x10 */ void (*renderWorld)(EffectInstance* effectInst); + /* 0x14 */ void (*unk_14)(EffectInstance* effectInst); +} EffectBlueprint; // size = 0x18 + +typedef struct EffectGraphics { + /* 0x00 */ s32 flags; + /* 0x04 */ s32 effectIndex; + /* 0x08 */ s32 instanceCounter; + /* 0x0C */ s32 freeDelay; + /* 0x10 */ void (*update)(EffectInstance* effectInst); + /* 0x14 */ void (*renderWorld)(EffectInstance* effectInst); + /* 0x18 */ void (*renderUI)(EffectInstance* effectInst); + /* 0x1C */ s32* data; +} EffectGraphics; // size = 0x20 + +typedef struct EffectTableEntry { + /* 0x00 */ void (*entryPoint); + /* 0x04 */ void* dmaStart; + /* 0x08 */ void* dmaEnd; + /* 0x0C */ void* dmaDest; + /* 0x10 */ void* graphicsDmaStart; + /* 0x14 */ void* graphicsDmaEnd; +} EffectTableEntry; // size = 0x18 + enum FireBreathType { FIRE_BREATH_LARGE = 0, FIRE_BREATH_SMALL = 1, @@ -897,7 +936,7 @@ EffectInstance* fx_bombette_breaking(s32, s32, s32, f32, s32, s32); EffectInstance* fx_firework(s32, f32, f32, f32, f32, s32); EffectInstance* fx_confetti(s32, f32, f32, f32, f32, s32); EffectInstance* fx_snowfall(s32, s32); -EffectInstance* fx_46(s32, EffectWhirlwind*, f32, s32); +EffectInstance* fx_46(s32, EffectWhirlwindUnk*, f32, s32); EffectInstance* fx_gather_magic(s32, f32, f32, f32, f32, s32); EffectInstance* fx_attack_result_text(s32, f32, f32, f32, f32, s32); EffectInstance* fx_small_gold_sparkle(s32, f32, f32, f32, f32, s32); diff --git a/include/effects_internal.h b/include/effects_internal.h index be34447f88..b78c34d7d0 100644 --- a/include/effects_internal.h +++ b/include/effects_internal.h @@ -76,7 +76,7 @@ FX_MAIN(falling_leaves_main); FX_MAIN(stars_spread_main); FX_MAIN(steam_burst_main); FX_MAIN(stars_orbiting_main); -FX_MAIN(big_snowflakes_main); +void big_snowflakes_main(s32, f32, f32, f32); EffectInstance* debuff_main(s32, f32, f32, f32); FX_MAIN(green_impact_main); FX_MAIN(radial_shimmer_main); @@ -101,7 +101,7 @@ FX_MAIN(snowfall_main); FX_MAIN(fx_46_main); FX_MAIN(gather_magic_main); EffectInstance* attack_result_text_main(s32, f32, f32, f32, f32, s32); -EffectInstance* small_gold_sparkle_main(EffectInstanceDataThing*, f32, f32, f32, f32); +EffectInstance* small_gold_sparkle_main(s32, f32, f32, f32, f32); FX_MAIN(flashing_box_shockwave_main); EffectInstance* balloon_main(s32, f32, f32, f32, f32, s32); FX_MAIN(floating_rock_main); @@ -113,7 +113,7 @@ FX_MAIN(motion_blur_flame_main); FX_MAIN(energy_orb_wave_main); FX_MAIN(merlin_house_stars_main); FX_MAIN(quizmo_audience_main); -FX_MAIN(butterflies_main); +EffectInstance* butterflies_main(s32, f32, f32, f32); EffectInstance* stat_change_main(s32, f32, f32, f32, f32, s32); FX_MAIN(snaking_static_main); FX_MAIN(thunderbolt_ring_main); diff --git a/include/enums.h b/include/enums.h index 14e0d42d7b..191e88b426 100644 --- a/include/enums.h +++ b/include/enums.h @@ -574,6 +574,8 @@ enum SoundIDs { SOUND_21C = 0x0000021C, SOUND_MENU_ERROR = 0x0000021D, SOUND_231 = 0x00000231, + SOUND_233 = 0x00000233, + SOUND_234 = 0x00000234, SOUND_246 = 0x00000246, SOUND_259 = 0x00000259, SOUND_25A = 0x0000025A, @@ -2585,7 +2587,7 @@ enum BattleStatusFlags1 { BS_FLAGS1_400 = 0x00000400, BS_FLAGS1_800 = 0x00000800, BS_FLAGS1_1000 = 0x00001000, - BS_FLAGS1_2000 = 0x08002000, + BS_FLAGS1_2000 = 0x00002000, BS_FLAGS1_4000 = 0x00004000, BS_FLAGS1_8000 = 0x00008000, BS_FLAGS1_10000 = 0x00010000, @@ -2620,10 +2622,12 @@ enum BattleStatusFlags2 { BS_FLAGS2_800 = 0x00000800, BS_FLAGS2_NO_TARGET_AVAILABLE = 0x00001000, BS_FLAGS2_10000 = 0x00010000, + BS_FLAGS2_100000 = 0x00100000, BS_FLAGS2_1000000 = 0x01000000, BS_FLAGS2_2000000 = 0x02000000, BS_FLAGS2_4000000 = 0x04000000, BS_FLAGS2_8000000 = 0x08000000, + BS_FLAGS2_10000000 = 0x10000000, }; enum BattleStates { diff --git a/include/functions.h b/include/functions.h index e3aaaaa762..02b07a666c 100644 --- a/include/functions.h +++ b/include/functions.h @@ -6,6 +6,7 @@ #include "map.h" #include "enums.h" #include "stdlib/stdarg.h" +#include "xstdio.h" f32 fabsf(f32 f); f64 fabs(f64 f); @@ -33,8 +34,6 @@ s32 dma_copy(Addr romStart, Addr romEnd, void* vramDest); f32 rand_float(void); void copy_matrix(Matrix4f src, Matrix4f dest); -s32 _Printf(PrintCallback pfn, char* arg, const char* fmt, va_list ap); - s32 get_global_byte(s32 index); s32 get_global_flag(s32 index); s32 get_area_byte(s32 index); @@ -256,6 +255,7 @@ f32 clamp_angle(f32 theta); s32 sign(s32 value); s32 func_80055448(s32); s32 func_80055464(s32, s32); +s32 func_80055618(s32, s32); s32 func_800E0208(void); s32 battle_heap_create(void); @@ -432,7 +432,7 @@ ModelAnimator* get_animator_by_index(s32 arg0); void set_screen_overlay_params_front(u8, f32); void set_screen_overlay_params_back(u8, f32); void set_screen_overlay_alpha(s32, f32); -void get_screen_overlay_params(s32, u8*, f32*); +void get_screen_overlay_params(s32, u8* type, f32* zoom); void set_screen_overlay_color(s32, u8, u8, u8); void set_screen_overlay_center(s32, s32, s32, s32); s32 rand_int(s32); @@ -722,6 +722,8 @@ void load_font(s32 font); void* load_asset_by_name(const char* assetName, u32* decompressedSize); +Gfx* mdl_get_copied_gfx(s32 copyIndex); +void mdl_get_copied_vertices(s32 copyIndex, Vtx** firstVertex, Vtx** copiedVertices, s32* numCopied); void mdl_draw_hidden_panel_surface(Gfx** arg0, u16 treeIndex); s32 func_8011CFBC(void); void set_screen_overlay_center_worldpos(s32 idx, s32 posIdx, s32 x, s32 y, s32 z); @@ -769,8 +771,11 @@ void hide_foreground_models_unchecked(void); void show_foreground_models(void); void hide_foreground_models(void); void btl_set_state(s32 battleState); -void draw_entity_model_E(s32, Mtx*); void draw_entity_model_A(s32, Mtx*); +void draw_entity_model_B(s32, Mtx*, s32, s32); +void draw_entity_model_C(s32, Mtx*); +void draw_entity_model_D(s32, Mtx*, s32, Vtx*); +void draw_entity_model_E(s32, Mtx*); void free_entity_model_by_index(s32 idx); void btl_cam_use_preset(s32); void btl_cam_set_params(s16, s16, s16, s16, s32, s32, s32, s32); @@ -879,6 +884,9 @@ void func_80254950(void); void func_802549A0(void); void func_802549C0(void); +void func_8023E104(void); +void func_8023E11C(void); + void set_goal_pos_to_part(ActorState* state, s32 actorID, s32 partIndex); void init_encounters_ui(void); @@ -891,6 +899,8 @@ s32 get_asset_offset(char*, s32*); void initialize_status_menu(void); void status_menu_start_blinking_fp(void); s32 is_status_menu_visible(void); +void status_menu_start_blinking_starpoints(void); +void status_menu_stop_blinking_starpoints(void); void status_menu_start_blinking_hp(void); void status_menu_start_blinking_sp(void); void status_menu_stop_blinking_fp(void); diff --git a/include/gcc/memory.h b/include/gcc/memory.h new file mode 100644 index 0000000000..edfff5e7bb --- /dev/null +++ b/include/gcc/memory.h @@ -0,0 +1,23 @@ +#ifndef _MEMORY_H +#define _MEMORY_H +/* + memory.h +*/ + +#ifndef _SIZE_T_DEF +#define _SIZE_T_DEF +typedef unsigned size_t; +#endif + +void *memccpy(void *,void *,int,size_t); +void *memchr(void *,int,size_t); +int memcmp(const void *,const void *,size_t); +void *memcpy(void *,const void *,size_t); +int memicmp(void *,void *,size_t); +void *memmove(void *,void *,size_t); +void *memset(void *,int,size_t); + +void movmem(void *,void *,unsigned); +void setmem(void *,unsigned,int); + +#endif diff --git a/include/gcc/string.h b/include/gcc/string.h new file mode 100755 index 0000000000..d82e1f100c --- /dev/null +++ b/include/gcc/string.h @@ -0,0 +1,42 @@ +#ifndef _STRING_H +#define _STRING_H +/* + string.h +*/ + +#ifndef _SIZE_T_DEF +#define _SIZE_T_DEF +typedef unsigned size_t; +#endif + +#include "memory.h" + +char *stpcpy(char *,const char *); +char *strcat(char *,const char *); +char *strchr(const char *,int); +int strcmp(const char *,const char *); +char *strcpy(char *,const char *); +size_t strcspn(const char *,const char *); +char *strdup(const char *); +char *strerror(int); +int stricmp(const char *,const char *); +size_t strlen(const char *); +char *strlwr(char *); +char *strncat(char *,const char *,size_t); +int strncmp(const char *,const char *,size_t); +char *strncpy(char *,const char *,size_t); +int strnicmp(const char *,const char *,size_t); +char *strnset(char *,int,size_t); +char *strpbrk(const char *,const char *); +char *strrchr(const char *,int); +char *strrev(char *); +char *strset(char *,int); +size_t strspn(const char *,const char *); +char *strstr(const char *,const char *); +char *strtok(char *,const char *); +char *strupr(char *); + +#define strcmpi(s1,s2) stricmp(s1,s2) +#define strncmpi(s1,s2,n) strnicmp(s1,s2,n) + +#endif diff --git a/include/model.h b/include/model.h index 150cdd2543..fae282c69a 100644 --- a/include/model.h +++ b/include/model.h @@ -152,6 +152,7 @@ typedef enum ShapeTypes { typedef ModelTreeInfo ModelTreeInfoList[0x200]; extern ModelTreeInfoList* mdl_currentModelTreeNodeInfo; +extern ModelList* gCurrentModels; void update_model_animator(s32); void update_model_animator_with_transform(s32 animatorID, Mtx* mtx); diff --git a/include/xstdio.h b/include/xstdio.h new file mode 100755 index 0000000000..8a0b84bcb5 --- /dev/null +++ b/include/xstdio.h @@ -0,0 +1,37 @@ +#ifndef _XSTDIO_H +#define _XSTDIO_H +#include "PR/ultratypes.h" +//#include "stdlib.h" +//#include "stdarg.h" + +typedef struct { + /* 0x0 */ union { + /* 0x0 */ long long ll; + /* 0x0 */ double ld; + } v; + /* 0x8 */ unsigned char* s; + /* 0xC */ int n0; + /* 0x10 */ int nz0; + /* 0x14 */ int n1; + /* 0x18 */ int nz1; + /* 0x1C */ int n2; + /* 0x20 */ int nz2; + /* 0x24 */ int prec; + /* 0x28 */ int width; + /* 0x2C */ size_t nchar; + /* 0x30 */ unsigned int flags; + /* 0x34 */ char qual; +} _Pft; + +#define FLAGS_SPACE 1 +#define FLAGS_PLUS 2 +#define FLAGS_MINUS 4 +#define FLAGS_HASH 8 +#define FLAGS_ZERO 16 +typedef char *outfun(char*,const char*,size_t); + +int _Printf(outfun prout, char *arg, const char *fmt, va_list args); +void _Litob(_Pft *args, char type); +void _Ldtob(_Pft* args, char type); + +#endif diff --git a/src/16F740.c b/src/16F740.c index 46d9d77714..2f2b743402 100644 --- a/src/16F740.c +++ b/src/16F740.c @@ -10,66 +10,141 @@ extern s32* D_800DC064; extern s16 D_802809F6; extern s16 D_802809F8; extern s32 D_80280A30; -extern s32 D_8029F254; extern u8 D_8029F244; extern s32 D_8029F248; +extern s32 D_8029F24C; +extern s32 D_8029F250; +extern s32 D_8029F254; extern s32 D_8029F258; +extern s32 D_8029F25C; +extern s32 D_8029F260; +extern s32 D_8029F264; -// Almost good but some reorderings at the beginning -#ifdef NON_EQUIVALENT void btl_merlee_on_start_turn(void) { - PlayerData* playerData = &gPlayerData; BattleStatus* battleStatus = &gBattleStatus; EncounterStatus* currentEncounter = &gCurrentEncounter; + PlayerData* playerData = &gPlayerData; - if (!(gBattleStatus.flags2 & 0x40) && battleStatus->unk_8A != 3 && battleStatus->unk_8A != 4 && playerData->merleeCastsLeft > 0) { - if (playerData->merleeTurnCount <= 0) { - s32 d100 = rand_int(100); + do { + if (!(gBattleStatus.flags2 & BS_FLAGS2_40) && + battleStatus->nextMerleeSpellType != 3 && + battleStatus->nextMerleeSpellType != 4 && + playerData->merleeCastsLeft > 0) + { + if (playerData->merleeTurnCount <= 0) { + s32 temp = rand_int(100); - if (currentEncounter->currentEnemy != NULL) { - if (currentEncounter->currentEnemy->flags & 0x40000) { - if (d100 <= 45) { + if (currentEncounter->currentEnemy != NULL) { + if (currentEncounter->currentEnemy->flags & ENEMY_FLAGS_40000) { + if (temp <= 45) { + playerData->merleeSpellType = 1; + } else if (temp <= 90) { + playerData->merleeSpellType = 2; + } else { + playerData->merleeSpellType = 3; + } + } else if (temp <= 30) { playerData->merleeSpellType = 1; - } else if (d100 <= 90) { + } else if (temp <= 60) { playerData->merleeSpellType = 2; - } else { + } else if (temp <= 80) { playerData->merleeSpellType = 3; + } else { + playerData->merleeSpellType = 4; } - } else if (d100 <= 30) { + } else if (temp <= 30) { playerData->merleeSpellType = 1; - } else if (d100 <= 60) { + } else if (temp <= 60) { playerData->merleeSpellType = 2; - } else if (d100 <= 80) { + } else if (temp <= 80) { playerData->merleeSpellType = 3; } else { playerData->merleeSpellType = 4; } - } else if (d100 <= 30) { - playerData->merleeSpellType = 1; - } else if (d100 <= 60) { - playerData->merleeSpellType = 2; - } else if (d100 <= 80) { - playerData->merleeSpellType = 3; - } else { - playerData->merleeSpellType = 4; + + temp = rand_int(10) + 6; + playerData->merleeTurnCount = temp; } - playerData->merleeTurnCount = rand_int(10) + 6; - } - if (playerData->merleeTurnCount >= 2) { - playerData->merleeTurnCount--; - } else { - playerData->merleeTurnCount = 0; - battleStatus->unk_8A = playerData->merleeSpellType; - playerData->merleeCastsLeft--; + if (playerData->merleeTurnCount >= 2) { + playerData->merleeTurnCount--; + } else { + playerData->merleeTurnCount = 0; + battleStatus->nextMerleeSpellType = playerData->merleeSpellType; + playerData->merleeCastsLeft--; + } } - } + } while (0); // TODO: required to match } -#else -INCLUDE_ASM(s32, "16F740", btl_merlee_on_start_turn); -#endif -INCLUDE_ASM(s32, "16F740", btl_merlee_on_first_strike); +void btl_merlee_on_first_strike(void) { + BattleStatus* battleStatus = &gBattleStatus; + EncounterStatus* currentEncounter = &gCurrentEncounter; + PlayerData* playerData = &gPlayerData; + + do { + if (!(gBattleStatus.flags2 & BS_FLAGS2_40) && + battleStatus->nextMerleeSpellType != 3 && + battleStatus->nextMerleeSpellType != 4 && + playerData->merleeCastsLeft > 0) + { + if (playerData->merleeTurnCount <= 0) { + s32 temp = rand_int(100); + + if (currentEncounter->currentEnemy != NULL) { + if (currentEncounter->currentEnemy->flags & ENEMY_FLAGS_40000) { + if (temp <= 45) { + playerData->merleeSpellType = 1; + } else if (temp <= 90) { + playerData->merleeSpellType = 2; + } else { + playerData->merleeSpellType = 3; + } + } else if (temp <= 30) { + playerData->merleeSpellType = 1; + } else if (temp <= 60) { + playerData->merleeSpellType = 2; + } else if (temp <= 80) { + playerData->merleeSpellType = 3; + } else { + playerData->merleeSpellType = 4; + } + } else if (temp <= 30) { + playerData->merleeSpellType = 1; + } else if (temp <= 60) { + playerData->merleeSpellType = 2; + } else if (temp <= 80) { + playerData->merleeSpellType = 3; + } else { + playerData->merleeSpellType = 4; + } + + if (playerData->merleeSpellType != 4) { + // same outcome either way. has to be written like this, and the check does exist in the code. bug? + if (playerData->merleeTurnCount == -1) { + temp = rand_int(5) + 5; + } else { + temp = rand_int(5) + 5; + + } + } else { + temp = rand_int(8) + 5; + } + playerData->merleeTurnCount = temp; + } + + if (playerData->merleeSpellType == 3 || playerData->merleeSpellType == 4) { + if (playerData->merleeTurnCount >= 2) { + playerData->merleeTurnCount--; + } else { + battleStatus->nextMerleeSpellType = playerData->merleeSpellType; + playerData->merleeTurnCount = 0; + playerData->merleeCastsLeft--; + } + } + } + } while (0); // TODO: required to match +} void btl_set_state(s32 battleState) { s32 flags = gBattleStatus.flags2; @@ -441,9 +516,9 @@ void btl_state_update_begin_player_turn(void) { } if (D_8029F254 == 0) { - btl_set_state(BATTLE_STATE2_PLAYER_DEFEATED); + btl_set_state(BATTLE_STATE_SWITCH_TO_PLAYER); } else{ - btl_set_state(BATTLE_STATE2_UNK_8); + btl_set_state(BATTLE_STATE_BEGIN_PARTNER_TURN); gBattleStatus.flags2 |= 2; } } @@ -489,7 +564,121 @@ void btl_state_update_switch_to_player(void) { void btl_state_draw_switch_to_player(void) { } -INCLUDE_ASM(s32, "16F740", btl_state_update_begin_partner_turn); +void btl_state_update_begin_partner_turn(void) { + BattleStatus* battleStatus = &gBattleStatus; + Actor* partner = battleStatus->partnerActor; + Actor* enemy; + s32 i; + + if (gBattleState2 == BATTLE_STATE2_UNK_0) { + if (partner == NULL) { + D_8029F254 = 1; + gBattleState2 = BATTLE_STATE2_PLAYER_DEFEATED; + } else if ((battleStatus->flags2 & (BS_FLAGS2_4 | BS_FLAGS2_2)) != (BS_FLAGS2_4 | BS_FLAGS2_2)) { + if (!(partner->flags & ACTOR_FLAG_NO_ATTACK)) { + btl_cam_use_preset(2); + btl_cam_move(5); + gBattleState2 = BATTLE_STATE2_UNK_64; + } else { + btl_set_state(BATTLE_STATE_9); + return; + } + } else { + btl_set_state(BATTLE_STATE_9); + return; + } + } + + if (gBattleState2 == BATTLE_STATE2_UNK_64) { + if (btl_cam_is_moving_done()) { + D_8029F258 = 0; + reset_actor_turn_info(); + partner = battleStatus->partnerActor; + battleStatus->unk_86 = 0x7F; + battleStatus->blockResult = 0x7F; + D_8029F254 = 0; + gBattleStatus.flags1 |= BS_FLAGS1_80000; + gBattleStatus.flags2 |= BS_FLAGS1_100000; + partner->flags |= ACTOR_FLAG_8000000; + + if (partner->koStatus != 0) { + partner->koDuration--; + D_8029F254 = 1; + D_8029F258 = 20; + if (partner->koDuration > 0) { + // TODO: We believe these are DebuffFXData*, + // but unk_3C is a u8 for these and we need it to be an s32... + ((s32*)(partner->debuffEffect->data))[15] = partner->koDuration; + } else { + partner->koStatus = 0; + dispatch_event_partner(EVENT_34); + // TODO: We believe these are DebuffFXData*, + // but unk_3C is a u8 for these and we need it to be an s32... + ((s32*)(partner->debuffEffect->data))[15] = 0; + gBattleStatus.flags2 |= BS_FLAGS2_8; + } + } + + for (i = 0; i < ARRAY_COUNT(battleStatus->enemyActors); i++) { + enemy = battleStatus->enemyActors[i]; + if (enemy != NULL) { + enemy->flags |= ACTOR_FLAG_8000000 | ACTOR_FLAG_4000000; + } + } + gBattleState2 = BATTLE_STATE2_UNK_1; + } + } + + if (gBattleState2 == BATTLE_STATE2_UNK_1) { + if (partner != NULL) { + if (partner->onHitScript == NULL || !does_script_exist(partner->onHitID)) { + partner->onHitScript = NULL; + } else { + goto block_27; // TODO find a way to remove + } + } + + gBattleStatus.flags2 &= ~BS_FLAGS2_8; + if (btl_check_player_defeated() || btl_check_enemies_defeated()) { + return; + } + gBattleState2 = BATTLE_STATE2_UNK_8; + } + +block_27: + if (gBattleState2 == BATTLE_STATE2_UNK_8) { + if (partner->onTurnChanceScriptSource != NULL) { + Evt* script; + + battleStatus->battlePhase = 0xC; + script = start_script(partner->onTurnChanceScriptSource, 0xA, 0); + partner->onTurnChangeScript = script; + partner->onTurnChangeID = script->id; + script->owner1.actorID = ACTOR_PARTNER; + } + gBattleState2 = BATTLE_STATE2_UNK_9; + } + + if (gBattleState2 == BATTLE_STATE2_UNK_9 && + (partner->onTurnChanceScriptSource == NULL || !does_script_exist(partner->onTurnChangeID))) + { + gBattleState2 = BATTLE_STATE2_PLAYER_DEFEATED; + } + + if (gBattleState2 == BATTLE_STATE2_PLAYER_DEFEATED) { + if (D_8029F258 != 0) { + D_8029F258--; + return; + } + gBattleStatus.flags2 &= ~BS_FLAGS2_100000; + if (D_8029F254 == 0) { + btl_set_state(BATTLE_STATE_SWITCH_TO_PARTNER); + } else { + gBattleStatus.flags2 |= BS_FLAGS2_4; + btl_set_state(BATTLE_STATE_9); + } + } +} void btl_state_draw_begin_partner_turn(void) { } @@ -889,7 +1078,115 @@ void btl_state_update_end_training_battle(void) { void btl_state_draw_end_training_battle(void) { } -INCLUDE_ASM(s32, "16F740", btl_state_update_end_battle); +void btl_state_update_end_battle(void) { + Battle* blah = (*D_800DC4FC); + EncounterStatus* encounterStatus = &gCurrentEncounter; + BattleStatus* battleStatus = &gBattleStatus; + Stage* stage; + Evt* script; + s32 i; + + switch (gBattleState2) { + case BATTLE_STATE2_UNK_0: + D_80280A30 = 0; + if (gGameStatusPtr->debugEnemyContact == 2) { + D_80280A30 = 255; + } + if (encounterStatus->battleOutcome == 1 && !(gBattleStatus.flags1 & BS_FLAGS1_800000)) { + btl_cam_unfreeze(); + btl_cam_use_preset(BTL_CAM_PRESET_B); + set_screen_overlay_color(0, 0, 0, 0); + set_screen_overlay_center(0, 0, 160, 120); + } + gBattleState2 = BATTLE_STATE2_UNK_1; + break; + case BATTLE_STATE2_UNK_1: + if (D_80280A30 == 255) { + gBattleState2 = BATTLE_STATE2_UNK_2; + break; + } + D_80280A30 += battleStatus->unk_8D; + if (D_80280A30 > 255) { + D_80280A30 = 255; + } + break; + case BATTLE_STATE2_UNK_2: + D_80280A30 = 255; + gBattleStatus.flags1 &= ~BS_FLAGS1_1; + if (D_800DC064 == NULL) { + stage = blah->stage; + } else { + stage = D_800DC064[1]; + } + if (stage->postBattle == NULL) { + gBattleState2 = BATTLE_STATE2_UNK_4; + return; + } + script = start_script(stage->postBattle, 0xA, 0); + battleStatus->controlScript = script; + gBattleState2 = BATTLE_STATE2_UNK_3; + battleStatus->controlScriptID = script->id; + break; + case BATTLE_STATE2_UNK_3: + if (!does_script_exist(battleStatus->controlScriptID)) { + gBattleState2 = BATTLE_STATE2_UNK_4; + // fallthrough + } else { + break; + } + case BATTLE_STATE2_UNK_4: + kill_all_scripts(); + for (i = 0; i < ARRAY_COUNT(battleStatus->enemyActors); i++) { + if (battleStatus->enemyActors[i] != NULL) { + btl_delete_actor(battleStatus->enemyActors[i]); + } + } + if (battleStatus->partnerActor != NULL) { + btl_delete_actor(battleStatus->partnerActor); + } + + btl_delete_player_actor(battleStatus->playerActor); + + if (battleStatus->nextMerleeSpellType == 4) { + encounterStatus->merleeCoinBonus = 1; + battleStatus->nextMerleeSpellType = 0; + } + + encounterStatus->damageTaken = battleStatus->damageTaken; + + if (gBattleStatus.flags2 & BS_FLAGS2_10000000) { + encounterStatus->dropWhackaBump = 1; + } + + remove_all_effects(); + set_windows_visible(0); + + if (gBattleStatus.flags2 & BS_FLAGS2_40) { + decrement_status_menu_disabled(); + } + + if (encounterStatus->battleOutcome == OUTCOME_PLAYER_LOST && + !(gBattleStatus.flags1 & BS_FLAGS1_800000)) + { + s16 areaID; + s16 mapID; + + btl_set_state(BATTLE_STATE_0); + D_800DC4D0 = gBattleState; + get_map_IDs_by_name("gv_01", &areaID, &mapID); + gGameStatusPtr->areaID = areaID; + gGameStatusPtr->mapID = mapID; + gGameStatusPtr->entryID = 0; + set_game_mode(GAME_MODE_ENTER_WORLD); + } else { + btl_set_state(BATTLE_STATE_0); + D_800DC4D0 = gBattleState; + func_8003E514(1); + set_game_mode(GAME_MODE_END_BATTLE); + } + break; + } +} void btl_state_draw_end_battle(void) { Camera* camera = &gCameras[gCurrentCameraID]; @@ -926,7 +1223,162 @@ void btl_state_update_defend(void) { void btl_state_draw_defend(void) { } -INCLUDE_ASM(s32, "16F740", btl_state_update_run_away); +void btl_state_update_run_away(void) { + BattleStatus* battleStatus = &gBattleStatus; + PlayerData* playerData = &gPlayerData; + EncounterStatus* currentEncounter = &gCurrentEncounter; + Actor* player = battleStatus->playerActor; + Actor* partner = battleStatus->partnerActor; + Actor* enemy; + s32 var_s0; + f32 var_f2; + Evt* script; + s32 i; + + switch (gBattleState2) { + case BATTLE_STATE2_UNK_0: + battleStatus->unk_8C = 0; + gBattleStatus.flags1 &= ~BS_FLAGS1_40000; + gBattleStatus.flags2 |= BS_FLAGS2_10 | BS_FLAGS2_8 | BS_FLAGS2_4 | BS_FLAGS2_2; + playerData->unk_2A6++; + btl_cam_use_preset(BTL_CAM_PRESET_25); + var_s0 = 0; + btl_cam_target_actor(ACTOR_PLAYER); + var_f2 = 0.0f; + + for (i = 0; i < ARRAY_COUNT(battleStatus->enemyActors); i++) { + enemy = battleStatus->enemyActors[i]; + if (enemy != NULL) { + if (!(enemy->flags & ACTOR_FLAG_TARGET_ONLY)) { + if (!(enemy->flags & ACTOR_FLAG_NO_DMG_APPLY)) { + f32 escapeChance = enemy->actorBlueprint->escapeChance; + + var_s0 += 1; + if (enemy->debuff == 3 || + enemy->debuff == 4 || + enemy->debuff == 5 || + enemy->debuff == 6 || + enemy->debuff == 7 || + enemy->debuff == 8) + { + escapeChance = 100.0f; + } + var_f2 += escapeChance; + } + } + } + } + + player->state.varTable[0] = var_f2 / var_s0; + if (gGameStatusPtr->debugEnemyContact == 4) { + player->state.varTable[0] = 100; + } + battleStatus->battlePhase = 3; + script = start_script(PlayerScriptDispatcher, 0xA, 0); + player->takeTurnScript = script; + player->takeTurnID = script->id; + script->owner1.actorID = ACTOR_PLAYER; + if (partner != NULL && partner->koStatus == 0) { + script = start_script(partner->takeTurnScriptSource, 0xA, 0); + partner->takeTurnScript = script; + partner->takeTurnID = script->id; + script->owner1.actorID = ACTOR_PARTNER; + } + gBattleState2 = BATTLE_STATE2_UNK_2; + break; + case 2: + if (!does_script_exist(player->takeTurnID) && battleStatus->unk_8C == 0) { + if (!(gBattleStatus.flags1 & BS_FLAGS1_40000)) { + gBattleState2 = BATTLE_STATE2_UNK_3; + } else { + currentEncounter->battleOutcome = 2; + if (is_ability_active(ABILITY_RUNAWAY_PAY) == 0) { + gBattleState2 = BATTLE_STATE2_UNK_B; + } else { + status_menu_start_blinking_starpoints(); + func_8023E104(); + D_8029F264 = 0; + D_8029F24C = 0; + D_80280A30 = 0; + D_8029F25C = battleStatus->totalStarPoints * 100; + D_8029F250 = 20; + D_8029F260 = D_8029F25C / D_8029F250; + gBattleState2 = BATTLE_STATE2_PLAYER_DEFEATED; + } + } + } + break; + } + + if (gBattleState2 == BATTLE_STATE2_PLAYER_DEFEATED) { + if (battleStatus->totalStarPoints != 0) { + s8 temp_v1_4; + + D_8029F25C -= D_8029F260; + temp_v1_4 = D_8029F25C / 100; + var_s0 = battleStatus->totalStarPoints - temp_v1_4; + battleStatus->totalStarPoints = temp_v1_4; + + if (var_s0 > 0) { + sfx_play_sound(SOUND_211); + } + playerData->starPoints += var_s0; + D_80280A30 += 1; + if (D_8029F250 == 0 && battleStatus->totalStarPoints != 0) { + playerData->starPoints++; + } + } + if (playerData->starPoints >= 99) { + playerData->starPoints = 99; + } + if (battleStatus->totalStarPoints == 0) { + if (D_8029F250 != 0) { + D_8029F250--; + } else { + status_menu_stop_blinking_starpoints(); + func_8023E11C(); + gBattleState2 = BATTLE_STATE2_UNK_B; + } + } + } + + if (gBattleState2 == BATTLE_STATE2_UNK_B) { + playerData->battlesFled++; + if (!(gBattleStatus.flags2 & 0x02000000)) { + bgm_set_song(0, -1, 0, 1500, 8); + } + btl_set_state(BATTLE_STATE_END_BATTLE); + } + + switch (gBattleState2) { + case BATTLE_STATE2_UNK_3: + battleStatus->battlePhase = 7; + script = start_script(PlayerScriptDispatcher, 0xA, 0); + player->takeTurnScript = script; + player->takeTurnID = script->id; + script->owner1.actorID = ACTOR_PLAYER; + if (partner != NULL && partner->koStatus == 0) { + script = start_script(partner->takeTurnScriptSource, 0xA, 0); + partner->takeTurnScript = script; + partner->takeTurnID = script->id; + script->owner1.actorID = ACTOR_PARTNER; + } + gBattleState2 = BATTLE_STATE2_UNK_4; + break; + case BATTLE_STATE2_UNK_4: + if (D_8029F248 != 0) { + D_8029F248--; + return; + } + if (!does_script_exist(player->takeTurnID) && + (partner == NULL || !does_script_exist(partner->takeTurnID)) && + battleStatus->unk_8C == 0) + { + btl_set_state(BATTLE_STATE_9); + } + break; + } +} void btl_state_draw_run_away(void) { } @@ -1586,7 +2038,156 @@ void btl_state_draw_first_stike(void) { } } -INCLUDE_ASM(s32, "16F740", btl_state_update_partner_striking_first); +void btl_state_update_partner_striking_first(void) { + PlayerData* playerData = &gPlayerData; + BattleStatus* battleStatus = &gBattleStatus; + Actor* player = battleStatus->playerActor; + Actor* partner = battleStatus->partnerActor; + Actor* actor; + s32 found; + SelectableTarget* target; + Evt* script; + s32 level; + s32 i; + + switch (gBattleState2) { + case BATTLE_STATE2_UNK_0: + D_8029F254 = 0; + level = partner->actorBlueprint->level; + switch (playerData->currentPartner) { + case PARTNER_KOOPER: + battleStatus->moveCategory = 5; + battleStatus->selectedItemID = ITEM_NONE; + battleStatus->selectedMoveID = level + MOVE_SHELL_TOSS1; + battleStatus->currentTargetListFlags = gMoveTable[battleStatus->selectedMoveID].flags; + break; + case PARTNER_BOMBETTE: + battleStatus->moveCategory = 5; + battleStatus->selectedItemID = ITEM_NONE; + battleStatus->selectedMoveID = level + MOVE_BODY_SLAM1; + battleStatus->currentTargetListFlags = gMoveTable[battleStatus->selectedMoveID].flags; + break; + } + actor = get_actor(ACTOR_ENEMY0); + if (actor->onHitScriptSource != NULL) { + actor->lastEventType = EVENT_BEGIN_FIRST_STRIKE; + script = start_script(actor->onHitScriptSource, 0xA, 0x20); + actor->onHitScript = script; + actor->onHitID = script->id; + script->owner1.actorID = actor->actorID; + } + gBattleState2 = BATTLE_STATE2_UNK_1; + break; + case BATTLE_STATE2_UNK_1: + player_create_target_list(partner); + target = &partner->targetData[partner->targetIndexList[0]]; + partner->targetActorID = target->actorID; + partner->targetPartIndex = target->partID; + battleStatus->unk_8C = 0; + battleStatus->lastAttackDamage = 0; + battleStatus->unk_19A = 0; + gBattleStatus.flags1 &= ~BS_FLAGS1_2; + gBattleStatus.flags2 |= BS_FLAGS2_1000000; + gBattleStatus.flags1 |= BS_FLAGS1_80000; + increment_status_menu_disabled(); + btl_cam_use_preset(BTL_CAM_PRESET_10); + btl_cam_target_actor(ACTOR_PARTNER); + reset_actor_turn_info(); + battleStatus->battlePhase = PHASE_FIRST_STRIKE; + script = start_script(partner->takeTurnScriptSource, 0xA, 0); + partner->takeTurnScript = script; + D_8029F248 = 3; + gBattleState2 = BATTLE_STATE2_UNK_2; + partner->takeTurnID = script->id; + script->owner1.actorID = ACTOR_PARTNER; + break; + case BATTLE_STATE2_UNK_2: + if (D_8029F248 != 0) { + D_8029F248--; + } else { + D_8029F254 = 1; + } + + if (partner->takeTurnScript == NULL || !does_script_exist(partner->takeTurnID)) { + partner->takeTurnScript = NULL; + if (partner->onHitScript == NULL || !does_script_exist(partner->onHitID)) { + partner->onHitScript = NULL; + if (player->onHitScript == NULL || !does_script_exist(player->onHitID)) { + player->onHitScript = NULL; + found = FALSE; + + for (i = 0; i < ARRAY_COUNT(battleStatus->enemyActors); i++) { + actor = battleStatus->enemyActors[i]; + if (actor != NULL && actor->takeTurnScript != NULL) { + if (does_script_exist(actor->takeTurnID)) { + found = TRUE; + } else { + actor->takeTurnScript = NULL; + } + } + } + + if (!found) { + for (i = 0; i < ARRAY_COUNT(battleStatus->enemyActors); i++) { + actor = battleStatus->enemyActors[i]; + if (actor != NULL && actor->onHitScript != NULL) { + if (does_script_exist(actor->onHitID)) { + found = TRUE; + } else { + actor->onHitScript = NULL; + } + } + } + + if (!found) { + for (i = 0; i < ARRAY_COUNT(battleStatus->enemyActors); i++) { + actor = battleStatus->enemyActors[i]; + if (actor != NULL) { + actor->flags &= ~ACTOR_FLAG_80000; + } + } + + if (battleStatus->unk_8C == 0) { + decrement_status_menu_disabled(); + if (!btl_check_player_defeated() && !btl_check_enemies_defeated()) { + actor = get_actor(partner->targetActorID); + if (actor != NULL) { + if (actor->onHitScriptSource != NULL) { + actor->lastEventType = EVENT_END_FIRST_STRIKE; + script = start_script(actor->onHitScriptSource, 0xA, 0x20); + actor->onHitScript = script; + actor->onHitID = script->id; + script->owner1.actorID = actor->actorID; + } + } + gBattleState2 = BATTLE_STATE2_UNK_3; + } + } + } + } + } + } + } + break; + case BATTLE_STATE2_UNK_3: + found = FALSE; + + for (i = 0; i < ARRAY_COUNT(battleStatus->enemyActors); i++) { + actor = battleStatus->enemyActors[i]; + if (actor != NULL && actor->onHitScript != NULL) { + if (does_script_exist(actor->onHitID)) { + found = TRUE; + } else { + actor->onHitScript = NULL; + } + } + } + if (!found) { + btl_set_state(BATTLE_STATE_BEGIN_TURN); + } + break; + } +} void btl_state_draw_partner_striking_first(void) { if (D_8029F254 != 0) { @@ -1603,7 +2204,195 @@ void btl_state_draw_partner_striking_first(void) { } } +// ugly loops and such +#ifdef NON_EQUIVALENT +void btl_state_update_enemy_striking_first(void) { + PlayerData* playerData = &gPlayerData; + BattleStatus* battleStatus = &gBattleStatus; + Actor* player = battleStatus->playerActor; + Actor* partner = battleStatus->partnerActor; + Evt* script; + Actor* enemy; + s32 cond; + s32 i; + s32 j; + + Actor* temp_s0; + s32 temp_t0; + s32 temp_a1; + s16* temp_t4; + s16* var_a2; + s16* var_t3; + s32 temp_v0; + s32 var_a3; + s32 var_t2; + + s32 nextEnemyIdx; + s32 count; + + switch (gBattleState2) { + case 0: + battleStatus->unk_8C = 0; + battleStatus->lastAttackDamage = 0; + battleStatus->unk_19A = 0; + playerData->enemyFirstStrikes++; + battleStatus->flags1 &= ~2; + D_8029F254 = 0; + player->flags &= ~ACTOR_FLAG_8000000; + if (partner != NULL) { + partner->flags &= ~ACTOR_FLAG_8000000; + } + battleStatus->flags2 |= 0x01000000 | 0x4000; + count = 0; + for (i = 0; i < ARRAY_COUNT(battleStatus->enemyActors); i++) { + if (battleStatus->enemyActors[i] != NULL) { + battleStatus->enemyIDs[i] = i | 0x200; + count++; + } + } + + battleStatus->numEnemyActors = count; + // for (i = 0; i < count - 1; i++) { + // for (j = i + 1; j < count; j++) { + // s32 temp_t0; + // s32 temp_a1; + + // temp_t0 = battleStatus->enemyActors[battleStatus->enemyIDs[i]]->turnPriority; + // temp_a1 = battleStatus->enemyActors[battleStatus->enemyIDs[j]]->turnPriority; + // if (temp_t0 < temp_a1) { + // battleStatus->enemyActors[battleStatus->enemyIDs[i]]->turnPriority = temp_a1; + // battleStatus->enemyActors[battleStatus->enemyIDs[j]]->turnPriority = temp_t0; + // } + // } + // } + + i = 0; + temp_v0 = var_t2 - 1; + temp_t4 = battleStatus->enemyIDs; + if (temp_v0 > 0) { + var_t3 = temp_t4; + do { + var_a3 = i + 1; + if (var_a3 < var_t2) { + var_a2 = &temp_t4[var_a3]; + do { + temp_t0 = (u16) *var_t3; + temp_a1 = (u16) *var_a2; + var_a3 += 1; + if (battleStatus->enemyActors[temp_t0 & 0xFF]->turnPriority < battleStatus->enemyActors[temp_a1 & 0xFF]->turnPriority) { + *var_t3 = temp_a1; + *var_a2 = temp_t0; + } + var_a2 += 2; + } while (var_a3 < var_t2); + } + i++; + var_t3 += 2; + } while (i < temp_v0); + } + + battleStatus->nextEnemyIndex = 0; + i = 0; + loop_18: + loop_19: + temp_s0 = battleStatus->enemyActors[battleStatus->enemyIDs[i]]; + if (temp_s0 == NULL) { + block_21: + i++; + if (i >= battleStatus->numEnemyActors) { + i = 0; + goto loop_18; + } + goto loop_19; + } + if (temp_s0->flags & 0x204000) { + goto block_21; + } + + nextEnemyIdx = i + 1; + battleStatus->currentTurnEnemy = enemy; + battleStatus->activeEnemyActorID = battleStatus->enemyIDs[i]; + if (nextEnemyIdx >= battleStatus->numEnemyActors) { + nextEnemyIdx = 0; + } + battleStatus->nextEnemyIndex = nextEnemyIdx; + btl_cam_target_actor(battleStatus->activeEnemyActorID); + enemy = battleStatus->currentTurnEnemy; + reset_actor_turn_info(); + battleStatus->battlePhase = 1; + script = start_script(enemy->takeTurnScriptSource, 0xA, 0); + enemy->takeTurnScript = script; + D_8029F248 = 3; + enemy->takeTurnID = script->id; + gBattleState2 = 2; + script->owner1.enemyID = battleStatus->activeEnemyActorID; + break; + case 2: + if (D_8029F248 != 0) { + D_8029F248--; + } else { + D_8029F254 = 1; + } + + enemy = battleStatus->currentTurnEnemy; + if ((enemy->takeTurnScript == NULL || !does_script_exist(enemy->takeTurnID)) && + ((enemy->takeTurnScript = NULL, (player->onHitScript == NULL)) || !does_script_exist(player->onHitID))) { + player->onHitScript = NULL; + if (partner != NULL) { + if (partner->onHitScript == NULL || !does_script_exist(partner->onHitID)) { + partner->onHitScript = NULL; + goto block_39; + } + } else { + block_39: + for (i = 0; i < ARRAY_COUNT(battleStatus->enemyActors); i++) { + enemy = battleStatus->enemyActors[i]; + if (enemy != NULL && enemy->takeTurnScript != NULL) { + if (does_script_exist(enemy->takeTurnID)) { + cond = TRUE; + } else { + enemy->takeTurnScript = NULL; + } + } + } + + if (!cond) { + for (i = 0; i < ARRAY_COUNT(battleStatus->enemyActors); i++) { + enemy = battleStatus->enemyActors[i]; + if (enemy != NULL && enemy->onHitScript != NULL) { + if (does_script_exist(enemy->onHitID)) { + cond = TRUE; + } else { + enemy->onHitScript = NULL; + } + } + } + + if (!cond) { + gBattleStatus.flags2 &= ~0x4000; + for (i = 0; i < ARRAY_COUNT(battleStatus->enemyActors); i++) { + enemy = battleStatus->enemyActors[i]; + if (enemy != NULL) { + enemy->flags &= 0xFFF7FFFF; + } + } + + if (battleStatus->unk_8C == 0 && + !btl_check_player_defeated() && + !btl_check_enemies_defeated()) + { + btl_set_state(5); + } + } + } + } + } + break; + } +} +#else INCLUDE_ASM(s32, "16F740", btl_state_update_enemy_striking_first); +#endif void btl_state_draw_enemy_striking_first(void) { if (D_8029F254 != 0) { diff --git a/src/5B320.c b/src/5B320.c index fb6f008b4f..7065ea4155 100644 --- a/src/5B320.c +++ b/src/5B320.c @@ -191,8 +191,10 @@ extern HudScript HudScript_Parakarry; extern HudScript HudScript_Watt; extern HudScript HudScript_Sushie; extern HudScript HudScript_Lakilester; +extern HudScript HudScript_Partner9; extern HudScript HudScript_Bow; extern HudScript HudScript_PartnerA; +extern HudScript HudScript_PartnerB; extern HudScript HudScript_Partner0Disabled; extern HudScript HudScript_GoombarioDisabled; extern HudScript HudScript_KooperDisabled; @@ -201,8 +203,10 @@ extern HudScript HudScript_ParakarryDisabled; extern HudScript HudScript_WattDisabled; extern HudScript HudScript_SushieDisabled; extern HudScript HudScript_LakilesterDisabled; +extern HudScript HudScript_Partner9Disabled; extern HudScript HudScript_BowDisabled; extern HudScript HudScript_PartnerADisabled; +extern HudScript HudScript_PartnerBDisabled; IconHudScriptPair gPartnerIconHudScripts[] = { { .enabled = &HudScript_Partner0, .disabled = &HudScript_Partner0Disabled, }, @@ -214,10 +218,10 @@ IconHudScriptPair gPartnerIconHudScripts[] = { { .enabled = &HudScript_Watt, .disabled = &HudScript_WattDisabled, }, { .enabled = &HudScript_Sushie, .disabled = &HudScript_SushieDisabled, }, { .enabled = &HudScript_Lakilester, .disabled = &HudScript_LakilesterDisabled, }, - { .enabled = (HudScript*)0x80107F78, .disabled = (HudScript*)0x80107FA0, }, + { .enabled = &HudScript_Partner9, .disabled = &HudScript_Partner9Disabled, }, { .enabled = &HudScript_PartnerA, .disabled = &HudScript_PartnerADisabled, }, - { .enabled = (HudScript*)0x80108018, .disabled = (HudScript*)0x80108040, }, - { .enabled = (HudScript*)0x80108018, .disabled = (HudScript*)0x80108040 }, + { .enabled = &HudScript_PartnerB, .disabled = &HudScript_PartnerBDisabled, }, + { .enabled = &HudScript_PartnerB, .disabled = &HudScript_PartnerBDisabled }, }; #include "move_table.inc.c" diff --git a/src/7E9D0.c b/src/7E9D0.c index 6965cad2cf..44d4827bf9 100644 --- a/src/7E9D0.c +++ b/src/7E9D0.c @@ -4,6 +4,7 @@ #include "world/partners.h" #include "world/actions.h" #include "npc.h" +#include "effects.h" extern void* D_8010C924; extern s32 D_8010C964; @@ -390,8 +391,8 @@ void set_action_state(s32 actionState) { sfx_stop_sound(spinState->spinSoundID); } - if (playerStatus->unk_D8) { - playerStatus->unk_D8[3][9] = 0xA; // TODO: Substruct? Currently UB. + if (playerStatus->unk_D8 != NULL) { + ((Effect46FXData*)playerStatus->unk_D8->data)->unk_24 = 10; playerStatus->unk_D8 = NULL; } } diff --git a/src/C50A0.c b/src/C50A0.c index 73d8972c5b..f89488c0a1 100644 --- a/src/C50A0.c +++ b/src/C50A0.c @@ -192,7 +192,7 @@ s32 make_item_entity_at_player(s32 itemID, s32 arg1, s32 pickupMsgFlags) { f32 posZ; f32 depth; s32 id; - + for (i = 0; i < MAX_ITEM_ENTITIES; i++) { if (gCurrentItemEntities[i] == NULL) { break; @@ -200,11 +200,11 @@ s32 make_item_entity_at_player(s32 itemID, s32 arg1, s32 pickupMsgFlags) { } ASSERT(i < MAX_ITEM_ENTITIES); id = i; - + gCurrentItemEntities[id] = item = heap_malloc(sizeof(*item)); ItemEntitiesCreated++; ASSERT(item != NULL); - + itemID &= 0xFFFF; item->renderGroup = -1; item->flags = (ITEM_ENTITY_FLAGS_CAM0 | ITEM_ENTITY_FLAGS_CAM1 | ITEM_ENTITY_FLAGS_CAM2 | ITEM_ENTITY_FLAGS_10 | ITEM_ENTITY_FLAGS_2000000); @@ -218,7 +218,7 @@ s32 make_item_entity_at_player(s32 itemID, s32 arg1, s32 pickupMsgFlags) { item->position.x = playerStatus->position.x; item->position.y = playerStatus->position.y; item->position.z = playerStatus->position.z; - + item->shadowIndex = -1; item->nextUpdate = 1; item->unk_34.x = -9999; @@ -238,7 +238,7 @@ s32 make_item_entity_at_player(s32 itemID, s32 arg1, s32 pickupMsgFlags) { item->flags |= ITEM_ENTITY_FLAGS_20000; } ItemEntityAlternatingSpawn = 1 - ItemEntityAlternatingSpawn; - + item->shadowIndex = create_shadow_type(0, item->position.x, item->position.y, item->position.z); shadow = get_shadow_by_index(item->shadowIndex); shadow->flags |= 1; @@ -251,12 +251,12 @@ s32 make_item_entity_at_player(s32 itemID, s32 arg1, s32 pickupMsgFlags) { shadow->position.x = posX; shadow->position.y = posY; shadow->position.z = posZ; - + shadow->rotation.x = gGameStatusPtr->playerGroundTraceAngles.x; shadow->rotation.y = 0.0f; shadow->rotation.z = gGameStatusPtr->playerGroundTraceAngles.z; set_standard_shadow_scale(shadow, depth * 0.5f); - + item_entity_load(item); if (item->itemID == ITEM_COIN) { sparkle_script_init(item, &SparkleScript_Coin); diff --git a/src/battle/action_cmd/body_slam.c b/src/battle/action_cmd/body_slam.c index adc69a4487..95f9c1b113 100644 --- a/src/battle/action_cmd/body_slam.c +++ b/src/battle/action_cmd/body_slam.c @@ -5,14 +5,16 @@ extern HudScript HudScript_BlueMeter; extern HudScript HudScript_AButton; +extern HudScript HudScript_AButtonDown; extern HudScript HudScript_TimingWait; +extern HudScript HudScript_TimingReady; extern HudScript HudScript_FillGaugeResult; extern s32 D_80294320; ApiStatus N(CreateHudElements)(Evt* script, s32 isInitialCall) { ActionCommandStatus* actionCommandStatus = &gActionCommandStatus; BattleStatus* battleStatus = &gBattleStatus; - s32 hudElement; + s32 id; battleStatus->unk_82 = 100; battleStatus->unk_434 = &D_80294320; @@ -34,35 +36,148 @@ ApiStatus N(CreateHudElements)(Evt* script, s32 isInitialCall) { actionCommandStatus->hudElementX = -48; actionCommandStatus->hudElementY = 80; - hudElement = hud_element_create(&HudScript_AButton); - actionCommandStatus->hudElements[0] = hudElement; - hud_element_set_render_pos(hudElement, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY); - hud_element_set_render_depth(hudElement, 0); - hud_element_set_flags(hudElement, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); + id = hud_element_create(&HudScript_AButton); + actionCommandStatus->hudElements[0] = id; + hud_element_set_render_pos(id, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY); + hud_element_set_render_depth(id, 0); + hud_element_set_flags(id, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); - hudElement = hud_element_create(&HudScript_BlueMeter); - actionCommandStatus->hudElements[1] = hudElement; - hud_element_set_render_pos(hudElement, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY + 28); - hud_element_set_render_depth(hudElement, 0); - hud_element_set_flags(hudElement, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); + id = hud_element_create(&HudScript_BlueMeter); + actionCommandStatus->hudElements[1] = id; + hud_element_set_render_pos(id, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY + 28); + hud_element_set_render_depth(id, 0); + hud_element_set_flags(id, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); - hudElement = hud_element_create(&HudScript_FillGaugeResult); - actionCommandStatus->hudElements[3] = hudElement; - hud_element_set_render_pos(hudElement, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY + 28); - hud_element_set_render_depth(hudElement, 0); - hud_element_set_flags(hudElement, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); + id = hud_element_create(&HudScript_FillGaugeResult); + actionCommandStatus->hudElements[3] = id; + hud_element_set_render_pos(id, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY + 28); + hud_element_set_render_depth(id, 0); + hud_element_set_flags(id, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); - hudElement = hud_element_create(&HudScript_TimingWait); - actionCommandStatus->hudElements[2] = hudElement; - hud_element_set_render_pos(hudElement, actionCommandStatus->hudElementX + 41, actionCommandStatus->hudElementY + 22); - hud_element_set_render_depth(hudElement, 0); - hud_element_set_flags(hudElement, HUD_ELEMENT_FLAGS_80); + id = hud_element_create(&HudScript_TimingWait); + actionCommandStatus->hudElements[2] = id; + hud_element_set_render_pos(id, actionCommandStatus->hudElementX + 41, actionCommandStatus->hudElementY + 22); + hud_element_set_render_depth(id, 0); + hud_element_set_flags(id, HUD_ELEMENT_FLAGS_80); return ApiStatus_DONE2; } #include "common/MashActionCommandInit.inc.c" -INCLUDE_ASM(s32, "battle/action_cmd/body_slam", func_802A92D4_4285B4); +void func_802A92D4_4285B4(void) { + ActionCommandStatus* actionCommandStatus = &gActionCommandStatus; + BattleStatus* battleStatus = &gBattleStatus; + s32 id; + s32 phi_v0; + + switch (actionCommandStatus->state) { + case 0: + btl_set_popup_duration(99); + + id = actionCommandStatus->hudElements[0]; + hud_element_set_alpha(id, 255); + if (actionCommandStatus->unk_61 != 0) { + hud_element_clear_flags(id, 2); + } + + id = actionCommandStatus->hudElements[1]; + hud_element_set_alpha(id, 255); + if (actionCommandStatus->unk_61 != 0) { + hud_element_clear_flags(id, 2); + } + + id = actionCommandStatus->hudElements[2]; + hud_element_set_alpha(id, 255); + if (actionCommandStatus->unk_61 != 0) { + hud_element_clear_flags(id, 2); + } + + id = actionCommandStatus->hudElements[3]; + hud_element_set_alpha(id, 255); + if (actionCommandStatus->unk_61 != 0) { + hud_element_clear_flags(id, 2); + } + + actionCommandStatus->state = 1; + break; + case 1: + btl_set_popup_duration(99); + actionCommandStatus->hudElementX += 20; + if (actionCommandStatus->hudElementX > 50) { + actionCommandStatus->hudElementX = 50; + } + hud_element_set_render_pos(actionCommandStatus->hudElements[0], actionCommandStatus->hudElementX, actionCommandStatus->hudElementY); + hud_element_set_render_pos(actionCommandStatus->hudElements[1], actionCommandStatus->hudElementX, actionCommandStatus->hudElementY + 28); + hud_element_set_render_pos(actionCommandStatus->hudElements[2], actionCommandStatus->hudElementX + 41, actionCommandStatus->hudElementY + 22); + hud_element_set_render_pos(actionCommandStatus->hudElements[3], actionCommandStatus->hudElementX + 42, actionCommandStatus->hudElementY + 24); + break; + case 10: + btl_set_popup_duration(99); + if (actionCommandStatus->unk_4E != 0) { + actionCommandStatus->unk_4E--; + return; + } + hud_element_set_script(actionCommandStatus->hudElements[0], &HudScript_AButtonDown); + actionCommandStatus->barFillLevel = 0; + actionCommandStatus->unk_46 = 0; + actionCommandStatus->unk_54 = actionCommandStatus->unk_52; + sfx_play_sound_with_params(0x80000041, 0, 0, 0); + actionCommandStatus->state = 11; + case 11: + btl_set_popup_duration(99); + + if (battleStatus->currentButtonsDown & BUTTON_A) { + actionCommandStatus->barFillLevel += 154; + actionCommandStatus->unk_46 += 154; + } else { + actionCommandStatus->unk_54 = 0; + } + + if (actionCommandStatus->barFillLevel >= 10000) { + actionCommandStatus->barFillLevel = 10000; + hud_element_set_script(actionCommandStatus->hudElements[2], &HudScript_TimingReady); + hud_element_set_script(actionCommandStatus->hudElements[0], &HudScript_AButton); + if (actionCommandStatus->unk_68 == 0) { + sfx_play_sound(SOUND_234); + actionCommandStatus->unk_68 = 1; + } + } + + battleStatus->unk_84 = actionCommandStatus->barFillLevel / 100; + sfx_adjust_env_sound_params(0x80000041, 0, 0, battleStatus->unk_84 * 12); + if (actionCommandStatus->unk_54 != 0) { + actionCommandStatus->unk_54--; + return; + } + + do { + if (actionCommandStatus->unk_46 < 10000) { + battleStatus->actionSuccess = -1; + } else if (actionCommandStatus->unk_46 - (battleStatus->unk_434[actionCommandStatus->unk_50] * 154) >= 10309) { + battleStatus->actionSuccess = -1; + } else { + battleStatus->actionSuccess = 1; + } + } while (0); // required to match + + battleStatus->unk_86 = 0; + if (battleStatus->actionSuccess == 1) { + func_80269160(); + } + btl_set_popup_duration(0); + sfx_stop_sound(0x80000041); + actionCommandStatus->unk_54 = 5; + actionCommandStatus->state = 12; + break; + case 12: + if (actionCommandStatus->unk_54 != 0) { + actionCommandStatus->unk_54--; + return; + } + func_80268C9C(); + break; + } +} void N(draw_hud_elements)(void) { s32 x, y; diff --git a/src/battle/action_cmd/bomb.c b/src/battle/action_cmd/bomb.c index f0e3e978a6..defa46da20 100644 --- a/src/battle/action_cmd/bomb.c +++ b/src/battle/action_cmd/bomb.c @@ -10,21 +10,7 @@ extern s32 D_80294300; extern HudScript HudScript_MashAButton; -typedef struct UnkVec2s { - /* 0x00 */ s16 unk_0; - /* 0x02 */ s16 unk_2; -} UnkVec2s; - -UnkVec2s D_802A9812_428280[] = { - { 0x0, 0x00 }, - { 0x0, 0x19 }, - { 0x0, 0x32 }, - { 0x0, 0x4B }, - { 0x0, 0x4B }, - { 0x0, 0x00 }, - { 0x0, 0x00 }, - { 0x0, 0x00 }, -}; +s32 D_802A9810_428280[] = { 0, 25, 50, 75, 75, 0, 0, 0 }; ApiStatus func_802A9000_427A70(Evt* script, s32 isInitialCall) { ActionCommandStatus* actionCommandStatus = &gActionCommandStatus; @@ -132,7 +118,7 @@ void func_802A928C_427CFC(void) { if (!actionCommandStatus->unk_68) { mashMeterCutoff = actionCommandStatus->mashMeterCutoffs[actionCommandStatus->mashMeterIntervals]; actionCommandStatus->barFillLevel -= - D_802A9812_428280[actionCommandStatus->barFillLevel / mashMeterCutoff / 20].unk_2; + D_802A9810_428280[actionCommandStatus->barFillLevel / mashMeterCutoff / 20]; if (actionCommandStatus->barFillLevel < 0) { actionCommandStatus->barFillLevel = 0; diff --git a/src/battle/action_cmd/break_free.c b/src/battle/action_cmd/break_free.c index 09f19f32ea..2db9060b66 100644 --- a/src/battle/action_cmd/break_free.c +++ b/src/battle/action_cmd/break_free.c @@ -5,6 +5,7 @@ extern s32 D_80294220; extern HudScript HudScript_AButton; +extern HudScript HudScript_MashAButton; extern HudScript HudScript_BlueMeter; extern HudScript HudScript_RunningAway; extern HudScript HudScript_RunAwayOK; @@ -12,7 +13,7 @@ extern HudScript HudScript_RunAwayOK; ApiStatus func_802A9000_4233F0(Evt* script, s32 isInitialCall) { ActionCommandStatus* actionCommandStatus = &gActionCommandStatus; BattleStatus* battleStatus = &gBattleStatus; - s32 hudElement; + s32 id; battleStatus->unk_82 = 0; battleStatus->unk_434 = &D_80294220; @@ -35,29 +36,29 @@ ApiStatus func_802A9000_4233F0(Evt* script, s32 isInitialCall) { actionCommandStatus->hudElementX = -48; actionCommandStatus->hudElementY = 80; - hudElement = hud_element_create(&HudScript_AButton); - actionCommandStatus->hudElements[0] = hudElement; - hud_element_set_render_pos(hudElement, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY); - hud_element_set_render_depth(hudElement, 0); - hud_element_set_flags(hudElement, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); + id = hud_element_create(&HudScript_AButton); + actionCommandStatus->hudElements[0] = id; + hud_element_set_render_pos(id, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY); + hud_element_set_render_depth(id, 0); + hud_element_set_flags(id, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); - hudElement = hud_element_create(&HudScript_BlueMeter); - actionCommandStatus->hudElements[1] = hudElement; - hud_element_set_render_pos(hudElement, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY + 28); - hud_element_set_render_depth(hudElement, 0); - hud_element_set_flags(hudElement, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); + id = hud_element_create(&HudScript_BlueMeter); + actionCommandStatus->hudElements[1] = id; + hud_element_set_render_pos(id, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY + 28); + hud_element_set_render_depth(id, 0); + hud_element_set_flags(id, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); - hudElement = hud_element_create(&HudScript_RunningAway); - actionCommandStatus->hudElements[2] = hudElement; - hud_element_set_render_pos(hudElement, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY + 28); - hud_element_set_render_depth(hudElement, 0); - hud_element_set_flags(hudElement, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); + id = hud_element_create(&HudScript_RunningAway); + actionCommandStatus->hudElements[2] = id; + hud_element_set_render_pos(id, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY + 28); + hud_element_set_render_depth(id, 0); + hud_element_set_flags(id, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); - hudElement = hud_element_create(&HudScript_RunAwayOK); - actionCommandStatus->hudElements[3] = hudElement; - hud_element_set_render_pos(hudElement, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY + 28); - hud_element_set_render_depth(hudElement, 0); - hud_element_set_flags(hudElement, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); + id = hud_element_create(&HudScript_RunAwayOK); + actionCommandStatus->hudElements[3] = id; + hud_element_set_render_pos(id, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY + 28); + hud_element_set_render_depth(id, 0); + hud_element_set_flags(id, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); return ApiStatus_DONE2; } @@ -96,14 +97,137 @@ ApiStatus func_802A91B0_4235A0(Evt* script, s32 isInitialCall) { return ApiStatus_DONE2; } -INCLUDE_ASM(s32, "battle/action_cmd/break_free", func_802A92DC_4236CC); + +void func_802A92DC_4236CC(void) { + ActionCommandStatus* actionCommandStatus = &gActionCommandStatus; + BattleStatus* battleStatus = &gBattleStatus; + s32 id; + + switch (actionCommandStatus->state) { + case 0: + btl_set_popup_duration(99); + + id = actionCommandStatus->hudElements[0]; + hud_element_set_alpha(id, 255); + if (actionCommandStatus->unk_61 != 0) { + hud_element_clear_flags(id, 2); + } + + id = actionCommandStatus->hudElements[1]; + hud_element_set_alpha(id, 255); + if (actionCommandStatus->unk_61 != 0) { + hud_element_clear_flags(id, 2); + } + + id = actionCommandStatus->hudElements[2]; + hud_element_set_alpha(id, 255); + if (actionCommandStatus->unk_61 != 0) { + hud_element_clear_flags(id, 2); + } + + id = actionCommandStatus->hudElements[3]; + hud_element_set_alpha(id, 255); + if (actionCommandStatus->unk_61 != 0) { + hud_element_clear_flags(id, 2); + } + + actionCommandStatus->state = 1; + break; + case 1: + btl_set_popup_duration(99); + actionCommandStatus->hudElementX += 20; + if (actionCommandStatus->hudElementX > 50) { + actionCommandStatus->hudElementX = 50; + } + hud_element_set_render_pos(actionCommandStatus->hudElements[0], actionCommandStatus->hudElementX, actionCommandStatus->hudElementY); + hud_element_set_render_pos(actionCommandStatus->hudElements[1], actionCommandStatus->hudElementX, actionCommandStatus->hudElementY + 28); + hud_element_set_render_pos(actionCommandStatus->hudElements[2], actionCommandStatus->hudElementX + 31, actionCommandStatus->hudElementY - 1); + hud_element_set_render_pos(actionCommandStatus->hudElements[3], actionCommandStatus->hudElementX + 31, actionCommandStatus->hudElementY + 17); + break; + case 10: + btl_set_popup_duration(99); + if (actionCommandStatus->unk_4E != 0) { + actionCommandStatus->unk_4E--; + return; + } + hud_element_set_script(actionCommandStatus->hudElements[0], &HudScript_MashAButton); + actionCommandStatus->state = 11; + actionCommandStatus->unk_54 = actionCommandStatus->unk_52; + case 11: + btl_set_popup_duration(99); + if (actionCommandStatus->unk_5C == 0) { + actionCommandStatus->unk_46++; + if (actionCommandStatus->unk_46 >= actionCommandStatus->unk_5A) { + actionCommandStatus->unk_46 = actionCommandStatus->unk_5A; + actionCommandStatus->unk_5C = 1; + } + } else { + actionCommandStatus->unk_46--; + if (actionCommandStatus->unk_46 <= 0) { + actionCommandStatus->unk_46 = 0; + actionCommandStatus->unk_5C = 0; + } + } + + if (actionCommandStatus->unk_6A == 0) { + s32 inputBufPos = battleStatus->inputBufferPos; + s32 temp_a2 = actionCommandStatus->unk_52 - actionCommandStatus->unk_54; + s32 i; + + actionCommandStatus->barFillLevel = 0; + + inputBufPos -= temp_a2; + if (inputBufPos < 0) { + inputBufPos += ARRAY_COUNT(battleStatus->pushInputBuffer); + } + + for (i = 0; i < temp_a2; i++, inputBufPos++) { + if (inputBufPos >= ARRAY_COUNT(battleStatus->pushInputBuffer)) { + inputBufPos -= ARRAY_COUNT(battleStatus->pushInputBuffer); + } + if (battleStatus->pushInputBuffer[inputBufPos] & BUTTON_A) { + actionCommandStatus->barFillLevel += battleStatus->unk_434[actionCommandStatus->unk_50]; + } + } + } else { + actionCommandStatus->barFillLevel += (battleStatus->unk_434[actionCommandStatus->unk_50]) / 4; + actionCommandStatus->barFillLevel += rand_int(battleStatus->unk_434[actionCommandStatus->unk_50] / 4); + } + + battleStatus->actionSuccess = actionCommandStatus->barFillLevel / 100; + if (actionCommandStatus->unk_54 != 0) { + actionCommandStatus->unk_54--; + return; + } + + if (battleStatus->actionSuccess >= actionCommandStatus->mashMeterCutoffs[actionCommandStatus->mashMeterIntervals] - actionCommandStatus->unk_46) { + battleStatus->unk_86 = 1; + battleStatus->actionSuccess = 1; + } else { + battleStatus->unk_86 = -2; + battleStatus->actionSuccess = -1; + } + + btl_set_popup_duration(0); + actionCommandStatus->unk_54 = 20; + actionCommandStatus->state = 12; + break; + case 12: + if (actionCommandStatus->unk_54 != 0) { + actionCommandStatus->unk_54--; + return; + } + func_80268C9C(); + break; + } +} void func_802A96B8_423AA8(void) { ActionCommandStatus* actionCommandStatus = &gActionCommandStatus; s32* hudElements = actionCommandStatus->hudElements; s32 hudX; s32 hudY; - s32 hudElement; + s32 id; s16 mashMeterCutoff; s32 thirtyOne; @@ -121,9 +245,9 @@ void func_802A96B8_423AA8(void) { hud_element_draw_clipped(hudElements[0]); } - hudElement = hudElements[1]; - hud_element_draw_clipped(hudElement); - hud_element_get_render_pos(hudElement, &hudX, &hudY); + id = hudElements[1]; + hud_element_draw_clipped(id); + hud_element_get_render_pos(id, &hudX, &hudY); func_80268770(hudX, hudY, actionCommandStatus->barFillLevel / 100); hud_element_draw_clipped(hudElements[2]); diff --git a/src/battle/action_cmd/dizzy_shell.c b/src/battle/action_cmd/dizzy_shell.c index 787cde244a..2177e55f59 100644 --- a/src/battle/action_cmd/dizzy_shell.c +++ b/src/battle/action_cmd/dizzy_shell.c @@ -6,12 +6,15 @@ extern s32 D_802942A0; extern HudScript HudScript_BlueMeter; extern HudScript HudScript_AButton; +extern HudScript HudScript_MashAButton; extern HudScript HudScript_100pct; +s32 D_802A9800_426970[8] = { 0, 25, 50, 75, 75, 0, 0, 0 }; + ApiStatus func_802A9000_426170(void) { ActionCommandStatus* actionCommandStatus = &gActionCommandStatus; BattleStatus* battleStatus = &gBattleStatus; - s32 hudElement; + s32 id; battleStatus->unk_82 = 100; battleStatus->unk_434 = &D_802942A0; @@ -34,30 +37,166 @@ ApiStatus func_802A9000_426170(void) { actionCommandStatus->hudElementX = -48; actionCommandStatus->hudElementY = 80; - hudElement = hud_element_create(&HudScript_AButton); - actionCommandStatus->hudElements[0] = hudElement; - hud_element_set_render_pos(hudElement, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY); - hud_element_set_render_depth(hudElement, 0); - hud_element_set_flags(hudElement, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); + id = hud_element_create(&HudScript_AButton); + actionCommandStatus->hudElements[0] = id; + hud_element_set_render_pos(id, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY); + hud_element_set_render_depth(id, 0); + hud_element_set_flags(id, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); - hudElement = hud_element_create(&HudScript_BlueMeter); - actionCommandStatus->hudElements[1] = hudElement; - hud_element_set_render_pos(hudElement, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY + 28); - hud_element_set_render_depth(hudElement, 0); - hud_element_set_flags(hudElement, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); + id = hud_element_create(&HudScript_BlueMeter); + actionCommandStatus->hudElements[1] = id; + hud_element_set_render_pos(id, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY + 28); + hud_element_set_render_depth(id, 0); + hud_element_set_flags(id, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); - hudElement = hud_element_create(&HudScript_100pct); - actionCommandStatus->hudElements[2] = hudElement; - hud_element_set_render_pos(hudElement, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY + 28); - hud_element_set_render_depth(hudElement, 0); - hud_element_set_flags(hudElement, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); + id = hud_element_create(&HudScript_100pct); + actionCommandStatus->hudElements[2] = id; + hud_element_set_render_pos(id, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY + 28); + hud_element_set_render_depth(id, 0); + hud_element_set_flags(id, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); return ApiStatus_DONE2; } #include "common/MashActionCommandInit.inc.c" -INCLUDE_ASM(s32, "battle/action_cmd/dizzy_shell", func_802A928C_4263FC); +void func_802A928C_4263FC(void) { + ActionCommandStatus* actionCommandStatus = &gActionCommandStatus; + BattleStatus* battleStatus = &gBattleStatus; + s32 id; + s32 cutoff; + s32 fillLevel; + + switch (actionCommandStatus->state) { + case 0: + btl_set_popup_duration(99); + + id = actionCommandStatus->hudElements[0]; + hud_element_set_alpha(id, 255); + if (actionCommandStatus->unk_61 != 0) { + hud_element_clear_flags(id, 2); + } + + id = actionCommandStatus->hudElements[1]; + hud_element_set_alpha(id, 255); + if (actionCommandStatus->unk_61 != 0) { + hud_element_clear_flags(id, 2); + } + + actionCommandStatus->state = 1; + break; + case 1: + btl_set_popup_duration(99); + actionCommandStatus->hudElementX += 20; + if (actionCommandStatus->hudElementX > 50) { + actionCommandStatus->hudElementX = 50; + } + hud_element_set_render_pos(actionCommandStatus->hudElements[0], actionCommandStatus->hudElementX, actionCommandStatus->hudElementY); + hud_element_set_render_pos(actionCommandStatus->hudElements[1], actionCommandStatus->hudElementX, actionCommandStatus->hudElementY + 28); + break; + case 10: + btl_set_popup_duration(99); + if (actionCommandStatus->unk_4E != 0) { + actionCommandStatus->unk_4E--; + return; + } + hud_element_set_script(actionCommandStatus->hudElements[0], &HudScript_MashAButton); + actionCommandStatus->barFillLevel = 0; + actionCommandStatus->unk_54 = actionCommandStatus->unk_52; + sfx_play_sound_with_params(0x80000041, 0, 0, 0); + actionCommandStatus->state = 11; + case 11: + btl_set_popup_duration(99); + if (actionCommandStatus->unk_68 == 0) { + if (actionCommandStatus->unk_64 != 0) { + cutoff = actionCommandStatus->mashMeterCutoffs[actionCommandStatus->mashMeterIntervals]; + + actionCommandStatus->barFillLevel -= D_802A9800_426970[actionCommandStatus->barFillLevel / cutoff / 20]; + if (actionCommandStatus->barFillLevel < 0) { + actionCommandStatus->barFillLevel = 0; + } + } else { + actionCommandStatus->barFillLevel -= 10; + if (actionCommandStatus->barFillLevel < 0) { + actionCommandStatus->barFillLevel = 0; + } + } + } + + if (battleStatus->currentButtonsPressed & A_BUTTON) { + s32 a = battleStatus->unk_434[actionCommandStatus->unk_50]; + s32 b = actionCommandStatus->unk_64 * 850; + s32 temp_v1_2 = (a * b) / 10000; + + if (temp_v1_2 != 0) { + actionCommandStatus->barFillLevel += temp_v1_2; + } else { + actionCommandStatus->barFillLevel += 100; + if (actionCommandStatus->barFillLevel >= 500) { + actionCommandStatus->barFillLevel = 500; + } + } + } + + if (actionCommandStatus->barFillLevel >= 10000) { + id = actionCommandStatus->hudElements[2]; + actionCommandStatus->barFillLevel = 10000; + actionCommandStatus->unk_68 = 1; + hud_element_set_render_pos(id, actionCommandStatus->hudElementX + 50, actionCommandStatus->hudElementY + 28); + hud_element_clear_flags(id, 2); + } + + battleStatus->unk_84 = actionCommandStatus->barFillLevel / 100; + sfx_adjust_env_sound_params(0x80000041, 0, 0, battleStatus->unk_84 * 12); + + if (actionCommandStatus->unk_54 != 0) { + actionCommandStatus->unk_54--; + return; + } + + fillLevel = actionCommandStatus->barFillLevel; + if (actionCommandStatus->unk_64 == 0) { + fillLevel = 0; + } + + if (fillLevel == 0) { + battleStatus->actionSuccess = -1; + } else { + battleStatus->actionSuccess = fillLevel / 100; + + } + + cutoff = actionCommandStatus->mashMeterCutoffs[actionCommandStatus->mashMeterIntervals - 1]; + if (battleStatus->actionSuccess >= cutoff) { + battleStatus->unk_86 = 1; + } else { + battleStatus->unk_86 = -2; + } + + if (battleStatus->actionSuccess == 100) { + func_80269160(); + } + sfx_stop_sound(0x80000041); + btl_set_popup_duration(0); + actionCommandStatus->unk_54 = 5; + actionCommandStatus->state = 12; + break; + case 12: + if (actionCommandStatus->unk_64 == 0) { + actionCommandStatus->barFillLevel -= 100; + if (actionCommandStatus->barFillLevel < 0) { + actionCommandStatus->barFillLevel = 0; + } + } + + if (actionCommandStatus->unk_54 != 0) { + actionCommandStatus->unk_54--; + return; + } + func_80268C9C(); + break; + } +} #include "common/UnkActionCommandFunc1.inc.c" diff --git a/src/battle/action_cmd/fire_shell.c b/src/battle/action_cmd/fire_shell.c index ed3fd974eb..ac1803142b 100644 --- a/src/battle/action_cmd/fire_shell.c +++ b/src/battle/action_cmd/fire_shell.c @@ -1,17 +1,24 @@ #include "common.h" #include "hud_element.h" +#include "battle/battle.h" #define NAMESPACE action_command_fire_shell extern s32 D_802942C0; +extern HudScript HudScript_StickMashLeft; extern HudScript HudScript_StickNeutral; extern HudScript HudScript_BlueMeter; extern HudScript HudScript_100pct; +s32 D_802A9950_427320[5] = { 0, 25, 50, 75, 75 }; +s32 D_802A9964_427334[4] = { 40, 70, 99, 200 }; +s32 D_802A9974_427344[5] = { 35, 60, 80, 99, 200 }; +s32 D_802A9988_427358[6] = { 35, 35, 60, 80, 99, 200 }; + ApiStatus func_802A9000_4269D0(void) { ActionCommandStatus* actionCommandStatus = &gActionCommandStatus; BattleStatus* battleStatus = &gBattleStatus; - s32 hudElement; + s32 id; battleStatus->unk_82 = 100; battleStatus->unk_434 = &D_802942C0; @@ -35,31 +42,178 @@ ApiStatus func_802A9000_4269D0(void) { actionCommandStatus->hudElementX = -48; actionCommandStatus->hudElementY = 80; - hudElement = hud_element_create(&HudScript_StickNeutral); - actionCommandStatus->hudElements[0] = hudElement; - hud_element_set_render_pos(hudElement, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY); - hud_element_set_render_depth(hudElement, 0); - hud_element_set_flags(hudElement, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); + id = hud_element_create(&HudScript_StickNeutral); + actionCommandStatus->hudElements[0] = id; + hud_element_set_render_pos(id, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY); + hud_element_set_render_depth(id, 0); + hud_element_set_flags(id, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); - hudElement = hud_element_create(&HudScript_BlueMeter); - actionCommandStatus->hudElements[1] = hudElement; - hud_element_set_render_pos(hudElement, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY + 28); - hud_element_set_render_depth(hudElement, 0); - hud_element_set_flags(hudElement, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); + id = hud_element_create(&HudScript_BlueMeter); + actionCommandStatus->hudElements[1] = id; + hud_element_set_render_pos(id, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY + 28); + hud_element_set_render_depth(id, 0); + hud_element_set_flags(id, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); - hudElement = hud_element_create(&HudScript_100pct); - actionCommandStatus->hudElements[2] = hudElement; - hud_element_set_render_pos(hudElement, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY + 28); - hud_element_set_render_depth(hudElement, 0); - hud_element_set_flags(hudElement, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); + id = hud_element_create(&HudScript_100pct); + actionCommandStatus->hudElements[2] = id; + hud_element_set_render_pos(id, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY + 28); + hud_element_set_render_depth(id, 0); + hud_element_set_flags(id, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); return ApiStatus_DONE2; } - #include "common/MashActionCommandInit.inc.c" -INCLUDE_ASM(s32, "battle/action_cmd/fire_shell", func_802A9294_426C64); +void func_802A9294_426C64(void) { + ActionCommandStatus* actionCommandStatus = &gActionCommandStatus; + BattleStatus* battleStatus = &gBattleStatus; + Actor* partner = battleStatus->partnerActor; + s32 id; + s32 cutoff; + s32 fillLevel; + + switch (actionCommandStatus->state) { + case 0: + btl_set_popup_duration(99); + + id = actionCommandStatus->hudElements[0]; + hud_element_set_alpha(id, 255); + if (actionCommandStatus->unk_61 != 0) { + hud_element_clear_flags(id, 2); + } + + id = actionCommandStatus->hudElements[1]; + hud_element_set_alpha(id, 255); + if (actionCommandStatus->unk_61 != 0) { + hud_element_clear_flags(id, 2); + } + + actionCommandStatus->state = 1; + break; + case 1: + btl_set_popup_duration(99); + actionCommandStatus->hudElementX += 20; + if (actionCommandStatus->hudElementX > 50) { + actionCommandStatus->hudElementX = 50; + } + hud_element_set_render_pos(actionCommandStatus->hudElements[0], actionCommandStatus->hudElementX, actionCommandStatus->hudElementY); + hud_element_set_render_pos(actionCommandStatus->hudElements[1], actionCommandStatus->hudElementX, actionCommandStatus->hudElementY + 28); + break; + case 10: + btl_set_popup_duration(99); + if (actionCommandStatus->unk_4E != 0) { + actionCommandStatus->unk_4E--; + return; + } + hud_element_set_script(actionCommandStatus->hudElements[0], &HudScript_StickMashLeft); + actionCommandStatus->barFillLevel = 0; + battleStatus->unk_85 = 0; + actionCommandStatus->unk_5C = 0; + actionCommandStatus->unk_54 = actionCommandStatus->unk_52; + sfx_play_sound_with_params(0x80000041, 0, 0, 0); + actionCommandStatus->state = 11; + case 11: + btl_set_popup_duration(99); + + if (actionCommandStatus->unk_68 == 0) { + cutoff = actionCommandStatus->mashMeterCutoffs[actionCommandStatus->mashMeterIntervals]; + actionCommandStatus->barFillLevel -= D_802A9950_427320[actionCommandStatus->barFillLevel / cutoff / 20]; + if (actionCommandStatus->barFillLevel < 0) { + actionCommandStatus->barFillLevel = 0; + } + if (actionCommandStatus->unk_68 == 0) { + if (battleStatus->currentButtonsDown & BUTTON_STICK_LEFT) { + actionCommandStatus->unk_5C = 1; + } + + if (!(battleStatus->currentButtonsDown & BUTTON_STICK_LEFT) && (actionCommandStatus->unk_5C != 0)) { + actionCommandStatus->barFillLevel += (battleStatus->unk_434[actionCommandStatus->unk_50] * 950) / 100; + actionCommandStatus->unk_5C = 0; + } + + if (battleStatus->currentButtonsPressed & BUTTON_STICK_RIGHT) { + actionCommandStatus->barFillLevel -= (battleStatus->unk_434[actionCommandStatus->unk_50] * 950) / 100; + } + } + } + + if (actionCommandStatus->barFillLevel < 0) { + actionCommandStatus->barFillLevel = 0; + } + + if (actionCommandStatus->barFillLevel > 10000) { + id = actionCommandStatus->hudElements[2]; + actionCommandStatus->barFillLevel = 10000; + actionCommandStatus->unk_68 = 1; + hud_element_set_render_pos(id, actionCommandStatus->hudElementX + 50, actionCommandStatus->hudElementY + 28); + hud_element_clear_flags(id, 2); + } + + battleStatus->unk_84 = actionCommandStatus->barFillLevel / 100; + sfx_adjust_env_sound_params(0x80000041, 0, 0, battleStatus->unk_84 * 12); + switch (partner->actorBlueprint->level) { + case 0: + if (battleStatus->unk_84 >= D_802A9964_427334[battleStatus->unk_85]) { + battleStatus->unk_85++; + } + if (battleStatus->unk_85 > 0 && (battleStatus->unk_84 < D_802A9964_427334[battleStatus->unk_85 - 1])) { + battleStatus->unk_85--; + } + break; + case 1: + if (battleStatus->unk_84 >= D_802A9974_427344[battleStatus->unk_85]) { + battleStatus->unk_85++; + } + if (battleStatus->unk_85 > 0 && (battleStatus->unk_84 < D_802A9974_427344[battleStatus->unk_85 - 1])) { + battleStatus->unk_85--; + } + break; + case 2: + if (battleStatus->unk_84 >= D_802A9988_427358[battleStatus->unk_85]) { + battleStatus->unk_85++; + } + if (battleStatus->unk_85 > 0 && (battleStatus->unk_84 < D_802A9988_427358[battleStatus->unk_85 - 1])) { + battleStatus->unk_85--; + } + break; + } + + if (actionCommandStatus->unk_54 != 0) { + actionCommandStatus->unk_54--; + return; + } + + if (actionCommandStatus->barFillLevel == 0) { + battleStatus->actionSuccess = -1; + } else { + battleStatus->actionSuccess = actionCommandStatus->barFillLevel / 100; + } + + cutoff = actionCommandStatus->mashMeterCutoffs[actionCommandStatus->mashMeterIntervals - 1]; + if (cutoff >= battleStatus->actionSuccess) { + battleStatus->unk_86 = -2; + } else { + battleStatus->unk_86 = 1; + } + + if (battleStatus->actionSuccess == 100) { + func_80269160(); + } + sfx_stop_sound(0x80000041); + btl_set_popup_duration(0); + actionCommandStatus->unk_54 = 5; + actionCommandStatus->state = 12; + break; + case 12: + if (actionCommandStatus->unk_54 != 0) { + actionCommandStatus->unk_54--; + return; + } + func_80268C9C(); + break; + } +} #include "common/UnkActionCommandFunc1.inc.c" diff --git a/src/battle/action_cmd/hammer.c b/src/battle/action_cmd/hammer.c index 2ddd39ff9b..8cbbbfe1b0 100644 --- a/src/battle/action_cmd/hammer.c +++ b/src/battle/action_cmd/hammer.c @@ -6,18 +6,23 @@ // icon indexes for hud elements extern HudScript HudScript_TimingBar1Chance; extern HudScript HudScript_TimingWait; +extern HudScript HudScript_TimingCharge1; +extern HudScript HudScript_TimingCharge2; +extern HudScript HudScript_TimingCharge3; extern HudScript HudScript_TimingCharge4a; extern HudScript HudScript_TimingCharge4b; extern HudScript HudScript_TimingCharge4c; extern HudScript HudScript_StickHoldLeft; +extern HudScript HudScript_StickTapNeutral; extern HudScript HudScript_RightOn; +extern HudScript HudScript_TimingReady; extern s32 D_802941E0; ApiStatus N(CreateHudElements)(Evt* script, s32 isInitialCall) { ActionCommandStatus* actionCommandStatus = &gActionCommandStatus; BattleStatus* battleStatus = &gBattleStatus; - s32 hudElement; + s32 id; battleStatus->unk_82 = 1; battleStatus->unk_434 = &D_802941E0; @@ -36,48 +41,48 @@ ApiStatus N(CreateHudElements)(Evt* script, s32 isInitialCall) { actionCommandStatus->unk_60 = 0; actionCommandStatus->hudElementY = 96; - hudElement = hud_element_create(&HudScript_TimingBar1Chance); - actionCommandStatus->hudElements[0] = hudElement; - hud_element_set_flags(hudElement, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); - hud_element_set_render_pos(hudElement, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY); - hud_element_set_render_depth(hudElement, 10); + id = hud_element_create(&HudScript_TimingBar1Chance); + actionCommandStatus->hudElements[0] = id; + hud_element_set_flags(id, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); + hud_element_set_render_pos(id, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY); + hud_element_set_render_depth(id, 10); - hudElement = hud_element_create(&HudScript_TimingWait); - actionCommandStatus->hudElements[1] = hudElement; - hud_element_set_flags(hudElement, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); - hud_element_set_render_pos(hudElement, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY); - hud_element_set_render_depth(hudElement, 0); + id = hud_element_create(&HudScript_TimingWait); + actionCommandStatus->hudElements[1] = id; + hud_element_set_flags(id, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); + hud_element_set_render_pos(id, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY); + hud_element_set_render_depth(id, 0); - hudElement = hud_element_create(&HudScript_TimingCharge4a); - actionCommandStatus->hudElements[2] = hudElement; - hud_element_set_flags(hudElement, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); - hud_element_set_render_pos(hudElement, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY); - hud_element_set_render_depth(hudElement, 0); + id = hud_element_create(&HudScript_TimingCharge4a); + actionCommandStatus->hudElements[2] = id; + hud_element_set_flags(id, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); + hud_element_set_render_pos(id, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY); + hud_element_set_render_depth(id, 0); - hudElement = hud_element_create(&HudScript_TimingCharge4b); - actionCommandStatus->hudElements[3] = hudElement; - hud_element_set_flags(hudElement, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); - hud_element_set_render_pos(hudElement, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY); - hud_element_set_render_depth(hudElement, 0); + id = hud_element_create(&HudScript_TimingCharge4b); + actionCommandStatus->hudElements[3] = id; + hud_element_set_flags(id, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); + hud_element_set_render_pos(id, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY); + hud_element_set_render_depth(id, 0); - hudElement = hud_element_create(&HudScript_TimingCharge4c); - actionCommandStatus->hudElements[4] = hudElement; - hud_element_set_flags(hudElement, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); - hud_element_set_render_pos(hudElement, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY); - hud_element_set_render_depth(hudElement, 0); + id = hud_element_create(&HudScript_TimingCharge4c); + actionCommandStatus->hudElements[4] = id; + hud_element_set_flags(id, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); + hud_element_set_render_pos(id, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY); + hud_element_set_render_depth(id, 0); - hudElement = hud_element_create(&HudScript_StickHoldLeft); - actionCommandStatus->hudElements[5] = hudElement; - hud_element_set_flags(hudElement, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); - hud_element_set_render_pos(hudElement, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY); - hud_element_set_render_depth(hudElement, 0); + id = hud_element_create(&HudScript_StickHoldLeft); + actionCommandStatus->hudElements[5] = id; + hud_element_set_flags(id, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); + hud_element_set_render_pos(id, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY); + hud_element_set_render_depth(id, 0); - hudElement = hud_element_create(&HudScript_RightOn); - actionCommandStatus->hudElements[6] = hudElement; - hud_element_set_flags(hudElement, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); - hud_element_set_render_pos(hudElement, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY); - hud_element_set_render_depth(hudElement, 0); - hud_element_set_alpha(hudElement, 0xFF); + id = hud_element_create(&HudScript_RightOn); + actionCommandStatus->hudElements[6] = id; + hud_element_set_flags(id, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); + hud_element_set_render_pos(id, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY); + hud_element_set_render_depth(id, 0); + hud_element_set_alpha(id, 0xFF); return ApiStatus_DONE2; } @@ -115,7 +120,215 @@ ApiStatus func_802A9258_422258(Evt* script, s32 isInitialCall) { return ApiStatus_DONE2; } -INCLUDE_ASM(s32, "battle/action_cmd/hammer", func_802A936C_42236C); +void func_802A936C_42236C(void) { + ActionCommandStatus* actionCommandStatus = &gActionCommandStatus; + BattleStatus* battleStatus = &gBattleStatus; + Actor* partner = battleStatus->partnerActor; + s32 id; + f32 temp_f20; + s32 phi_s0; + s32 new_var; + s32 a; + + switch (actionCommandStatus->state) { + case 0: + btl_set_popup_duration(99); + + id = actionCommandStatus->hudElements[0]; + if (actionCommandStatus->unk_61 != 0) { + hud_element_clear_flags(id, 2); + } + hud_element_set_alpha(id, 255); + + id = actionCommandStatus->hudElements[1]; + if (actionCommandStatus->unk_61 != 0) { + hud_element_clear_flags(id, 2); + } + hud_element_set_alpha(id, 255); + + id = actionCommandStatus->hudElements[2]; + if (actionCommandStatus->unk_61 != 0) { + hud_element_clear_flags(id, 2); + } + hud_element_set_alpha(id, 255); + + id = actionCommandStatus->hudElements[3]; + if (actionCommandStatus->unk_61 != 0) { + hud_element_clear_flags(id, 2); + } + hud_element_set_alpha(id, 255); + + id = actionCommandStatus->hudElements[4]; + if (actionCommandStatus->unk_61 != 0) { + hud_element_clear_flags(id, 2); + } + hud_element_set_alpha(id, 255); + + id = actionCommandStatus->hudElements[5]; + if (actionCommandStatus->unk_61 != 0) { + hud_element_clear_flags(id, 2); + } + hud_element_set_alpha(id, 255); + + actionCommandStatus->state = 1; + break; + case 1: + btl_set_popup_duration(99); + actionCommandStatus->hudElementX += 20; + if (actionCommandStatus->hudElementX > 50) { + actionCommandStatus->hudElementX = 50; + } + hud_element_set_render_pos(actionCommandStatus->hudElements[0], actionCommandStatus->hudElementX, actionCommandStatus->hudElementY); + hud_element_set_render_pos(actionCommandStatus->hudElements[1], actionCommandStatus->hudElementX + 21, actionCommandStatus->hudElementY - 3); + hud_element_set_render_pos(actionCommandStatus->hudElements[2], actionCommandStatus->hudElementX + 5, actionCommandStatus->hudElementY + 1); + hud_element_set_render_pos(actionCommandStatus->hudElements[3], actionCommandStatus->hudElementX - 7, actionCommandStatus->hudElementY + 1); + hud_element_set_render_pos(actionCommandStatus->hudElements[4], actionCommandStatus->hudElementX - 19, actionCommandStatus->hudElementY + 1); + hud_element_set_render_pos(actionCommandStatus->hudElements[5], actionCommandStatus->hudElementX, actionCommandStatus->hudElementY - 23); + if (actionCommandStatus->autoSucceed != 0) { + id = actionCommandStatus->hudElements[6]; + hud_element_set_render_pos(id, actionCommandStatus->hudElementX + 50, actionCommandStatus->hudElementY); + if (actionCommandStatus->unk_61 != 0) { + hud_element_clear_flags(id, 2); + break; + } + } + break; + case 10: + btl_set_popup_duration(99); + if (actionCommandStatus->unk_4E < 15) { + hud_element_set_alpha(actionCommandStatus->hudElements[0], 255); + hud_element_set_alpha(actionCommandStatus->hudElements[1], 255); + hud_element_set_alpha(actionCommandStatus->hudElements[2], 255); + hud_element_set_alpha(actionCommandStatus->hudElements[3], 255); + hud_element_set_alpha(actionCommandStatus->hudElements[4], 255); + hud_element_set_alpha(actionCommandStatus->hudElements[5], 255); + } + + if (actionCommandStatus->unk_4E != 0) { + actionCommandStatus->unk_4E--; + return; + } + + actionCommandStatus->unk_54 = 0; + if (!(battleStatus->currentButtonsDown & BUTTON_STICK_LEFT) && battleStatus->unk_83 < 2) { + actionCommandStatus->unk_5F = 1; + } + actionCommandStatus->state = 11; + case 11: + btl_set_popup_duration(99); + + if (battleStatus->unk_83 < 0) { + return; + } + + phi_s0 = battleStatus->unk_434[actionCommandStatus->unk_50]; + new_var = phi_s0 + 2; + temp_f20 = (actionCommandStatus->unk_52 - new_var) / 3; + + if (actionCommandStatus->unk_54 < temp_f20) { + hud_element_set_script(actionCommandStatus->hudElements[4], &HudScript_TimingCharge3); + battleStatus->unk_84 = 0; + if (actionCommandStatus->unk_54 == 0 && actionCommandStatus->unk_62 != 0) { + sfx_play_sound(SOUND_233); + } + } else if (actionCommandStatus->unk_54 < temp_f20 * 2) { + hud_element_set_script(actionCommandStatus->hudElements[3], &HudScript_TimingCharge2); + battleStatus->unk_84 = 1; + if (actionCommandStatus->unk_54 == temp_f20) { + if (actionCommandStatus->unk_62 != 0) { + sfx_play_sound(SOUND_233); + } + } + } else if (actionCommandStatus->unk_54 < temp_f20 * 3.0f) { + hud_element_set_script(actionCommandStatus->hudElements[2], &HudScript_TimingCharge1); + battleStatus->unk_84 = 2; + if (actionCommandStatus->unk_54 == temp_f20 * 2) { + if (actionCommandStatus->unk_62 != 0) { + sfx_play_sound(SOUND_233); + } + } + } + + if (actionCommandStatus->unk_54 == (~phi_s0 + actionCommandStatus->unk_52)) { + battleStatus->unk_84 = 3; + hud_element_set_script(actionCommandStatus->hudElements[1], &HudScript_TimingReady); + hud_element_set_script(actionCommandStatus->hudElements[5], &HudScript_StickTapNeutral); + if (actionCommandStatus->unk_62 != 0) { + sfx_play_sound(SOUND_234); + } + if (actionCommandStatus->autoSucceed != 0 && actionCommandStatus->autoSucceed != 2) { + actionCommandStatus->autoSucceed = 2; + actionCommandStatus->unk_54 = actionCommandStatus->unk_52 - 4; + } + } + + a = actionCommandStatus->unk_52 - actionCommandStatus->unk_54; + phi_s0 = battleStatus->unk_434[actionCommandStatus->unk_50] - a + 3; + if (phi_s0 < 0) { + phi_s0 = 0; + } + + if (!(battleStatus->currentButtonsDown & BUTTON_STICK_LEFT) && + phi_s0 == 0 && + actionCommandStatus->autoSucceed == 0 && + battleStatus->unk_83 < 2) + { + battleStatus->actionSuccess = -1; + battleStatus->unk_86 = -1; + func_80268C9C(); + } else { + s32 i; + s32 bufferPos; + + bufferPos = battleStatus->inputBufferPos; + bufferPos -= phi_s0; + if (bufferPos < 0) { + bufferPos += ARRAY_COUNT(battleStatus->holdInputBuffer); + } + + if (battleStatus->actionSuccess == 0) { + for (i = 0; i < phi_s0; i++, bufferPos++) { + if (bufferPos >= ARRAY_COUNT(battleStatus->holdInputBuffer)) { + bufferPos -= ARRAY_COUNT(battleStatus->holdInputBuffer); + } + + if (!(battleStatus->holdInputBuffer[bufferPos] & BUTTON_STICK_LEFT) || + actionCommandStatus->autoSucceed != 0) + { + battleStatus->actionSuccess = 1; + battleStatus->unk_86 = 1; + gBattleStatus.flags1 |= BS_FLAGS1_2000; + } + } + } + + if (battleStatus->unk_83 < 2 || actionCommandStatus->unk_54 != actionCommandStatus->unk_52) { + actionCommandStatus->unk_54++; + if (actionCommandStatus->unk_52 < actionCommandStatus->unk_54) { + if (battleStatus->actionSuccess == 0) { + battleStatus->actionSuccess = -1; + } + + if (battleStatus->actionSuccess == 1) { + func_80269160(); + } + + btl_set_popup_duration(0); + actionCommandStatus->unk_54 = 5; + actionCommandStatus->state = 12; + } + } + } + break; + case 12: + if (actionCommandStatus->unk_54 != 0) { + actionCommandStatus->unk_54--; + return; + } + func_80268C9C(); + break; + } +} void N(draw_hud_elements)(void) { hud_element_draw_clipped(gActionCommandStatus.hudElements[0]); diff --git a/src/battle/action_cmd/hurricane.c b/src/battle/action_cmd/hurricane.c index 58db12a289..99c6564047 100644 --- a/src/battle/action_cmd/hurricane.c +++ b/src/battle/action_cmd/hurricane.c @@ -6,13 +6,17 @@ extern s32 D_80294420; extern HudScript HudScript_BlueMeter; extern HudScript HudScript_AButton; +extern HudScript HudScript_MashAButton; extern HudScript HudScript_BButton; +extern HudScript HudScript_MashBButton1; extern HudScript HudScript_100pct; +s32 D_802A98E0_42FFC0[8] = { 0, 25, 50, 75, 75, 0, 0, 0 }; + ApiStatus func_802A9000_42F6E0(void) { ActionCommandStatus* actionCommandStatus = &gActionCommandStatus; BattleStatus* battleStatus = &gBattleStatus; - s32 hudElement; + s32 id; battleStatus->unk_82 = 5; battleStatus->unk_434 = &D_80294420; @@ -33,29 +37,29 @@ ApiStatus func_802A9000_42F6E0(void) { actionCommandStatus->unk_68 = 0; actionCommandStatus->hudElementY = 80; - hudElement = hud_element_create(&HudScript_AButton); - actionCommandStatus->hudElements[0] = hudElement; - hud_element_set_flags(hudElement, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); - hud_element_set_render_pos(hudElement, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY); - hud_element_set_render_depth(hudElement, 0); + id = hud_element_create(&HudScript_AButton); + actionCommandStatus->hudElements[0] = id; + hud_element_set_flags(id, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); + hud_element_set_render_pos(id, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY); + hud_element_set_render_depth(id, 0); - hudElement = hud_element_create(&HudScript_BButton); - actionCommandStatus->hudElements[2] = hudElement; - hud_element_set_flags(hudElement, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); - hud_element_set_render_pos(hudElement, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY); - hud_element_set_render_depth(hudElement, 0); + id = hud_element_create(&HudScript_BButton); + actionCommandStatus->hudElements[2] = id; + hud_element_set_flags(id, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); + hud_element_set_render_pos(id, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY); + hud_element_set_render_depth(id, 0); - hudElement = hud_element_create(&HudScript_BlueMeter); - actionCommandStatus->hudElements[1] = hudElement; - hud_element_set_render_pos(hudElement, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY + 28); - hud_element_set_render_depth(hudElement, 0); - hud_element_set_flags(hudElement, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); + id = hud_element_create(&HudScript_BlueMeter); + actionCommandStatus->hudElements[1] = id; + hud_element_set_render_pos(id, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY + 28); + hud_element_set_render_depth(id, 0); + hud_element_set_flags(id, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); - hudElement = hud_element_create(&HudScript_100pct); - actionCommandStatus->hudElements[4] = hudElement; - hud_element_set_render_pos(hudElement, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY + 28); - hud_element_set_render_depth(hudElement, 0); - hud_element_set_flags(hudElement, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); + id = hud_element_create(&HudScript_100pct); + actionCommandStatus->hudElements[4] = id; + hud_element_set_render_pos(id, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY + 28); + hud_element_set_render_depth(id, 0); + hud_element_set_flags(id, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); return ApiStatus_DONE2; } @@ -63,7 +67,7 @@ ApiStatus func_802A9000_42F6E0(void) { ApiStatus func_802A91A0_42F880(Evt* script, s32 isInitialCall) { ActionCommandStatus* actionCommandStatus = &gActionCommandStatus; BattleStatus* battleStatus = &gBattleStatus; - s32* args = script->ptrReadPos; + Bytecode* args = script->ptrReadPos; if (battleStatus->unk_83 == 0) { battleStatus->actionSuccess = 0; @@ -91,20 +95,237 @@ ApiStatus func_802A91A0_42F880(Evt* script, s32 isInitialCall) { return ApiStatus_DONE2; } -INCLUDE_ASM(s32, "battle/action_cmd/hurricane", func_802A92A0_42F980); +// Almost identical to func_802A92A0_42DCB0 (mega_shock) +void func_802A92A0_42F980(void) { + ActionCommandStatus* actionCommandStatus = &gActionCommandStatus; + BattleStatus* battleStatus = &gBattleStatus; + + s32 buttonsPushed; + s32 frameCount; + s32 buttonsAB; + s32 bufferPos; + s32 hudElement; + s32 mashMeterIndex; + s32 mashMeterCutoff; + s8 adjustedFillLevel; + + switch (actionCommandStatus->state) { + case 0: + btl_set_popup_duration(99); + + hudElement = actionCommandStatus->hudElements[0]; + if (actionCommandStatus->unk_61 != 0) { + hud_element_clear_flags(hudElement, HUD_ELEMENT_FLAGS_DISABLED); + } + hud_element_set_alpha(hudElement, 255); + + hudElement = actionCommandStatus->hudElements[2]; + if (actionCommandStatus->unk_61 != 0) { + hud_element_clear_flags(hudElement, HUD_ELEMENT_FLAGS_DISABLED); + } + hud_element_set_alpha(hudElement, 255); + + hudElement = actionCommandStatus->hudElements[1]; + hud_element_set_alpha(hudElement, 255); + if (actionCommandStatus->unk_61 != 0) { + hud_element_clear_flags(hudElement, HUD_ELEMENT_FLAGS_DISABLED); + } + + actionCommandStatus->state = 1; + break; + case 1: + btl_set_popup_duration(99); + if (actionCommandStatus->unk_6C != 0) { + actionCommandStatus->unk_6C--; + break; + } + + actionCommandStatus->hudElementX += 20; + if (actionCommandStatus->hudElementX > 50) { + actionCommandStatus->hudElementX = 50; + } + + hud_element_set_render_pos(actionCommandStatus->hudElements[0], actionCommandStatus->hudElementX - 17, + actionCommandStatus->hudElementY); + hud_element_set_render_pos(actionCommandStatus->hudElements[2], actionCommandStatus->hudElementX + 23, + actionCommandStatus->hudElementY); + hud_element_set_render_pos(actionCommandStatus->hudElements[1], actionCommandStatus->hudElementX, + actionCommandStatus->hudElementY + 28); + break; + case 10: + btl_set_popup_duration(99); + if (actionCommandStatus->unk_4E != 0) { + actionCommandStatus->unk_4E--; + break; + } + hud_element_set_script(actionCommandStatus->hudElements[0], &HudScript_MashAButton); + hud_element_set_script(actionCommandStatus->hudElements[2], &HudScript_MashBButton1); + actionCommandStatus->barFillLevel = 0; + actionCommandStatus->unk_5C = 0; + actionCommandStatus->unk_54 = actionCommandStatus->unk_52; + actionCommandStatus->state = 11; + // fallthrough + case 11: + btl_set_popup_duration(99); + if (actionCommandStatus->unk_68 == 0) { + s16 newFillLevel; + + if (actionCommandStatus->unk_64 != 0) { + s8 mashMeterIntervals = actionCommandStatus->mashMeterIntervals; + s16* mashMeterCutoffs = actionCommandStatus->mashMeterCutoffs; + s32 index; + + mashMeterCutoff = mashMeterCutoffs[mashMeterIntervals]; + index = actionCommandStatus->barFillLevel / mashMeterCutoff / 20; + newFillLevel = actionCommandStatus->barFillLevel - D_802A98E0_42FFC0[index]; + } else { + newFillLevel = actionCommandStatus->barFillLevel - 10; + } + + actionCommandStatus->barFillLevel = newFillLevel; + if (actionCommandStatus->barFillLevel < 0) { + actionCommandStatus->barFillLevel = 0; + } + } + + bufferPos = battleStatus->inputBufferPos; + bufferPos -= 2; + if (bufferPos < 0) { + bufferPos += ARRAY_COUNT(battleStatus->pushInputBuffer); + } + + buttonsPushed = 0; + frameCount = 1; + + while(frameCount >= 0) { + if (bufferPos >= ARRAY_COUNT(battleStatus->pushInputBuffer)) { + bufferPos -= ARRAY_COUNT(battleStatus->pushInputBuffer); + } + + buttonsPushed |= battleStatus->pushInputBuffer[bufferPos++]; + frameCount--; + } + + buttonsAB = BUTTON_A | BUTTON_B; + if ((buttonsPushed & buttonsAB) == buttonsAB) { + if (actionCommandStatus->unk_64 != 0) { + s32 fillLevel; + + fillLevel = actionCommandStatus->unk_64 * 650; + fillLevel = fillLevel / 100 * battleStatus->unk_434[actionCommandStatus->unk_50]; + + // Perplexing reuse of buttonsPushed here, but it fixes register allocation. Likely another + // subexpression from above can be put into a variable and reused instead. + // + // TODO: Find a way to avoid reusing buttonsPushed. + buttonsPushed = fillLevel / 100; + + actionCommandStatus->barFillLevel += buttonsPushed; + } else { + actionCommandStatus->barFillLevel += 100; + + if (actionCommandStatus->barFillLevel >= 500) { + actionCommandStatus->barFillLevel = 500; + } + } + + bufferPos = battleStatus->inputBufferPos; + bufferPos -= 2; + if (bufferPos < 0) { + bufferPos += ARRAY_COUNT(battleStatus->pushInputBuffer); + } + + frameCount = 1; + while (frameCount >= 0) { + if (bufferPos >= ARRAY_COUNT(battleStatus->pushInputBuffer)) { + bufferPos -= ARRAY_COUNT(battleStatus->pushInputBuffer); + } + + battleStatus->pushInputBuffer[bufferPos++] = 0; + frameCount--; + } + } + + if (actionCommandStatus->barFillLevel > 10000) { + hudElement = actionCommandStatus->hudElements[4]; + actionCommandStatus->barFillLevel = 10000; + actionCommandStatus->unk_68 = 1; + hud_element_set_render_pos(hudElement, actionCommandStatus->hudElementX + 50, + actionCommandStatus->hudElementY + 28); + hud_element_clear_flags(hudElement, HUD_ELEMENT_FLAGS_DISABLED); + } + + adjustedFillLevel = actionCommandStatus->barFillLevel / 100; + + battleStatus->unk_84 = adjustedFillLevel; + + if (actionCommandStatus->unk_54 == 0) { + s16 threshold; + + // Again, reusing buttonsPushed specifically for reg-alloc. See above. + // + // TODO: Find a way to avoid reusing buttonsPushed. + buttonsPushed = actionCommandStatus->barFillLevel; + if (actionCommandStatus->unk_64 == 0) { + buttonsPushed = 0; + } + + if (buttonsPushed == 0) { + battleStatus->actionSuccess = -1; + } else { + battleStatus->actionSuccess = buttonsPushed / 100; + } + + mashMeterIndex = actionCommandStatus->mashMeterIntervals - 1; + mashMeterCutoff = actionCommandStatus->mashMeterCutoffs[mashMeterIndex]; + threshold = mashMeterCutoff / 2; + + if (battleStatus->unk_84 <= threshold) { + battleStatus->unk_86 = -4; + } else { + battleStatus->unk_86 = 1; + } + + if (battleStatus->actionSuccess == 100) { + func_80269160(); + } + + btl_set_popup_duration(0); + actionCommandStatus->unk_54 = 5; + actionCommandStatus->state = 12; + } else { + actionCommandStatus->unk_54 -= 1; + } + break; + case 12: + if (actionCommandStatus->unk_64 == 0) { + actionCommandStatus->barFillLevel -= 100; + if (actionCommandStatus->barFillLevel < 0) { + actionCommandStatus->barFillLevel = 0; + } + } + + if (actionCommandStatus->unk_54 != 0) { + actionCommandStatus->unk_54 -= 1; + } else { + func_80268C9C(); + } + break; + } +} void func_802A97AC_42FE8C(void) { ActionCommandStatus* actionCommandStatus = &gActionCommandStatus; s32 hudY; s32 hudX; - s32 hudElement; + s32 id; hud_element_draw_clipped(actionCommandStatus->hudElements[0]); hud_element_draw_clipped(actionCommandStatus->hudElements[2]); - hudElement = actionCommandStatus->hudElements[1]; - hud_element_draw_clipped(hudElement); - hud_element_get_render_pos(hudElement, &hudX, &hudY); + id = actionCommandStatus->hudElements[1]; + hud_element_draw_clipped(id); + hud_element_get_render_pos(id, &hudX, &hudY); if (actionCommandStatus->unk_68 == 0) { func_80268770(hudX, hudY, actionCommandStatus->barFillLevel / 100); diff --git a/src/battle/action_cmd/mega_shock.c b/src/battle/action_cmd/mega_shock.c index 7db3aae63b..2a63a75069 100644 --- a/src/battle/action_cmd/mega_shock.c +++ b/src/battle/action_cmd/mega_shock.c @@ -9,22 +9,10 @@ extern HudScript HudScript_BButton; extern HudScript HudScript_100pct; extern s32 D_802943C0; -extern HudScript HudScript_MashAButton; -extern HudScript HudScript_MashBButton1; +extern HudScript HudScript_MashAButton[]; +extern HudScript HudScript_MashBButton1[]; -typedef struct structD_802A9930_42E340 { - /* 0x00 */ s16 unk_0; - /* 0x08 */ u16 unk_8; -} structD_802A9930_42E340; - -structD_802A9930_42E340 D_802A9930_42E340[] = { - { 0, 0, }, - { 0, 0x19 }, - { 0, 0x32 }, - { 0, 0x4B }, - { 0, 0x4B }, - { 0, 0 }, -}; +s32 D_802A9930_42E340[] = { 0, 25, 50, 75, 75, 0, 0, 0 }; ApiStatus func_802A9000_42DA10(Evt* script, s32 isInitialCall) { BattleStatus* battleStatus = &gBattleStatus; @@ -175,8 +163,8 @@ void func_802A92A0_42DCB0(void) { actionCommandStatus->unk_4E--; break; } - hud_element_set_script(actionCommandStatus->hudElements[0], &HudScript_MashAButton); - hud_element_set_script(actionCommandStatus->hudElements[2], &HudScript_MashBButton1); + hud_element_set_script(actionCommandStatus->hudElements[0], HudScript_MashAButton); + hud_element_set_script(actionCommandStatus->hudElements[2], HudScript_MashBButton1); actionCommandStatus->barFillLevel = 0; actionCommandStatus->unk_5C = 0; actionCommandStatus->unk_54 = actionCommandStatus->unk_52; @@ -194,7 +182,7 @@ void func_802A92A0_42DCB0(void) { mashMeterCutoff = mashMeterCutoffs[mashMeterIntervals]; index = actionCommandStatus->barFillLevel / mashMeterCutoff / 20; - newFillLevel = actionCommandStatus->barFillLevel - D_802A9930_42E340[index].unk_8; + newFillLevel = actionCommandStatus->barFillLevel - D_802A9930_42E340[index]; } else { newFillLevel = actionCommandStatus->barFillLevel - 10; } diff --git a/src/battle/action_cmd/power_shock.c b/src/battle/action_cmd/power_shock.c index 34c2fac240..e8440239b5 100644 --- a/src/battle/action_cmd/power_shock.c +++ b/src/battle/action_cmd/power_shock.c @@ -9,7 +9,7 @@ extern HudScript HudScript_MashAButton; extern HudScript HudScript_RunAwayOK; extern HudScript HudScript_100pct; extern s32 D_802943A0[]; -extern s16 D_802A9AA2_42D9B2[]; +s32 D_802A9AA0_42D9B0[] = { 0, 25, 50, 75, 75, 0, 0, 0}; extern s32 D_802A9B00; void func_80268834(s32, s32, s32, s32); @@ -17,10 +17,10 @@ void func_80268834(s32, s32, s32, s32); ApiStatus N(CreateHudElements)(Evt* script, s32 isInitialCall) { ActionCommandStatus* actionCommandStatus = &gActionCommandStatus; BattleStatus* battleStatus = &gBattleStatus; - s32 hudElement; + s32 id; s32 temp_v1; - battleStatus->unk_82 = 0x64; + battleStatus->unk_82 = 100; battleStatus->unk_434 = D_802943A0; if (battleStatus->unk_83 == 0) { @@ -42,29 +42,29 @@ ApiStatus N(CreateHudElements)(Evt* script, s32 isInitialCall) { D_802A9B00 = 0; actionCommandStatus->hudElementY = 80; - hudElement = hud_element_create(&HudScript_AButton); - actionCommandStatus->hudElements[0] = hudElement; - hud_element_set_flags(hudElement, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); - hud_element_set_render_pos(hudElement, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY); - hud_element_set_render_depth(hudElement, 0); + id = hud_element_create(&HudScript_AButton); + actionCommandStatus->hudElements[0] = id; + hud_element_set_flags(id, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); + hud_element_set_render_pos(id, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY); + hud_element_set_render_depth(id, 0); - hudElement = hud_element_create(&HudScript_BlueMeter); - actionCommandStatus->hudElements[1] = hudElement; - hud_element_set_render_pos(hudElement, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY + 28); - hud_element_set_render_depth(hudElement, 0); - hud_element_set_flags(hudElement, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); + id = hud_element_create(&HudScript_BlueMeter); + actionCommandStatus->hudElements[1] = id; + hud_element_set_render_pos(id, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY + 28); + hud_element_set_render_depth(id, 0); + hud_element_set_flags(id, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); - hudElement = hud_element_create(&HudScript_100pct); - actionCommandStatus->hudElements[3] = hudElement; - hud_element_set_render_pos(hudElement, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY + 28); - hud_element_set_render_depth(hudElement, 0); - hud_element_set_flags(hudElement, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); + id = hud_element_create(&HudScript_100pct); + actionCommandStatus->hudElements[3] = id; + hud_element_set_render_pos(id, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY + 28); + hud_element_set_render_depth(id, 0); + hud_element_set_flags(id, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); - hudElement = hud_element_create(&HudScript_RunAwayOK); - actionCommandStatus->hudElements[4] = hudElement; - hud_element_set_render_pos(hudElement, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY + 28); - hud_element_set_render_depth(hudElement, 0); - hud_element_set_flags(hudElement, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); + id = hud_element_create(&HudScript_RunAwayOK); + actionCommandStatus->hudElements[4] = id; + hud_element_set_render_pos(id, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY + 28); + hud_element_set_render_depth(id, 0); + hud_element_set_flags(id, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); temp_v1 = (100 - actionCommandStatus->unk_46) * 60; temp_v1 /= 100; @@ -104,29 +104,28 @@ ApiStatus func_802A9210_42D120(Evt* script, s32 isInitialCall) { void func_802A9310_42D220(void) { ActionCommandStatus* actionCommandStatus = &gActionCommandStatus; BattleStatus* battleStatus = &gBattleStatus; - s32 hudElement; - s32 temp_lo; + s32 id; s32 temp_v0_2; - s16 phi_v0; s32 phi_a1; + s32 cutoff; switch (actionCommandStatus->state) { case 0: btl_set_popup_duration(99); - hudElement = actionCommandStatus->hudElements[0]; + id = actionCommandStatus->hudElements[0]; if (actionCommandStatus->unk_61 != 0) { - hud_element_clear_flags(hudElement, HUD_ELEMENT_FLAGS_DISABLED); + hud_element_clear_flags(id, HUD_ELEMENT_FLAGS_DISABLED); } - hud_element_set_alpha(hudElement, 0xFF); - hudElement = actionCommandStatus->hudElements[1]; - hud_element_set_alpha(hudElement, 0xFF); + hud_element_set_alpha(id, 255); + id = actionCommandStatus->hudElements[1]; + hud_element_set_alpha(id, 255); if (actionCommandStatus->unk_61 != 0) { - hud_element_clear_flags(hudElement, HUD_ELEMENT_FLAGS_DISABLED); + hud_element_clear_flags(id, HUD_ELEMENT_FLAGS_DISABLED); } - hudElement = actionCommandStatus->hudElements[4]; - hud_element_set_alpha(hudElement, 0xFF); + id = actionCommandStatus->hudElements[4]; + hud_element_set_alpha(id, 255); if (actionCommandStatus->unk_61 != 0) { - hud_element_clear_flags(hudElement, HUD_ELEMENT_FLAGS_DISABLED); + hud_element_clear_flags(id, HUD_ELEMENT_FLAGS_DISABLED); } actionCommandStatus->state = 1; break; @@ -148,8 +147,9 @@ void func_802A9310_42D220(void) { actionCommandStatus->hudElementX, actionCommandStatus->hudElementY + 28); - temp_v0_2 = (((100 - actionCommandStatus->unk_46) * 60) / 100); - temp_v0_2 = 29 - temp_v0_2; + cutoff = 100 - actionCommandStatus->unk_46; + cutoff = (cutoff * 60) / 100; + temp_v0_2 = 29 - cutoff; hud_element_set_render_pos( actionCommandStatus->hudElements[4], actionCommandStatus->hudElementX - temp_v0_2, @@ -167,7 +167,7 @@ void func_802A9310_42D220(void) { actionCommandStatus->unk_5C = 0; D_802A9B00 = 1; actionCommandStatus->unk_54 = actionCommandStatus->unk_52; - sfx_play_sound_with_params(0x80000041, 0U, 0U, 0U); + sfx_play_sound_with_params(0x80000041, 0, 0, 0); actionCommandStatus->state = 11; // fallthrough case 11: @@ -175,47 +175,50 @@ void func_802A9310_42D220(void) { if (actionCommandStatus->unk_68 == 0) { if (actionCommandStatus->unk_64 != 0) { - temp_lo = actionCommandStatus->mashMeterCutoffs[actionCommandStatus->mashMeterIntervals]; - temp_lo = actionCommandStatus->unk_44 / temp_lo; - phi_v0 = actionCommandStatus->unk_44 - D_802A9AA2_42D9B2[temp_lo / 20 * 2]; + cutoff = actionCommandStatus->mashMeterCutoffs[actionCommandStatus->mashMeterIntervals]; + actionCommandStatus->barFillLevel -= D_802A9AA0_42D9B0[actionCommandStatus->barFillLevel / cutoff / 20]; + if (actionCommandStatus->barFillLevel < 0) { + actionCommandStatus->barFillLevel = 0; + } } else { - phi_v0 = actionCommandStatus->unk_44 - 10; - } - actionCommandStatus->unk_44 = phi_v0; - if (actionCommandStatus->unk_44 < 0) { - actionCommandStatus->unk_44 = 0; - } - } - - if ((battleStatus->currentButtonsPressed & 0x8000) != 0) { - if (actionCommandStatus->unk_64 != 0) { - // unk_434 = array of scaling values based on attack difficulty (unk_50). - actionCommandStatus->unk_44 += - battleStatus->unk_434[actionCommandStatus->unk_50] * 850 / 100 * actionCommandStatus->unk_64 / 100; - } else { - actionCommandStatus->unk_44 += 100; - if (actionCommandStatus->unk_44 >= 500) { - actionCommandStatus->unk_44 = 500; + actionCommandStatus->barFillLevel -= 10; + if (actionCommandStatus->barFillLevel < 0) { + actionCommandStatus->barFillLevel = 0; } } } - if (actionCommandStatus->unk_44 > 10000) { - hudElement = actionCommandStatus->hudElements[3]; - actionCommandStatus->unk_44 = 10000; - actionCommandStatus->unk_68 = 1; - hud_element_set_render_pos( - hudElement, - actionCommandStatus->hudElementX + 50, - actionCommandStatus->hudElementY + 28); - hud_element_clear_flags(hudElement, HUD_ELEMENT_FLAGS_DISABLED); + if (battleStatus->currentButtonsPressed & BUTTON_A) { + phi_a1 = actionCommandStatus->unk_64; + // unk_434 = array of scaling values based on attack difficulty (unk_50). + if (phi_a1 != 0) { + s32 a; + a = battleStatus->unk_434[actionCommandStatus->unk_50]; + actionCommandStatus->barFillLevel += a * 850 / 100 * phi_a1 / 100; + } else { + actionCommandStatus->barFillLevel += 100; + if (actionCommandStatus->barFillLevel >= 500) { + actionCommandStatus->barFillLevel = 500; + } + } } - battleStatus->unk_84 = actionCommandStatus->unk_44 / 100; + if (actionCommandStatus->barFillLevel > 10000) { + id = actionCommandStatus->hudElements[3]; + actionCommandStatus->barFillLevel = 10000; + actionCommandStatus->unk_68 = 1; + hud_element_set_render_pos( + id, + actionCommandStatus->hudElementX + 50, + actionCommandStatus->hudElementY + 28); + hud_element_clear_flags(id, HUD_ELEMENT_FLAGS_DISABLED); + } + + battleStatus->unk_84 = actionCommandStatus->barFillLevel / 100; sfx_adjust_env_sound_params(0x80000041, 0, 0, battleStatus->unk_84 * 12); if (actionCommandStatus->unk_54 == 0) { - phi_a1 = actionCommandStatus->unk_44; + phi_a1 = actionCommandStatus->barFillLevel; if (actionCommandStatus->unk_64 == 0) { phi_a1 = 0; } @@ -229,7 +232,8 @@ void func_802A9310_42D220(void) { battleStatus->actionSuccess = 0; } - if ((actionCommandStatus->mashMeterCutoffs[actionCommandStatus->mashMeterIntervals - 1] / 2) < battleStatus->unk_84) { + cutoff = actionCommandStatus->mashMeterCutoffs[actionCommandStatus->mashMeterIntervals - 1]; + if (cutoff / 2 < battleStatus->unk_84) { battleStatus->unk_86 = 1; } else { battleStatus->unk_86 = -4; @@ -249,9 +253,9 @@ void func_802A9310_42D220(void) { break; case 12: if (actionCommandStatus->unk_64 == 0) { - actionCommandStatus->unk_44 -= 100; - if (actionCommandStatus->unk_44 < 0) { - actionCommandStatus->unk_44 = 0; + actionCommandStatus->barFillLevel -= 100; + if (actionCommandStatus->barFillLevel < 0) { + actionCommandStatus->barFillLevel = 0; } } if (actionCommandStatus->unk_54 != 0) { @@ -291,7 +295,7 @@ void N(draw_hud_elements)(void) { ActionCommandStatus* actionCommandStatus = &gActionCommandStatus; s32 y; s32 x; - s32 hudElement; + s32 id; s32 temp_a1; s32 temp_v0; @@ -301,11 +305,11 @@ void N(draw_hud_elements)(void) { hud_element_set_render_pos(actionCommandStatus->hudElements[4], actionCommandStatus->hudElementX - temp_a1, actionCommandStatus->hudElementY + 17); hud_element_draw_clipped(actionCommandStatus->hudElements[0]); - hudElement = actionCommandStatus->hudElements[1]; - hud_element_draw_clipped(hudElement); - hud_element_get_render_pos(hudElement, &x, &y); + id = actionCommandStatus->hudElements[1]; + hud_element_draw_clipped(id); + hud_element_get_render_pos(id, &x, &y); // Redundant call, but needed to match. - hud_element_get_render_pos(hudElement, &x, &y); + hud_element_get_render_pos(id, &x, &y); if (D_802A9B00 == 0) { func_80268798(x, y, actionCommandStatus->barFillLevel / 100, 1); @@ -314,8 +318,8 @@ void N(draw_hud_elements)(void) { } else { func_80268834(x, y, actionCommandStatus->barFillLevel / 100, 4); } - hudElement = actionCommandStatus->hudElements[3]; - hud_element_draw_clipped(hudElement); + id = actionCommandStatus->hudElements[3]; + hud_element_draw_clipped(id); } void N(free_hud_elements)(void) { diff --git a/src/battle/action_cmd/smack.c b/src/battle/action_cmd/smack.c index f400dd1a0c..dd065f81a4 100644 --- a/src/battle/action_cmd/smack.c +++ b/src/battle/action_cmd/smack.c @@ -156,13 +156,11 @@ void func_802A9298_42E638(void) { } if (actionCommandStatus->unk_68 == 0) { - if (battleStatus->currentButtonsDown & BUTTON_STICK_LEFT) { actionCommandStatus->unk_5C = TRUE; } if (!(battleStatus->currentButtonsDown & BUTTON_STICK_LEFT) && actionCommandStatus->unk_5C) { - s16 phi_v1; if (actionCommandStatus->unk_64 == 0) { actionCommandStatus->barFillLevel += battleStatus->unk_434[actionCommandStatus->unk_50] * 13; } else { diff --git a/src/battle/action_cmd/spiny_surge.c b/src/battle/action_cmd/spiny_surge.c index b26badbd9f..781c54fdd9 100644 --- a/src/battle/action_cmd/spiny_surge.c +++ b/src/battle/action_cmd/spiny_surge.c @@ -6,12 +6,16 @@ extern s32 D_80294400; extern HudScript HudScript_BlueMeter; extern HudScript HudScript_StickNeutral; +extern HudScript HudScript_StickMashLeft; extern HudScript HudScript_100pct; +s32 D_802A9860_42F680[8] = { 0, 25, 50, 75, 75, 0, 0, 0 }; +extern s32 D_802A98C0; // bss? + ApiStatus func_802A9000_42EE20(void) { ActionCommandStatus* actionCommandStatus = &gActionCommandStatus; BattleStatus* battleStatus = &gBattleStatus; - s32 hudElement; + s32 id; battleStatus->unk_82 = 0x10; battleStatus->unk_434 = &D_80294400; @@ -35,23 +39,23 @@ ApiStatus func_802A9000_42EE20(void) { actionCommandStatus->hudElementX = -48; actionCommandStatus->hudElementY = 80; - hudElement = hud_element_create(&HudScript_StickNeutral); - actionCommandStatus->hudElements[0] = hudElement; - hud_element_set_render_pos(hudElement, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY); - hud_element_set_render_depth(hudElement, 0); - hud_element_set_flags(hudElement, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); + id = hud_element_create(&HudScript_StickNeutral); + actionCommandStatus->hudElements[0] = id; + hud_element_set_render_pos(id, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY); + hud_element_set_render_depth(id, 0); + hud_element_set_flags(id, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); - hudElement = hud_element_create(&HudScript_BlueMeter); - actionCommandStatus->hudElements[1] = hudElement; - hud_element_set_render_pos(hudElement, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY + 28); - hud_element_set_render_depth(hudElement, 0); - hud_element_set_flags(hudElement, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); + id = hud_element_create(&HudScript_BlueMeter); + actionCommandStatus->hudElements[1] = id; + hud_element_set_render_pos(id, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY + 28); + hud_element_set_render_depth(id, 0); + hud_element_set_flags(id, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); - hudElement = hud_element_create(&HudScript_100pct); - actionCommandStatus->hudElements[2] = hudElement; - hud_element_set_render_pos(hudElement, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY + 28); - hud_element_set_render_depth(hudElement, 0); - hud_element_set_flags(hudElement, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); + id = hud_element_create(&HudScript_100pct); + actionCommandStatus->hudElements[2] = id; + hud_element_set_render_pos(id, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY + 28); + hud_element_set_render_depth(id, 0); + hud_element_set_flags(id, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); return ApiStatus_DONE2; } @@ -59,7 +63,7 @@ ApiStatus func_802A9000_42EE20(void) { ApiStatus func_802A916C_42EF8C(Evt* script, s32 isInitialCall) { ActionCommandStatus* actionCommandStatus = &gActionCommandStatus; BattleStatus* battleStatus = &gBattleStatus; - s32* args = script->ptrReadPos; + Bytecode* args = script->ptrReadPos; if (battleStatus->unk_83 == 0) { battleStatus->actionSuccess = 0; @@ -85,7 +89,152 @@ ApiStatus func_802A916C_42EF8C(Evt* script, s32 isInitialCall) { return ApiStatus_DONE2; } -INCLUDE_ASM(s32, "battle/action_cmd/spiny_surge", func_802A9254_42F074); +void func_802A9254_42F074(void) { + ActionCommandStatus* actionCommandStatus = &gActionCommandStatus; + BattleStatus* battleStatus = &gBattleStatus; + s32 id; + s32 cutoff; + + switch (actionCommandStatus->state) { + case 0: + btl_set_popup_duration(99); + + id = actionCommandStatus->hudElements[0]; + hud_element_set_alpha(id, 255); + if (actionCommandStatus->unk_61) { + hud_element_clear_flags(id, HUD_ELEMENT_FLAGS_DISABLED); + } + + id = actionCommandStatus->hudElements[1]; + hud_element_set_alpha(id, 255); + if (actionCommandStatus->unk_61) { + hud_element_clear_flags(id, HUD_ELEMENT_FLAGS_DISABLED); + } + + actionCommandStatus->state = 1; + break; + case 1: + btl_set_popup_duration(99); + + if (actionCommandStatus->unk_6C != 0) { + actionCommandStatus->unk_6C--; + break; + } + + actionCommandStatus->hudElementX += 20; + if (actionCommandStatus->hudElementX > 50) { + actionCommandStatus->hudElementX = 50; + } + + hud_element_set_render_pos(actionCommandStatus->hudElements[0], actionCommandStatus->hudElementX, + actionCommandStatus->hudElementY); + hud_element_set_render_pos(actionCommandStatus->hudElements[1], actionCommandStatus->hudElementX, + actionCommandStatus->hudElementY + 28); + break; + case 10: + btl_set_popup_duration(99); + + if (actionCommandStatus->unk_4E != 0) { + actionCommandStatus->unk_4E--; + break; + } + + hud_element_set_script(actionCommandStatus->hudElements[0], &HudScript_StickMashLeft); + actionCommandStatus->unk_5C = 0; + D_802A98C0 = 0; + actionCommandStatus->unk_54 = actionCommandStatus->unk_52; + sfx_play_sound_with_params(0x80000041, 0, 0, 0); + actionCommandStatus->state = 11; + + // fallthrough + case 11: + btl_set_popup_duration(99); + if (actionCommandStatus->unk_68 == 0) { + cutoff = actionCommandStatus->mashMeterCutoffs[actionCommandStatus->mashMeterIntervals]; + actionCommandStatus->barFillLevel -= + D_802A9860_42F680[actionCommandStatus->barFillLevel / cutoff / 20]; + + if (actionCommandStatus->barFillLevel < 0) { + actionCommandStatus->barFillLevel = 0; + } + + if (actionCommandStatus->unk_68 == 0) { + if (battleStatus->currentButtonsPressed & BUTTON_STICK_LEFT) { + actionCommandStatus->barFillLevel += (battleStatus->unk_434[actionCommandStatus->unk_50] * 1250) / 100; + } + if (battleStatus->currentButtonsPressed & BUTTON_STICK_RIGHT) { + actionCommandStatus->barFillLevel -= (battleStatus->unk_434[actionCommandStatus->unk_50] * 1250) / 100; + } + } + } + + if (actionCommandStatus->barFillLevel < 0) { + actionCommandStatus->barFillLevel = 0; + } + + if (actionCommandStatus->barFillLevel > 10000) { + id = actionCommandStatus->hudElements[2]; + actionCommandStatus->barFillLevel = 10000; + actionCommandStatus->unk_68 = 1; + hud_element_set_render_pos(id, actionCommandStatus->hudElementX + 50, actionCommandStatus->hudElementY + 28); + hud_element_clear_flags(id, 2); + } + + if (D_802A98C0 & BUTTON_STICK_LEFT) { + actionCommandStatus->unk_5C = 1; + } + if (D_802A98C0 & BUTTON_STICK_RIGHT) { + actionCommandStatus->unk_5C = -1; + } + + if (!(D_802A98C0 & BUTTON_STICK_LEFT) && + !(battleStatus->currentButtonsDown & BUTTON_STICK_RIGHT) && + actionCommandStatus->unk_5C == 1) + { + actionCommandStatus->unk_5C = 2; + } + battleStatus->actionSuccess = actionCommandStatus->barFillLevel / 100; + D_802A98C0 = battleStatus->currentButtonsDown; + battleStatus->unk_84 = actionCommandStatus->unk_5C; + + sfx_adjust_env_sound_params(0x80000041, 0, 0, battleStatus->actionSuccess * 12); + + if (actionCommandStatus->unk_54 != 0) { + actionCommandStatus->unk_54--; + return; + } + + if (actionCommandStatus->barFillLevel == 0) { + battleStatus->actionSuccess = -1; + } else { + battleStatus->actionSuccess = actionCommandStatus->barFillLevel / 100; + } + + cutoff = actionCommandStatus->mashMeterCutoffs[actionCommandStatus->mashMeterIntervals - 1]; + if (cutoff >= battleStatus->actionSuccess) { + battleStatus->unk_86 = -2; + } else { + battleStatus->unk_86 = 1; + } + + if (battleStatus->actionSuccess == 100) { + func_80269160(); + } + + btl_set_popup_duration(0); + sfx_stop_sound(0x80000041); + actionCommandStatus->unk_54 = 5; + actionCommandStatus->state = 12; + break; + case 12: + if (actionCommandStatus->unk_54 != 0) { + actionCommandStatus->unk_54--; + } else { + func_80268C9C(); + } + break; + } +} #include "common/UnkActionCommandFunc1.inc.c" diff --git a/src/battle/action_cmd/spook.c b/src/battle/action_cmd/spook.c index 25845f6970..54a88dc5ae 100644 --- a/src/battle/action_cmd/spook.c +++ b/src/battle/action_cmd/spook.c @@ -5,13 +5,16 @@ extern HudScript HudScript_BlueMeter; extern HudScript HudScript_StickNeutral; +extern HudScript HudScript_StickMashLeft; extern HudScript HudScript_100pct; extern s32 D_80294440; +s32 D_802A9920_430940[8] = { 0, 25, 50, 75, 75, 0, 0, 0 }; + ApiStatus func_802A9000_430020(void) { ActionCommandStatus* actionCommandStatus = &gActionCommandStatus; BattleStatus* battleStatus = &gBattleStatus; - s32 hudElement; + s32 id; battleStatus->unk_82 = 100; battleStatus->unk_434 = &D_80294440; @@ -34,30 +37,196 @@ ApiStatus func_802A9000_430020(void) { actionCommandStatus->hudElementX = -48; actionCommandStatus->hudElementY = 80; - hudElement = hud_element_create(&HudScript_StickNeutral); - actionCommandStatus->hudElements[0] = hudElement; - hud_element_set_render_pos(hudElement, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY); - hud_element_set_render_depth(hudElement, 0); - hud_element_set_flags(hudElement, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); + id = hud_element_create(&HudScript_StickNeutral); + actionCommandStatus->hudElements[0] = id; + hud_element_set_render_pos(id, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY); + hud_element_set_render_depth(id, 0); + hud_element_set_flags(id, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); - hudElement = hud_element_create(&HudScript_BlueMeter); - actionCommandStatus->hudElements[1] = hudElement; - hud_element_set_render_pos(hudElement, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY + 28); - hud_element_set_render_depth(hudElement, 0); - hud_element_set_flags(hudElement, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); + id = hud_element_create(&HudScript_BlueMeter); + actionCommandStatus->hudElements[1] = id; + hud_element_set_render_pos(id, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY + 28); + hud_element_set_render_depth(id, 0); + hud_element_set_flags(id, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); - hudElement = hud_element_create(&HudScript_100pct); - actionCommandStatus->hudElements[2] = hudElement; - hud_element_set_render_pos(hudElement, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY + 28); - hud_element_set_render_depth(hudElement, 0); - hud_element_set_flags(hudElement, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); + id = hud_element_create(&HudScript_100pct); + actionCommandStatus->hudElements[2] = id; + hud_element_set_render_pos(id, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY + 28); + hud_element_set_render_depth(id, 0); + hud_element_set_flags(id, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); return ApiStatus_DONE2; } #include "common/MashActionCommandInit.inc.c" -INCLUDE_ASM(s32, "battle/action_cmd/spook", func_802A9298_4302B8); +void func_802A9298_4302B8(void) { + ActionCommandStatus* actionCommandStatus = &gActionCommandStatus; + BattleStatus* battleStatus = &gBattleStatus; + s32 id; + s32 cutoff; + s32 fillLevel; + + switch (actionCommandStatus->state) { + case 0: + btl_set_popup_duration(99); + + id = actionCommandStatus->hudElements[0]; + hud_element_set_alpha(id, 255); + if (actionCommandStatus->unk_61 != 0) { + hud_element_clear_flags(id, 2); + } + + id = actionCommandStatus->hudElements[1]; + hud_element_set_alpha(id, 255); + if (actionCommandStatus->unk_61 != 0) { + hud_element_clear_flags(id, 2); + } + + actionCommandStatus->state = 1; + break; + case 1: + btl_set_popup_duration(99); + actionCommandStatus->hudElementX += 20; + if (actionCommandStatus->hudElementX > 50) { + actionCommandStatus->hudElementX = 50; + } + hud_element_set_render_pos(actionCommandStatus->hudElements[0], actionCommandStatus->hudElementX, actionCommandStatus->hudElementY); + hud_element_set_render_pos(actionCommandStatus->hudElements[1], actionCommandStatus->hudElementX, actionCommandStatus->hudElementY + 28); + break; + case 10: + btl_set_popup_duration(99); + if (actionCommandStatus->unk_4E != 0) { + actionCommandStatus->unk_4E--; + return; + } + hud_element_set_script(actionCommandStatus->hudElements[0], &HudScript_StickMashLeft); + actionCommandStatus->barFillLevel = 0; + battleStatus->unk_84 = 0; + actionCommandStatus->unk_5C = 0; + actionCommandStatus->unk_54 = actionCommandStatus->unk_52; + sfx_play_sound_with_params(0x80000041, 0, 0, 0); + actionCommandStatus->state = 11; + case 11: + btl_set_popup_duration(99); + if (actionCommandStatus->unk_68 == 0) { + if (actionCommandStatus->unk_64 != 0) { + cutoff = actionCommandStatus->mashMeterCutoffs[actionCommandStatus->mashMeterIntervals]; + + actionCommandStatus->barFillLevel -= D_802A9920_430940[actionCommandStatus->barFillLevel / cutoff / 20]; + if (actionCommandStatus->barFillLevel < 0) { + actionCommandStatus->barFillLevel = 0; + } + } else { + actionCommandStatus->barFillLevel -= 10; + if (actionCommandStatus->barFillLevel < 0) { + actionCommandStatus->barFillLevel = 0; + } + } + + if (actionCommandStatus->unk_68 == 0) { + if (actionCommandStatus->unk_64 != 0) { + + if (battleStatus->currentButtonsDown & BUTTON_STICK_LEFT) { + actionCommandStatus->unk_5C = TRUE; + } + + if (!(battleStatus->currentButtonsDown & BUTTON_STICK_LEFT) && actionCommandStatus->unk_5C) { + s32 a = battleStatus->unk_434[actionCommandStatus->unk_50]; + s32 b = actionCommandStatus->unk_64 * 850; + + actionCommandStatus->barFillLevel += (a * b) / 10000; + actionCommandStatus->unk_5C = 0; + } + + if (battleStatus->currentButtonsPressed & BUTTON_STICK_RIGHT) { + s32 a = battleStatus->unk_434[actionCommandStatus->unk_50]; + s32 b = actionCommandStatus->unk_64 * 850; + + actionCommandStatus->barFillLevel -= (a * b) / 10000; + } + } else { + if (battleStatus->currentButtonsDown & BUTTON_STICK_LEFT) { + actionCommandStatus->unk_5C = TRUE; + } + + if (!(battleStatus->currentButtonsDown & BUTTON_STICK_LEFT) && actionCommandStatus->unk_5C) { + actionCommandStatus->barFillLevel += 100; + if (actionCommandStatus->barFillLevel >= 500) { + actionCommandStatus->barFillLevel = 500; + } + actionCommandStatus->unk_5C = 0; + } + + if (battleStatus->currentButtonsPressed & BUTTON_STICK_RIGHT) { + actionCommandStatus->barFillLevel -= 100; + } + } + } + } + + if (actionCommandStatus->barFillLevel < 0) { + actionCommandStatus->barFillLevel = 0; + } + if (actionCommandStatus->barFillLevel > 10000) { + id = actionCommandStatus->hudElements[2]; + actionCommandStatus->barFillLevel = 10000; + actionCommandStatus->unk_68 = 1; + hud_element_set_render_pos(id, actionCommandStatus->hudElementX + 50, actionCommandStatus->hudElementY + 28); + hud_element_clear_flags(id, 2); + } + + battleStatus->unk_84 = actionCommandStatus->barFillLevel / 100; + sfx_adjust_env_sound_params(0x80000041, 0, 0, battleStatus->unk_84 * 12); + + if (actionCommandStatus->unk_54 != 0) { + actionCommandStatus->unk_54--; + return; + } + + fillLevel = actionCommandStatus->barFillLevel; + if (actionCommandStatus->unk_64 == 0) { + fillLevel = 0; + } + + if (fillLevel == 0) { + battleStatus->actionSuccess = -1; + } else { + battleStatus->actionSuccess = fillLevel / 100; + + } + + cutoff = actionCommandStatus->mashMeterCutoffs[actionCommandStatus->mashMeterIntervals - 1]; + if (battleStatus->actionSuccess > cutoff) { + battleStatus->unk_86 = 1; + } else { + battleStatus->unk_86 = -2; + } + + if (battleStatus->actionSuccess == 100) { + func_80269160(); + } + btl_set_popup_duration(0); + sfx_stop_sound(0x80000041); + actionCommandStatus->unk_54 = 5; + actionCommandStatus->state = 12; + break; + case 12: + if (actionCommandStatus->unk_64 == 0) { + actionCommandStatus->barFillLevel -= 100; + if (actionCommandStatus->barFillLevel < 0) { + actionCommandStatus->barFillLevel = 0; + } + } + + if (actionCommandStatus->unk_54 != 0) { + actionCommandStatus->unk_54--; + return; + } + func_80268C9C(); + break; + } +} #include "common/UnkActionCommandFunc1.inc.c" diff --git a/src/battle/action_cmd/squirt.c b/src/battle/action_cmd/squirt.c index dd95fa386d..2130e8f6c2 100644 --- a/src/battle/action_cmd/squirt.c +++ b/src/battle/action_cmd/squirt.c @@ -5,12 +5,17 @@ extern HudScript HudScript_BlueMeter; extern HudScript HudScript_AButton; +extern HudScript HudScript_AButtonDown; +extern HudScript HudScript_PressAButton; extern s32 D_80294380; +s32 D_802A9760_42A480[] = { 300, 300, 265, 220, 175, 175, }; +s32 D_802A9778_42A498[] = { 300, 300, 265, 220, 175, 175, }; + ApiStatus func_802A9000_429D20(void) { ActionCommandStatus* actionCommandStatus = &gActionCommandStatus; BattleStatus* battleStatus = &gBattleStatus; - s32 hudElement; + s32 id; battleStatus->unk_82 = 5; battleStatus->unk_434 = &D_80294380; @@ -30,17 +35,17 @@ ApiStatus func_802A9000_429D20(void) { actionCommandStatus->unk_5C = 0; actionCommandStatus->hudElementY = 80; - hudElement = hud_element_create(&HudScript_AButton); - actionCommandStatus->hudElements[0] = hudElement; - hud_element_set_flags(hudElement, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); - hud_element_set_render_pos(hudElement, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY); - hud_element_set_render_depth(hudElement, 0); + id = hud_element_create(&HudScript_AButton); + actionCommandStatus->hudElements[0] = id; + hud_element_set_flags(id, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); + hud_element_set_render_pos(id, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY); + hud_element_set_render_depth(id, 0); - hudElement = hud_element_create(&HudScript_BlueMeter); - actionCommandStatus->hudElements[1] = hudElement; - hud_element_set_render_pos(hudElement, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY + 28); - hud_element_set_render_depth(hudElement, 0); - hud_element_set_flags(hudElement, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); + id = hud_element_create(&HudScript_BlueMeter); + actionCommandStatus->hudElements[1] = id; + hud_element_set_render_pos(id, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY + 28); + hud_element_set_render_depth(id, 0); + hud_element_set_flags(id, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); return ApiStatus_DONE2; } @@ -71,17 +76,143 @@ ApiStatus func_802A911C_429E3C(Evt* script) { return ApiStatus_DONE2; } -INCLUDE_ASM(s32, "battle/action_cmd/squirt", func_802A9208_429F28); +void func_802A9208_429F28(void) { + ActionCommandStatus* actionCommandStatus = &gActionCommandStatus; + BattleStatus* battleStatus = &gBattleStatus; + s32 id; + s32 mashMeterCutoff; + s32 cutoff; + s32 temp; + + switch (actionCommandStatus->state) { + case 0: + btl_set_popup_duration(99); + + id = actionCommandStatus->hudElements[0]; + if (actionCommandStatus->unk_61) { + hud_element_clear_flags(id, HUD_ELEMENT_FLAGS_DISABLED); + } + hud_element_set_alpha(id, 255); + + id = actionCommandStatus->hudElements[1]; + hud_element_set_alpha(id, 255); + if (actionCommandStatus->unk_61) { + hud_element_clear_flags(id, HUD_ELEMENT_FLAGS_DISABLED); + } + + actionCommandStatus->state = 1; + break; + case 1: + btl_set_popup_duration(99); + + actionCommandStatus->hudElementX += 20; + if (actionCommandStatus->hudElementX > 50) { + actionCommandStatus->hudElementX = 50; + } + + hud_element_set_render_pos(actionCommandStatus->hudElements[0], actionCommandStatus->hudElementX, + actionCommandStatus->hudElementY); + hud_element_set_render_pos(actionCommandStatus->hudElements[1], actionCommandStatus->hudElementX, + actionCommandStatus->hudElementY + 28); + break; + case 10: + btl_set_popup_duration(99); + + if (actionCommandStatus->unk_4E != 0) { + actionCommandStatus->unk_4E--; + break; + } + + hud_element_set_script(actionCommandStatus->hudElements[0], &HudScript_AButtonDown); + actionCommandStatus->barFillLevel = 0; + actionCommandStatus->unk_5C = 0; + actionCommandStatus->unk_54 = actionCommandStatus->unk_52; + sfx_play_sound_with_params(0x80000041, 0, 0, 0); + actionCommandStatus->state = 11; + // fallthrough + case 11: + btl_set_popup_duration(99); + cutoff = actionCommandStatus->mashMeterCutoffs[actionCommandStatus->mashMeterIntervals]; + temp = actionCommandStatus->barFillLevel / cutoff; + if (actionCommandStatus->unk_5C == 0) { + if (!(battleStatus->currentButtonsDown & BUTTON_A)) { + actionCommandStatus->barFillLevel -= D_802A9760_42A480[temp / 20]; + if (actionCommandStatus->barFillLevel < 0) { + actionCommandStatus->barFillLevel = 0; + } + } else { + actionCommandStatus->barFillLevel += D_802A9778_42A498[temp / 20] * battleStatus->unk_434[actionCommandStatus->unk_50] / 100; + if (actionCommandStatus->barFillLevel > 10000) { + actionCommandStatus->barFillLevel = 10000; + actionCommandStatus->unk_5C = 1; + } + } + } else { + actionCommandStatus->barFillLevel -= 250; + if (actionCommandStatus->barFillLevel <= 0) { + actionCommandStatus->barFillLevel = 0; + actionCommandStatus->unk_5C = 0; + } + } + + battleStatus->unk_84 = actionCommandStatus->barFillLevel / 100; + sfx_adjust_env_sound_params(0x80000041, 0, 0, battleStatus->unk_84 * 12); + id = actionCommandStatus->hudElements[0]; + if (temp < 80) { + if (hud_element_get_script(id) != &HudScript_AButtonDown) { + hud_element_set_script(id, &HudScript_AButtonDown); + } + } else { + if (hud_element_get_script(id) != &HudScript_PressAButton) { + hud_element_set_script(id, &HudScript_PressAButton); + } + } + + if (actionCommandStatus->unk_54 != 0) { + actionCommandStatus->unk_54--; + return; + } + + if (actionCommandStatus->barFillLevel == 0) { + battleStatus->actionSuccess = -1; + } else { + battleStatus->actionSuccess = battleStatus->unk_84; + } + + cutoff = actionCommandStatus->mashMeterCutoffs[actionCommandStatus->mashMeterIntervals - 1]; + if (cutoff / 2 < battleStatus->unk_84) { + battleStatus->unk_86 = 1; + } else { + battleStatus->unk_86 = -4; + } + + if (battleStatus->actionSuccess == 100) { + func_80269160(); + } + btl_set_popup_duration(0); + sfx_stop_sound(0x80000041); + actionCommandStatus->unk_54 = 5; + actionCommandStatus->state = 12; + break; + case 12: + if (actionCommandStatus->unk_54 != 0) { + actionCommandStatus->unk_54--; + } else { + func_80268C9C(); + } + break; + } +} void func_802A9634_42A354(void) { s32 x, y; - s32 hudElement; + s32 id; ActionCommandStatus* actionCommandStatus = &gActionCommandStatus; hud_element_draw_clipped(actionCommandStatus->hudElements[0]); - hudElement = actionCommandStatus->hudElements[1]; - hud_element_draw_clipped(hudElement); - hud_element_get_render_pos(hudElement, &x, &y); + id = actionCommandStatus->hudElements[1]; + hud_element_draw_clipped(id); + hud_element_get_render_pos(id, &x, &y); if (actionCommandStatus->unk_5C == 0) { func_80268798(x, y, actionCommandStatus->barFillLevel / 100, 1); } else { diff --git a/src/battle/action_cmd/tidal_wave.c b/src/battle/action_cmd/tidal_wave.c index de1b2b80b1..7cd1d29d7f 100644 --- a/src/battle/action_cmd/tidal_wave.c +++ b/src/battle/action_cmd/tidal_wave.c @@ -4,16 +4,22 @@ #define NAMESPACE action_command_tidal_wave extern HudScript HudScript_BlueMeter; +extern HudScript HudScript_PressAButton; +extern HudScript HudScript_PressBButton; +extern HudScript HudScript_BButtonHeld; +extern HudScript HudScript_8029265C; +extern HudScript HudScript_PressCDownButton; extern HudScript HudScript_AButton; +extern HudScript HudScript_AButtonDown; extern s32 D_802944A0; -extern HudScript* D_802A97C0_42CEB0[]; -extern HudScript* D_802A97CC_42CEBC[]; +HudScript* D_802A97C0_42CEB0[3] = { &HudScript_PressAButton, &HudScript_PressBButton, &HudScript_PressCDownButton }; +HudScript* D_802A97CC_42CEBC[3] = { &HudScript_AButtonDown, &HudScript_BButtonHeld, &HudScript_8029265C }; ApiStatus N(CreateHudElements)(Evt* script, s32 isInitialCall) { ActionCommandStatus* actionCommandStatus = &gActionCommandStatus; BattleStatus* battleStatus = &gBattleStatus; - s32 hudElement; + s32 id; s32 i; battleStatus->unk_82 = 5; @@ -33,18 +39,18 @@ ApiStatus N(CreateHudElements)(Evt* script, s32 isInitialCall) { actionCommandStatus->hudElementX = -48; actionCommandStatus->hudElementY = 80; - hudElement = hud_element_create(&HudScript_BlueMeter); - actionCommandStatus->hudElements[0] = hudElement; - hud_element_set_render_pos(hudElement, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY + 28); - hud_element_set_render_depth(hudElement, 0); - hud_element_set_flags(hudElement, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); + id = hud_element_create(&HudScript_BlueMeter); + actionCommandStatus->hudElements[0] = id; + hud_element_set_render_pos(id, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY + 28); + hud_element_set_render_depth(id, 0); + hud_element_set_flags(id, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); for (i = 1; i < ARRAY_COUNT(actionCommandStatus->hudElements); i++) { - hudElement = hud_element_create(&HudScript_AButton); - actionCommandStatus->hudElements[i] = hudElement; - hud_element_set_render_pos(hudElement, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY); - hud_element_set_render_depth(hudElement, 0); - hud_element_set_flags(hudElement, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); + id = hud_element_create(&HudScript_AButton); + actionCommandStatus->hudElements[i] = id; + hud_element_set_render_pos(id, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY); + hud_element_set_render_depth(id, 0); + hud_element_set_flags(id, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); } return ApiStatus_DONE2; @@ -81,7 +87,7 @@ ApiStatus func_802A9138_42C828(Evt* script, s32 isInitialCall) { void N(update)(void) { ActionCommandStatus* actionCommandStatus = &gActionCommandStatus; BattleStatus* battleStatus = &gBattleStatus; - s32 hudElement; + s32 id; s8 oldButton; s8 newButton; s32 numLookbackFrames; @@ -93,11 +99,11 @@ void N(update)(void) { switch (actionCommandStatus->state) { case 0: btl_set_popup_duration(99); - hudElement = actionCommandStatus->hudElements[0]; + id = actionCommandStatus->hudElements[0]; if (actionCommandStatus->unk_61 != 0) { - hud_element_clear_flags(hudElement, HUD_ELEMENT_FLAGS_DISABLED); + hud_element_clear_flags(id, HUD_ELEMENT_FLAGS_DISABLED); } - hud_element_set_alpha(hudElement, 0xFF); + hud_element_set_alpha(id, 255); actionCommandStatus->state = 1; break; case 1: @@ -121,7 +127,7 @@ void N(update)(void) { actionCommandStatus->unk_54 = actionCommandStatus->unk_52; actionCommandStatus->unk_5C = rand_int(2); actionCommandStatus->state = 11; - actionCommandStatus->unk_72 = 0U; + actionCommandStatus->unk_72 = 0; // fallthrough case 11: btl_set_popup_duration(99); @@ -133,14 +139,14 @@ void N(update)(void) { actionCommandStatus->unk_5C = newButton; } while (oldButton == newButton); - hudElement = actionCommandStatus->hudElements[actionCommandStatus->unk_5D]; + id = actionCommandStatus->hudElements[actionCommandStatus->unk_5D]; hud_element_set_script( - hudElement, D_802A97C0_42CEB0[newButton]); + id, D_802A97C0_42CEB0[newButton]); hud_element_set_render_pos( - hudElement, + id, actionCommandStatus->hudElementX + ((actionCommandStatus->unk_5D - 1) * 20) + 16, actionCommandStatus->hudElementY); - hud_element_clear_flags(hudElement, HUD_ELEMENT_FLAGS_DISABLED); + hud_element_clear_flags(id, HUD_ELEMENT_FLAGS_DISABLED); sfx_play_sound(0x233); actionCommandStatus->unk_70 = 1; actionCommandStatus->state = 12; @@ -173,7 +179,7 @@ void N(update)(void) { // Determine starting point in input buffer. bufferPos = battleStatus->inputBufferPos - numLookbackFrames; if (bufferPos < 0) { - bufferPos += 0x40; + bufferPos += ARRAY_COUNT(battleStatus->pushInputBuffer); } // If determined that 0 frames should be searched, search a minimum of 1. @@ -183,8 +189,8 @@ void N(update)(void) { // Check buffer for past N frames' worth of button presses. for (i = 0; i < numLookbackFrames; i++) { - if (bufferPos >= 0x40) { - bufferPos -= 0x40; + if (bufferPos >= ARRAY_COUNT(battleStatus->pushInputBuffer)) { + bufferPos -= ARRAY_COUNT(battleStatus->pushInputBuffer); } // If not locked out from previous wrong press... @@ -203,7 +209,7 @@ void N(update)(void) { } else { buttonsPressed = battleStatus->pushInputBuffer[bufferPos]; if (buttonsPressed != 0) { - if (buttonsPressed & ~0x8000) { + if (buttonsPressed & ~BUTTON_A) { actionCommandStatus->unk_60 = TRUE; } else { success = TRUE; @@ -217,7 +223,7 @@ void N(update)(void) { } else { buttonsPressed = battleStatus->pushInputBuffer[bufferPos]; if (buttonsPressed != 0) { - if (buttonsPressed & ~0x4000) { + if (buttonsPressed & ~BUTTON_B) { actionCommandStatus->unk_60 = TRUE; } else { success = TRUE; @@ -231,7 +237,7 @@ void N(update)(void) { } else { buttonsPressed = battleStatus->pushInputBuffer[bufferPos]; if (buttonsPressed != 0) { - if (buttonsPressed & ~0x4) { + if (buttonsPressed & ~BUTTON_C_DOWN) { actionCommandStatus->unk_60 = TRUE; } else { success = TRUE; @@ -244,17 +250,17 @@ void N(update)(void) { if (actionCommandStatus->unk_60) { // Wrong; prevent successful inputs for 10 frames. actionCommandStatus->unk_72 = 10; - sfx_play_sound(0x21D); + sfx_play_sound(SOUND_MENU_ERROR); actionCommandStatus->unk_70 = 0; } if (success) { // Correct; shrink button, set up next button press, etc. - hudElement = actionCommandStatus->hudElements[actionCommandStatus->unk_5D]; - hud_element_set_script(hudElement, D_802A97CC_42CEBC[actionCommandStatus->unk_5C]); - hud_element_set_scale(hudElement, 0.5f); + id = actionCommandStatus->hudElements[actionCommandStatus->unk_5D]; + hud_element_set_script(id, D_802A97CC_42CEBC[actionCommandStatus->unk_5C]); + hud_element_set_scale(id, 0.5f); hud_element_set_render_pos( - hudElement, + id, actionCommandStatus->hudElementX + ((actionCommandStatus->unk_5D - 1) * 20), actionCommandStatus->hudElementY + 7); actionCommandStatus->unk_5D++; @@ -265,7 +271,7 @@ void N(update)(void) { } actionCommandStatus->state = 11; battleStatus->unk_84++; - sfx_play_sound(0x21C); + sfx_play_sound(SOUND_21C); return; } diff --git a/src/battle/action_cmd/water_block.c b/src/battle/action_cmd/water_block.c index 0b6f130410..475858491a 100644 --- a/src/battle/action_cmd/water_block.c +++ b/src/battle/action_cmd/water_block.c @@ -3,8 +3,228 @@ #define NAMESPACE action_command_water_block -// requires .data migration -INCLUDE_ASM(s32, "battle/action_cmd/water_block", func_802A9000_42A4F0); +#include "battle/action_cmd/water_block_1.png.inc.c" +#include "battle/action_cmd/water_block_1.pal.inc.c" + +#include "battle/action_cmd/water_block_2.png.inc.c" +#include "battle/action_cmd/water_block_2.pal.inc.c" + +#include "battle/action_cmd/water_block_3.png.inc.c" +#include "battle/action_cmd/water_block_3.pal.inc.c" + +#include "battle/action_cmd/water_block_0.png.inc.c" +#include "battle/action_cmd/water_block_0.pal.inc.c" + +#include "battle/action_cmd/water_block_block.png.inc.c" +#include "battle/action_cmd/water_block_block.pal.inc.c" + +#include "battle/action_cmd/water_block_circle.png.inc.c" +#include "battle/action_cmd/water_block_circle.pal.inc.c" + +#include "battle/action_cmd/water_block_cloud.png.inc.c" +#include "battle/action_cmd/water_block_cloud.pal.inc.c" + +#include "battle/action_cmd/water_block_4.png.inc.c" +#include "battle/action_cmd/water_block_4.pal.inc.c" + +HudScript HudScript_WaterBlock1 = { + HUD_ELEMENT_OP_SetVisible, + HUD_ELEMENT_OP_SetTileSize, HUD_ELEMENT_SIZE_24x24, + HUD_ELEMENT_OP_Loop, + HUD_ELEMENT_OP_SetCI, 60, (s32)battle_action_cmd_water_block_1_png, (s32)battle_action_cmd_water_block_1_pal, + 0x00000003, + HUD_ELEMENT_OP_End +}; + +HudScript HudScript_WaterBlock2 = { + HUD_ELEMENT_OP_SetVisible, + HUD_ELEMENT_OP_SetTileSize, HUD_ELEMENT_SIZE_24x24, + HUD_ELEMENT_OP_Loop, + HUD_ELEMENT_OP_SetCI, 60, (s32)battle_action_cmd_water_block_2_png, (s32)battle_action_cmd_water_block_2_pal, + 0x00000003, + HUD_ELEMENT_OP_End +}; + +HudScript HudScript_WaterBlock3 = { + HUD_ELEMENT_OP_SetVisible, + HUD_ELEMENT_OP_SetTileSize, HUD_ELEMENT_SIZE_24x24, + HUD_ELEMENT_OP_Loop, + HUD_ELEMENT_OP_SetCI, 60, (s32)battle_action_cmd_water_block_3_png, (s32)battle_action_cmd_water_block_3_pal, + 0x00000003, + HUD_ELEMENT_OP_End +}; + +HudScript HudScript_WaterBlock0 = { + HUD_ELEMENT_OP_SetVisible, + HUD_ELEMENT_OP_SetTileSize, HUD_ELEMENT_SIZE_24x24, + HUD_ELEMENT_OP_Loop, + HUD_ELEMENT_OP_SetCI, 60, (s32)battle_action_cmd_water_block_0_png, (s32)battle_action_cmd_water_block_0_pal, + 0x00000003, + HUD_ELEMENT_OP_End +}; + +HudScript HudScript_WaterBlock4 = { + HUD_ELEMENT_OP_SetVisible, + HUD_ELEMENT_OP_SetTileSize, HUD_ELEMENT_SIZE_24x24, + HUD_ELEMENT_OP_Loop, + HUD_ELEMENT_OP_SetCI, 60, (s32)battle_action_cmd_water_block_4_png, (s32)battle_action_cmd_water_block_4_pal, + 0x00000003, + HUD_ELEMENT_OP_End +}; + +HudScript HudScript_WaterBlockBlock = { + HUD_ELEMENT_OP_SetVisible, + HUD_ELEMENT_OP_SetTileSize, HUD_ELEMENT_SIZE_32x32, + HUD_ELEMENT_OP_Loop, + HUD_ELEMENT_OP_SetCI, 60, (s32)battle_action_cmd_water_block_block_png, (s32)battle_action_cmd_water_block_block_pal, + 0x00000003, + HUD_ELEMENT_OP_End +}; + +HudScript HudScript_WaterBlockCircle = { + HUD_ELEMENT_OP_SetVisible, + HUD_ELEMENT_OP_SetTileSize, HUD_ELEMENT_SIZE_40x40, + HUD_ELEMENT_OP_Loop, + HUD_ELEMENT_OP_SetCI, 60, (s32)battle_action_cmd_water_block_circle_png, (s32)battle_action_cmd_water_block_circle_pal, + 0x00000003, + HUD_ELEMENT_OP_End +}; + +HudScript HudScript_WaterBlockCloud = { + HUD_ELEMENT_OP_SetVisible, + HUD_ELEMENT_OP_SetTileSize, HUD_ELEMENT_SIZE_40x40, + HUD_ELEMENT_OP_Loop, + HUD_ELEMENT_OP_SetCI, 60, (s32)battle_action_cmd_water_block_cloud_png, (s32)battle_action_cmd_water_block_cloud_pal, + 0x00000003, + HUD_ELEMENT_OP_End +}; + +HudScript* D_802AB180_42C670[] = { + &HudScript_WaterBlock0 +}; + +HudScript* D_802AB184_42C674[] = { + &HudScript_WaterBlock1, &HudScript_WaterBlock2, &HudScript_WaterBlock3, &HudScript_WaterBlock4, &HudScript_WaterBlock4, &HudScript_WaterBlock4, &HudScript_WaterBlock4, &HudScript_WaterBlock4, &HudScript_WaterBlock4, 0, 0 +}; + +extern s32 D_80294460; + +extern HudScript HudScript_AButton; +extern HudScript HudScript_AButtonDown; +extern HudScript HudScript_TimingBar3Chances; +extern HudScript HudScript_TimingCharge2; +extern HudScript HudScript_TimingCharge3; +extern HudScript HudScript_TimingCharge4b; +extern HudScript HudScript_TimingCharge4c; +extern HudScript HudScript_TimingOK; +extern HudScript HudScript_TimingMiss; +extern HudScript HudScript_TimingWait; +extern HudScript HudScript_TimingReady; + +ApiStatus func_802A9000_42A4F0(Evt* script, s32 isInitialCall) { + ActionCommandStatus* actionCommandStatus = &gActionCommandStatus; + BattleStatus* battleStatus = &gBattleStatus; + Bytecode* args = script->ptrReadPos; + s32 id; + + battleStatus->unk_82 = 5; + battleStatus->unk_434 = &D_80294460; + + if (battleStatus->unk_83 == 0) { + battleStatus->actionSuccess = 0; + return ApiStatus_DONE2; + } + + func_80268858(); + actionCommandStatus->actionCommandID = ACTION_COMMAND_WATER_BLOCK; + actionCommandStatus->state = 0; + actionCommandStatus->unk_60 = 0; + actionCommandStatus->barFillLevel = 0; + actionCommandStatus->unk_48 = 0; + actionCommandStatus->unk_64 = evt_get_variable(script, *args++); + battleStatus->unk_84 = 1; + actionCommandStatus->unk_6C = 30; + actionCommandStatus->hudElementX = -48; + actionCommandStatus->hudElementY = 80; + + id = hud_element_create(&HudScript_AButton); + actionCommandStatus->hudElements[0] = id; + hud_element_set_flags(id, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); + hud_element_set_render_pos(id, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY); + hud_element_set_render_depth(id, 0); + + id = hud_element_create(&HudScript_TimingBar3Chances); + actionCommandStatus->hudElements[1] = id; + hud_element_set_render_pos(id, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY + 28); + hud_element_set_render_depth(id, 0); + hud_element_set_flags(id, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); + + id = hud_element_create(&HudScript_TimingWait); + actionCommandStatus->hudElements[2] = id; + hud_element_set_render_pos(id, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY + 28); + hud_element_set_render_depth(id, 0); + hud_element_set_flags(id, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); + + id = hud_element_create(&HudScript_TimingWait); + actionCommandStatus->hudElements[3] = id; + hud_element_set_render_pos(id, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY + 28); + hud_element_set_render_depth(id, 0); + hud_element_set_flags(id, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); + + id = hud_element_create(&HudScript_TimingWait); + actionCommandStatus->hudElements[4] = id; + hud_element_set_render_pos(id, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY + 28); + hud_element_set_render_depth(id, 0); + hud_element_set_flags(id, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); + + id = hud_element_create(&HudScript_TimingOK); + actionCommandStatus->hudElements[6] = id; + hud_element_set_render_pos(id, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY); + hud_element_set_render_depth(id, 0); + hud_element_set_flags(id, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); + + id = hud_element_create(&HudScript_TimingOK); + actionCommandStatus->hudElements[7] = id; + hud_element_set_render_pos(id, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY); + hud_element_set_render_depth(id, 0); + hud_element_set_flags(id, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); + + id = hud_element_create(&HudScript_TimingOK); + actionCommandStatus->hudElements[8] = id; + hud_element_set_render_pos(id, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY); + hud_element_set_render_depth(id, 0); + hud_element_set_flags(id, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); + + actionCommandStatus->hudElements[10] = hud_element_create(D_802AB184_42C674[0]); + hud_element_set_render_pos(actionCommandStatus->hudElements[10], + actionCommandStatus->hudElementX, actionCommandStatus->hudElementY); + + actionCommandStatus->hudElements[11] = hud_element_create(&HudScript_TimingCharge4c); + hud_element_set_render_pos(actionCommandStatus->hudElements[11], + actionCommandStatus->hudElementX, actionCommandStatus->hudElementY); + + id = hud_element_create(&HudScript_TimingCharge4b); + actionCommandStatus->hudElements[12] = id; + hud_element_set_render_pos(id, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY); + + switch (actionCommandStatus->unk_64) { + case 0: + actionCommandStatus->hudElements[13] = hud_element_create(&HudScript_WaterBlockBlock); + id = actionCommandStatus->hudElements[13]; + break; + case 1: + actionCommandStatus->hudElements[13] = hud_element_create(&HudScript_WaterBlockCircle); + id = actionCommandStatus->hudElements[13]; + break; + case 2: + actionCommandStatus->hudElements[13] = hud_element_create(&HudScript_WaterBlockCloud); + id = actionCommandStatus->hudElements[13]; + break; + } + + hud_element_set_render_pos(id, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY); + return ApiStatus_DONE2; +} ApiStatus func_802A9398_42A888(Evt* script, s32 isInitialCall) { ActionCommandStatus* actionCommandStatus = &gActionCommandStatus; @@ -28,14 +248,370 @@ ApiStatus func_802A9398_42A888(Evt* script, s32 isInitialCall) { battleStatus->actionSuccess = 0; battleStatus->unk_86 = 0; actionCommandStatus->state = 10; - battleStatus->flags1 &= ~0x8000; + battleStatus->flags1 &= ~BS_FLAGS1_8000; func_80269118(); return ApiStatus_DONE2; } -INCLUDE_ASM(s32, "battle/action_cmd/water_block", func_802A948C_42A97C); +void func_802A948C_42A97C(void) { + ActionCommandStatus* actionCommandStatus = &gActionCommandStatus; + BattleStatus* battleStatus = &gBattleStatus; + s32 pos; + s32 i; + s32 limit; + s32 id; -extern HudScript* D_802AB180_42C670[]; + switch (actionCommandStatus->state) { + case 0: + btl_set_popup_duration(99); + id = actionCommandStatus->hudElements[0]; + if (actionCommandStatus->unk_61 != 0) { + hud_element_clear_flags(id, 2); + } + hud_element_set_alpha(id, 255); + id = actionCommandStatus->hudElements[1]; + hud_element_set_alpha(id, 255); + if (actionCommandStatus->unk_61 != 0) { + hud_element_clear_flags(id, 2); + } + id = actionCommandStatus->hudElements[2]; + hud_element_set_alpha(id, 255); + if (actionCommandStatus->unk_61 != 0) { + hud_element_clear_flags(id, 2); + } + id = actionCommandStatus->hudElements[3]; + hud_element_set_alpha(id, 255); + if (actionCommandStatus->unk_61 != 0) { + hud_element_clear_flags(id, 2); + } + id = actionCommandStatus->hudElements[4]; + hud_element_set_alpha(id, 255); + if (actionCommandStatus->unk_61 != 0) { + hud_element_clear_flags(id, 2); + } + id = actionCommandStatus->hudElements[10]; + hud_element_set_alpha(id, 255); + if (actionCommandStatus->unk_61 != 0) { + hud_element_clear_flags(id, 2); + } + id = actionCommandStatus->hudElements[11]; + hud_element_set_alpha(id, 255); + if (actionCommandStatus->unk_61 != 0) { + hud_element_clear_flags(id, 2); + } + id = actionCommandStatus->hudElements[12]; + hud_element_set_alpha(id, 255); + if (actionCommandStatus->unk_61 != 0) { + hud_element_clear_flags(id, 2); + } + id = actionCommandStatus->hudElements[13]; + hud_element_set_alpha(id, 255); + if (actionCommandStatus->unk_61 != 0) { + hud_element_clear_flags(id, 2); + } + actionCommandStatus->state = 1; + break; + case 1: + btl_set_popup_duration(99); + if (actionCommandStatus->unk_6C != 0) { + actionCommandStatus->unk_6C--; + return; + } + actionCommandStatus->hudElementX += 20; + if (actionCommandStatus->hudElementX > 50) { + actionCommandStatus->hudElementX = 50; + } + hud_element_set_render_pos(actionCommandStatus->hudElements[0], actionCommandStatus->hudElementX, actionCommandStatus->hudElementY); + hud_element_set_render_pos(actionCommandStatus->hudElements[1], actionCommandStatus->hudElementX + 28, actionCommandStatus->hudElementY + 28); + hud_element_set_render_pos(actionCommandStatus->hudElements[2], actionCommandStatus->hudElementX + 21, actionCommandStatus->hudElementY + 24); + hud_element_set_render_pos(actionCommandStatus->hudElements[3], actionCommandStatus->hudElementX + 41, actionCommandStatus->hudElementY + 24); + hud_element_set_render_pos(actionCommandStatus->hudElements[4], actionCommandStatus->hudElementX + 61, actionCommandStatus->hudElementY + 24); + + id = actionCommandStatus->hudElements[10]; + switch (actionCommandStatus->unk_64) { + case 0: + hud_element_set_render_pos(id, actionCommandStatus->hudElementX + 91, actionCommandStatus->hudElementY + 7); + break; + case 1: + hud_element_set_render_pos(id, actionCommandStatus->hudElementX + 91, actionCommandStatus->hudElementY + 13); + break; + case 2: + hud_element_set_render_pos(id, actionCommandStatus->hudElementX + 91, actionCommandStatus->hudElementY + 13); + break; + } + + hud_element_set_render_pos(actionCommandStatus->hudElements[11], actionCommandStatus->hudElementX - 5, actionCommandStatus->hudElementY + 29); + hud_element_set_render_pos(actionCommandStatus->hudElements[12], actionCommandStatus->hudElementX + 7, actionCommandStatus->hudElementY + 29); + hud_element_set_render_pos(actionCommandStatus->hudElements[13], actionCommandStatus->hudElementX + 92, actionCommandStatus->hudElementY + 23); + break; + case 10: + btl_set_popup_duration(99); + if (actionCommandStatus->unk_4E != 0) { + actionCommandStatus->unk_4E--; + return; + } + + actionCommandStatus->unk_54 = actionCommandStatus->unk_52 - 60; + if (actionCommandStatus->unk_54 < 42) { + actionCommandStatus->unk_54 = 42; + } + actionCommandStatus->state = 11; + // fallthrough + case 11: + btl_set_popup_duration(99); + if (actionCommandStatus->unk_54 == 42) { + hud_element_set_script(actionCommandStatus->hudElements[11], &HudScript_TimingCharge3); + sfx_play_sound(SOUND_233); + } + if (actionCommandStatus->unk_54 == 22) { + hud_element_set_script(actionCommandStatus->hudElements[12], &HudScript_TimingCharge2); + sfx_play_sound(SOUND_233); + } + if (actionCommandStatus->unk_54 == 2) { + hud_element_set_script(actionCommandStatus->hudElements[2], &HudScript_TimingReady); + hud_element_set_script(actionCommandStatus->hudElements[0], &HudScript_AButtonDown); + sfx_play_sound(SOUND_234); + } + actionCommandStatus->unk_54--; + if (actionCommandStatus->unk_54 == 0) { + actionCommandStatus->unk_54 = 20; + actionCommandStatus->unk_5D = 0; + actionCommandStatus->state = 12; + actionCommandStatus->unk_5C = 0; + actionCommandStatus->unk_60 = 0; + } + break; + case 12: + btl_set_popup_duration(99); + if ((actionCommandStatus->unk_60 == 0) && (actionCommandStatus->unk_5C == 0) && (actionCommandStatus->unk_5D >= -5)) { + limit = battleStatus->unk_434[actionCommandStatus->unk_50 * 2] + + battleStatus->unk_434[actionCommandStatus->unk_50 * 2 + 1] + + 5; + pos = battleStatus->inputBufferPos; + pos -= limit; + if (pos < 0) { + pos += ARRAY_COUNT(battleStatus->pushInputBuffer); + } + if (limit == 0) { + limit = 1; + } + + for (i = 0; i < limit; pos++, i++) { + if (pos >= ARRAY_COUNT(battleStatus->pushInputBuffer)) { + pos -= ARRAY_COUNT(battleStatus->pushInputBuffer); + } + + if (i < 5 && (battleStatus->pushInputBuffer[pos] & BUTTON_A)) { + actionCommandStatus->unk_60 = 1; + } + + if (((battleStatus->pushInputBuffer[pos] & BUTTON_A) && !(actionCommandStatus->unk_60 != 0)) || + (actionCommandStatus->autoSucceed != 0)) { + actionCommandStatus->unk_5C = 1; + battleStatus->unk_84++; + break; + } + } + } + + if ((actionCommandStatus->unk_5D >= -4) && ((actionCommandStatus->unk_60 != 0) || (actionCommandStatus->unk_5C != 0))) { + id = actionCommandStatus->hudElements[6]; + if (actionCommandStatus->unk_5C != 0) { + hud_element_set_script(id, &HudScript_TimingOK); + } else { + hud_element_set_script(id, &HudScript_TimingMiss); + } + hud_element_set_render_pos(id, actionCommandStatus->hudElementX + 28, actionCommandStatus->hudElementY + 38); + hud_element_clear_flags(id, 2); + } + + if (actionCommandStatus->unk_5D == -5) { + id = actionCommandStatus->hudElements[6]; + if (actionCommandStatus->unk_5C != 0) { + hud_element_set_script(id, &HudScript_TimingOK); + } else { + hud_element_set_script(id, &HudScript_TimingMiss); + } + hud_element_set_render_pos(id, actionCommandStatus->hudElementX + 28, actionCommandStatus->hudElementY + 38); + hud_element_clear_flags(id, 2); + hud_element_set_script(actionCommandStatus->hudElements[0], &HudScript_AButton); + } + actionCommandStatus->unk_5D--; + if (actionCommandStatus->unk_54 == 2) { + hud_element_set_script(actionCommandStatus->hudElements[3], &HudScript_TimingReady); + hud_element_set_script(actionCommandStatus->hudElements[0], &HudScript_AButtonDown); + sfx_play_sound(SOUND_234); + } + actionCommandStatus->unk_54--; + if (actionCommandStatus->unk_54 == 0) { + actionCommandStatus->unk_54 = 20; + actionCommandStatus->unk_5D = 0; + actionCommandStatus->state = 13; + actionCommandStatus->unk_5C = 0; + actionCommandStatus->unk_60 = 0; + } + break; + case 13: + btl_set_popup_duration(99); + if ((actionCommandStatus->unk_60 == 0) && (actionCommandStatus->unk_5C == 0) && (actionCommandStatus->unk_5D >= -5)) { + limit = battleStatus->unk_434[actionCommandStatus->unk_50 * 2] + + battleStatus->unk_434[actionCommandStatus->unk_50 * 2 + 1] + + 4; + if (limit < 6) { + limit = 6; + } + pos = battleStatus->inputBufferPos; + pos -= limit; + if (pos < 0) { + pos += ARRAY_COUNT(battleStatus->pushInputBuffer); + } + if (limit == 0) { + limit = 1; + } + + for (i = 0; i < limit; pos++, i++) { + if (pos >= ARRAY_COUNT(battleStatus->pushInputBuffer)) { + pos -= ARRAY_COUNT(battleStatus->pushInputBuffer); + } + + if (i < 5) { + if (battleStatus->pushInputBuffer[pos] & BUTTON_A) { + actionCommandStatus->unk_60 = 1; + } + } + + if (((battleStatus->pushInputBuffer[pos] & BUTTON_A) && !(actionCommandStatus->unk_60 != 0)) || + (actionCommandStatus->autoSucceed != 0)) { + actionCommandStatus->unk_5C = 1; + battleStatus->unk_84++; + break; + } + } + } + + if ((actionCommandStatus->unk_5D >= -4) && ((actionCommandStatus->unk_60 != 0) || (actionCommandStatus->unk_5C != 0))) { + id = actionCommandStatus->hudElements[7]; + if (actionCommandStatus->unk_5C != 0) { + hud_element_set_script(id, &HudScript_TimingOK); + } else { + hud_element_set_script(id, &HudScript_TimingMiss); + } + hud_element_set_render_pos(id, actionCommandStatus->hudElementX + 48, actionCommandStatus->hudElementY + 38); + hud_element_clear_flags(id, 2); + } + if (actionCommandStatus->unk_5D == -5) { + id = actionCommandStatus->hudElements[7]; + if (actionCommandStatus->unk_5C != 0) { + hud_element_set_script(id, &HudScript_TimingOK); + } else { + hud_element_set_script(id, &HudScript_TimingMiss); + } + hud_element_set_render_pos(id, actionCommandStatus->hudElementX + 48, actionCommandStatus->hudElementY + 38); + hud_element_clear_flags(id, 2); + hud_element_set_script(actionCommandStatus->hudElements[0], &HudScript_AButton); + } + actionCommandStatus->unk_5D--; + if (actionCommandStatus->unk_54 == 2) { + hud_element_set_script(actionCommandStatus->hudElements[4], &HudScript_TimingReady); + hud_element_set_script(actionCommandStatus->hudElements[0], &HudScript_AButtonDown); + sfx_play_sound(SOUND_234); + } + actionCommandStatus->unk_54--; + if (actionCommandStatus->unk_54 == 0) { + actionCommandStatus->unk_54 = 20; + actionCommandStatus->unk_5D = 0; + actionCommandStatus->state = 14; + actionCommandStatus->unk_5C = 0; + actionCommandStatus->unk_60 = 0; + } + break; + case 14: + btl_set_popup_duration(99); + if ((actionCommandStatus->unk_60 == 0) && (actionCommandStatus->unk_5C == 0) && (actionCommandStatus->unk_5D >= -5)) { + limit = battleStatus->unk_434[actionCommandStatus->unk_50 * 2] + + battleStatus->unk_434[actionCommandStatus->unk_50 * 2 + 1] + + 3; + if (limit < 6) { + limit = 6; + } + pos = battleStatus->inputBufferPos; + pos -= limit; + if (pos < 0) { + pos += ARRAY_COUNT(battleStatus->pushInputBuffer); + } + if (limit == 0) { + limit = 1; + } + + for (i = 0; i < limit; pos++, i++) { + if (pos >= ARRAY_COUNT(battleStatus->pushInputBuffer)) { + pos -= ARRAY_COUNT(battleStatus->pushInputBuffer); + } + + if (i < 5) { + if (battleStatus->pushInputBuffer[pos] & BUTTON_A) { + actionCommandStatus->unk_60 = 1; + } + } + + if (((battleStatus->pushInputBuffer[pos] & BUTTON_A) && !(actionCommandStatus->unk_60 != 0)) || + (actionCommandStatus->autoSucceed != 0)) { + actionCommandStatus->unk_5C = 1; + battleStatus->unk_84++; + break; + } + } + } + if (actionCommandStatus->unk_5D >= -4) { + if ((actionCommandStatus->unk_60 != 0) || (actionCommandStatus->unk_5C != 0)) { + id = actionCommandStatus->hudElements[8]; + if (actionCommandStatus->unk_5C != 0) { + hud_element_set_script(id, &HudScript_TimingOK); + } else { + hud_element_set_script(id, &HudScript_TimingMiss); + } + hud_element_set_render_pos(id, actionCommandStatus->hudElementX + 68, actionCommandStatus->hudElementY + 38); + hud_element_clear_flags(id, 2); + } + } + if (actionCommandStatus->unk_5D == -5) { + id = actionCommandStatus->hudElements[8]; + if (actionCommandStatus->unk_5C != 0) { + hud_element_set_script(id, &HudScript_TimingOK); + } else { + hud_element_set_script(id, &HudScript_TimingMiss); + } + hud_element_set_render_pos(id, actionCommandStatus->hudElementX + 68, actionCommandStatus->hudElementY + 38); + hud_element_clear_flags(id, 2); + hud_element_set_script(actionCommandStatus->hudElements[0], &HudScript_AButton); + actionCommandStatus->state = 16; + return; + } + actionCommandStatus->unk_5D--; + break; + case 16: + if (battleStatus->unk_84 == 0) { + battleStatus->actionSuccess = -1; + } else { + battleStatus->actionSuccess = battleStatus->unk_84; + } + battleStatus->unk_86 = 1; + if (battleStatus->actionSuccess == 3) { + func_80269160(); + } + btl_set_popup_duration(0); + actionCommandStatus->unk_54 = 5; + actionCommandStatus->state = 17; + break; + case 17: + if (actionCommandStatus->unk_54 != 0) { + actionCommandStatus->unk_54--; + return; + } + func_80268C9C(); + break; + } +} void func_802AA014_42B504(void) { s32 hudElement; diff --git a/src/battle/action_cmd/whirlwind.c b/src/battle/action_cmd/whirlwind.c index 9d2dae4f2a..7a99df8421 100644 --- a/src/battle/action_cmd/whirlwind.c +++ b/src/battle/action_cmd/whirlwind.c @@ -1,16 +1,136 @@ #include "common.h" #include "hud_element.h" +#include "battle/action_cmd/whirlwind_bubble.png.h" #define NAMESPACE action_command_whirlwind -// requires .data migration -#ifdef NON_MATCHING +extern HudScript HudScript_BlueMeter; +extern HudScript HudScript_MashAButton; +extern HudScript HudScript_AButton; + +extern s32 D_80294240; + +#include "battle/action_cmd/whirlwind_1.png.inc.c" +#include "battle/action_cmd/whirlwind_1.pal.inc.c" + +#include "battle/action_cmd/whirlwind_2.png.inc.c" +#include "battle/action_cmd/whirlwind_2.pal.inc.c" + +#include "battle/action_cmd/whirlwind_3.png.inc.c" +#include "battle/action_cmd/whirlwind_3.pal.inc.c" + +#include "battle/action_cmd/whirlwind_4.png.inc.c" +#include "battle/action_cmd/whirlwind_4.pal.inc.c" + +#include "battle/action_cmd/whirlwind_5.png.inc.c" +#include "battle/action_cmd/whirlwind_5.pal.inc.c" + +#include "battle/action_cmd/whirlwind_6.png.inc.c" +#include "battle/action_cmd/whirlwind_6.pal.inc.c" + +#include "battle/action_cmd/whirlwind_7.png.inc.c" +#include "battle/action_cmd/whirlwind_7.pal.inc.c" + +#include "battle/action_cmd/whirlwind_bubble.png.inc.c" +#include "battle/action_cmd/whirlwind_bubble.pal.inc.c" + +HudScript HudScript_Whirlwind1 = { + HUD_ELEMENT_OP_SetVisible, + HUD_ELEMENT_OP_SetTileSize, HUD_ELEMENT_SIZE_24x24, + HUD_ELEMENT_OP_Loop, + HUD_ELEMENT_OP_SetCI, 60, (s32)battle_action_cmd_whirlwind_1_png, (s32)battle_action_cmd_whirlwind_1_pal, + 0x00000003, + HUD_ELEMENT_OP_End +}; + +HudScript HudScript_Whirlwind2 = { + HUD_ELEMENT_OP_SetVisible, + HUD_ELEMENT_OP_SetTileSize, HUD_ELEMENT_SIZE_24x24, + HUD_ELEMENT_OP_Loop, + HUD_ELEMENT_OP_SetCI, 60, (s32)battle_action_cmd_whirlwind_2_png, (s32)battle_action_cmd_whirlwind_2_pal, + 0x00000003, + HUD_ELEMENT_OP_End +}; + +HudScript HudScript_Whirlwind3 = { + HUD_ELEMENT_OP_SetVisible, + HUD_ELEMENT_OP_SetTileSize, HUD_ELEMENT_SIZE_24x24, + HUD_ELEMENT_OP_Loop, + HUD_ELEMENT_OP_SetCI, + 60, (s32)battle_action_cmd_whirlwind_3_png, (s32)battle_action_cmd_whirlwind_3_pal, + 0x00000003, + HUD_ELEMENT_OP_End +}; + +HudScript HudScript_Whirlwind4 = { + HUD_ELEMENT_OP_SetVisible, + HUD_ELEMENT_OP_SetTileSize, HUD_ELEMENT_SIZE_24x24, + HUD_ELEMENT_OP_Loop, + HUD_ELEMENT_OP_SetCI, + 60, (s32)battle_action_cmd_whirlwind_4_png, (s32)battle_action_cmd_whirlwind_4_pal, + 0x00000003, + HUD_ELEMENT_OP_End +}; + +HudScript HudScript_Whirlwind5 = { + HUD_ELEMENT_OP_SetVisible, + HUD_ELEMENT_OP_SetTileSize, HUD_ELEMENT_SIZE_24x24, + HUD_ELEMENT_OP_Loop, + HUD_ELEMENT_OP_SetCI, + 60, (s32)battle_action_cmd_whirlwind_5_png, (s32)battle_action_cmd_whirlwind_5_pal, + 0x00000003, + HUD_ELEMENT_OP_End +}; + +HudScript HudScript_Whirlwind6 = { + HUD_ELEMENT_OP_SetVisible, + HUD_ELEMENT_OP_SetTileSize, HUD_ELEMENT_SIZE_24x24, + HUD_ELEMENT_OP_Loop, + HUD_ELEMENT_OP_SetCI, + 60, (s32)battle_action_cmd_whirlwind_6_png, (s32)battle_action_cmd_whirlwind_6_pal, + 0x00000003, + HUD_ELEMENT_OP_End +}; + +HudScript HudScript_Whirlwind7 = { + HUD_ELEMENT_OP_SetVisible, + HUD_ELEMENT_OP_SetTileSize, HUD_ELEMENT_SIZE_24x24, + HUD_ELEMENT_OP_Loop, + HUD_ELEMENT_OP_SetCI, + 60, (s32)battle_action_cmd_whirlwind_7_png, (s32)battle_action_cmd_whirlwind_7_pal, + 0x00000003, + HUD_ELEMENT_OP_End +}; + +HudScript HudScript_WhirlwindBubble = { + HUD_ELEMENT_OP_SetVisible, + HUD_ELEMENT_OP_SetCustomSize, battle_action_cmd_whirlwind_bubble_png_width, battle_action_cmd_whirlwind_bubble_png_height, + 0x00000004, + HUD_ELEMENT_OP_SetCI, 60, (s32)battle_action_cmd_whirlwind_bubble_png, (s32)battle_action_cmd_whirlwind_bubble_pal, + 0x00000003, + HUD_ELEMENT_OP_End +}; + +s32 D_802AA844_4254B4[] = { 0, 25, 50, 75, 100, 100 }; + +s32 D_802AA85C_4254CC[] = { 50, 50, 50, 50, 75, 75, 75, 100, 100, 100, 100 }; + +HudScript* D_802AA888_4254F8[] = { + &HudScript_Whirlwind7, &HudScript_Whirlwind6, &HudScript_Whirlwind5, &HudScript_Whirlwind4, &HudScript_Whirlwind3, &HudScript_Whirlwind2 +}; + +HudScript* D_802AA8A0_425510[] = { + &HudScript_Whirlwind1, &HudScript_Whirlwind1, &HudScript_Whirlwind2, &HudScript_Whirlwind3, &HudScript_Whirlwind3 +}; + +s32 D_802AA8B4_425524[] = { 3, 3, 3, 3, 2, 2, 2, 1, 1, 1, 1 }; + ApiStatus func_802A9000_423C70(Evt* script, s32 isInitialCall) { ActionCommandStatus* actionCommandStatus = &gActionCommandStatus; BattleStatus* battleStatus = &gBattleStatus; Bytecode* args = script->ptrReadPos; s16 temp_v0; - HudElement* hudElement; + s32 id; battleStatus->unk_82 = 5; battleStatus->unk_434 = &D_80294240; @@ -20,12 +140,12 @@ ApiStatus func_802A9000_423C70(Evt* script, s32 isInitialCall) { } func_80268858(); - temp_v0 = evt_get_variable(script, *args); + temp_v0 = evt_get_variable(script, *args++); actionCommandStatus->unk_64 = temp_v0; actionCommandStatus->actionCommandID = ACTION_COMMAND_WHIRLWIND; actionCommandStatus->state = 0; actionCommandStatus->unk_60 = 0; - actionCommandStatus->unk_44 = 0; + actionCommandStatus->barFillLevel = 0; actionCommandStatus->unk_48 = 0; if (temp_v0 == 0) { battleStatus->unk_84 = 0; @@ -35,70 +155,208 @@ ApiStatus func_802A9000_423C70(Evt* script, s32 isInitialCall) { actionCommandStatus->hudElementX = -48; actionCommandStatus->hudElementY = 80; - hudElement = hud_element_create(&HudScript_AButton); - actionCommandStatus->hudElements[0] = hudElement; - hud_element_set_flags(hudElement, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); - hud_element_set_render_pos(hudElement, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY); - hud_element_set_render_depth(hudElement, 0); + id = hud_element_create(&HudScript_AButton); + actionCommandStatus->hudElements[0] = id; + hud_element_set_flags(id, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); + hud_element_set_render_pos(id, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY); + hud_element_set_render_depth(id, 0); - hudElement = hud_element_create(&HudScript_BlueMeter); - actionCommandStatus->hudElements[1] = hudElement; - hud_element_set_render_pos(hudElement, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY + 28); - hud_element_set_render_depth(hudElement, 0); - hud_element_set_flags(hudElement, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); + id = hud_element_create(&HudScript_BlueMeter); + actionCommandStatus->hudElements[1] = id; + hud_element_set_render_pos(id, actionCommandStatus->hudElementX, actionCommandStatus->hudElementY + 28); + hud_element_set_render_depth(id, 0); + hud_element_set_flags(id, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); - hudElement = hud_element_create(&D_802AA7F0_425460); - actionCommandStatus->hudElements[2] = hudElement; - hud_element_set_render_pos(hudElement, actionCommandStatus->hudElementX + 54, actionCommandStatus->hudElementY + 28); - hud_element_set_render_depth(hudElement, 0); - hud_element_set_flags(hudElement, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); + id = hud_element_create(&HudScript_Whirlwind7); + actionCommandStatus->hudElements[2] = id; + hud_element_set_render_pos(id, actionCommandStatus->hudElementX + 54, actionCommandStatus->hudElementY + 28); + hud_element_set_render_depth(id, 0); + hud_element_set_flags(id, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); - hudElement = hud_element_create(&D_802AA818_425488); - actionCommandStatus->hudElements[3] = hudElement; - hud_element_set_render_pos(hudElement, actionCommandStatus->hudElementX + 60, actionCommandStatus->hudElementY + 28); - hud_element_set_render_depth(hudElement, 0); - hud_element_set_flags(hudElement, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); + id = hud_element_create(&HudScript_WhirlwindBubble); + actionCommandStatus->hudElements[3] = id; + hud_element_set_render_pos(id, actionCommandStatus->hudElementX + 60, actionCommandStatus->hudElementY + 28); + hud_element_set_render_depth(id, 0); + hud_element_set_flags(id, HUD_ELEMENT_FLAGS_80 | HUD_ELEMENT_FLAGS_DISABLED); return ApiStatus_DONE2; } -#else -INCLUDE_ASM(s32, "battle/action_cmd/whirlwind", func_802A9000_423C70); -#endif -INCLUDE_ASM(s32, "battle/action_cmd/whirlwind", func_802A91E0_423E50); +ApiStatus func_802A91E0_423E50(Evt* script, s32 isInitialCall) { + ActionCommandStatus* actionCommandStatus = &gActionCommandStatus; + BattleStatus* battleStatus = &gBattleStatus; + Bytecode* args = script->ptrReadPos; -INCLUDE_ASM(s32, "battle/action_cmd/whirlwind", func_802A92F0_423F60); + if (battleStatus->unk_83 == 0) { + battleStatus->actionSuccess = 0; + return ApiStatus_DONE2; + } -// hud element scripts -extern HudScript* D_802AA888_4254F8[]; -extern HudScript* D_802AA8A0_425510[]; + func_80268858(); + actionCommandStatus->unk_4E = evt_get_variable(script, *args++); + actionCommandStatus->unk_52 = evt_get_variable(script, *args++); + actionCommandStatus->unk_50 = evt_get_variable(script, *args++); + actionCommandStatus->unk_50 = func_80268224(actionCommandStatus->unk_50); + actionCommandStatus->unk_60 = 0; + actionCommandStatus->barFillLevel = 0; + actionCommandStatus->unk_48 = 0; + battleStatus->actionSuccess = 0; + battleStatus->unk_86 = 0; + if (actionCommandStatus->unk_64 == 0) { + battleStatus->unk_84 = 0; + } else { + battleStatus->unk_84 = 3; + } + actionCommandStatus->state = 10; + gBattleStatus.flags1 &= ~BS_FLAGS1_8000; + return ApiStatus_DONE2; +} + +void func_802A92F0_423F60(void) { + ActionCommandStatus* actionCommandStatus = &gActionCommandStatus; + BattleStatus* battleStatus = &gBattleStatus; + s32 id; + s32 cutoff; + s32 temp; + s32 amt; + + switch (actionCommandStatus->state) { + case 0: + btl_set_popup_duration(99); + + id = actionCommandStatus->hudElements[0]; + if (actionCommandStatus->unk_61 != 0) { + hud_element_clear_flags(id, 2); + } + hud_element_set_alpha(id, 255); + + id = actionCommandStatus->hudElements[1]; + hud_element_set_alpha(id, 255); + if (actionCommandStatus->unk_61 != 0) { + hud_element_clear_flags(id, 2); + } + + id = actionCommandStatus->hudElements[2]; + hud_element_set_alpha(id, 255); + if (actionCommandStatus->unk_61 != 0) { + hud_element_clear_flags(id, 2); + } + + id = actionCommandStatus->hudElements[3]; + hud_element_set_alpha(id, 255); + if (actionCommandStatus->unk_61 != 0) { + hud_element_clear_flags(id, 2); + } + + actionCommandStatus->state = 1; + break; + case 1: + btl_set_popup_duration(99); + actionCommandStatus->hudElementX += 20; + if (actionCommandStatus->hudElementX > 50) { + actionCommandStatus->hudElementX = 50; + } + hud_element_set_render_pos(actionCommandStatus->hudElements[0], actionCommandStatus->hudElementX, actionCommandStatus->hudElementY); + hud_element_set_render_pos(actionCommandStatus->hudElements[1], actionCommandStatus->hudElementX, actionCommandStatus->hudElementY + 28); + hud_element_set_render_pos(actionCommandStatus->hudElements[2], actionCommandStatus->hudElementX + 54, actionCommandStatus->hudElementY + 23); + hud_element_set_render_pos(actionCommandStatus->hudElements[3], actionCommandStatus->hudElementX + 60, actionCommandStatus->hudElementY + 23); + break; + case 10: + btl_set_popup_duration(99); + if (actionCommandStatus->unk_4E != 0) { + actionCommandStatus->unk_4E--; + return; + } + hud_element_set_script(actionCommandStatus->hudElements[0], &HudScript_MashAButton); + actionCommandStatus->barFillLevel = 0; + actionCommandStatus->state = 11; + actionCommandStatus->unk_54 = actionCommandStatus->unk_52; + case 11: + btl_set_popup_duration(99); + cutoff = actionCommandStatus->mashMeterCutoffs[actionCommandStatus->mashMeterIntervals]; + temp = actionCommandStatus->barFillLevel / cutoff; + if (actionCommandStatus->unk_64 == 0) { + amt = D_802AA844_4254B4[temp / 20]; + } else { + amt = D_802AA85C_4254CC[temp / 10]; + } + actionCommandStatus->barFillLevel -= amt; + + if (actionCommandStatus->barFillLevel < 0) { + actionCommandStatus->barFillLevel = 0; + } + + if (actionCommandStatus->unk_6A == 0) { + if (battleStatus->currentButtonsPressed & BUTTON_A) { + s32 amt; + + if (actionCommandStatus->unk_64 == 0) { + amt = battleStatus->unk_434[actionCommandStatus->unk_50] * 5; + } else { + amt = battleStatus->unk_434[actionCommandStatus->unk_50] * 6; + } + actionCommandStatus->barFillLevel += amt; + } + } else { + actionCommandStatus->barFillLevel += battleStatus->unk_434[actionCommandStatus->unk_50] / 4; + actionCommandStatus->barFillLevel += rand_int(battleStatus->unk_434[actionCommandStatus->unk_50] / 4); + } + + if (actionCommandStatus->barFillLevel > cutoff * 100) { + actionCommandStatus->barFillLevel = cutoff * 100; + } + if (actionCommandStatus->unk_64 == 0) { + battleStatus->unk_84 = actionCommandStatus->barFillLevel / 2000; + } else { + battleStatus->unk_84 = D_802AA8B4_425524[actionCommandStatus->barFillLevel / 1000]; + } + + if (actionCommandStatus->unk_54 != 0) { + actionCommandStatus->unk_54--; + return; + } + battleStatus->unk_86 = 127; + battleStatus->actionSuccess = battleStatus->unk_84; + btl_set_popup_duration(0); + actionCommandStatus->unk_54 = 5; + actionCommandStatus->state = 12; + break; + case 12: + if (actionCommandStatus->unk_54 != 0) { + actionCommandStatus->unk_54--; + return; + } + func_80268C9C(); + break; + } +} void func_802A9744_4243B4(void) { ActionCommandStatus* actionCommandStatus = &gActionCommandStatus; BattleStatus* battleStatus = &gBattleStatus; s32 x, y; - s32 hudElement; + s32 id; if (actionCommandStatus->unk_6A == 0) { hud_element_draw_clipped(actionCommandStatus->hudElements[0]); } - hudElement = actionCommandStatus->hudElements[1]; - hud_element_draw_clipped(hudElement); - hud_element_get_render_pos(hudElement, &x, &y); + id = actionCommandStatus->hudElements[1]; + hud_element_draw_clipped(id); + hud_element_get_render_pos(id, &x, &y); - func_80268798(x, y, (s16) actionCommandStatus->barFillLevel / 100, 1); + func_80268798(x, y, actionCommandStatus->barFillLevel / 100, 1); hud_element_draw_clipped(actionCommandStatus->hudElements[3]); - hudElement = actionCommandStatus->hudElements[2]; + id = actionCommandStatus->hudElements[2]; if (actionCommandStatus->unk_64 == 0) { - if (D_802AA888_4254F8[battleStatus->unk_84] != hud_element_get_script(hudElement)) { - hud_element_set_script(hudElement, D_802AA888_4254F8[battleStatus->unk_84]); + if (D_802AA888_4254F8[battleStatus->unk_84] != hud_element_get_script(id)) { + hud_element_set_script(id, D_802AA888_4254F8[battleStatus->unk_84]); } } else { - if (D_802AA8A0_425510[battleStatus->unk_84] != hud_element_get_script(hudElement)) { - hud_element_set_script(hudElement, D_802AA8A0_425510[battleStatus->unk_84]); + if (D_802AA8A0_425510[battleStatus->unk_84] != hud_element_get_script(id)) { + hud_element_set_script(id, D_802AA8A0_425510[battleStatus->unk_84]); } } - hud_element_draw_clipped(hudElement); + hud_element_draw_clipped(id); } void func_802A9898_424508(void) { diff --git a/src/battle/area_arn/actor/tubbas_heart.c b/src/battle/area_arn/actor/tubbas_heart.c index 06642d4a56..8762db6213 100644 --- a/src/battle/area_arn/actor/tubbas_heart.c +++ b/src/battle/area_arn/actor/tubbas_heart.c @@ -144,17 +144,17 @@ EvtScript N(init_80223DA0) = { ApiStatus func_80218680_4FF0D0(Evt* script, s32 isInitialCall) { Bytecode *args = script->ptrReadPos; - Effect6BInstance* effect = (Effect6BInstance*) evt_get_variable(script, *args++); + EffectInstance* effect = (EffectInstance*) evt_get_variable(script, *args++); s32 x = evt_get_variable(script, *args++); s32 y = evt_get_variable(script, *args++); s32 z = evt_get_variable(script, *args++); f32 scale = evt_get_float_variable(script, *args++); - effect->data->pos.x = x; - effect->data->pos.y = y; - effect->data->pos.z = z; - effect->data->scale = scale; + ((Effect6BFXData*)effect->data)->pos.x = x; + ((Effect6BFXData*)effect->data)->pos.y = y; + ((Effect6BFXData*)effect->data)->pos.z = z; + ((Effect6BFXData*)effect->data)->scale = scale; return ApiStatus_DONE2; } diff --git a/src/battle/area_kpa2/69F320.c b/src/battle/area_kpa2/69F320.c index 0041c121db..444424a09d 100644 --- a/src/battle/area_kpa2/69F320.c +++ b/src/battle/area_kpa2/69F320.c @@ -1,4 +1,9 @@ #include "common.h" +#include "sprite/npc/battle_bowser.h" +#include "sprite/npc/parade_peach.h" +#include "battle/battle.h" +#include "script_api/battle.h" +#include "effects.h" #define NAMESPACE b_area_kpa2 @@ -64,8 +69,10 @@ INCLUDE_ASM(s32, "battle/area_kpa2/69F320", func_80219818_6A0A18); #include "common/GetItemEntityPosition.inc.c" #define NAMESPACE b_area_kpa2 -//#include "common/DisableRandomAbility.inc.c" INCLUDE_ASM(s32, "battle/area_kpa2/69F320", func_80219FFC_6A11FC); +// #define NAMESPACE dup_b_area_kpa2 +// #include "common/DisableRandomAbility.inc.c" +// #define NAMESPACE dup_b_area_kpa2 #define NAMESPACE dup_b_area_kpa2 #include "common/CanPlayerLoseAction.inc.c" diff --git a/src/battle/area_kpa2/6A2B50.c b/src/battle/area_kpa2/6A2B50.c index dceb5993f2..833b7d0fe5 100644 --- a/src/battle/area_kpa2/6A2B50.c +++ b/src/battle/area_kpa2/6A2B50.c @@ -1,19 +1,19 @@ #include "common.h" #include "effects.h" +#include "sprite.h" #define NAMESPACE b_area_kpa2 -typedef struct KpaStruct { - /* 0x00 */ s32 unk_00; - /* 0x04 */ s32 unk_04; - /* 0x08 */ s32 unk_08; - /* 0x0C */ s32 unk_0C; - /* 0x10 */ s32 unk_10; - /* 0x14 */ s32 unk_14; -} KpaStruct; // size = 0x14 +// typedef struct KpaStruct { +// /* 0x00 */ s32 unk_00; +// /* 0x04 */ s32 unk_04; +// /* 0x08 */ s32 unk_08; +// /* 0x0C */ s32 unk_0C; +// /* 0x10 */ s32 unk_10; +// /* 0x14 */ s32 unk_14; +// } KpaStruct; // size = 0x14 -extern f32 D_80234828_6BBA28; //f64? -extern KpaStruct D_80234810_6BBA10; +// extern KpaStruct D_80234810_6BBA10; #include "common/StartRumbleWithParams.inc.c" @@ -51,3 +51,23 @@ INCLUDE_ASM(s32, "battle/area_kpa2/6A2B50", func_8021CF54_6A4154); INCLUDE_ASM(s32, "battle/area_kpa2/6A2B50", func_8021CFC0_6A41C0); INCLUDE_ASM(s32, "battle/area_kpa2/6A2B50", func_8021D290_6A4490); + +// const char* D_80234880_6BBA80 = "kpa_bt01_hit"; +// const char* D_80234890_6BBA90 = "kpa_bt01_shape"; +// const char* D_802348A0_6BBAA0 = "kpa_tex"; +// const char* D_802348A8_6BBAA8 = "kpa_bg"; +// const char* D_802348B0_6BBAB0 = "kkj_bt01_hit"; +// const char* D_802348C0_6BBAC0 = "kkj_bt01_shape"; +// const char* D_802348D0_6BBAD0 = "kkj_tex"; +// const char* D_802348D8_6BBAD8 = "kpa_bg"; +// const char* D_802348E0_6BBAE0 = "kkj_bt02_hit"; +// const char* D_802348F0_6BBAF0 = "kkj_bt02_shape"; +// const char* D_80234900_6BBB00 = "kkj_tex"; +// const char* D_80234908_6BBB08 = "クッパ(ラストバトル3)"; +// const char* D_80234920_6BBB20 = "クッパ(ラストバトル2)"; +// const char* D_80234938_6BBB38 = "クッパ(ラストバトル1)"; +// const char* D_80234950_6BBB50 = "クッパ(オープニング)"; +// const char* D_80234968_6BBB68 = "クッパ"; +// const char* D_80234970_6BBB70 = "kpa_03"; +// const char* D_80234978_6BBB78 = "kpa_02"; +// const char* D_80234980_6BBB80 = "kpa_01"; diff --git a/src/battle/area_omo/actor/groove_guy.c b/src/battle/area_omo/actor/groove_guy.c index bc88d29ce1..37c75d0b2c 100644 --- a/src/battle/area_omo/actor/groove_guy.c +++ b/src/battle/area_omo/actor/groove_guy.c @@ -65,6 +65,8 @@ s32 N(statusTable_80224A40)[] = { STATUS_END, }; +BSS EffectWhirlwindUnk D_802310D0; + ActorPartBlueprint N(partsTable_80224AEC)[] = { { .flags = ACTOR_PART_FLAG_MULTI_TARGET, @@ -595,8 +597,6 @@ EvtScript N(randomSummon) = { EVT_END }; -BSS EffectWhirlwind D_802310D0; - s32 func_8021878C_512D5C(Evt* script, s32 isInitialCall) { Bytecode* args = script->ptrReadPos; s32 x, y, z; diff --git a/src/battle/area_tik2/608AB0.c b/src/battle/area_tik2/608AB0.c index 33cebcd31a..03dcfe48ed 100644 --- a/src/battle/area_tik2/608AB0.c +++ b/src/battle/area_tik2/608AB0.c @@ -4,4 +4,4 @@ #include "common/StartRumbleWithParams.inc.c" -INCLUDE_ASM(s32, "battle/area_tik2/608AB0", func_80218058_608B08); +#include "common/UnkWaterFountainFunc.inc.c" diff --git a/src/battle/area_tik2/608CB0.c b/src/battle/area_tik2/608CB0.c index 6c7305f884..0856f25e98 100644 --- a/src/battle/area_tik2/608CB0.c +++ b/src/battle/area_tik2/608CB0.c @@ -14,7 +14,9 @@ INCLUDE_ASM(s32, "battle/area_tik2/608CB0", func_80218258_608D08); INCLUDE_ASM(s32, "battle/area_tik2/608CB0", func_80218404_608EB4); -INCLUDE_ASM(s32, "battle/area_tik2/608CB0", func_802184E4_608F94); +#define NAMESPACE dup_b_area_tik2 +#include "common/UnkWaterFountainFunc.inc.c" +#define NAMESPACE b_area_tik2 #define NAMESPACE dup2_b_area_tik2 #include "common/StartRumbleWithParams.inc.c" @@ -30,7 +32,9 @@ INCLUDE_ASM(s32, "battle/area_tik2/608CB0", func_802186D8_609188); #include "common/UnfadeBackgroundToBlack.inc.c" #define NAMESPACE b_area_tik2 -INCLUDE_ASM(s32, "battle/area_tik2/608CB0", func_80218884_609334); +#define NAMESPACE dup2_b_area_tik2 +#include "common/UnkWaterFountainFunc.inc.c" +#define NAMESPACE b_area_tik2 #define NAMESPACE dup3_b_area_tik2 #include "common/StartRumbleWithParams.inc.c" diff --git a/src/battle/item/insecticide_herb.c b/src/battle/item/insecticide_herb.c index 2a422493da..f19cb56109 100644 --- a/src/battle/item/insecticide_herb.c +++ b/src/battle/item/insecticide_herb.c @@ -26,29 +26,24 @@ ApiStatus N(func_802A1280_72A9D0)(Evt* script, s32 isInitialCall) { return ApiStatus_DONE2; } -typedef struct N(temp) { - char unk_00[0xC]; - EffectInstanceDataThing* unk_0C; -} N(temp); - ApiStatus N(func_802A12E0_72AA30)(Evt* script, s32 isInitialCall) { Bytecode* args = script->ptrReadPos; f32 a = evt_get_variable(script, *args++); f32 b = evt_get_variable(script, *args++); f32 c = evt_get_variable(script, *args++); - struct N(temp)* effect; + EffectInstance* effect; a += rand_int(20) - 10; b += rand_int(10) - 5; - effect = (struct N(temp)*)fx_cold_breath(0, a, b, c, 1.0f, 30); + effect = fx_cold_breath(0, a, b, c, 1.0f, 30); - effect->unk_0C->unk_18 = 0xF4; - effect->unk_0C->unk_1C = 0xF4; - effect->unk_0C->unk_20 = 0xDC; - effect->unk_0C->unk_28 = 0xD2; - effect->unk_0C->unk_2C = 0xD2; - effect->unk_0C->unk_30 = 0xBE; + ((ColdBreathFXData*)effect->data)->unk_18 = 244; + ((ColdBreathFXData*)effect->data)->unk_1C = 244; + ((ColdBreathFXData*)effect->data)->unk_20 = 220; + ((ColdBreathFXData*)effect->data)->unk_28 = 210; + ((ColdBreathFXData*)effect->data)->unk_2C = 210; + ((ColdBreathFXData*)effect->data)->unk_30 = 190; return ApiStatus_DONE2; } @@ -61,10 +56,10 @@ static s32 _pad = 0; // XXX #include "battle/item/insecticide_herb.pal.inc.c" Vtx N(model)[] = { - { .v = { -16, -16, 0, FALSE, 0, 0, 0, 0, 0, 255 } }, - { .v = { 15, -16, 0, FALSE, 1024, 0, 0, 0, 0, 255 } }, - { .v = { 15, 15, 0, FALSE, 1024, 1024, 0, 0, 0, 255 } }, - { .v = { -16, 15, 0, FALSE, 0, 1024, 0, 0, 0, 255 } }, + { .v = { .ob = {-16, -16, 0}, FALSE, .tc = {0, 0}, .cn = {0, 0, 0, 255} } }, + { .v = { .ob = {15, -16, 0}, FALSE, .tc = {1024, 0}, .cn = {0, 0, 0, 255} } }, + { .v = { .ob = {15, 15, 0}, FALSE, .tc = {1024, 1024}, .cn = {0, 0, 0, 255} } }, + { .v = { .ob = {-16, 15, 0}, FALSE, .tc = {0, 1024}, .cn = {0, 0, 0, 255} } }, }; Gfx N(displayList)[] = { diff --git a/src/battle/item/mystery.c b/src/battle/item/mystery.c index 833bd80826..f52d3a8a2d 100644 --- a/src/battle/item/mystery.c +++ b/src/battle/item/mystery.c @@ -2,215 +2,162 @@ #include "effects.h" #include "ld_addrs.h" #include "battle/item/mystery.png.h" +#include "pause/pause_common.h" + +BSS s32 D_802A25B8[2]; #include "ItemRefund.inc.c" -#ifdef NON_EQUIVALENT - -extern s32 D_802A25E4; -extern HudElement* D_802A25C8; -extern s32 D_802A25EC; - -void N(func_802A123C_72C7EC)(void) { - s32 i; - HudElement** ptr; - s32 var; - s32* var2; - - if (D_802A25E4 < 6) { - if (D_802A25E4 > 0) { - draw_box(0, 7, 0x6A, 0x56, 0, 0x24, 0x24, 0xFF, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x140, 0xF0, 0); - - gDPSetScissor(gMasterGfxPos++, G_SC_NON_INTERLACE, 108, 90, 139, 118); - - ptr = &D_802A25C8; - for (i = 0; i < 7; i++) { - var2 = *ptr; - var = (D_802A25EC / 100) - 0x68; - ptr++; - hud_element_set_render_pos(var2, 0x7C, (i * 0x1A) - var); - hud_element_draw_without_clipping(var2); - } - - var2 = D_802A25C8; - var = (D_802A25EC / 100) - 0x68; - hud_element_set_render_pos(var2, 0x7C, (i * 0x1A) - var); - hud_element_draw_without_clipping(var2); - } - } -} -#else -INCLUDE_ASM(ApiStatus, "battle/item/mystery", battle_item_mystery_func_802A123C_72C7EC, Evt* script, - s32 isInitialCall); -#endif - -#ifdef NON_EQUIVALENT - +extern s32 D_802A25C8[7]; extern s32 D_802A25E4; extern s32 D_802A25E8; extern s32 D_802A25EC; extern s32 D_802A25F0; extern s32 D_802A25F4; extern s32 D_802A25F8; -extern s16** D_802A25FC; -extern HudElement** D_802A25C8; -extern struct N(tempStc) gItemHudScripts[100]; +extern s32* D_802A25FC; -ApiStatus N(func_802A13E4_72C994)(Evt* script, s32 isInitialCall) { +void N(func_802A123C_72C7EC(void)) { + s32 var_s3; + s32 id; + s32 i; + + if (D_802A25E4 < 6) { + if (D_802A25E4 > 0) { + draw_box(0, 7, 106, 86, 0, 36, 36, 255, 0, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, NULL, NULL, NULL, SCREEN_WIDTH, SCREEN_HEIGHT, NULL); + gDPSetScissor(gMasterGfxPos++, G_SC_NON_INTERLACE, 108, 90, 139, 118); + + for (i = 0; i < ARRAY_COUNT(D_802A25C8); i++) { + id = D_802A25C8[i]; + hud_element_set_render_pos(id, 124, (i * 26) + 104 - (D_802A25EC / 100)); + hud_element_draw_without_clipping(id); + } + id = D_802A25C8[0]; + hud_element_set_render_pos(id, 124, (i * 26) + 104 - (D_802A25EC / 100)); + hud_element_draw_without_clipping(id); + } + } +} + +s32 N(func_802A13E4_72C994)(Evt* script, s32 isInitialCall) { BattleStatus* battleStatus = &gBattleStatus; + s32 temp_a0_4; + s32 temp_v1_3; + s32 var_v0_2; + s32 var_v0_3; + s32 id; + s32 i; if (isInitialCall) { D_802A25E4 = 0; } switch (D_802A25E4) { - case 0: { - s32* tablePtr; - s32 i; - f32 t0; - f32 t1; - HudElement* icon; - HudElement** iconPtr; - struct N(tempStc)* ic; - ItemData* itemTable; - - D_802A25F8 = create_generic_entity_frontUI(NULL, func_802A123C_72C7EC); + case 0: + D_802A25F8 = create_generic_entity_frontUI(NULL, N(func_802A123C_72C7EC)); D_802A25EC = rand_int(18200); D_802A25F0 = 1000; - tablePtr = &D_802A25FC; - *tablePtr = N(D_802A227C_72D82C); + D_802A25FC = N(D_802A227C_72D82C); if (battleStatus->unk_432 > 0) { - get_screen_overlay_params(1, &t0, &t1); - if (t1 >= 215.0f) { - *tablePtr = N(D_802A229C_72D84C); + u8 type; + f32 zoom; + + get_screen_overlay_params(1, &type, &zoom); + if (zoom >= 215.0f) { + D_802A25FC = N(D_802A229C_72D84C); } } - i = 0; - ic = &gItemHudScripts; - itemTable = gItemTable; - iconPtr = &D_802A25C8; - for (; i < 7; i++, iconPtr++) { - icon = hud_element_create(ic[itemTable[D_802A25FC[i]].iconID].iconId); - *iconPtr = icon; - hud_element_set_flags(icon, HUD_ELEMENT_FLAGS_80); + for (i = 0; i < ARRAY_COUNT(D_802A25C8); i++) { + id = hud_element_create(gItemHudScripts[gItemTable[D_802A25FC[i]].hudElemID].enabled); + D_802A25C8[i] = id; + hud_element_set_flags(id, HUD_ELEMENT_FLAGS_80); } D_802A25E4 = 1; - } - break; - - case 1: { - s32* ECptr = &D_802A25EC; - s32* F0ptr = &D_802A25F0; - - *ECptr += *F0ptr; - if (*ECptr / 100 > 181) { - s32* test = ECptr; - *test -= 0x4718; + return ApiStatus_BLOCK; + case 1: + D_802A25EC += D_802A25F0; + if (D_802A25EC / 100 >= 182) { + D_802A25EC -= 18200; } - if (*F0ptr > 400) { - *F0ptr -= 10; - } else if (*F0ptr > 100) { - *F0ptr -= 5; + if (D_802A25F0 > 400) { + D_802A25F0 -= 10; + } else if (D_802A25F0 > 100) { + D_802A25F0 -= 5; } else { - *F0ptr -= 1; + D_802A25F0 -= 1; } if (D_802A25F0 < 10) { D_802A25E8 = D_802A25EC / 100; - if (D_802A25E8 % 26 < 13) { + + if (((D_802A25EC / 100) % 26) < 13) { if (rand_int(100) < 80) { D_802A25E4 = 2; } else { D_802A25E4 = 3; } - } else if (rand_int(100) < 60) { + break; + } + + if (rand_int(100) < 60) { D_802A25E4 = 3; } else { D_802A25E4 = 2; } } - } - break; - - case 2: { - s32* E8ptr = &D_802A25E8; - s32 a, b, c, d; - - d = *E8ptr % 26; - a = d; - c = a + 3; - if (c < 0) { - c = a + 6; + break; + case 2: + temp_a0_4 = D_802A25E8 % 26; + var_v0_2 = temp_a0_4 + 3; + if (var_v0_2 < 0) { + var_v0_2 += 3; } - d = c >> 2; - *E8ptr -= d; - D_802A25EC = *E8ptr * 100; - if (d == 0) { + temp_a0_4 = var_v0_2 >> 2; + D_802A25E8 -= temp_a0_4; + D_802A25EC = D_802A25E8 * 100; + if (temp_a0_4 == 0) { D_802A25E4 = 4; } - } - break; - - case 3: { - s32* E8ptr = &D_802A25E8; - s32 a, b, c, d; - - d = *E8ptr % 26; - if (d == 0) { + break; + case 3: + temp_v1_3 = D_802A25E8 % 26; + if (temp_v1_3 == 0) { D_802A25E4 = 4; break; } - a = d; - b = 26; - b -= a; - c = b + 3; - if (c < 0) { - c = b + 6; + temp_a0_4 = 26 - temp_v1_3; + var_v0_3 = temp_a0_4 + 3; + if (var_v0_3 < 0) { + var_v0_3 += 3; } - c = c >> 2; - *E8ptr += c; - D_802A25EC = *E8ptr * 100; - } - break; - - case 4: { + temp_a0_4 = var_v0_3 >> 2; + D_802A25E8 += temp_a0_4; + D_802A25EC = D_802A25E8 * 100; + break; + case 4: D_802A25F4 = 20; D_802A25E4 = 5; - } - break; - - case 5: { - s32* F4ptr = &D_802A25F4; - s32 i; - s16 g; - HudElement** iconPtr; - - if (*F4ptr != 0) { - *F4ptr -= 1; + break; + case 5: + if (D_802A25F4 != 0) { + D_802A25F4--; break; } - iconPtr = &D_802A25C8; - i = D_802A25E8 / 26; - g = D_802A25FC[i]; - battleStatus->selectedItemID = g; - script->varTable[0] = g; - free_generic_entity(D_802A25F8); - for (i = 0; i < 7; i++) { - hud_element_free(*iconPtr++); - } - } - return ApiStatus_DONE2; - } + var_v0_3 = i = D_802A25E8 / 26; // use of i required to match + battleStatus->selectedItemID = D_802A25FC[D_802A25E8 / 26]; + script->varTable[0] = battleStatus->selectedItemID; + free_generic_entity(D_802A25F8); + for (i = 0; i < ARRAY_COUNT(D_802A25C8); i++) { + hud_element_free(D_802A25C8[i]); + } + return ApiStatus_DONE2; + } return ApiStatus_BLOCK; } -#else -INCLUDE_ASM(ApiStatus, "battle/item/mystery", battle_item_mystery_func_802A13E4_72C994, Evt* script, - s32 isInitialCall); -#endif ApiStatus N(func_802A188C_72CE3C)(Evt* script, s32 isInitialCall) { Bytecode* args = script->ptrReadPos; @@ -260,7 +207,7 @@ Gfx N(displayList)[] = { }; s32 N(modelCommandList)[] = { - 0x00000004, 0x0000000D, 0x00000001, sizeof(N(displayList)) / sizeof(s32), &N(displayList), 0x00000002, 0x00000000, + 0x00000004, 0x0000000D, 0x00000001, sizeof(N(displayList)) / sizeof(s32), (s32) &N(displayList), 0x00000002, 0x00000000, }; s32 N(D_802A227C_72D82C)[8] = { diff --git a/src/battle/item/shooting_star.c b/src/battle/item/shooting_star.c index b4e7469bde..a856750ca5 100644 --- a/src/battle/item/shooting_star.c +++ b/src/battle/item/shooting_star.c @@ -3,51 +3,21 @@ #include "ItemRefund.inc.c" -#ifdef NON_EQUIVALENT -ApiStatus N(func_802A123C_71D9AC)(Evt* script, s32 isInitialCall) { - s32 c8 = 200; - s32 temp_s1 = 100 + rand_int(c8); - s32 temp_s0 = rand_int(40); - s32 phi_a0; - s32 phi_v0; - s32 rand; - f32 temp_f20; - f32 temp_f22; - f32 test; +ApiStatus battle_item_shooting_star_func_802A123C_71D9AC(Evt* script, s32 isInitialCall) { + s32 t1 = 200; + s32 r1 = rand_int(t1) + 100; // 100-299 + s32 r2 = rand_int(40); // 0-39 + f32 var_f22; - if (script->varTable[0] & 3) { - rand = rand_int(100); - rand += c8; - temp_f22 = temp_s1 - rand; - rand = rand_int(100); - rand -= 50; - temp_f20 = temp_s0 - rand; - phi_v0 = rand_int(10); - phi_a0 = 2; + if ((script->varTable[0] % 4) != 0) { + var_f22 = r1 - (rand_int(100) + t1); + fx_star(2, r1, t1, r2, var_f22, 0.0f, r2 + 50 - rand_int(100), rand_int(10) + 7); } else { - rand = rand_int(100); - rand += 200; - temp_f22 = temp_s1 - rand; - rand = rand_int(100); - rand -= 50; - temp_f20 = temp_s0 - rand; - phi_v0 = rand_int(10); - phi_a0 = 3; + var_f22 = r1 - (rand_int(100) + t1); + fx_star(3, r1, t1, r2, var_f22, 0.0f, r2 + 50 - rand_int(100), rand_int(10) + 7); } - - do { - fx_star(phi_a0, temp_s1, c8, temp_s0, temp_f22, 0, temp_f20, phi_v0 + 7); - if (temp_f20) { - temp_f20 -= rand; - } - } while (0); - return ApiStatus_DONE2; } -#else -INCLUDE_ASM(ApiStatus, "battle/item/shooting_star", battle_item_shooting_star_func_802A123C_71D9AC, - Evt* script, s32 isInitialCall); -#endif ApiStatus N(func_802A1388_71DAF8)(Evt* script, s32 isInitialCall) { Bytecode* args = script->ptrReadPos; diff --git a/src/battle/item/strange_cake.c b/src/battle/item/strange_cake.c index d2ddb6db42..01264edac7 100644 --- a/src/battle/item/strange_cake.c +++ b/src/battle/item/strange_cake.c @@ -1,209 +1,158 @@ #include "strange_cake.h" #include "effects.h" +#include "pause/pause_common.h" +#include "hud_element.h" #include "battle/item/strange_cake1.png.h" #include "battle/item/strange_cake2.png.h" #include "battle/item/strange_cake3.png.h" +BSS s32 D_802A2DC8[2]; + #include "ItemRefund.inc.c" -#ifdef NON_EQUIVALENT - -extern s32 D_802A25E4; -extern HudElement* D_802A2DF4; -extern s32 D_802A2DD8; - -ApiStatus N(func_802A123C_73153C)(Evt* script, s32 isInitialCall) { - s32 i; - HudElement** ptr; - s32 var; - s32* var2; - - if (D_802A25E4 < 6) { - if (D_802A25E4 > 0) { - draw_box(0, 7, 0x6A, 0x56, 0, 0x24, 0x24, 0xFF, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x140, 0xF0, 0); - - gDPSetScissor(gMasterGfxPos++, G_SC_NON_INTERLACE, 108, 90, 139, 118); - - ptr = &D_802A2DF4; - for (i = 0; i < 7; i++) { - var2 = *ptr; - var = (D_802A2DD8 / 100) - 0x68; - ptr++; - hud_element_set_render_pos(var2, 0x7C, (i * 0x1A) - var); - hud_element_draw_without_clipping(var2); - } - - var2 = D_802A2DF4; - var = (D_802A2DD8 / 100) - 0x68; - hud_element_set_render_pos(var2, 0x7C, (i * 0x1A) - var); - hud_element_draw_without_clipping(var2); - } - } -} -#else -INCLUDE_ASM(ApiStatus, "battle/item/strange_cake", battle_item_strange_cake_func_802A123C_73153C); -#endif - -#ifdef NON_EQUIVALENT +extern HudScript* N(D_802A2848_732B48)[]; +extern s32 N(D_802A2858_732B58)[]; +extern s32 D_802A2DD8[5]; +extern s32 D_802A2DE4; extern s32 D_802A2DEC; extern s32 D_802A2DF0; extern s32 D_802A2DF4; extern s32 D_802A2DF8; extern s32 D_802A2DFC; extern s32 D_802A2E00; -extern s32* D_802A2DD8; -extern HudElement** D_802A25C8; -s32 N(D_802A2848_732B48)[] = { - 0x802A27F8, 0x802A2820, 0x802A27D0, 0x802A27F8 -}; +void N(func_802A123C_73153C(void)) { + s32 var_s3; + s32 id; + s32 i; -s32 N(D_802A2858_732B58)[] = { - 0x00000000, 0x00000001, 0x00000002, 0x00000000, 0x00000001 -}; + if (D_802A2DEC < 6) { + if (D_802A2DEC > 0) { + draw_box(0, 7, 106, 86, 0, 36, 36, 255, 0, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, NULL, NULL, NULL, SCREEN_WIDTH, SCREEN_HEIGHT, NULL); + gDPSetScissor(gMasterGfxPos++, G_SC_NON_INTERLACE, 108, 90, 139, 118); -ApiStatus N(func_802A13E4_7316E4)(Evt* script, s32 isInitialCall) { + for (i = 0; i < ARRAY_COUNT(D_802A2DD8); i++) { + id = D_802A2DD8[i]; + hud_element_set_render_pos(id, 124, (i * 26) + 104 - (D_802A2DF4 / 100)); + hud_element_draw_without_clipping(id); + } + id = D_802A2DD8[0]; + hud_element_set_render_pos(id, 124, (i * 26) + 104 - (D_802A2DF4 / 100)); + hud_element_draw_without_clipping(id); + } + } +} + +s32 N(func_802A13E4_7316E4)(Evt* script, s32 isInitialCall) { BattleStatus* battleStatus = &gBattleStatus; + s32 temp_a0_4; + s32 temp_v1_3; + s32 var_v0_2; + s32 var_v0_3; + s32 id; + s32 i; if (isInitialCall) { D_802A2DEC = 0; } switch (D_802A2DEC) { - case 0: { - s32 i; - HudElement** iconPtr; - - D_802A2E00 = create_generic_entity_frontUI(NULL, func_802A123C_73153C); - i = rand_int(13000); - D_802A2DF4 = i; - + case 0: + D_802A2E00 = create_generic_entity_frontUI(NULL, N(func_802A123C_73153C)); + D_802A2DF4 = rand_int(13000); D_802A2DF8 = 1000; - for (i = 0; i < 5; i++) { - s32* B48Ptr = &N(D_802A2848_732B48); - s32* B58Ptr = &N(D_802A2858_732B58); - HudElement* icon = hud_element_create(*(B48Ptr + * (B58Ptr + i))); - - *(&D_802A2DD8 + i) = icon; - hud_element_set_flags(icon, HUD_ELEMENT_FLAGS_80); + for (i = 0; i < ARRAY_COUNT(D_802A2DD8); i++) { + id = hud_element_create(N(D_802A2848_732B48)[N(D_802A2858_732B58)[i]]); + D_802A2DD8[i] = id; + hud_element_set_flags(id, HUD_ELEMENT_FLAGS_80); } D_802A2DEC = 1; - } - break; - case 1: { - s32* ECptr = &D_802A2DF4; - s32* F0ptr = &D_802A2DF8; - - *ECptr += *F0ptr; - if (*ECptr / 100 >= 130) { - s32* test = ECptr; - *test -= 0x32C8; + return ApiStatus_BLOCK; + case 1: + D_802A2DF4 += D_802A2DF8; + if (D_802A2DF4 / 100 >= 130) { + D_802A2DF4 -= 13000; } - if (*F0ptr > 400) { - *F0ptr -= 10; - } else if (*F0ptr > 100) { - *F0ptr -= 5; + if (D_802A2DF8 > 400) { + D_802A2DF8 -= 10; + } else if (D_802A2DF8 > 100) { + D_802A2DF8 -= 5; } else { - *F0ptr -= 1; + D_802A2DF8 -= 1; } if (D_802A2DF8 < 10) { D_802A2DF0 = D_802A2DF4 / 100; - if (D_802A2DF0 % 26 < 13) { + + if (((D_802A2DF4 / 100) % 26) < 13) { if (rand_int(100) < 80) { D_802A2DEC = 2; } else { D_802A2DEC = 3; } - } else if (rand_int(100) < 60) { + break; + } + + if (rand_int(100) < 60) { D_802A2DEC = 3; } else { D_802A2DEC = 2; } } - } - break; - - case 2: { - s32* E8ptr = &D_802A2DF0; - s32 a, b, c, d; - - d = *E8ptr % 26; - a = d; - c = a + 3; - if (c < 0) { - c = a + 6; + break; + case 2: + temp_a0_4 = D_802A2DF0 % 26; + var_v0_2 = temp_a0_4 + 3; + if (var_v0_2 < 0) { + var_v0_2 += 3; } - d = c >> 2; - *E8ptr -= d; - D_802A2DF4 = *E8ptr * 100; - if (d == 0) { + temp_a0_4 = var_v0_2 >> 2; + D_802A2DF0 -= temp_a0_4; + D_802A2DF4 = D_802A2DF0 * 100; + if (temp_a0_4 == 0) { D_802A2DEC = 4; } - } - break; - - case 3: { - s32* E8ptr = &D_802A2DF0; - s32 a, b, c, d; - - d = *E8ptr % 26; - if (d == 0) { + break; + case 3: + temp_v1_3 = D_802A2DF0 % 26; + if (temp_v1_3 == 0) { D_802A2DEC = 4; break; } - a = d; - b = 26; - b -= a; - c = b + 3; - if (c < 0) { - c = b + 6; + temp_a0_4 = 26 - temp_v1_3; + var_v0_3 = temp_a0_4 + 3; + if (var_v0_3 < 0) { + var_v0_3 += 3; } - c = c >> 2; - *E8ptr += c; - D_802A2DF4 = *E8ptr * 100; - } - break; - - case 4: { + temp_a0_4 = var_v0_3 >> 2; + D_802A2DF0 += temp_a0_4; + D_802A2DF4 = D_802A2DF0 * 100; + break; + case 4: D_802A2DFC = 20; D_802A2DEC = 5; - } - break; - - case 5: { - s32* F4ptr = &D_802A2DFC; - s32 i; - s16 g; - HudElement** iconPtr; - - if (*F4ptr != 0) { - *F4ptr -= 1; + break; + case 5: + if (D_802A2DFC != 0) { + D_802A2DFC--; break; } - iconPtr = &D_802A25C8; - i = D_802A2DF0 / 26; - g = N(D_802A2858_732B58)[i]; - battleStatus->selectedItemID = g; - script->varTable[0] = g; - free_generic_entity(D_802A2E00); - for (i = 0; i < 5; i++) { - hud_element_free(*iconPtr++); - } - } - return ApiStatus_DONE2; - } + var_v0_3 = i = D_802A2DF0 / 26; // use of i required to match + battleStatus->selectedItemID = N(D_802A2858_732B58)[var_v0_3]; + script->varTable[0] = battleStatus->selectedItemID; + free_generic_entity(D_802A2E00); + for (i = 0; i < ARRAY_COUNT(D_802A2DD8); i++) { + hud_element_free(D_802A2DD8[i]); + } + return ApiStatus_DONE2; + } return ApiStatus_BLOCK; } -#else -INCLUDE_ASM(ApiStatus, "battle/item/strange_cake", battle_item_strange_cake_func_802A13E4_7316E4, - Evt* script, s32 isInitialCall); -#endif ApiStatus N(func_802A1818_731B18)(Evt* script, s32 isInitialCall) { Bytecode* args = script->ptrReadPos; @@ -302,23 +251,38 @@ static s32 _pad = 0; // XXX #include "battle/item/strange_cake3.png.inc.c" #include "battle/item/strange_cake3.pal.inc.c" -s32 N(data)[] = { - 0x00000008, 0x00000005, 0x00000003, 0x00000004, - 0x00000002, 0x0000003C, 0x802A2170, 0x802A2370, - 0x00000003, 0x00000000, 0x00000008, 0x00000005, - 0x00000003, 0x00000004, 0x00000002, 0x0000003C, - 0x802A2390, 0x802A2590, 0x00000003, 0x00000000, - 0x00000008, 0x00000005, 0x00000003, 0x00000004, - 0x00000002, 0x0000003C, 0x802A25B0, 0x802A27B0, - 0x00000003, 0x00000000 +HudScript N(D_802A27D0) = { + HUD_ELEMENT_OP_SetVisible, + HUD_ELEMENT_OP_SetTileSize, HUD_ELEMENT_SIZE_32x32, HUD_ELEMENT_OP_Loop, + HUD_ELEMENT_OP_SetCI, 60, (s32) battle_item_strange_cake1_png, (s32) battle_item_strange_cake1_pal, + 0x00000003, + HUD_ELEMENT_OP_End, }; -s32 N(D_802A2848_732B48)[] = { - 0x802A27F8, 0x802A2820, 0x802A27D0, 0x802A27F8 +HudScript N(D_802A27F8) = { + HUD_ELEMENT_OP_SetVisible, + HUD_ELEMENT_OP_SetTileSize, HUD_ELEMENT_SIZE_32x32, HUD_ELEMENT_OP_Loop, + HUD_ELEMENT_OP_SetCI, 60, (s32) battle_item_strange_cake2_png, (s32) battle_item_strange_cake2_pal, + 0x00000003, + HUD_ELEMENT_OP_End, }; +HudScript N(D_802A2820) = { + HUD_ELEMENT_OP_SetVisible, + HUD_ELEMENT_OP_SetTileSize, HUD_ELEMENT_SIZE_32x32, + HUD_ELEMENT_OP_Loop, + HUD_ELEMENT_OP_SetCI, 60, (s32) battle_item_strange_cake3_png, (s32) battle_item_strange_cake3_pal, + 0x00000003, + HUD_ELEMENT_OP_End +}; + +HudScript* N(D_802A2848_732B48)[] = { + &N(D_802A27F8), &N(D_802A2820), &N(D_802A27D0), &N(D_802A27F8) +}; + +// indexes into D_802A2848_732B48 s32 N(D_802A2858_732B58)[] = { - 0x00000000, 0x00000001, 0x00000002, 0x00000000, 0x00000001, 0x000000000 + 0, 1, 2, 0, 1, 0 }; EvtScript N(script6) = { diff --git a/src/battle/partner/watt.c b/src/battle/partner/watt.c index 46aae282c9..5be7dcec09 100644 --- a/src/battle/partner/watt.c +++ b/src/battle/partner/watt.c @@ -67,28 +67,26 @@ ApiStatus func_802384B0_703FA0(Evt* script, s32 isInitialCall) { } ApiStatus func_80238570_704060(Evt* script, s32 isInitialCall) { - s32* var = D_80239A0C_7054FC; + EffectInstance* effect = D_80239A0C_7054FC; - if (var != NULL) { - *var |= 0x10; + if (effect != NULL) { + effect->flags |= 0x10; } D_80239A0C_7054FC = NULL; return ApiStatus_DONE2; } -// Beware this demon because "EffectInstanceDataThing" is one hell of a -// janky solution, but this does match. ApiStatus func_8023859C_70408C(Evt* script, s32 isInitialCall) { Bytecode* args = script->ptrReadPos; s32 var1 = evt_get_variable(script, *args++); s32 var2 = evt_get_variable(script, *args++); s32 var3 = evt_get_variable(script, *args++); - EffectInstanceDataThing* dataThing; + ThunderboltRingFXData* data; D_8023C1B4 = fx_thunderbolt_ring(0, var1, var2, var3, 1.0f, 10); - dataThing = D_8023C1B4->data; - dataThing->unk_30 = 3; + data = D_8023C1B4->data; + data->unk_30 = 3; return ApiStatus_DONE2; } @@ -116,18 +114,16 @@ ApiStatus func_80238784_704274(Evt* script, s32 isInitialCall) { INCLUDE_ASM(s32, "battle/partner/watt", func_80238810_704300); -// Beware this demon because "EffectInstanceDataThing" is one hell of a -// janky solution, but this does match. ApiStatus func_80238B3C_70462C(Evt* script, s32 isInitialCall) { Bytecode* args = script->ptrReadPos; s32 var1 = evt_get_variable(script, *args++); s32 var2 = evt_get_variable(script, *args++); s32 var3 = evt_get_variable(script, *args++); - EffectInstanceDataThing* temp_a0; + ThunderboltRingFXData* data; D_8023C1B4 = fx_thunderbolt_ring(0, var1, var2, var3, 1.0f, 60); - temp_a0 = D_8023C1B4->data; - temp_a0->unk_30 = 2; + data = D_8023C1B4->data; + data->unk_30 = 2; return ApiStatus_DONE2; } diff --git a/src/common/UnkEffect6FFunc.inc.c b/src/common/UnkEffect6FFunc.inc.c index bd26b1a622..08629fcc43 100644 --- a/src/common/UnkEffect6FFunc.inc.c +++ b/src/common/UnkEffect6FFunc.inc.c @@ -3,7 +3,7 @@ ApiStatus N(UnkEffect6FFunc)(Evt* script, s32 isInitialCall) { Bytecode* args = script->ptrReadPos; - Effect6FInstance* effect; + EffectInstance* effect; s32 unused_var = evt_get_variable(script, *args++); s32 temp_s6 = evt_get_variable(script, *args++); s32 temp_s5 = evt_get_variable(script, *args++); @@ -14,13 +14,13 @@ ApiStatus N(UnkEffect6FFunc)(Evt* script, s32 isInitialCall) { s32 temp_s1 = evt_get_variable(script, *args++); s32 temp_s0_9 = evt_get_variable(script, *args++); - effect = (Effect6FInstance*)fx_cold_breath(1, temp_s6, temp_s5, temp_s4, temp_f20, temp_s2); - effect->data->rotation.z = temp_s3; - effect->data->scale.x = temp_s1; - effect->data->scale.y = temp_s0_9; - effect->data->color.x = 255; - effect->data->color.y = 255; - effect->data->color.z = 255; + effect = fx_cold_breath(1, temp_s6, temp_s5, temp_s4, temp_f20, temp_s2); + ((Effect6FFXData*)effect->data)->rotation.z = temp_s3; + ((Effect6FFXData*)effect->data)->scale.x = temp_s1; + ((Effect6FFXData*)effect->data)->scale.y = temp_s0_9; + ((Effect6FFXData*)effect->data)->color.x = 255; + ((Effect6FFXData*)effect->data)->color.y = 255; + ((Effect6FFXData*)effect->data)->color.z = 255; return ApiStatus_DONE2; } diff --git a/src/common/UnkWaterFountainFunc.inc.c b/src/common/UnkWaterFountainFunc.inc.c new file mode 100644 index 0000000000..ebabb38847 --- /dev/null +++ b/src/common/UnkWaterFountainFunc.inc.c @@ -0,0 +1,31 @@ +#include "common.h" +#include "effects.h" + +ApiStatus N(UnkWaterFountainFunc)(Evt* script, s32 isInitialCall) { + Bytecode* args = script->ptrReadPos; + EffectInstance* effect; + f32 temp_f28; + f32 temp_f26; + f32 temp_f20; + f32 temp_f22; + f32 temp_f24; + f32 temp_f20_2; + + temp_f28 = evt_get_variable(script, *args++); + temp_f26 = evt_get_variable(script, *args++); + evt_get_variable(script, *args++); + temp_f20 = evt_get_variable(script, *args++); + temp_f22 = evt_get_variable(script, *args++); + temp_f24 = evt_get_variable(script, *args++); + temp_f20_2 = atan2(temp_f28, temp_f26, temp_f20, temp_f22 + 40.0f); + + effect = fx_water_fountain(0, temp_f20 - 10.0f, temp_f22 + 60.0f, temp_f24 + 20.0f, 2.5f, 40); + ((WaterFountainFXData*)effect->data)->unk_38 = temp_f20_2; + ((WaterFountainFXData*)effect->data)->unk_18 = 2; + ((WaterFountainFXData*)effect->data)->unk_1C = 2; + ((WaterFountainFXData*)effect->data)->unk_20 = 2; + ((WaterFountainFXData*)effect->data)->unk_28 = 80; + ((WaterFountainFXData*)effect->data)->unk_2C = 80; + ((WaterFountainFXData*)effect->data)->unk_30 = 80; + return ApiStatus_DONE2; +} diff --git a/src/common/UnkWhirlwindEffectFunc.inc.c b/src/common/UnkWhirlwindEffectFunc.inc.c index 846bd61986..ee5e53f369 100644 --- a/src/common/UnkWhirlwindEffectFunc.inc.c +++ b/src/common/UnkWhirlwindEffectFunc.inc.c @@ -1,7 +1,7 @@ #include "common.h" #include "effects.h" -BSS EffectWhirlwind N(effectStruct); +BSS EffectWhirlwindUnk N(effectUnk); BSS static s32 padding[0x94]; ApiStatus N(UnkWhirlwindEffectFunc)(Evt* script, s32 isInitialCall) { @@ -11,10 +11,10 @@ ApiStatus N(UnkWhirlwindEffectFunc)(Evt* script, s32 isInitialCall) { s32 var3 = evt_get_variable(script, *args++); s32 var4 = evt_get_variable(script, *args++); - N(effectStruct).unk_28 = var1; - N(effectStruct).unk_2C = var2 - 10.0f; - N(effectStruct).unk_30 = var3; + N(effectUnk).unk_28 = var1; + N(effectUnk).unk_2C = var2 - 10.0f; + N(effectUnk).unk_30 = var3; - fx_46(6, &N(effectStruct), 1.0f, var4); + fx_46(6, &N(effectUnk), 1.0f, var4); return ApiStatus_DONE2; } diff --git a/src/effects/aura.c b/src/effects/aura.c index 4ac661eb96..193f1c9a66 100644 --- a/src/effects/aura.c +++ b/src/effects/aura.c @@ -1,17 +1,17 @@ #include "common.h" #include "effects_internal.h" -extern Gfx D_090023E0[]; -extern Gfx D_09002440[]; -extern Gfx D_090023F8[]; -extern Gfx D_09002458[]; -extern Gfx D_090023B0[]; -extern Gfx D_09002410[]; -extern Gfx D_090023C8[]; -extern Gfx D_09002428[]; extern Gfx D_09002000[]; extern Gfx D_090020E8[]; extern Gfx D_090021D0[]; +extern Gfx D_090023B0[]; +extern Gfx D_090023C8[]; +extern Gfx D_090023E0[]; +extern Gfx D_090023F8[]; +extern Gfx D_09002410[]; +extern Gfx D_09002428[]; +extern Gfx D_09002440[]; +extern Gfx D_09002458[]; Gfx* D_E0076E90[] = { D_090023E0, D_090023E0, D_09002440, D_09002440 }; Gfx* D_E0076EA0[] = { D_090023F8, D_090023F8, D_09002458, D_09002458 }; @@ -57,20 +57,20 @@ void aura_main(s32 arg0, f32 arg1, f32 arg2, f32 arg3, f32 arg4, EffectInstance* part->unk_2C = 100; part->type = arg0; part->unk_30 = 0; - part->unk_28 = 0; + part->primA = 0; part->pos.x = arg1; part->pos.y = arg2; part->pos.z = arg3; switch (arg0) { case 0: - part->unk_68 = 75; - part->unk_69 = 75; - part->unk_6A = 75; - part->unk_6B = 255; - part->unk_6C = 247; - part->unk_6D = 155; - part->unk_6E = 0; + part->primR = 75; + part->primG = 75; + part->primB = 75; + part->envR = 255; + part->envG = 247; + part->engB = 155; + part->engA = 0; part->unk_24 = arg4; part->unk_20 = arg4 * 0.6; part->unk_1C = arg4 * 2.0; @@ -84,13 +84,13 @@ void aura_main(s32 arg0, f32 arg1, f32 arg2, f32 arg3, f32 arg4, EffectInstance* part->unk_60 = 0.9f; break; case 1: - part->unk_68 = 75; - part->unk_69 = 75; - part->unk_6A = 75; - part->unk_6B = 255; - part->unk_6C = 0; - part->unk_6D = 0; - part->unk_6E = 0; + part->primR = 75; + part->primG = 75; + part->primB = 75; + part->envR = 255; + part->envG = 0; + part->engB = 0; + part->engA = 0; part->unk_1C = arg4; part->unk_20 = arg4; part->unk_24 = arg4; @@ -104,13 +104,13 @@ void aura_main(s32 arg0, f32 arg1, f32 arg2, f32 arg3, f32 arg4, EffectInstance* part->unk_60 = 0.9f; break; case 2: - part->unk_68 = 25; - part->unk_69 = 121; - part->unk_6A = 142; - part->unk_6B = 34; - part->unk_6D = 255; - part->unk_6C = 0; - part->unk_6E = 81; + part->primR = 25; + part->primG = 121; + part->primB = 142; + part->envR = 34; + part->engB = 255; + part->envG = 0; + part->engA = 81; part->unk_1C = arg4; part->unk_20 = arg4; part->unk_24 = arg4; @@ -124,13 +124,13 @@ void aura_main(s32 arg0, f32 arg1, f32 arg2, f32 arg3, f32 arg4, EffectInstance* part->unk_60 = 1.04f; break; default: - part->unk_68 = 179; - part->unk_69 = 169; - part->unk_6A = 85; - part->unk_6B = 34; - part->unk_6D = 255; - part->unk_6C = 0; - part->unk_6E = 63; + part->primR = 179; + part->primG = 169; + part->primB = 85; + part->envR = 34; + part->engB = 255; + part->envG = 0; + part->engA = 63; part->unk_1C = arg4; part->unk_20 = arg4; part->unk_24 = arg4; @@ -187,16 +187,16 @@ void aura_update(EffectInstance* effect) { if (type < 2) { if (unk_30 <= 10) { - data->unk_28 += (128 - data->unk_28) * 0.5; + data->primA += (128 - data->primA) * 0.5; } } else { if (unk_30 <= 10) { - data->unk_28 = (unk_30 * 0xFF) / 10; + data->primA = (unk_30 * 0xFF) / 10; } } if (unk_2C < 10) { - data->unk_28 *= 0.5; + data->primA *= 0.5; } if (type == 0) { @@ -263,4 +263,68 @@ void func_E007684C(void) { void func_E0076854(void) { } -INCLUDE_ASM(s32, "effects/aura", aura_appendGfx); +void aura_appendGfx(void* effect) { + Matrix4f sp18, sp58, sp98; + EffectInstance* eff = (EffectInstance*)effect; + AuraFXData* data = ((EffectInstance*)effect)->data; + s32 type = data->type; + s32 primA = data->primA; + s32 v1, v2; + + gSPSegment(gMasterGfxPos++, 0x09, VIRTUAL_TO_PHYSICAL(((EffectInstance*)effect)->graphics->data)); + gSPDisplayList(gMasterGfxPos++, D_E0076ED0[type]); + + shim_guTranslateF(sp18, data->unk_10, data->unk_14, data->unk_18); + if (type == 2) { + shim_guRotateF(sp58, data->unk_64.f, 0.0f, 1.0f, 0.0f); + } else { + shim_guRotateF(sp58, -gCameras[gCurrentCameraID].currentYaw, 0.0f, 1.0f, 0.0f); + } + shim_guMtxCatF(sp58, sp18, sp98); + shim_guScaleF(sp58, data->unk_1C, data->unk_20, 1.0f); + shim_guMtxCatF(sp58, sp98, sp98); + if (type == 0) { + shim_guTranslateF(sp58, (-(data->unk_1C - data->unk_24) / data->unk_24) * 10.0f, 0.0f, 0.0f); + shim_guMtxCatF(sp58, sp98, sp98); + } + shim_guMtxF2L(sp98, &gDisplayContext->matrixStack[gMatrixListPos]); + + gSPMatrix(gMasterGfxPos++, &gDisplayContext->matrixStack[gMatrixListPos++], G_MTX_PUSH | G_MTX_LOAD | G_MTX_MODELVIEW); + gSPDisplayList(gMasterGfxPos++, D_E0076EC0[type]); + gSPPopMatrix(gMasterGfxPos++, G_MTX_MODELVIEW); + + shim_guTranslateF(sp18, data->pos.x, data->pos.y, data->pos.z); + if (type == 2) { + shim_guRotateF(sp58, data->unk_64.f, 0.0f, 1.0f, 0.0f); + } else { + shim_guRotateF(sp58, -gCameras[gCurrentCameraID].currentYaw, 0.0f, 1.0f, 0.0f); + } + shim_guMtxCatF(sp58, sp18, sp98); + shim_guScaleF(sp58, data->unk_1C, data->unk_20, 1.0f); + shim_guMtxCatF(sp58, sp98, sp98); + if (type == 0) { + shim_guTranslateF(sp58, (-(data->unk_1C - data->unk_24) / data->unk_24) * 10.0f, 0.0f, 0.0f); + shim_guMtxCatF(sp58, sp98, sp98); + } + shim_guMtxF2L(sp98, &gDisplayContext->matrixStack[gMatrixListPos]); + + gSPMatrix(gMasterGfxPos++, &gDisplayContext->matrixStack[gMatrixListPos++], G_MTX_PUSH | G_MTX_LOAD | G_MTX_MODELVIEW); + gSPDisplayList(gMasterGfxPos++, D_E0076EB0[type]); + gSPPopMatrix(gMasterGfxPos++, G_MTX_MODELVIEW); + + gDPSetPrimColor(gMasterGfxPos++, 0, 0, data->primR, data->primG, data->primB, primA); + gDPSetEnvColor(gMasterGfxPos++, data->envR, data->envG, data->engB, data->engA); + + v1 = data->unk_34 * 4.0f; + v2 = data->unk_40 * 4.0f; + + gDPSetTileSize(gMasterGfxPos++, 1, v1, v2, v1 + 124, v2 + 508); + gSPDisplayList(gMasterGfxPos++, D_E0076E90[type]); + + v1 = data->unk_4C * 4.0f; + v2 = data->unk_58 * 4.0f; + + gDPSetTileSize(gMasterGfxPos++, 1, v1 + 30, v2 + 30, v1 + 282, v2 + 538); + gSPDisplayList(gMasterGfxPos++, D_E0076EA0[type]); + gDPPipeSync(gMasterGfxPos++); +} diff --git a/src/effects/big_snowflakes.c b/src/effects/big_snowflakes.c index 8ce977eb46..a4f35e0c9a 100644 --- a/src/effects/big_snowflakes.c +++ b/src/effects/big_snowflakes.c @@ -1,14 +1,98 @@ #include "common.h" #include "effects_internal.h" +extern Gfx D_09000900[]; +extern Gfx D_090009E8[]; +extern Gfx D_09000A10[]; + +Gfx* D_E0060730[] = { D_090009E8, D_09000A10 }; +Gfx* D_E0060738[] = { D_09000900, D_09000900 }; + +void big_snowflakes_init(EffectInstance* effect); +void big_snowflakes_update(EffectInstance* effect); +void big_snowflakes_render(EffectInstance* effect); void big_snowflakes_appendGfx(void* effect); -INCLUDE_ASM(s32, "effects/big_snowflakes", big_snowflakes_main); +void big_snowflakes_main(s32 arg0, f32 arg1, f32 arg2, f32 arg3) { + EffectBlueprint bp; + EffectInstance* effect; + BigSnowflakeFXData* data; + s32 numParts = 9; + s32 i; -void big_snowflakes_init(void) { + bp.unk_00 = 0; + bp.init = big_snowflakes_init; + bp.update = big_snowflakes_update; + bp.renderWorld = big_snowflakes_render; + bp.unk_14 = 0; + bp.effectID = EFFECT_BIG_SNOWFLAKES; + + effect = shim_create_effect_instance(&bp); + effect->numParts = numParts; + + data = shim_general_heap_malloc(effect->numParts * sizeof(*data)); + effect->data = data; + + ASSERT(data != NULL); + + shim_mem_clear(data, numParts * sizeof(*data)); + data->unk_00 = arg0; + data->unk_04 = arg1; + data->unk_08 = arg2; + data->unk_0C = arg3; + data->unk_28 = 30; + data->unk_2C = 0; + data->unk_24 = 0; + + data++; + for (i = 1; i < numParts; i++, data++) { + data->unk_04 = func_E0200000(10) - 5; + data->unk_08 = func_E0200000(10) + 5; + data->unk_0C = 10.0f; + data->unk_18 = func_E0200000(360); + data->unk_20 = func_E0200000(360); + data->unk_1C = func_E0200000(100) / 10; + data->unk_10 = 0; + data->unk_14 = 2.0f; + } } -INCLUDE_ASM(s32, "effects/big_snowflakes", big_snowflakes_update); +void big_snowflakes_init(EffectInstance* effect) { +} + +void big_snowflakes_update(EffectInstance* effect) { + BigSnowflakeFXData* data = effect->data; + s32 unk_28; + s32 i; + + data->unk_28--; + data->unk_2C++; + if (data->unk_28 < 0) { + shim_remove_effect(effect); + return; + } + + unk_28 = data->unk_28; + if (data->unk_2C < 10) { + data->unk_24 += (255 - data->unk_24) * 0.3; + } + if (unk_28 < 10) { + data->unk_24 *= 0.8; + } + + data++; + for (i = 1; i < effect->numParts; i++, data++) { + data->unk_10 += (f32) (shim_sin_deg(2.0f * data->unk_18) * 0.2); + data->unk_14 += -0.05f; + data->unk_10 *= 0.92; + data->unk_14 += -0.05f; + data->unk_1C += func_E0200044(50, unk_28 + (i * 20)) - 25; + data->unk_18 += shim_sin_deg(data->unk_1C) * 10.0f; + data->unk_20 += shim_cos_deg(data->unk_1C * 0.5f) * 10.0f; + data->unk_04 += data->unk_10; + data->unk_08 += data->unk_14; + } +} void big_snowflakes_render(EffectInstance* effect) { RenderTask renderTask; @@ -23,4 +107,39 @@ void big_snowflakes_render(EffectInstance* effect) { retTask->renderMode |= RENDER_MODE_2; } -INCLUDE_ASM(s32, "effects/big_snowflakes", big_snowflakes_appendGfx); +void big_snowflakes_appendGfx(void* effect) { + BigSnowflakeFXData* data = ((EffectInstance*)effect)->data; + Matrix4f sp18; + Matrix4f sp58; + Matrix4f sp98; + Gfx* dlist = D_E0060738[0]; + s32 i; + + gSPSegment(gMasterGfxPos++, 0x09, VIRTUAL_TO_PHYSICAL(((EffectInstance*)effect)->graphics->data)); + gSPDisplayList(gMasterGfxPos++, dlist); + gDPSetPrimColor(gMasterGfxPos++, 0, 0, 20, 100, 20, data->unk_24); + + shim_guTranslateF(sp18, data->unk_04, data->unk_08, data->unk_0C); + shim_guRotateF(sp58, -gCameras[gCurrentCameraID].currentYaw, 0.0f, 1.0f, 0.0f); + shim_guMtxCatF(sp58, sp18, sp98); + + data++; + for (i = 1; i < ((EffectInstance*)effect)->numParts; i++, data++) { + Gfx* dlist2 = D_E0060730[i & 1]; // should be able to be i % 2 (ARRAY_COUNT(D_E0060730)) + + shim_guTranslateF(sp58, data->unk_04, data->unk_08, data->unk_0C); + shim_guMtxCatF(sp58, sp98, sp18); + + if (!(i & 1)) { + shim_guRotateF(sp58, data->unk_18, 0.0f, 0.0f, 1.0f); + shim_guMtxCatF(sp58, sp18, sp18); + shim_guRotateF(sp58, data->unk_20, 0.0f, 1.0f, 0.0f); + shim_guMtxCatF(sp58, sp18, sp18); + } + shim_guMtxF2L(sp18, &gDisplayContext->matrixStack[gMatrixListPos]); + + gSPMatrix(gMasterGfxPos++, &gDisplayContext->matrixStack[gMatrixListPos++], G_MTX_PUSH | G_MTX_MUL | G_MTX_MODELVIEW); + gSPDisplayList(gMasterGfxPos++, dlist2); + gSPPopMatrix(gMasterGfxPos++, G_MTX_MODELVIEW); + } +} diff --git a/src/effects/butterflies.c b/src/effects/butterflies.c index 820805c047..0c4ee78798 100644 --- a/src/effects/butterflies.c +++ b/src/effects/butterflies.c @@ -1,18 +1,150 @@ #include "common.h" #include "effects_internal.h" -s32 D_E00AA6C0[] = { 0x090038F8, 0x09003968, 0x090039D8, 0x09003A48, 0x09003AB8, 0x09003B28, 0x09003B98, 0x09003C08, 0x09003C78, 0x09003CE8, 0x09003D58 }; +extern Vtx D_09002D40[][6]; // TODO confirm this type is correct +extern Gfx D_09003880[]; +extern Gfx D_090038F8[]; +extern Gfx D_09003968[]; +extern Gfx D_090039D8[]; +extern Gfx D_09003A48[]; +extern Gfx D_09003AB8[]; +extern Gfx D_09003B28[]; +extern Gfx D_09003B98[]; +extern Gfx D_09003C08[]; +extern Gfx D_09003C78[]; +extern Gfx D_09003CE8[]; +extern Gfx D_09003D58[]; +extern Gfx D_09003DC8[]; -s8 D_E00AA6EC[] = { 0xFF, 0xFE, 0xFD, 0xFC, 0xFB, 0xFA, 0xF9, 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, 0xF0, 0xEF, 0xEE, 0xED, 0xEF, 0xF1, 0xF3, 0xF5, 0xF7, 0xF9, 0xFB, 0xFD, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; +Gfx* D_E00AA6C0[11] = { + D_090038F8, D_09003968, D_090039D8, D_09003A48, D_09003AB8, D_09003B28, D_09003B98, D_09003C08, D_09003C78, D_09003CE8, D_09003D58 +}; +s8 D_E00AA6EC[] = { + -1, -2, -3, -4, -5, -6, -7, -8, -9, -10, -11, -12, -13, -14, -15, -16, -17, -18, -19, -17, -15, -13, -11, -9, -7, -5, -3, -1, 0, 0, 0, 0, 0, 0, 0, 0 }; + +void butterflies_init(EffectInstance* effect); +void butterflies_update(EffectInstance* effect); +void butterflies_render(EffectInstance* effect); void butterflies_appendGfx(void* effect); -INCLUDE_ASM(s32, "effects/butterflies", butterflies_main); +EffectInstance* butterflies_main(s32 arg0, f32 arg1, f32 arg2, f32 arg3) { + EffectBlueprint bp; + EffectInstance* effect; + ButterflyFXData* part; + s32 numParts = 1; + s32 i; -void butterflies_init(void) { + bp.unk_00 = 0; + bp.init = butterflies_init; + bp.update = butterflies_update; + bp.renderWorld = butterflies_render; + bp.unk_14 = NULL; + bp.effectID = EFFECT_BUTTERFLIES; + + effect = shim_create_effect_instance(&bp); + effect->numParts = numParts; + part = effect->data = shim_general_heap_malloc(numParts * sizeof(*part)); + ASSERT(effect->data != NULL); + + part->unk_04 = 1000; + part->unk_00 = arg0; + part->unk_24 = 255; + part->unk_0C = arg1; + part->unk_18 = arg1; + part->unk_10 = arg2; + part->unk_1C = arg2; + part->unk_14 = arg3; + part->unk_20 = arg3; + part->unk_08 = 0; + part->unk_2C = 0; + part->unk_30 = 0; + part->unk_34 = 50.0f; + part->unk_38 = 30.0f; + return effect; } -INCLUDE_ASM(s32, "effects/butterflies", butterflies_update); +void butterflies_init(EffectInstance* effect) { +} + +void butterflies_update(EffectInstance* effect) { + ButterflyFXData* temp_s0; + f32 temp_f20; + f32 temp_f20_2; + f32 temp_f22; + f32 temp_f24; + f32 temp_f4; + f32 temp_f6; + f32 temp_f8; + f32 var_f12; + f32 var_f20; + f32 var_f22; + f32 var_f24; + + temp_s0 = effect->data; + if (effect->flags & 0x10) { + effect->flags &= ~0x10; + temp_s0->unk_04 = 900; + } + + if (temp_s0->unk_04 < 1000) { + temp_s0->unk_04--; + } + temp_s0->unk_08 += 1; + if (temp_s0->unk_04 < 0) { + shim_remove_effect(effect); + return; + } + if (temp_s0->unk_04 < 0x10) { + temp_s0->unk_24 = temp_s0->unk_04 * 0x10; + } + + temp_s0->unk_30--; + if (temp_s0->unk_30 <= 0) { + s32 t; + + temp_f20 = shim_rand_int(359); + temp_f24 = temp_s0->unk_18 + (temp_s0->unk_34 * shim_sin_deg(temp_f20)); + temp_f22 = temp_s0->unk_1C + shim_rand_int(temp_s0->unk_38); + temp_f20_2 = temp_s0->unk_20 + (temp_s0->unk_34 * shim_cos_deg(temp_f20)); + t = shim_rand_int(100) + 10; + temp_f4 = temp_s0->unk_0C; + temp_f6 = temp_s0->unk_10; + temp_f8 = temp_s0->unk_14; + var_f24 = temp_f24 - temp_f4; + var_f22 = temp_f22 - temp_f6; + var_f20 = temp_f20_2 - temp_f8; + temp_s0->unk_30 = t; + if (var_f24 == 0.0f && var_f22 == 0.0f && var_f20 == 0.0f) { + var_f24 = temp_s0->unk_18 - temp_f4; + var_f22 = temp_s0->unk_1C - temp_f6; + var_f20 = temp_s0->unk_20 - temp_f8; + if (var_f24 == 0.0f && var_f22 == 0.0f && var_f20 == 0.0f) { + var_f24 = 1.0f; + var_f20 = 0.0f; + var_f22 = 0.0f; + } + } + var_f12 = SQ(var_f24) + SQ(var_f22) + SQ(var_f20); + if (var_f12 != 0.0f) { + var_f12 = 1.0f / shim_sqrtf(var_f12); + } + var_f24 *= var_f12; + var_f22 *= var_f12; + var_f20 *= var_f12; + temp_s0->unk_3C = var_f24; + temp_s0->unk_40 = var_f22; + temp_s0->unk_44 = var_f20; + temp_s0->unk_28 = shim_atan2(0.0f, 0.0f, -temp_s0->unk_3C, temp_s0->unk_44); + } + temp_s0->unk_2C += 3; + if (temp_s0->unk_2C >= 30) { + temp_s0->unk_2C -= 30; + } + temp_s0->unk_0C += temp_s0->unk_3C; + temp_s0->unk_10 += temp_s0->unk_40; + temp_s0->unk_14 += temp_s0->unk_44; +} void butterflies_render(EffectInstance* effect) { RenderTask renderTask; @@ -27,4 +159,32 @@ void butterflies_render(EffectInstance* effect) { retTask->renderMode |= RENDER_MODE_2; } -INCLUDE_ASM(s32, "effects/butterflies", butterflies_appendGfx); + +void butterflies_appendGfx(void* effect) { + EffectInstance* effectTemp = effect; + ButterflyFXData* data = effectTemp->data; + Matrix4f sp18; + Matrix4f sp58; + + s32 primColor = data->unk_24; + s32 type = data->unk_00; + + gDPPipeSync(gMasterGfxPos++); + gSPSegment(gMasterGfxPos++, 0x09, VIRTUAL_TO_PHYSICAL(effectTemp->graphics->data)); + + shim_guTranslateF(sp18, data->unk_0C, data->unk_10 + D_E00AA6EC[data->unk_2C] * 0.3f, data->unk_14); + shim_guRotateF(sp58, data->unk_28, 0.0f, 1.0f, 0.0f); + shim_guMtxCatF(sp58, sp18, sp18); + shim_guScaleF(sp58, 0.02f, 0.02f, 0.02f); + shim_guMtxCatF(sp58, sp18, sp18); + shim_guMtxF2L(sp18, &gDisplayContext->matrixStack[gMatrixListPos]); + + gSPMatrix(gMasterGfxPos++, &gDisplayContext->matrixStack[gMatrixListPos++], G_MTX_PUSH | G_MTX_LOAD | G_MTX_MODELVIEW); + gDPSetPrimColor(gMasterGfxPos++, 0, 0, primColor, primColor, primColor, 255); + gSPDisplayList(gMasterGfxPos++, D_09003880); + gSPDisplayList(gMasterGfxPos++, D_E00AA6C0[type]); + gSPVertex(gMasterGfxPos++, &D_09002D40[data->unk_2C], 6, 0); + gSPDisplayList(gMasterGfxPos++, D_09003DC8); + gSPPopMatrix(gMasterGfxPos++, G_MTX_MODELVIEW); + gDPPipeSync(gMasterGfxPos++); +} diff --git a/src/effects/small_gold_sparkle.c b/src/effects/small_gold_sparkle.c index 42ef8fbe54..e9fb2142ae 100644 --- a/src/effects/small_gold_sparkle.c +++ b/src/effects/small_gold_sparkle.c @@ -23,7 +23,7 @@ void small_gold_sparkle_update(EffectInstance* effect); void small_gold_sparkle_render(EffectInstance* effect); void small_gold_sparkle_appendGfx(void* effect); -EffectInstance* small_gold_sparkle_main(EffectInstanceDataThing* arg0, f32 arg1, f32 arg2, f32 arg3, f32 arg4) { +EffectInstance* small_gold_sparkle_main(s32 arg0, f32 arg1, f32 arg2, f32 arg3, f32 arg4) { EffectBlueprint bp; EffectInstance* effect; SmallGoldSparkleFXData* data; diff --git a/src/entity.c b/src/entity.c index e6345bb6df..edcbf3fa9d 100644 --- a/src/entity.c +++ b/src/entity.c @@ -8,6 +8,8 @@ extern EntityModelList gWorldEntityModelList; extern EntityModelList gBattleEntityModelList; extern EntityModelList* gCurrentEntityModelList; extern s32 gEntityModelCount; + +extern s32 D_80154374; extern s32 entity_fog_enabled; extern s32 entity_fog_red; extern s32 entity_fog_green; @@ -16,6 +18,7 @@ extern s32 entity_fog_alpha; extern s32 entity_fog_dist_min; extern s32 entity_fog_dist_max; + s32 step_entity_model_commandlist(EntityModel* entityModel); void free_entity_model_by_ref(EntityModel* entityModel); @@ -214,15 +217,73 @@ void make_entity_model_mtx_flipZ(Matrix4f mtx) { mtx[3][3] = 1.0f; } +void appendGfx_entity_model(void* data); INCLUDE_ASM(s32, "entity", appendGfx_entity_model); INCLUDE_ASM(s32, "entity", draw_entity_model_A); INCLUDE_ASM(s32, "entity", draw_entity_model_B); -INCLUDE_ASM(s32, "entity", draw_entity_model_C); +void draw_entity_model_C(s32 modelIdx, Mtx* transformMtx) { + EntityModel* model; + RenderTask rt; + RenderTask* rtPtr = &rt; -INCLUDE_ASM(s32, "entity", draw_entity_model_D); + if ((gGameStatusPtr->isBattle == 0) || (modelIdx & 0x800)) { + modelIdx &= ~0x800; + model = (*gCurrentEntityModelList)[modelIdx]; + + if (model != NULL) { + if (model->flags != 0) { + if (!(model->flags & MODEL_FLAGS_USE_CAMERA_UNK_MATRIX)) { + if (!(model->flags & MODEL_FLAGS_FLAG_20)) { + if (!(model->flags & MODEL_FLAGS_FLAG_40) && (model->flags & (1 << gCurrentCamID))) { + model->flags |= MODEL_FLAGS_FLAG_200; + model->transform = *transformMtx; + model->vertexArray = NULL; + rtPtr->renderMode = model->renderMode; + rtPtr->appendGfxArg = model; + rtPtr->appendGfx = appendGfx_entity_model; + rtPtr->distance = (u32)(model->flags & 0xF000) >> 8; + queue_render_task(rtPtr); + } + } + } + } + } + } +} + +void draw_entity_model_D(s32 modelIdx, Mtx* transformMtx, s32 arg2, Vtx* vertexArray) { + EntityModel* model; + RenderTask rt; + RenderTask* rtPtr = &rt; + + if ((gGameStatusPtr->isBattle == 0) || (modelIdx & 0x800)) { + modelIdx &= ~0x800; + model = (*gCurrentEntityModelList)[modelIdx]; + + if (model != NULL) { + if (model->flags != 0) { + if (!(model->flags & MODEL_FLAGS_USE_CAMERA_UNK_MATRIX)) { + if (!(model->flags & MODEL_FLAGS_FLAG_20)) { + if (model->flags & (1 << gCurrentCamID)) { + model->flags |= MODEL_FLAGS_FLAG_200; + model->transform = *transformMtx; + D_80154374 = arg2; + model->vertexArray = vertexArray; + rtPtr->renderMode = model->renderMode; + rtPtr->appendGfxArg = model; + rtPtr->appendGfx = appendGfx_entity_model; + rtPtr->distance = (u32)(model->flags & 0xF000) >> 8; + queue_render_task(rtPtr); + } + } + } + } + } + } +} INCLUDE_ASM(s32, "entity", draw_entity_model_E); @@ -373,7 +434,7 @@ void init_generic_entity_list(void) { } } -s32 create_generic_entity_world(void (*updateFunc)(Evt*, s32), void (*drawFunc)(Evt*, s32)) { +s32 create_generic_entity_world(void (*updateFunc)(void), void (*drawFunc)(void)) { s32 i; DynamicEntity* newDynEntity; diff --git a/src/evt/fx_api.c b/src/evt/fx_api.c index a9b382a924..18fcd1fc58 100644 --- a/src/evt/fx_api.c +++ b/src/evt/fx_api.c @@ -399,7 +399,7 @@ ApiStatus PlayEffect(Evt* script, s32 isInitialCall) { effectRet = fx_snowfall(iVar1, iVar2); break; case EFFECT_46: - effectRet = fx_46(iVar1, (EffectWhirlwind*)a2, fVar3, iVar4); + effectRet = fx_46(iVar1, (EffectWhirlwindUnk*)a2, fVar3, iVar4); break; case EFFECT_GATHER_MAGIC: effectRet = fx_gather_magic(iVar1, fVar2, fVar3, fVar4, fVar5, iVar6); diff --git a/src/hud_element.h b/src/hud_element.h index 23357816d8..89907535d2 100644 --- a/src/hud_element.h +++ b/src/hud_element.h @@ -332,7 +332,6 @@ void copy_world_hud_element_ref_to_battle(s32 worldID, s32 battleID); void hud_element_set_aux_cache(void* base, s32 size); - void create_popup_menu(PopupMenu*); #endif diff --git a/src/os/3FEA0.c b/src/os/3FEA0.c deleted file mode 100644 index 27af5b70c7..0000000000 --- a/src/os/3FEA0.c +++ /dev/null @@ -1,9 +0,0 @@ -#include "common.h" -#include "stdlib/stdarg.h" - -char spaces[] = " "; -char zeroes[] = "00000000000000000000000000000000"; - -INCLUDE_ASM(s32, "os/3FEA0", _Printf); - -INCLUDE_ASM(s32, "os/3FEA0", _Putfld); diff --git a/src/os/xprintf.c b/src/os/xprintf.c new file mode 100644 index 0000000000..8ebc6abcb2 --- /dev/null +++ b/src/os/xprintf.c @@ -0,0 +1,242 @@ +#include "stdlib/stdarg.h" +#include "xstdio.h" +#include "gcc/string.h" + +#define isdigit(x) ((x >= '0' && x <= '9')) +#define LDSIGN(x) (((unsigned short *)&(x))[0] & 0x8000) + +#define ATOI(dst, src) \ + for (dst = 0; isdigit(*src); ++src) \ + { \ + if (dst < 999) \ + dst = dst * 10 + *src - '0'; \ + } + +#define MAX_PAD ((sizeof(spaces) - 1)) +#define PAD(s, n) \ + if (0 < (n)) \ + { \ + int i, j = (n); \ + for (; 0 < j; j -= i) \ + { \ + i = MAX_PAD < (unsigned int)j ? (int)MAX_PAD : j; \ + PUT(s, i); \ + } \ + } +#define PUT(s, n) \ + if (0 < (n)) \ + { \ + if ((arg = (*prout)(arg, s, n)) != NULL) \ + x.nchar += (n); \ + else \ + return x.nchar; \ + } + +char spaces[] = " "; +char zeroes[] = "00000000000000000000000000000000"; + +// INCLUDE_ASM(s32, "os/3FEA0", _Printf); + +// INCLUDE_ASM(s32, "os/3FEA0", _Putfld); + +static void _Putfld(_Pft *pf, va_list *pap, char code, char *ac); + +int _Printf(outfun prout, char *arg, const char *fmt, va_list args) { + _Pft x; + const char *s; + char c; + const char *t; + static const char fchar[] = {' ', '+', '-', '#', '0', '\0'}; + static const int fbit[] = {FLAGS_SPACE, FLAGS_PLUS, FLAGS_MINUS, FLAGS_HASH, FLAGS_ZERO, 0}; + char ac[32]; + + x.nchar = 0; + + for (;;) { + s = fmt; + + for (c = *s; c != 0 && c != '%';) { + c = *++s; + } + + PUT(fmt, s - fmt); + + if (c == 0) { + return x.nchar; + } + + fmt = ++s; + + for (x.flags = 0; (t = strchr(fchar, *s)) != NULL; s++) { + x.flags |= fbit[t - fchar]; + } + + if (*s == '*') { + x.width = va_arg(args, int); + + if (x.width < 0) { + x.width = -x.width; + x.flags |= FLAGS_MINUS; + } + s++; + } else { + ATOI(x.width, s); + } + + if (*s != '.') { + x.prec = -1; + } else if (*++s == '*') { + x.prec = va_arg(args, int); + ++s; + } else { + ATOI(x.prec, s); + } + + x.qual = strchr("hlL", *s) ? *s++ : '\0'; + + if (x.qual == 'l' && *s == 'l') { + x.qual = 'L'; + ++s; + } + + _Putfld(&x, &args, *s, ac); + x.width -= x.n0 + x.nz0 + x.n1 + x.nz1 + x.n2 + x.nz2; + + if (!(x.flags & FLAGS_MINUS)) { + PAD(spaces, x.width); + } + + PUT(ac, x.n0); + PAD(zeroes, x.nz0); + PUT(x.s, x.n1); + PAD(zeroes, x.nz1); + PUT(x.s + x.n1, x.n2); + PAD(zeroes, x.nz2); + + if (x.flags & FLAGS_MINUS) { + PAD(spaces, x.width); + } + + fmt = s + 1; + } + return 0; +} + +static void _Putfld(_Pft *x, va_list *args, char type, char *buff) { + x->n0 = x->nz0 = x->n1 = x->nz1 = x->n2 = + x->nz2 = 0; + + switch (type) { + case 'c': + buff[x->n0++] = va_arg(*args, int); + break; + case 'd': + case 'i': + if (x->qual == 'l') { + x->v.ll = va_arg(*args, int); + } else if (x->qual == 'L') { + x->v.ll = va_arg(*args, s64); + } else { + x->v.ll = va_arg(*args, int); + } + + if (x->qual == 'h') { + x->v.ll = (s16)x->v.ll; + } + + if (x->v.ll < 0) { + buff[x->n0++] = '-'; + } else if (x->flags & FLAGS_PLUS) { + buff[x->n0++] = '+'; + } else if (x->flags & FLAGS_SPACE) { + buff[x->n0++] = ' '; + } + + x->s = (char *)&buff[x->n0]; + + _Litob(x, type); + break; + case 'x': + case 'X': + case 'u': + case 'o': + if (x->qual == 'l') { + x->v.ll = va_arg(*args, int); + } else if (x->qual == 'L') { + x->v.ll = va_arg(*args, s64); + } else { + x->v.ll = va_arg(*args, int); + } + + if (x->qual == 'h') { + x->v.ll = (u16)x->v.ll; + } else if (x->qual == 0) { + x->v.ll = (unsigned int)x->v.ll; + } + + if (x->flags & FLAGS_HASH) { + buff[x->n0++] = '0'; + + if (type == 'x' || type == 'X') { + buff[x->n0++] = type; + } + } + + x->s = (char *)&buff[x->n0]; + _Litob(x, type); + break; + case 'e': + case 'f': + case 'g': + case 'E': + case 'G': + //... okay? + x->v.ld = x->qual == 'L' ? va_arg(*args, f64) : va_arg(*args, f64); + + if (LDSIGN(x->v.ld)) + buff[x->n0++] = '-'; + else if (x->flags & FLAGS_PLUS) + buff[x->n0++] = '+'; + else if (x->flags & FLAGS_SPACE) + buff[x->n0++] = ' '; + + x->s = (char *)&buff[x->n0]; + _Ldtob(x, type); + break; + + case 'n': + if (x->qual == 'h') { + *(va_arg(*args, u16 *)) = x->nchar; + } else if (x->qual == 'l') { + *va_arg(*args, unsigned int *) = x->nchar; + } else if (x->qual == 'L') { + *va_arg(*args, u64 *) = x->nchar; + } else { + *va_arg(*args, unsigned int *) = x->nchar; + } + + break; + case 'p': + x->v.ll = (long)va_arg(*args, void *); + x->s = (char *)&buff[x->n0]; + _Litob(x, 'x'); + break; + case 's': + x->s = va_arg(*args, char *); + x->n1 = strlen(x->s); + + if (x->prec >= 0 && x->n1 > x->prec) { + x->n1 = x->prec; + } + + break; + case '%': + buff[x->n0++] = '%'; + break; + default: + buff[x->n0++] = type; + break; + } +} + +static const f32 padding = 0.0f; diff --git a/src/world/action/spin.c b/src/world/action/spin.c index 7e24275909..3a329db373 100644 --- a/src/world/action/spin.c +++ b/src/world/action/spin.c @@ -15,7 +15,7 @@ void func_802B6000_E25D60(void) { s32 phi_s2, phi_s3, phi_s4; s32 temp_v1_2; s32 phi_s5 = 0; - + if (playerStatus->flags & PLAYER_STATUS_FLAGS_ACTION_STATE_CHANGED) { playerStatus->flags &= ~(PLAYER_STATUS_FLAGS_ACTION_STATE_CHANGED | PLAYER_STATUS_FLAGS_80000); playerStatus->animFlags &= ~PLAYER_STATUS_ANIM_FLAGS_40000; @@ -50,7 +50,7 @@ void func_802B6000_E25D60(void) { if (is_ability_active(ABILITY_DIZZY_ATTACK)) { phi_s2 = phi_s2 | 2; } - + if (is_ability_active(ABILITY_SPEEDY_SPIN)) { playerSpinState->initialSpinTime = 30; playerSpinState->spinRate = 40.0f; @@ -60,10 +60,10 @@ void func_802B6000_E25D60(void) { playerSpinState->frictionScale = 0.9f; phi_s2 |= 1; } - + phi_s4 = -1; phi_s3 = 0x10010; - + if (phi_s2) { if (phi_s2 & 4) { phi_s4 = 2; @@ -75,10 +75,10 @@ void func_802B6000_E25D60(void) { phi_s3 = 0x10011; } } - + playerSpinState->spinSoundID = SOUND_2111; temp_v1_2 = phi_s2 & ~2; - + if (temp_v1_2 == 4) { playerSpinState->spinSoundID = SOUND_2113; } @@ -88,10 +88,10 @@ void func_802B6000_E25D60(void) { if (temp_v1_2 == 5) { playerSpinState->spinSoundID = SOUND_2114; } - + sfx_play_sound_at_player(playerSpinState->spinSoundID, 0); suggest_player_anim_setUnkFlag(phi_s3); - + if ((clamp_angle(playerStatus->targetYaw - gCameras[gCurrentCameraID].currentYaw) <= 180.0f)) { playerStatus->spinRate = playerSpinState->spinRate; } else { @@ -99,31 +99,31 @@ void func_802B6000_E25D60(void) { playerStatus->spinRate = -playerSpinState->spinRate; } if (phi_s2 != 0) { - playerStatus->unk_D8 = (void*)fx_46(phi_s4, (EffectWhirlwind* ) playerStatus, 1.0f, 1000); + playerStatus->unk_D8 = fx_46(phi_s4, playerStatus, 1.0f, 1000); } - + phys_clear_spin_history(); player_input_to_move_vector(&sp10, &sp14); playerStatus->targetYaw = sp10; playerSpinState->inputMagnitude = sp14; } - + gSpinHistoryPosAngle[gSpinHistoryBufferPos++] = playerStatus->spriteFacingAngle; - + if (gSpinHistoryBufferPos >= 6) { gSpinHistoryBufferPos = 0; } - + gSpinHistoryPosX[gSpinHistoryBufferPos] = playerStatus->position.x; gSpinHistoryPosY[gSpinHistoryBufferPos] = playerStatus->position.y; gSpinHistoryPosZ[gSpinHistoryBufferPos] = playerStatus->position.z; gSpinHistoryPosAngle[gSpinHistoryBufferPos] = playerStatus->spriteFacingAngle; gSpinHistoryBufferPos++; - + if (gSpinHistoryBufferPos >= 6) { gSpinHistoryBufferPos = 0; } - + if (phi_s5 == 0 && (check_input_hammer() || check_input_jump())) { playerStatus->animFlags &= ~PLAYER_STATUS_ANIM_FLAGS_SPINNING; playerStatus->flags &= ~PLAYER_STATUS_FLAGS_20000; @@ -132,20 +132,20 @@ void func_802B6000_E25D60(void) { playerStatus->targetYaw = sp10; return; } - + if (playerSpinState->spinCountdown < 11 && playerStatus->pressedButtons & Z_TRIG) { playerSpinState->hasBufferedSpin = 1; playerSpinState->prevActionState = playerStatus->prevActionState; playerSpinState->bufferedStickAxis.x = playerStatus->stickAxis[0]; playerSpinState->bufferedStickAxis.y = playerStatus->stickAxis[1]; } - + if (playerStatus->fallState >= 2) { playerSpinState->spinDirectionMagnitude = playerSpinState->spinDirectionMagnitude - 1.0f;; if (playerSpinState->spinDirectionMagnitude < 0.0f) { playerSpinState->spinDirectionMagnitude = 0.0f; } - + sp10 = clamp_angle(playerStatus->targetYaw - gCameras[gCurrentCameraID].currentYaw); playerSpinState->spinDirection.x = sin_rad(sp10 * TAU / 360.0f) * playerSpinState->spinDirectionMagnitude; playerSpinState->spinDirection.y = -cos_rad((sp10 * TAU) / 360.0f) * playerSpinState->spinDirectionMagnitude; @@ -160,7 +160,7 @@ void func_802B6000_E25D60(void) { playerStatus->currentSpeed = 0.0f; return; } - + if (playerStatus->fallState == 0) { if (playerStatus->animFlags & PLAYER_STATUS_ANIM_FLAGS_40000) { playerStatus->fallState = 1; @@ -171,15 +171,15 @@ void func_802B6000_E25D60(void) { } } } - + if (!(playerStatus->currentStateTime > playerSpinState->fullSpeedSpinTime)) { temp_f24 = (playerSpinState->inputMagnitude) ? playerSpinState->speedScale : 0.0f; playerSpinState->spinDirectionMagnitude = playerSpinState->spinDirectionMagnitude + 0.9; - + if (playerSpinState->spinDirectionMagnitude > 9.0f) { playerSpinState->spinDirectionMagnitude = 9.0f; } - + sp10 = clamp_angle(playerStatus->targetYaw - gCameras[gCurrentCameraID].currentYaw); playerSpinState->spinDirection.x = sin_rad(sp10 * TAU / 360.0f) * playerSpinState->spinDirectionMagnitude; playerSpinState->spinDirection.y = -cos_rad(sp10 * TAU / 360.0f) * playerSpinState->spinDirectionMagnitude; @@ -188,19 +188,19 @@ void func_802B6000_E25D60(void) { if (temp_f24 < 0.1) { temp_f24 = 0.1f; } - + if (playerSpinState->inputMagnitude == 0.0f) { temp_f24 = 0.0f; } - playerSpinState->spinDirectionMagnitude -= 1.0f; + playerSpinState->spinDirectionMagnitude -= 1.0f; if (playerSpinState->spinDirectionMagnitude < 0.0f) { playerSpinState->spinDirectionMagnitude = 0.0f; } } playerStatus->currentStateTime++; - + switch (playerStatus->prevActionState) { case 0: player_input_to_move_vector(&sp10, &sp14); @@ -228,11 +228,11 @@ void func_802B6000_E25D60(void) { playerStatus->fallState = 1; } } - + if (playerStatus->fallState == 1) { sp10 = playerStatus->spriteFacingAngle; playerStatus->spriteFacingAngle = sp10 + playerStatus->spinRate; - + if (playerSpinState->hasBufferedSpin != 0) { playerStatus->currentStateTime = 2; playerStatus->fallState = 2; diff --git a/src/world/area_dro/dro_02/9694C0.c b/src/world/area_dro/dro_02/9694C0.c index 009b85d56c..8ec8bb038b 100644 --- a/src/world/area_dro/dro_02/9694C0.c +++ b/src/world/area_dro/dro_02/9694C0.c @@ -34,13 +34,6 @@ enum { // BSS -typedef struct { - s32 flags; - char unk_04[0x4]; - s32 unk_08; - EffectInstanceDataThing* unk_0C; -} N(temp); - typedef struct { s32 unk_00; f32 unk_04; @@ -57,7 +50,7 @@ static s8 N(pad_D_8024EF80)[0x4]; static f32 N(D_8024EF84); static s32 N(D_8024EF88); static s8 N(pad_D_8024EF8C)[0x4]; -static N(temp)* N(D_8024EF90)[4]; // possibly bigger? +static EffectInstance* N(D_8024EF90)[4]; // possibly bigger? static s32 N(Quizmo_Worker); static s32 N(pad_D_8024EFA4); static s32 N(Quizmo_ScriptArray)[4]; diff --git a/src/world/area_flo/flo_07/CAC1F0.c b/src/world/area_flo/flo_07/CAC1F0.c index 3ca219a69f..178fe93116 100644 --- a/src/world/area_flo/flo_07/CAC1F0.c +++ b/src/world/area_flo/flo_07/CAC1F0.c @@ -5,30 +5,14 @@ #include "world/common/SpawnSunEffect.inc.c" -typedef struct N(unk_effect) { - char unk_00[0x38]; - s32 unk_38; - s32 unk_3C; - s32 unk_40; - char unk_44[0x4]; - s32 unk_48; - s32 unk_4C; - s32 unk_50; -} N(unk_effect); - -typedef struct N(temp) { - char unk_00[0xC]; - N(unk_effect)* unk_0C; -} N(temp); - ApiStatus N(func_80240344_CAC534)(Evt* script, s32 isInitialCall) { - N(temp)* effect = fx_misc_particles(3, -272.0f, 80.0f, 20.0f, 200.0f, 120.0f, 4.0f, 8, 0); + EffectInstance* effect = fx_misc_particles(3, -272.0f, 80.0f, 20.0f, 200.0f, 120.0f, 4.0f, 8, 0); - effect->unk_0C->unk_38 = 0xF0; - effect->unk_0C->unk_3C = 0xF0; - effect->unk_0C->unk_40 = 0xF0; - effect->unk_0C->unk_48 = 0xE6; - effect->unk_0C->unk_4C = 0xE6; - effect->unk_0C->unk_50 = 0xF0; + ((MiscParticlesFXData*)effect->data)->unk_38 = 240; + ((MiscParticlesFXData*)effect->data)->unk_3C = 240; + ((MiscParticlesFXData*)effect->data)->unk_40 = 240; + ((MiscParticlesFXData*)effect->data)->unk_48 = 230; + ((MiscParticlesFXData*)effect->data)->unk_4C = 230; + ((MiscParticlesFXData*)effect->data)->unk_50 = 240; return ApiStatus_DONE2; } diff --git a/src/world/area_flo/flo_14/CCB310.c b/src/world/area_flo/flo_14/CCB310.c index 815b77d100..635dc1ef81 100644 --- a/src/world/area_flo/flo_14/CCB310.c +++ b/src/world/area_flo/flo_14/CCB310.c @@ -613,8 +613,6 @@ ApiStatus N(func_8024046C_CCB77C)(Evt* script, s32 isInitialCall) { // graphics macros #ifdef NON_EQUIVALENT -s32 mdl_get_copied_gfx(s32); -void mdl_get_copied_vertices(s32, s32*, s32*, s32*); void guMtxF2L(Matrix4f, Mtx* m); void guMtxIdentF(Matrix4f); diff --git a/src/world/area_flo/flo_18/CDC6A0.c b/src/world/area_flo/flo_18/CDC6A0.c index 80bcc63df5..0a77cd133c 100644 --- a/src/world/area_flo/flo_18/CDC6A0.c +++ b/src/world/area_flo/flo_18/CDC6A0.c @@ -4,6 +4,7 @@ #include "sprite/npc/lakitu.h" #include "sprite/npc/magikoopa.h" #include "sprite/npc/world_lakilester.h" +#include "effects.h" enum { NPC_LAKITU0, @@ -964,7 +965,7 @@ NpcSettings N(npcSettings_80243F10) = { .onHit = &EnemyNpcHit, .onDefeat = &EnemyNpcDefeat, .level = 20, -}; +}; NpcSettings N(npcSettings_80243F3C) = { .height = 34, @@ -1736,42 +1737,27 @@ static s32 N(pad_66B4)[] = { // It seems like fx_sun was not properly defined for this file. Having a proper // declaration makes it not match. + #ifdef AVOID_UB -void fx_sun(s32, f32, f32, f32, f32, s32); +void fx_sun_undeclared(s32, f32, f32, f32, f32, s32); #else -void fx_sun(s32, s32, s32, s32, s32, s32); +void fx_sun_undeclared(s32, s32, s32, s32, s32, s32); #endif ApiStatus N(func_8024030C_CDC9AC)(Evt* script, s32 isInitialCall) { - fx_sun(1, 0, 0, 0, 0, 0); + fx_sun_undeclared(1, 0, 0, 0, 0, 0); return ApiStatus_DONE2; } -typedef struct N(unk_effect) { - char unk_00[0x30]; - s32 unk_30; - s32 unk_34; - s32 unk_38; - char unk_3C[0x4]; - s32 unk_40; - s32 unk_44; - s32 unk_48; -} N(unk_effect); - -typedef struct N(temp) { - char unk_00[0xC]; - N(unk_effect)* unk_0C; -} N(temp); - ApiStatus N(func_80240340_CDC9E0)(Evt* script, s32 isInitialCall) { - N(temp)* ptr = (N(temp)*) script->varTable[15]; + EffectInstance* effect = (EffectInstance*) script->varTable[15]; - ptr->unk_0C->unk_30 = 69; - ptr->unk_0C->unk_34 = 255; - ptr->unk_0C->unk_38 = 217; - ptr->unk_0C->unk_40 = 176; - ptr->unk_0C->unk_44 = 254; - ptr->unk_0C->unk_48 = 124; + ((LightningFXData*)effect->data)->unk_30 = 69; + ((LightningFXData*)effect->data)->unk_34 = 255; + ((LightningFXData*)effect->data)->unk_38 = 217; + ((LightningFXData*)effect->data)->unk_40 = 176; + ((LightningFXData*)effect->data)->unk_44 = 254; + ((LightningFXData*)effect->data)->unk_48 = 124; return ApiStatus_DONE2; } diff --git a/src/world/area_jan/jan_00/B216E0.c b/src/world/area_jan/jan_00/B216E0.c index 60cb9faa99..f848dcb9ff 100644 --- a/src/world/area_jan/jan_00/B216E0.c +++ b/src/world/area_jan/jan_00/B216E0.c @@ -4,16 +4,31 @@ static char* N(exit_str_0) = "jan_01"; static char* N(exit_str_1) = "jan_08"; static char* N(exit_str_2) = "mac_06"; -INCLUDE_ASM(s32, "world/area_jan/jan_00/B216E0", func_802411A0_B216E0); +extern u32 N(unkAngle1); +extern s32 N(unkAngle2); +extern s32 N(unkAngle3); -INCLUDE_ASM(s32, "world/area_jan/jan_00/B216E0", func_802411EC_B2172C); +void N(unkVtxFunc001)(Vtx* firstVertex, Vtx* copiedVertices, s32 numVertices, s32* arg3); -INCLUDE_ASM(s32, "world/area_jan/jan_00/B216E0", func_80241338_B21878); +#include "world/common/resolve_npc.inc.c" -INCLUDE_ASM(s32, "world/area_jan/jan_00/B216E0", func_802415B0_B21AF0); +#include "world/common/UnkAngleFunc001.inc.c" -INCLUDE_ASM(s32, "world/area_jan/jan_00/B216E0", func_80241654_B21B94); +INCLUDE_ASM(s32, "world/area_jan/jan_00/B216E0", jan_00_unkVtxFunc001); -INCLUDE_ASM(s32, "world/area_jan/jan_00/B216E0", func_802416F8_B21C38); +#include "world/common/unkAngleFuncs023.inc.c" -INCLUDE_ASM(s32, "world/area_jan/jan_00/B216E0", func_80241868_B21DA8); +#include "world/common/UnkFloatFunc001.inc.c" + +ApiStatus func_80241868_B21DA8(Evt* script, s32 isInitialCall) { + Npc* player = get_npc_safe(ACTOR_PLAYER); + f32 yaw = -player->yaw; + f32 x = player->pos.x + 30.0f + (sin_deg(yaw) * 170.0f); + f32 z = player->pos.z + (cos_deg(yaw) * 170.0f); + f32 y = player->pos.y + 50.0f; + + evt_set_float_variable(script, EVT_VAR(0), x); + evt_set_float_variable(script, EVT_VAR(1), y); + evt_set_float_variable(script, EVT_VAR(2), z); + return ApiStatus_DONE2; +} diff --git a/src/world/area_kgr/kgr_01/8A9B70.c b/src/world/area_kgr/kgr_01/8A9B70.c index f8a287cb33..c945c2d9b6 100644 --- a/src/world/area_kgr/kgr_01/8A9B70.c +++ b/src/world/area_kgr/kgr_01/8A9B70.c @@ -1,8 +1,5 @@ #include "kgr_01.h" -void mdl_get_copied_vertices(s32 copyIndex, Vtx** firstVertex, Vtx** copiedVertices, s32* numCopied); -Gfx* mdl_get_copied_gfx(s32 copyIndex); - #define TONGUE_WIGGLE_RATE 10 extern u16 N(TongueWiggleTime); // tongue wiggle rate @@ -16,7 +13,7 @@ void N(add_tongue_deformation)(Vtx* src, Vtx* dest, s32 numVertices, s32 time) { s32 offset; s32 pct; s32 i; - + for (i = 0; i < numVertices; i++) { vs = &src[i].v; vd = &dest[i].v; @@ -61,7 +58,7 @@ void N(make_tongue_gfx)(s32 index) { Vtx* vtxSrc; Vtx* vtxCopy; s32 numCopied; - + mdl_get_copied_vertices(1, &vtxSrc, &vtxCopy, &numCopied); N(add_tongue_deformation)(vtxSrc, vtxCopy, numCopied, N(TongueWiggleTime)); gSPDisplayList(gMasterGfxPos++, mdl_get_copied_gfx(1)); @@ -74,10 +71,10 @@ void N(make_tongue_gfx)(s32 index) { // ignoring minor undulations and deformation imposed by the player. ApiStatus N(GetEffectiveTongueOffset)(Evt* script, s32 isInitialCall) { f32 amplitude = 2.0f * sin_rad( - (f32)script->varTable[0] * 0.06 + - (f32)script->varTable[2] * 0.03f + + (f32)script->varTable[0] * 0.06 + + (f32)script->varTable[2] * 0.03f + (f32)N(TongueWiggleTime) * 0.01f); - + f32 percent = 200.0f - (f32)script->varTable[0]; if (percent < 0.0f){ percent = 0.0f; diff --git a/src/world/area_kmr/kmr_02/8B0070.c b/src/world/area_kmr/kmr_02/8B0070.c index 112d1bd7f3..ca7aab9948 100644 --- a/src/world/area_kmr/kmr_02/8B0070.c +++ b/src/world/area_kmr/kmr_02/8B0070.c @@ -61,7 +61,8 @@ INCLUDE_ASM(s32, "world/area_kmr/kmr_02/8B0070", func_802427EC_8B285C); INCLUDE_ASM(s32, "world/area_kmr/kmr_02/8B0070", func_8024280C_8B287C); -INCLUDE_ASM(s32, "world/area_kmr/kmr_02/8B0070", func_80242860_8B28D0); +#define UNK_NPC_POS_FUNC_NUM 7 +#include "world/common/UnkNpcPosFunc.inc.c" #include "world/common/SyncStatusMenu.inc.c" diff --git a/src/world/area_kmr/kmr_11/8DA3A0.c b/src/world/area_kmr/kmr_11/8DA3A0.c index 51fcd1274c..3a8fe50f47 100644 --- a/src/world/area_kmr/kmr_11/8DA3A0.c +++ b/src/world/area_kmr/kmr_11/8DA3A0.c @@ -6,4 +6,5 @@ INCLUDE_ASM(s32, "world/area_kmr/kmr_11/8DA3A0", func_80240344_8DA444); #include "world/common/enemy/StationaryAI.inc.c" -INCLUDE_ASM(s32, "world/area_kmr/kmr_11/8DA3A0", func_80240DDC_8DAEDC); +#define UNK_NPC_POS_FUNC_NUM 4 +#include "world/common/UnkNpcPosFunc.inc.c" diff --git a/src/world/area_kzn/kzn_06/C6CD10.c b/src/world/area_kzn/kzn_06/C6CD10.c index 5fb3201e15..f271a655c4 100644 --- a/src/world/area_kzn/kzn_06/C6CD10.c +++ b/src/world/area_kzn/kzn_06/C6CD10.c @@ -1,4 +1,5 @@ #include "kzn_06.h" +#include "model.h" INCLUDE_ASM(s32, "world/area_kzn/kzn_06/C6CD10", func_802403F0_C6CD10); diff --git a/src/world/area_mac/mac_05/852170.c b/src/world/area_mac/mac_05/852170.c index bf69594009..1360ae07dc 100644 --- a/src/world/area_mac/mac_05/852170.c +++ b/src/world/area_mac/mac_05/852170.c @@ -7,7 +7,9 @@ static char* N(exit_str_1) = "kgr_01"; #include "world/common/atomic/TexturePan.inc.c" -INCLUDE_ASM(s32, "world/area_mac/mac_05/852170", func_8024030C_85247C); +#define NAMESPACE dup_mac_05 +#include "world/common/UnkFloatFunc001.inc.c" +#define NAMESPACE mac_05 INCLUDE_ASM(s32, "world/area_mac/mac_05/852170", func_8024047C_8525EC); diff --git a/src/world/area_mac/mac_05/855560.c b/src/world/area_mac/mac_05/855560.c index 52faf81070..846d1bd645 100644 --- a/src/world/area_mac/mac_05/855560.c +++ b/src/world/area_mac/mac_05/855560.c @@ -1,18 +1,22 @@ #include "mac_05.h" -INCLUDE_ASM(s32, "world/area_mac/mac_05/855560", func_802433F0_855560); +extern u32 N(unkAngle1); +extern s32 N(unkAngle2); +extern s32 N(unkAngle3); -INCLUDE_ASM(s32, "world/area_mac/mac_05/855560", func_8024343C_8555AC); +void N(unkVtxFunc001)(Vtx* firstVertex, Vtx* copiedVertices, s32 numVertices, s32* arg3); -INCLUDE_ASM(s32, "world/area_mac/mac_05/855560", func_80243588_8556F8); +#include "world/common/resolve_npc.inc.c" -INCLUDE_ASM(s32, "world/area_mac/mac_05/855560", func_80243800_855970); +#include "world/common/UnkAngleFunc001.inc.c" -INCLUDE_ASM(s32, "world/area_mac/mac_05/855560", func_802438A4_855A14); +INCLUDE_ASM(s32, "world/area_mac/mac_05/855560", mac_05_unkVtxFunc001); -INCLUDE_ASM(s32, "world/area_mac/mac_05/855560", func_80243948_855AB8); +#include "world/common/unkAngleFuncs023.inc.c" -INCLUDE_ASM(s32, "world/area_mac/mac_05/855560", func_80243AB8_855C28); +#include "world/common/UnkFloatFunc001.inc.c" + +#include "world/common/UnkPlayerPosFunc.inc.c" #include "world/common/PlayFX3D.inc.c" diff --git a/src/world/area_mac/mac_06/864B40.c b/src/world/area_mac/mac_06/864B40.c index fd3f8dbfcc..dbdb1b18a1 100644 --- a/src/world/area_mac/mac_06/864B40.c +++ b/src/world/area_mac/mac_06/864B40.c @@ -2,6 +2,8 @@ #include "world/common/atomic/TexturePan.inc.c" -INCLUDE_ASM(s32, "world/area_mac/mac_06/864B40", func_8024030C_864E4C); +#define NAMESPACE dup_mac_06 +#include "world/common/UnkFloatFunc001.inc.c" +#define NAMESPACE mac_06 #include "world/common/SpawnSunEffect.inc.c" diff --git a/src/world/area_mac/mac_06/865000.c b/src/world/area_mac/mac_06/865000.c index 50be7c58d0..153611d5b7 100644 --- a/src/world/area_mac/mac_06/865000.c +++ b/src/world/area_mac/mac_06/865000.c @@ -1,18 +1,22 @@ #include "mac_06.h" -INCLUDE_ASM(s32, "world/area_mac/mac_06/865000", func_802404C0_865000); +extern u32 N(unkAngle1); +extern s32 N(unkAngle2); +extern s32 N(unkAngle3); -INCLUDE_ASM(s32, "world/area_mac/mac_06/865000", func_8024050C_86504C); +void N(unkVtxFunc001)(Vtx* firstVertex, Vtx* copiedVertices, s32 numVertices, s32* arg3); -INCLUDE_ASM(s32, "world/area_mac/mac_06/865000", func_80240658_865198); +#include "world/common/resolve_npc.inc.c" -INCLUDE_ASM(s32, "world/area_mac/mac_06/865000", func_802408D0_865410); +#include "world/common/UnkAngleFunc001.inc.c" -INCLUDE_ASM(s32, "world/area_mac/mac_06/865000", func_80240974_8654B4); +INCLUDE_ASM(s32, "world/area_mac/mac_06/865000", mac_06_unkVtxFunc001); -INCLUDE_ASM(s32, "world/area_mac/mac_06/865000", func_80240A18_865558); +#include "world/common/unkAngleFuncs023.inc.c" -INCLUDE_ASM(s32, "world/area_mac/mac_06/865000", func_80240B88_8656C8); +#include "world/common/UnkFloatFunc001.inc.c" + +#include "world/common/UnkPlayerPosFunc.inc.c" #include "world/common/PlayFX3D.inc.c" diff --git a/src/world/area_obk/obk_02/BC2A90.c b/src/world/area_obk/obk_02/BC2A90.c index e3a46eaaca..7e79efaa6a 100644 --- a/src/world/area_obk/obk_02/BC2A90.c +++ b/src/world/area_obk/obk_02/BC2A90.c @@ -7,6 +7,6 @@ static char* N(exit_str_3) = ""; INCLUDE_ASM(s32, "world/area_obk/obk_02/BC2A90", func_80240000_BC2A90); -INCLUDE_ASM(s32, "world/area_obk/obk_02/BC2A90", func_8024000C_BC2A9C); +#include "world/common/UnkAngleFunc004.inc.c" INCLUDE_ASM(s32, "world/area_obk/obk_02/BC2A90", func_80240194_BC2C24); diff --git a/src/world/area_obk/obk_05/BCD7D0.c b/src/world/area_obk/obk_05/BCD7D0.c index f91f5bb445..30bf54043e 100644 --- a/src/world/area_obk/obk_05/BCD7D0.c +++ b/src/world/area_obk/obk_05/BCD7D0.c @@ -4,6 +4,38 @@ INCLUDE_ASM(s32, "world/area_obk/obk_05/BCD7D0", func_80240770_BCD7D0); INCLUDE_ASM(s32, "world/area_obk/obk_05/BCD7D0", func_802407A0_BCD800); -INCLUDE_ASM(s32, "world/area_obk/obk_05/BCD7D0", func_802407AC_BCD80C); +ApiStatus func_802407AC_BCD80C(Evt* script, s32 isInitialCall) { + Npc* npc = get_npc_safe(script->owner2.npcID); + + switch (script->functionTemp[1]) { + case 0: + npc->duration = rand_int(180) + 30; + npc->pos.z = -430.0f; + npc->pos.y = rand_int(50) + 40.0f; + npc->moveSpeed = (2.0f * rand_float()) + 2.0f; + if (rand_int(100) < 50) { + npc->pos.x = 270.0f; + npc->yaw = 270.0f; + } else { + npc->pos.x = -270.0f; + npc->yaw = 90.0f; + } + script->functionTemp[1] = 1; + break; + case 1: + npc->duration--; + if (npc->duration == 0) { + script->functionTemp[1] = 2; + } + break; + case 2: + npc_move_heading(npc, npc->moveSpeed, npc->yaw); + if (npc->pos.x < -280.0f || npc->pos.x > 280.0f) { + script->functionTemp[1] = 0; + } + break; + } + return ApiStatus_DONE2; +} INCLUDE_ASM(s32, "world/area_obk/obk_05/BCD7D0", func_80240934_BCD994); diff --git a/src/world/area_obk/obk_07/BCEEB0.c b/src/world/area_obk/obk_07/BCEEB0.c index b18e947100..7c031deee0 100644 --- a/src/world/area_obk/obk_07/BCEEB0.c +++ b/src/world/area_obk/obk_07/BCEEB0.c @@ -2,6 +2,6 @@ INCLUDE_ASM(s32, "world/area_obk/obk_07/BCEEB0", func_802402C0_BCEEB0); -INCLUDE_ASM(s32, "world/area_obk/obk_07/BCEEB0", func_802402CC_BCEEBC); +#include "world/common/UnkAngleFunc004.inc.c" INCLUDE_ASM(s32, "world/area_obk/obk_07/BCEEB0", func_80240454_BCF044); diff --git a/src/world/area_obk/obk_08/BD4110.c b/src/world/area_obk/obk_08/BD4110.c index 8f2c6ad32b..29f46d3658 100644 --- a/src/world/area_obk/obk_08/BD4110.c +++ b/src/world/area_obk/obk_08/BD4110.c @@ -18,6 +18,38 @@ INCLUDE_ASM(s32, "world/area_obk/obk_08/BD4110", func_80240D10_BD4580); INCLUDE_ASM(s32, "world/area_obk/obk_08/BD4110", func_80240FD8_BD4848); -INCLUDE_ASM(s32, "world/area_obk/obk_08/BD4110", func_80240FE4_BD4854); +ApiStatus func_80240FE4_BD4854(Evt* script, s32 isInitialCall) { + Npc* npc = get_npc_safe(script->owner2.npcID); + + switch (script->functionTemp[1]) { + case 0: + npc->duration = rand_int(180) + 30; + npc->pos.z = -430.0f; + npc->pos.y = rand_int(50) + 40.0f; + npc->moveSpeed = (2.0f * rand_float()) + 2.0f; + if (rand_int(100) < 50) { + npc->pos.x = 270.0f; + npc->yaw = 270.0f; + } else { + npc->pos.x = -270.0f; + npc->yaw = 90.0f; + } + script->functionTemp[1] = 1; + break; + case 1: + npc->duration--; + if (npc->duration == 0) { + script->functionTemp[1] = 2; + } + break; + case 2: + npc_move_heading(npc, npc->moveSpeed, npc->yaw); + if (npc->pos.x < -280.0f || npc->pos.x > 280.0f) { + script->functionTemp[1] = 0; + } + break; + } + return ApiStatus_DONE2; +} INCLUDE_ASM(s32, "world/area_obk/obk_08/BD4110", func_8024116C_BD49DC); diff --git a/src/world/area_omo/omo_04/DAF240.c b/src/world/area_omo/omo_04/DAF240.c index 69ff847be0..d4a0b807fd 100644 --- a/src/world/area_omo/omo_04/DAF240.c +++ b/src/world/area_omo/omo_04/DAF240.c @@ -1,3 +1,4 @@ #include "omo_04.h" -INCLUDE_ASM(s32, "world/area_omo/omo_04/DAF240", func_80241E40_DAF240); +#define UNK_NPC_POS_FUNC_NUM 2 +#include "world/common/UnkNpcPosFunc.inc.c" diff --git a/src/world/area_omo/omo_07/DC04D0.c b/src/world/area_omo/omo_07/DC04D0.c index 7007be655b..d5747baa3e 100644 --- a/src/world/area_omo/omo_07/DC04D0.c +++ b/src/world/area_omo/omo_07/DC04D0.c @@ -1,3 +1,4 @@ #include "omo_07.h" -INCLUDE_ASM(s32, "world/area_omo/omo_07/DC04D0", func_80243220_DC04D0); +#define UNK_NPC_POS_FUNC_NUM 7 +#include "world/common/UnkNpcPosFunc.inc.c" diff --git a/src/world/area_omo/omo_09/DD02E0.c b/src/world/area_omo/omo_09/DD02E0.c index 599d986aca..c81d996609 100644 --- a/src/world/area_omo/omo_09/DD02E0.c +++ b/src/world/area_omo/omo_09/DD02E0.c @@ -2,4 +2,5 @@ static char* N(exit_str_0) = "omo_09"; -INCLUDE_ASM(s32, "world/area_omo/omo_09/DD02E0", func_80243610_DD02E0); +#define UNK_NPC_POS_FUNC_NUM 7 +#include "world/common/UnkNpcPosFunc.inc.c" diff --git a/src/world/area_osr/osr_03/AB62B0.c b/src/world/area_osr/osr_03/AB62B0.c index 3d8f711a28..8c00e8fd46 100644 --- a/src/world/area_osr/osr_03/AB62B0.c +++ b/src/world/area_osr/osr_03/AB62B0.c @@ -4,7 +4,15 @@ INCLUDE_ASM(s32, "world/area_osr/osr_03/AB62B0", func_80240020_AB62B0); INCLUDE_ASM(s32, "world/area_osr/osr_03/AB62B0", func_80240090_AB6320); -INCLUDE_ASM(s32, "world/area_osr/osr_03/AB62B0", func_802400C4_AB6354); +ApiStatus func_802400C4_AB6354(Evt* script, s32 isInitialCall) { + Npc* npc = get_npc_unsafe(0); + + script->varTable[0] = npc->pos.x + (sin_deg(npc->yaw + gCameras[CAM_DEFAULT].currentYaw + 180.0f) * 20.0f); + script->varTable[1] = npc->pos.y + 18.0f; + script->varTable[2] = npc->pos.z - (cos_deg(npc->yaw + gCameras[CAM_DEFAULT].currentYaw + 180.0f) * 20.0f); + return ApiStatus_DONE2; +} + INCLUDE_ASM(s32, "world/area_osr/osr_03/AB62B0", func_802401A0_AB6430); diff --git a/src/world/common/StarSpiritEffectFunc.inc.c b/src/world/common/StarSpiritEffectFunc.inc.c index cd9072e96e..4e49b5fb8f 100644 --- a/src/world/common/StarSpiritEffectFunc.inc.c +++ b/src/world/common/StarSpiritEffectFunc.inc.c @@ -3,7 +3,7 @@ #include "effects.h" ApiStatus N(StarSpiritEffectFunc1)(Evt* script, s32 isInitialCall) { - StarSpiritEffect* ptr = (StarSpiritEffect*)script->varTable[0]; + StarSpiritData* ptr = script->varTablePtr[0]; sfx_adjust_env_sound_pos(SOUND_A2, 0, ptr->unk_00, ptr->unk_04, ptr->unk_08); @@ -18,8 +18,9 @@ ApiStatus N(StarSpiritEffectFunc2)(Evt* script, s32 isInitialCall) { Bytecode* args = script->ptrReadPos; if (isInitialCall) { - StarSpiritEffect* ptr = heap_malloc(sizeof(*ptr)); - script->varTable[0] = (s32) ptr; + StarSpiritData* ptr = heap_malloc(sizeof(*ptr)); + + script->varTablePtr[0] = ptr; evt_set_variable(NULL, EVT_MAP_VAR(1), script->varTable[0]); ptr->unk_38 = evt_get_variable(script, *args++); ptr->unk_3C = evt_get_variable(script, *args++); @@ -31,7 +32,7 @@ ApiStatus N(StarSpiritEffectFunc2)(Evt* script, s32 isInitialCall) { ptr->unk_20 = evt_get_float_variable(script, *args++); ptr->unk_24 = evt_get_float_variable(script, *args++); ptr->unk_28 = evt_get_float_variable(script, *args++); - ptr->unk_50 = (struct StarSpiritEffectUnkStruct*) fx_star_spirits_energy(2, ptr->unk_0C, ptr->unk_10, ptr->unk_14, 1.0f, 0); + ptr->unk_50 = fx_star_spirits_energy(2, ptr->unk_0C, ptr->unk_10, ptr->unk_14, 1.0f, 0); ptr->unk_4E = 0; ptr->unk_48 = 0; ptr->unk_4A = 0; @@ -44,16 +45,16 @@ ApiStatus N(StarSpiritEffectFunc2)(Evt* script, s32 isInitialCall) { ApiStatus N(StarSpiritEffectFunc3)(Evt* script, s32 isInitialCall) { PlayerStatus* playerStatus = &gPlayerStatus; - StarSpiritEffect* ptr = (StarSpiritEffect*)script->varTable[0]; + StarSpiritData* ptr = script->varTablePtr[0]; switch (ptr->unk_44) { case 0: ptr->unk_04 = update_lerp(5, ptr->unk_10, ptr->unk_1C, ptr->unk_46, ptr->unk_3C); ptr->unk_00 = update_lerp(0, ptr->unk_0C, ptr->unk_18, ptr->unk_46, ptr->unk_3C); ptr->unk_08 = update_lerp(0, ptr->unk_14, ptr->unk_20, ptr->unk_46, ptr->unk_3C); - ptr->unk_50->unk_0C->unk_08 = ptr->unk_00; - ptr->unk_50->unk_0C->unk_0C = ptr->unk_04; - ptr->unk_50->unk_0C->unk_10 = ptr->unk_08; + ((StarSpiritsEnergyFXData*)ptr->unk_50->data)->unk_08 = ptr->unk_00; + ((StarSpiritsEnergyFXData*)ptr->unk_50->data)->unk_0C = ptr->unk_04; + ((StarSpiritsEnergyFXData*)ptr->unk_50->data)->unk_10 = ptr->unk_08; ptr->unk_46++; if (ptr->unk_46 >= ptr->unk_3C) { ptr->unk_44 = 1; @@ -65,16 +66,16 @@ ApiStatus N(StarSpiritEffectFunc3)(Evt* script, s32 isInitialCall) { if (ptr->unk_46 >= 60) { ptr->unk_44 = 2; ptr->unk_46 = 0; - ptr->unk_50->unk_0C->unk_70 = 1; - ptr->unk_50->unk_0C->unk_74 = 0; + ((StarSpiritsEnergyFXData*)ptr->unk_50->data)->unk_70 = 1; + ((StarSpiritsEnergyFXData*)ptr->unk_50->data)->unk_74 = 0; } break; case 2: ptr->unk_46++; if (ptr->unk_46 >= 60) { ptr->unk_54 = fx_spirit_card(1, ptr->unk_18, ptr->unk_1C, ptr->unk_20, 1.0f, 0); - *((s8*)ptr->unk_54->unk_0C + 0x34) = ptr->unk_38; - ptr->unk_54->unk_0C->unk_20 = 0; + ((SpiritCardFXData*)ptr->unk_54->data)->unk_34 = ptr->unk_38; + ((SpiritCardFXData*)ptr->unk_54->data)->unk_20 = 0; ptr->unk_40 = create_shadow_type(0, ptr->unk_18, ptr->unk_28, ptr->unk_20); ptr->unk_44 = 3; ptr->unk_46 = 0; @@ -96,7 +97,6 @@ ApiStatus N(StarSpiritEffectFunc3)(Evt* script, s32 isInitialCall) { ptr->unk_34 = ptr->unk_2C; } break; - case 4: break; } @@ -107,7 +107,7 @@ ApiStatus N(StarSpiritEffectFunc3)(Evt* script, s32 isInitialCall) { ptr->unk_04 = update_lerp(0xA, ptr->unk_1C, ptr->unk_24, ptr->unk_4C, 120); ptr->unk_4C++; if (ptr->unk_4C >= 120) { - ptr->unk_4C = 0x10E; + ptr->unk_4C = 270; ptr->unk_4A = 2; ptr->unk_4E = 2; } @@ -126,10 +126,10 @@ ApiStatus N(StarSpiritEffectFunc3)(Evt* script, s32 isInitialCall) { case 1: ptr->unk_2C = clamp_angle(ptr->unk_2C + ptr->unk_30); case 2: - ptr->unk_54->unk_0C->unk_24.f = ptr->unk_2C; - ptr->unk_54->unk_0C->unk_04 = ptr->unk_18; - ptr->unk_54->unk_0C->unk_08 = ptr->unk_04; - ptr->unk_54->unk_0C->unk_0C = ptr->unk_20; + ((SpiritCardFXData*)ptr->unk_54->data)->unk_24 = ptr->unk_2C; + ((SpiritCardFXData*)ptr->unk_54->data)->unk_04 = ptr->unk_18; + ((SpiritCardFXData*)ptr->unk_54->data)->unk_08 = ptr->unk_04; + ((SpiritCardFXData*)ptr->unk_54->data)->unk_0C = ptr->unk_20; break; } @@ -138,7 +138,7 @@ ApiStatus N(StarSpiritEffectFunc3)(Evt* script, s32 isInitialCall) { ApiStatus N(StarSpiritEffectFunc4)(Evt* script, s32 isInitialCall) { s32 var = evt_get_variable(script, *script->ptrReadPos); - StarSpiritEffect* ptr = (StarSpiritEffect*) script->varTable[0]; + StarSpiritData* ptr = script->varTablePtr[0]; return (ptr->unk_4E == var) * ApiStatus_DONE2; } @@ -147,18 +147,18 @@ ApiStatus N(StarSpiritEffectFunc5)(Evt* script, s32 isInitialCall) { Bytecode* args = script->ptrReadPos; if (isInitialCall) { - StarSpiritEffect* ptr = (StarSpiritEffect*) heap_malloc(sizeof(*ptr)); - script->varTable[0] = (s32) ptr; + StarSpiritData* ptr = heap_malloc(sizeof(*ptr)); + script->varTablePtr[0] = ptr; ptr->unk_38 = evt_get_variable(script, *args++); ptr->unk_18 = evt_get_float_variable(script, *args++); ptr->unk_24 = evt_get_float_variable(script, *args++); ptr->unk_20 = evt_get_float_variable(script, *args++); ptr->unk_28 = evt_get_float_variable(script, *args++); ptr->unk_54 = fx_spirit_card(1, ptr->unk_18, ptr->unk_24, ptr->unk_20, 1.0f, 0); - ptr->unk_54->unk_0C->unk_34 = ptr->unk_38; - ptr->unk_54->unk_0C->unk_20 = 0; + ((SpiritCardFXData*)ptr->unk_54->data)->unk_34 = ptr->unk_38; + ((SpiritCardFXData*)ptr->unk_54->data)->unk_20 = 0; ptr->unk_40 = create_shadow_type(0, ptr->unk_18, ptr->unk_28, ptr->unk_20); - ptr->unk_4C = 0x10E; + ptr->unk_4C = 270; } return ApiStatus_DONE2; @@ -166,7 +166,7 @@ ApiStatus N(StarSpiritEffectFunc5)(Evt* script, s32 isInitialCall) { ApiStatus N(StarSpiritEffectFunc6)(Evt* script, s32 isInitialCall) { PlayerStatus* playerStatus = &gPlayerStatus; - StarSpiritEffect* ptr = (StarSpiritEffect*) script->varTable[0]; + StarSpiritData* ptr = script->varTablePtr[0]; ptr->unk_04 = ptr->unk_24 + (2.0f * (sin_deg(ptr->unk_4C) + 1.0f)); ptr->unk_4C = clamp_angle(ptr->unk_4C + 8); @@ -174,9 +174,9 @@ ApiStatus N(StarSpiritEffectFunc6)(Evt* script, s32 isInitialCall) { ptr->unk_18, ptr->unk_20) <= 30.0f) { ptr->unk_4E = 3; } - ptr->unk_54->unk_0C->unk_04 = ptr->unk_18; - ptr->unk_54->unk_0C->unk_08 = ptr->unk_04; - ptr->unk_54->unk_0C->unk_0C = ptr->unk_20; + ((SpiritCardFXData*)ptr->unk_54->data)->unk_04 = ptr->unk_18; + ((SpiritCardFXData*)ptr->unk_54->data)->unk_08 = ptr->unk_04; + ((SpiritCardFXData*)ptr->unk_54->data)->unk_0C = ptr->unk_20; return ApiStatus_BLOCK; } diff --git a/src/world/common/UnkAngleFunc001.inc.c b/src/world/common/UnkAngleFunc001.inc.c new file mode 100644 index 0000000000..3ac9da7649 --- /dev/null +++ b/src/world/common/UnkAngleFunc001.inc.c @@ -0,0 +1,35 @@ +#include "common.h" +#include "npc.h" + +ApiStatus N(UnkAngleFunc001)(Evt* script, s32 isInitialCall) { + Bytecode* args = script->ptrReadPos; + s32 npcID = evt_get_variable(script, *args++); + s32 outX = *args++; + s32 outY = *args++; + s32 outZ = *args++; + Npc* npc = N(resolve_npc)(script, npcID); + f32 y; + + if (npc == NULL) { + return ApiStatus_DONE2; + } + + N(unkAngle1) += 4; + if (N(unkAngle1) >= 360) { + N(unkAngle1) -= 360; + } + + y = npc->pos.y; + if (npc->currentAnim.w == 0xB60000 || + npc->currentAnim.w == 0xB60004 || + npc->currentAnim.w == 0xB60008 || + npc->currentAnim.w == 0xB6000C) + { + y += 2.0f * sin_deg(N(unkAngle1)); + } + + evt_set_float_variable(script, outX, npc->pos.x); + evt_set_float_variable(script, outY, y); + evt_set_float_variable(script, outZ, npc->pos.z); + return ApiStatus_DONE2; +} diff --git a/src/world/common/UnkAngleFunc004.inc.c b/src/world/common/UnkAngleFunc004.inc.c new file mode 100644 index 0000000000..5a109066ff --- /dev/null +++ b/src/world/common/UnkAngleFunc004.inc.c @@ -0,0 +1,36 @@ +#include "common.h" +#include "npc.h" + +ApiStatus N(UnkAngleFunc004)(Evt* script, s32 isInitialCall) { + Npc* npc = get_npc_safe(script->owner2.npcID); + + switch (script->functionTemp[1]) { + case 0: + npc->duration = rand_int(180) + 30; + npc->pos.z = -300.0f; + npc->pos.y = rand_int(50) + 80.0f; + npc->moveSpeed = (2.0f * rand_float()) + 2.0f; + if (rand_int(100) < 50) { + npc->pos.x = 270.0f; + npc->yaw = 270.0f; + } else { + npc->pos.x = -270.0f; + npc->yaw = 90.0f; + } + script->functionTemp[1] = 1; + break; + case 1: + npc->duration--; + if (npc->duration == 0) { + script->functionTemp[1] = 2; + } + break; + case 2: + npc_move_heading(npc, npc->moveSpeed, npc->yaw); + if (npc->pos.x < -280.0f || npc->pos.x > 280.0f) { + script->functionTemp[1] = 0; + } + break; + } + return ApiStatus_DONE2; +} diff --git a/src/world/common/UnkAngleFunc005.inc.c b/src/world/common/UnkAngleFunc005.inc.c new file mode 100644 index 0000000000..06666ce48a --- /dev/null +++ b/src/world/common/UnkAngleFunc005.inc.c @@ -0,0 +1,36 @@ +#include "common.h" +#include "npc.h" + +ApiStatus N(UnkAngleFunc005)(Evt* script, s32 isInitialCall) { + Npc* npc = get_npc_safe(script->owner2.npcID); + + switch (script->functionTemp[1]) { + case 0: + npc->duration = rand_int(180) + 30; + npc->pos.z = -430.0f; + npc->pos.y = rand_int(50) + 40.0f; + npc->moveSpeed = (2.0f * rand_float()) + 2.0f; + if (rand_int(100) < 50) { + npc->pos.x = 270.0f; + npc->yaw = 270.0f; + } else { + npc->pos.x = -270.0f; + npc->yaw = 90.0f; + } + script->functionTemp[1] = 1; + break; + case 1: + npc->duration--; + if (npc->duration == 0) { + script->functionTemp[1] = 2; + } + break; + case 2: + npc_move_heading(npc, npc->moveSpeed, npc->yaw); + if (npc->pos.x < -280.0f || npc->pos.x > 280.0f) { + script->functionTemp[1] = 0; + } + break; + } + return ApiStatus_DONE2; +} diff --git a/src/world/common/UnkFloatFunc001.inc.c b/src/world/common/UnkFloatFunc001.inc.c new file mode 100644 index 0000000000..11a88dae2c --- /dev/null +++ b/src/world/common/UnkFloatFunc001.inc.c @@ -0,0 +1,24 @@ +#include "common.h" +#include "npc.h" + +// Similar to UnkFloatFunc +ApiStatus N(UnkFloatFunc001)(Evt* script, s32 isInitialCall) { + Bytecode* args = script->ptrReadPos; + s32 a1 = *args++; + s32 var0 = evt_get_variable(script, a1); + s32 a2 = *args++; + f32 var1 = evt_get_float_variable(script, *args++); + f32 var2 = evt_get_float_variable(script, *args++); + s32 var3 = evt_get_variable(script, *args++); + s32 var4 = evt_get_variable(script, *args++); + f32 temp = evt_get_float_variable(script, *args++); + f32 diff = (var2 - var1) / 2; + + if (var4 != 0 && var3 < var0) { + var0 = var3; + evt_set_variable(script, a1, var3); + } + + evt_set_float_variable(script, a2, (var1 + diff) - (diff * cos_deg(((var0 * 180.0f) / var3) + temp))); + return ApiStatus_DONE2; +} diff --git a/src/world/common/UnkNpcPosFunc.inc.c b/src/world/common/UnkNpcPosFunc.inc.c new file mode 100644 index 0000000000..d9a17f5976 --- /dev/null +++ b/src/world/common/UnkNpcPosFunc.inc.c @@ -0,0 +1,16 @@ +#include "common.h" +#include "npc.h" + +#ifndef UNK_NPC_POS_FUNC_NUM +#error UNK_NPC_POS_FUNC_NUM must be defined +#define UNK_NPC_POS_FUNC_NUM 0 +#endif + +ApiStatus N(UnkNpcPosFunc)(Evt* script, s32 isInitialCall) { + Npc* npc = get_npc_unsafe(UNK_NPC_POS_FUNC_NUM); + + script->varTable[0] = npc->pos.x + (sin_deg(npc->yaw + gCameras[CAM_DEFAULT].currentYaw + 180.0f) * 40.0f); + script->varTable[1] = npc->pos.y + 8.0f; + script->varTable[2] = npc->pos.z - (cos_deg(npc->yaw + gCameras[CAM_DEFAULT].currentYaw + 180.0f) * 40.0f); + return ApiStatus_DONE2; +} diff --git a/src/world/common/UnkPlayerPosFunc.inc.c b/src/world/common/UnkPlayerPosFunc.inc.c new file mode 100644 index 0000000000..e3c20982d9 --- /dev/null +++ b/src/world/common/UnkPlayerPosFunc.inc.c @@ -0,0 +1,15 @@ +#include "common.h" +#include "npc.h" + +ApiStatus N(UnkPlayerPosFunc)(Evt* script, s32 isInitialCall) { + Npc* player = get_npc_safe(ACTOR_PLAYER); + f32 yaw = -player->yaw; + f32 x = player->pos.x + 30.0f + (sin_deg(yaw) * 70.0f); + f32 z = player->pos.z + (cos_deg(yaw) * 70.0f); + f32 y = player->pos.y + 50.0f; + + evt_set_float_variable(script, EVT_VAR(0), x); + evt_set_float_variable(script, EVT_VAR(1), y); + evt_set_float_variable(script, EVT_VAR(2), z); + return ApiStatus_DONE2; +} diff --git a/src/world/common/UnkVtxFunc.inc.c b/src/world/common/UnkVtxFunc.inc.c new file mode 100644 index 0000000000..63e7e83a98 --- /dev/null +++ b/src/world/common/UnkVtxFunc.inc.c @@ -0,0 +1,7 @@ +#include "common.h" +#include "npc.h" + +void N(SomeVtxFunc)(void) { + script->varTable[0] = gPlayerData.coins; + return ApiStatus_DONE2; +} diff --git a/src/world/common/resolve_npc.inc.c b/src/world/common/resolve_npc.inc.c new file mode 100644 index 0000000000..0e2078e78b --- /dev/null +++ b/src/world/common/resolve_npc.inc.c @@ -0,0 +1,11 @@ +#include "npc.h" + +Npc* N(resolve_npc)(Evt* script, s32 npcIdOrPtr) { + if (npcIdOrPtr == NPC_SELF) { + return get_npc_safe(script->owner2.npcID); + } else if (npcIdOrPtr >= -270000000) { + return get_npc_safe(npcIdOrPtr); + } else { + return (Npc*) npcIdOrPtr; + } +} diff --git a/src/world/common/unkAngleFuncs023.inc.c b/src/world/common/unkAngleFuncs023.inc.c new file mode 100644 index 0000000000..bc35dddb61 --- /dev/null +++ b/src/world/common/unkAngleFuncs023.inc.c @@ -0,0 +1,36 @@ +#include "common.h" +#include "npc.h" + +void N(unkAngleFunc002)(void) { + Vtx* firstVertex; + Vtx* copiedVertices; + s32 numVertices; + + mdl_get_copied_vertices(1, &firstVertex, &copiedVertices, &numVertices); + N(unkVtxFunc001)(firstVertex, copiedVertices, numVertices, &N(unkAngle2)); + + gSPDisplayList(gMasterGfxPos++, mdl_get_copied_gfx(1)); + if (N(unkAngle2) >= 0) { + N(unkAngle2) += 4; + } + if (N(unkAngle2) >= 360) { + N(unkAngle2) = -1; + } +} + +void N(unkAngleFunc003)(void) { + Vtx* firstVertex; + Vtx* copiedVertices; + s32 numVertices; + + mdl_get_copied_vertices(2, &firstVertex, &copiedVertices, &numVertices); + N(unkVtxFunc001)(firstVertex, copiedVertices, numVertices, &N(unkAngle3)); + + gSPDisplayList(gMasterGfxPos++, mdl_get_copied_gfx(2)); + if (N(unkAngle3) >= 0) { + N(unkAngle3) += 4; + } + if (N(unkAngle3) >= 360) { + N(unkAngle3) = -1; + } +} diff --git a/tools/sortsymz.py b/tools/sortsymz.py index 04d9c1b798..0a34d3d803 100755 --- a/tools/sortsymz.py +++ b/tools/sortsymz.py @@ -8,7 +8,7 @@ groups = {} with open("tools/symz.txt") as f: for line in f.readlines(): - if line and not line.startswith("//"): + if line.strip() and not line.startswith("//"): name, addr = line.strip().strip(";").split(" = ") syms.append({"name": name, "address": int(addr, 0), "found_in": set(), "dead": False}) diff --git a/ver/us/asm/data/1AF2D0.data.s b/ver/us/asm/data/1AF2D0.data.s index 1501736d42..a1d30e4651 100644 --- a/ver/us/asm/data/1AF2D0.data.s +++ b/ver/us/asm/data/1AF2D0.data.s @@ -780,7 +780,10 @@ dlabel HudScript_MashCUpButton .word 0x00000008, 0x00000013, 0x00000028, 0x00000022, 0x00000004, 0x00000002, 0x00000002, D_8028BEC0, D_8028C168, 0x00000002, 0x00000002, D_8028C188, D_8028C430, 0x00000003, 0x00000000 dlabel HudScript_CDownButton -.word 0x00000008, 0x00000013, 0x00000028, 0x00000022, 0x00000004, 0x00000002, 0x0000003C, D_8028C450, D_8028C6F8, 0x00000003, 0x00000000, 0x00000008, 0x00000013, 0x00000028, 0x00000022, 0x00000004, 0x00000002, 0x0000003C, D_8028C718, D_8028C9C0, 0x00000003, 0x00000000 +.word 0x00000008, 0x00000013, 0x00000028, 0x00000022, 0x00000004, 0x00000002, 0x0000003C, D_8028C450, D_8028C6F8, 0x00000003, 0x00000000 + +dlabel HudScript_8029265C +.word 0x00000008, 0x00000013, 0x00000028, 0x00000022, 0x00000004, 0x00000002, 0x0000003C, D_8028C718, D_8028C9C0, 0x00000003, 0x00000000 dlabel HudScript_MashCDownButton1 .word 0x00000008, 0x00000013, 0x00000028, 0x00000022, 0x00000004, 0x00000002, 0x00000002, D_8028C450, D_8028C6F8, 0x00000002, 0x00000002, D_8028C718, D_8028C9C0, 0x00000003, 0x00000000 diff --git a/ver/us/asm/data/battle/action_cmd/422A90.data.s b/ver/us/asm/data/battle/action_cmd/422A90.data.s deleted file mode 100644 index ab5365cd4f..0000000000 --- a/ver/us/asm/data/battle/action_cmd/422A90.data.s +++ /dev/null @@ -1,6 +0,0 @@ -.include "macro.inc" - -.section .data - -dlabel jtbl_802A9A90_422A90 -.word L802A93BC_4223BC, L802A94A8_4224A8, L802A99B4_4229B4, L802A99B4_4229B4, L802A99B4_4229B4, L802A99B4_4229B4, L802A99B4_4229B4, L802A99B4_4229B4, L802A99B4_4229B4, L802A99B4_4229B4, L802A9598_422598, L802A9644_422644, L802A9994_422994, 0, 0, 0 diff --git a/ver/us/asm/data/battle/action_cmd/423C30.data.s b/ver/us/asm/data/battle/action_cmd/423C30.data.s deleted file mode 100644 index d37f2d81b7..0000000000 --- a/ver/us/asm/data/battle/action_cmd/423C30.data.s +++ /dev/null @@ -1,6 +0,0 @@ -.include "macro.inc" - -.section .data - -dlabel jtbl_802A9840_423C30 -.word L802A9320_423710, L802A93C4_4237B4, L802A96A4_423A94, L802A96A4_423A94, L802A96A4_423A94, L802A96A4_423A94, L802A96A4_423A94, L802A96A4_423A94, L802A96A4_423A94, L802A96A4_423A94, L802A944C_42383C, L802A9490_423880, L802A9684_423A74, 0, 0, 0 diff --git a/ver/us/asm/data/battle/action_cmd/424550.data.s b/ver/us/asm/data/battle/action_cmd/424550.data.s deleted file mode 100644 index c202209e1b..0000000000 --- a/ver/us/asm/data/battle/action_cmd/424550.data.s +++ /dev/null @@ -1,93 +0,0 @@ -.include "macro.inc" - -.section .data - -dlabel D_802A98E0_424550 -.word 0x00000000, 0x00007770, 0x00000000, 0x00000000, 0x00777777, 0x00000000, 0x00000000, 0x0778D1D7, 0x70000000, 0x00000007, 0x77B1111D, 0x77000000, 0x00000777, 0x91111111, 0xB7700000, 0x0000777E, 0x11111111, 0xB7700000, 0x00007711, 0x11111111, 0xA7700000, 0x00007711, 0x11111111, 0x77000000, 0x000077A2, 0x222B222D, 0x77000000, 0x00000779, 0x2B77222B, 0x77000000, 0x00000087, 0x777B333A, 0x70000000, 0x00000007, 0x77733337, 0x70000000, 0x00000000, 0x77A444D7, 0x70000000, 0x00000000, 0x774444C7, 0x70000000, 0x00000007, 0x775555A7, 0x00000000, 0x00000007, 0x7D555577, 0x00000000, 0x00000077, 0x76666D77, 0x00000000, 0x00000077, 0x66666A77, 0x00000000, 0x00000078, 0x66666770, 0x00000000, 0x00000078, 0x6666D770, 0x00000000, 0x00000077, 0xD666C770, 0x00000000, 0x00000077, 0x7D667700, 0x00000000, 0x00000007, 0x77777700, 0x00000000, 0x00000000, 0x77777000, 0x00000000 - -dlabel D_802A9A00_424670 -.word 0xBDE0FC05, 0xFD81FE41, 0xC081E143, 0xFA033843, 0x58C17141, 0x8983A203, 0xBA43D2C5, 0xEB05FFFF - -dlabel D_802A9A20_424690 -.word 0x00000000, 0x07777770, 0x00000000, 0x00000007, 0x77777777, 0x70000000, 0x00000087, 0xA111111D, 0x77000000, 0x0000777B, 0x11111111, 0xD7700000, 0x000777D1, 0x11111111, 0x11870000, 0x00777111, 0x11111111, 0x11B70000, 0x07771111, 0x11DD1111, 0x11B70000, 0x077E1111, 0x1777A111, 0x11B70000, 0x07772222, 0x77778222, 0x22770000, 0x00787227, 0x70772222, 0x27700000, 0x00078777, 0x07733333, 0x87000000, 0x00007870, 0x78333337, 0x80000000, 0x00000007, 0x74444477, 0x77700000, 0x00000078, 0x44444777, 0x77770000, 0x00000785, 0x5555777A, 0x55A77000, 0x00007855, 0x55577AD5, 0x555D7800, 0x00078666, 0x667AD666, 0x66667700, 0x00776666, 0x66DE6666, 0x666D7700, 0x00776666, 0x66666666, 0x6D777000, 0x0077C666, 0x6666666C, 0x77770000, 0x00077A66, 0x6666DA77, 0x87000000, 0x00007776, 0x66C77777, 0x00000000, 0x00000777, 0x77777700, 0x00000000, 0x00000007, 0x77700000, 0x00000000 - -dlabel D_802A9B40_4247B0 -.word 0xBDE0FC05, 0xFD81FE41, 0xC081E143, 0xFA033843, 0x58C17141, 0x8983A203, 0xBA43D2C5, 0xEB05FFFF - -dlabel D_802A9B60_4247D0 -.word 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00888888, 0x00000000, 0x00000000, 0x77787788, 0x77000000, 0x00000077, 0x7B111111, 0xD7700000, 0x00007779, 0x11111111, 0x1D770000, 0x000777D1, 0x11111111, 0x11D77000, 0x00077111, 0x111A7C11, 0x11177000, 0x00077111, 0x11777711, 0x11177000, 0x00077222, 0x27707722, 0x22D77000, 0x0000772D, 0x77077222, 0x2D770000, 0x00000777, 0x70873333, 0xA7700000, 0x00000000, 0x0773333A, 0x77000000, 0x00000000, 0x07744449, 0x77000000, 0x00000000, 0x00774444, 0xA7700000, 0x00000787, 0x77077555, 0x5D770000, 0x000077D5, 0x57707755, 0x55D77000, 0x00077D66, 0x66977796, 0x66667700, 0x00078666, 0x666B7776, 0x66667700, 0x00077966, 0x6666DCD6, 0x66667700, 0x0000777D, 0x66666666, 0x66D77000, 0x00000777, 0xA6666666, 0x6A770000, 0x00000077, 0x7766666D, 0x77700000, 0x00000000, 0x77777777, 0x77000000, 0x00000000, 0x00777777, 0x00000000 - -dlabel D_802A9C80_4248F0 -.word 0xBDE0FC05, 0xFD81FE41, 0xC081E143, 0xFA033843, 0x58C17141, 0x8983A203, 0xBA43D2C5, 0xEB05FFFF - -dlabel D_802A9CA0_424910 -.word 0x00000000, 0x00077777, 0x00000000, 0x00000000, 0x00777777, 0x70000000, 0x00000000, 0x07771111, 0x77000000, 0x00000000, 0x07711111, 0x17000000, 0x00000000, 0x77B11111, 0xC7000000, 0x00000000, 0x7911111C, 0x77000000, 0x00000007, 0x7D1111B7, 0x70000000, 0x00000077, 0xB1111B77, 0x70000000, 0x00000077, 0x22222227, 0x77000000, 0x0000077D, 0x22222222, 0x77000000, 0x00007793, 0x33373333, 0x77700000, 0x00007733, 0x33B77333, 0x77700000, 0x00077D44, 0xED777444, 0x77770000, 0x00079444, 0xD7777444, 0x44770000, 0x00775555, 0xC777B555, 0x55B77000, 0x00775555, 0x55555555, 0x55D77000, 0x0077D666, 0x66666666, 0x66677000, 0x00777D66, 0x66666669, 0x77777000, 0x00077777, 0x77766667, 0x77770000, 0x00000777, 0x77766667, 0x70000000, 0x00000000, 0x077666C7, 0x70000000, 0x00000000, 0x0776C977, 0x70000000, 0x00000000, 0x07777770, 0x00000000, 0x00000000, 0x00777000, 0x00000000 - -dlabel D_802A9DC0_424A30 -.word 0xBDE0FC05, 0xFD81FE41, 0xC081E143, 0xFA033843, 0x58C17141, 0x8983A203, 0xBA43D2C5, 0xEB05FFFF - -dlabel D_802A9DE0_424A50 -.word 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x88777777, 0x78700000, 0x00000007, 0x77777777, 0x77770000, 0x00000077, 0xA1111111, 0x11780000, 0x00000077, 0xD1111111, 0x11780000, 0x0000077A, 0x11111111, 0x11780000, 0x00000771, 0x111D7777, 0x77770000, 0x000077B1, 0x11177000, 0x00000000, 0x00007722, 0x22A77778, 0x80000000, 0x00077D22, 0x2B77D22D, 0x77000000, 0x00077333, 0x37D33333, 0xD7700000, 0x0077D333, 0x33333333, 0x3D770000, 0x00774444, 0x4444A7B4, 0x44D77000, 0x00077444, 0x4DB77778, 0x44477000, 0x00007755, 0xB7770777, 0x55577000, 0x00000778, 0x770077A5, 0x55D77000, 0x00000077, 0x00778666, 0x6D770000, 0x00000000, 0x877D6666, 0xD7700000, 0x00000077, 0x7B666666, 0x77000000, 0x00000078, 0xD6666667, 0x70000000, 0x00000087, 0xB6666677, 0x00000000, 0x00000008, 0x7B666770, 0x00000000, 0x00000000, 0x87777700, 0x00000000, 0x00000000, 0x08888000, 0x00000000 - -dlabel D_802A9F00_424B70 -.word 0xBDE0FC05, 0xFD81FE41, 0xC081E143, 0xFA033843, 0x58C17141, 0x8983A203, 0xBA43D2C5, 0xEB05FFFF - -dlabel D_802A9F20_424B90 -.word 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x07777770, 0x00000000, 0x00000000, 0x778BBB77, 0x00000000, 0x00000007, 0x78E111C7, 0x70000000, 0x00000007, 0x7C1111E7, 0x70000000, 0x00000077, 0xB11111E7, 0x70000000, 0x00000077, 0xE11111B7, 0x70000000, 0x0000077B, 0x11111977, 0x00000000, 0x0000078E, 0x222C8770, 0x00000000, 0x000077A2, 0x2222DC77, 0x70000000, 0x000078D3, 0x3333333C, 0x77700000, 0x00077B33, 0x33C9C333, 0x3C777000, 0x00078444, 0x44777C44, 0x44497700, 0x0077B444, 0xC77077C4, 0x444B7700, 0x0077D555, 0x97000795, 0x555C7700, 0x00775555, 0x77000775, 0x555C7700, 0x00776666, 0x97707796, 0x666B7000, 0x0077C666, 0x69777966, 0x66C77000, 0x00077B66, 0x6D979666, 0x6D770000, 0x00007796, 0x66666666, 0xD7700000, 0x00000779, 0x6666666D, 0x77000000, 0x00000077, 0x8D6666D7, 0x70000000, 0x00000007, 0x77777777, 0x00000000, 0x00000000, 0x77777770, 0x00000000 - -dlabel D_802AA040_424CB0 -.word 0xBDE0FC05, 0xFD81FE41, 0xC081E143, 0xFA033843, 0x58C17141, 0x8983A203, 0xBA43D2C5, 0xEB05FFFF - -dlabel D_802AA060_424CD0 -.word 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x77777777, 0x77000000, 0x00000007, 0x77777777, 0x77700000, 0x00000077, 0xA1111111, 0x11770000, 0x00000779, 0x11111111, 0x11E77000, 0x00000771, 0x11111111, 0x11177000, 0x000077D1, 0x11111111, 0x11E77000, 0x00007911, 0x1D777779, 0x11C77000, 0x00077E22, 0x2B777782, 0x22770000, 0x00077222, 0x277778D2, 0x2C770000, 0x00077C33, 0x97777C33, 0xE7700000, 0x00007777, 0x7777C333, 0x97700000, 0x00000777, 0x777C444C, 0x77000000, 0x00000000, 0x07744449, 0x77000000, 0x00000000, 0x77D555C7, 0x70000000, 0x00000000, 0x77555597, 0x70000000, 0x00000007, 0x7B666677, 0x00000000, 0x00000007, 0x76666677, 0x00000000, 0x00000007, 0x76666677, 0x00000000, 0x00000007, 0x76666677, 0x00000000, 0x00000007, 0x76666677, 0x00000000, 0x00000007, 0x7C666C77, 0x00000000, 0x00000000, 0x77777770, 0x00000000, 0x00000000, 0x07777700, 0x00000000 - -dlabel D_802AA180_424DF0 -.word 0xBDE0FC05, 0xFD81FE41, 0xC081E143, 0xFA033843, 0x58C17141, 0x8983A203, 0xBA43D2C5, 0xEB05FFFF - -dlabel D_802AA1A0_424E10 -.word 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000055, 0x55555555, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00055555, 0x55555555, 0x66000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x55555543, 0x22111234, 0x66660000, 0x00000000, 0x00000000, 0x00000000, 0x00000055, 0x55543211, 0x11111111, 0x24666000, 0x00000000, 0x00000000, 0x00000000, 0x00000555, 0x53211111, 0x11111111, 0x11266600, 0x00000000, 0x00000000, 0x00000000, 0x00055553, 0x21111111, 0x11111111, 0x11126660, 0x00000000, 0x00000000, 0x00000000, 0x00555421, 0x11111111, 0x11111111, 0x11112666, 0x00000000, 0x00000000, 0x00000000, 0x05553111, 0x11111111, 0x11111111, 0x11111266, 0x00000000, 0x00000000, 0x00000000, 0x55521111, 0x11111111, 0x11111111, 0x11111146, 0x60000000, 0x00000000, 0x00000005, 0x55211111, 0x11111111, 0x11111111, 0x11111126, 0x60000000, 0x00000000, 0x00000055, 0x52111111, 0x11111111, 0x11111111, 0x11111114, 0x66000000, 0x00000000, 0x00000555, 0x31111111, 0x11111111, 0x11111111, 0x11111113, 0x66000000, 0x00000000, 0x00000554, 0x11111111, 0x11111111, 0x11111111, 0x11111112, 0x66000000, 0x00000000, 0x00005541, 0x11111111, 0x11111111, 0x11111111, 0x11111112, 0x66000000, 0x00000000, 0x00005521, 0x11111111, 0x11111111, 0x11111111, 0x11111112, 0x66000000, 0x00000000, 0x00055411, 0x11111111, 0x11111111, 0x11111111, 0x11111112, 0x66000000, 0x00000000, 0x00055211, 0x11111111, 0x11111111, 0x11111111, 0x11111113, 0x66000000, 0x00000000, 0x00554111, 0x11111111, 0x11111111, 0x11111111, 0x11111114, 0x66000000, 0x00000000, 0x00553111, 0x11111111, 0x11111111, 0x11111111, 0x11111126, 0x66000000, 0x00000000, 0x00552111, 0x11111111, 0x11111111, 0x11111111, 0x11111136, 0x60000000, 0x00000000, 0x05541111, 0x11111111, 0x11111111, 0x11111111, 0x11111246, 0x60000666, 0x66000000, 0x05531111, 0x11111111, 0x11111111, 0x11111111, 0x11111366, 0x00666666, 0x66000000, 0x05521111, 0x11111111, 0x11111111, 0x11111111, 0x11112466, 0x66664222, 0x66000000, 0x05511111, 0x11111111, 0x11111111, 0x11111111, 0x11113666, 0x64211126, 0x60000000, 0x05511111, 0x11111111, 0x11111111, 0x11111111, 0x11125542, 0x11111266, 0x60000000, 0x05611111, 0x11111111, 0x11111111, 0x11111111, 0x11152111, 0x11112666, 0x00000000, 0x05611111, 0x11111111, 0x11111111, 0x11111111, 0x11411111, 0x11126660, 0x00000000, 0x05621111, 0x11111111, 0x11111111, 0x11111111, 0x13111111, 0x11266600, 0x00000000, 0x05631111, 0x11111111, 0x11111111, 0x11111111, 0x11111111, 0x13666000, 0x00000000, 0x05641111, 0x11111111, 0x11111111, 0x11111111, 0x11111111, 0x46660000, 0x00000000, 0x05661111, 0x11111111, 0x11111111, 0x11111111, 0x11111126, 0x66600000, 0x00000000, 0x00663111, 0x11111111, 0x11111111, 0x11111111, 0x11112466, 0x60000000, 0x00000000, 0x00664111, 0x11111111, 0x11111111, 0x11111111, 0x11246666, 0x00000000, 0x00000000, 0x00066311, 0x11111111, 0x11111111, 0x11111111, 0x24666600, 0x00000000, 0x00000000, 0x00066621, 0x11111111, 0x11111111, 0x11111124, 0x66660000, 0x00000000, 0x00000000, 0x00006662, 0x11111111, 0x11111111, 0x11112466, 0x66000000, 0x00000000, 0x00000000, 0x00000666, 0x42111111, 0x11111111, 0x22466666, 0x00000000, 0x00000000, 0x00000000, 0x00000066, 0x66422111, 0x11112246, 0x66666600, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x66666666, 0x66666666, 0x66600000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00666666, 0x66666666, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 - -dlabel D_802AA6E0_425350 -.word 0x294CD6B5, 0xB5B18C69, 0x6B614215, 0x294D0001, 0x00010001, 0x00010001, 0x00010001, 0xFFEBAAC9 - -dlabel D_802AA700_425370 -.word 0x00000008, 0x00000005, 0x00000002, 0x00000004, 0x00000002, 0x0000003C, D_802A98E0_424550, D_802A9A00_424670, 0x00000003, 0x00000000 - -dlabel D_802AA728_425398 -.word 0x00000008, 0x00000005, 0x00000002, 0x00000004, 0x00000002, 0x0000003C, D_802A9A20_424690, D_802A9B40_4247B0, 0x00000003, 0x00000000 - -dlabel D_802AA750_4253C0 -.word 0x00000008, 0x00000005, 0x00000002, 0x00000004, 0x00000002, 0x0000003C, D_802A9B60_4247D0, D_802A9C80_4248F0, 0x00000003, 0x00000000 - -dlabel D_802AA778_4253E8 -.word 0x00000008, 0x00000005, 0x00000002, 0x00000004, 0x00000002, 0x0000003C, D_802A9CA0_424910, D_802A9DC0_424A30, 0x00000003, 0x00000000 - -dlabel D_802AA7A0_425410 -.word 0x00000008, 0x00000005, 0x00000002, 0x00000004, 0x00000002, 0x0000003C, D_802A9DE0_424A50, D_802A9F00_424B70, 0x00000003, 0x00000000 - -dlabel D_802AA7C8_425438 -.word 0x00000008, 0x00000005, 0x00000002, 0x00000004, 0x00000002, 0x0000003C, D_802A9F20_424B90, D_802AA040_424CB0, 0x00000003, 0x00000000 - -dlabel D_802AA7F0_425460 -.word 0x00000008, 0x00000005, 0x00000002, 0x00000004, 0x00000002, 0x0000003C, D_802AA060_424CD0, D_802AA180_424DF0, 0x00000003, 0x00000000 - -dlabel D_802AA818_425488 -.word 0x00000008, 0x00000013, 0x00000038, 0x00000030, 0x00000004, 0x00000002, 0x0000003C, D_802AA1A0_424E10, D_802AA6E0_425350, 0x00000003, 0x00000000 - -dlabel D_802AA844_4254B4 -.word 0x00000000, 0x00000019, 0x00000032, 0x0000004B, 0x00000064, 0x00000064 - -dlabel D_802AA85C_4254CC -.word 0x00000032, 0x00000032, 0x00000032, 0x00000032, 0x0000004B, 0x0000004B, 0x0000004B, 0x00000064, 0x00000064, 0x00000064, 0x00000064 - -dlabel D_802AA888_4254F8 -.word D_802AA7F0_425460, D_802AA7C8_425438, D_802AA7A0_425410, D_802AA778_4253E8, D_802AA750_4253C0, D_802AA728_425398 - -dlabel D_802AA8A0_425510 -.byte 0x80, 0x2A, 0xA7, 0x00, 0x80, 0x2A, 0xA7, 0x00, 0x80, 0x2A, 0xA7, 0x28, 0x80, 0x2A, 0xA7, 0x50, 0x80, 0x2A, 0xA7, 0x50, 0x00, 0x00, 0x00 - -dlabel D_802AA8B7_425527 -.byte 0x03, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01 - -dlabel jtbl_802AA8E0_425550 -.word L802A9338_423FA8, L802A93DC_42404C, L802A972C_42439C, L802A972C_42439C, L802A972C_42439C, L802A972C_42439C, L802A972C_42439C, L802A972C_42439C, L802A972C_42439C, L802A972C_42439C, L802A9464_4240D4, L802A94AC_42411C, L802A970C_42437C, 0, 0, 0 diff --git a/ver/us/asm/data/battle/action_cmd/426970.data.s b/ver/us/asm/data/battle/action_cmd/426970.data.s deleted file mode 100644 index cf42c0f35c..0000000000 --- a/ver/us/asm/data/battle/action_cmd/426970.data.s +++ /dev/null @@ -1,12 +0,0 @@ -.include "macro.inc" - -.section .data - -dlabel D_802A9800_426970 -.short 0x0000 - -dlabel D_802A9802_426972 -.short 0x0000, 0x0000, 0x0019, 0x0000, 0x0032, 0x0000, 0x004B, 0x0000, 0x004B, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000 - -dlabel jtbl_802A9820_426990 -.word L802A92D4_426444, L802A9330_4264A0, L802A96C4_426834, L802A96C4_426834, L802A96C4_426834, L802A96C4_426834, L802A96C4_426834, L802A96C4_426834, L802A96C4_426834, L802A96C4_426834, L802A9388_4264F8, L802A93E8_426558, L802A9680_4267F0, 0, 0, 0 diff --git a/ver/us/asm/data/battle/action_cmd/427320.data.s b/ver/us/asm/data/battle/action_cmd/427320.data.s deleted file mode 100644 index dfe077dc6a..0000000000 --- a/ver/us/asm/data/battle/action_cmd/427320.data.s +++ /dev/null @@ -1,21 +0,0 @@ -.include "macro.inc" - -.section .data - -dlabel D_802A9950_427320 -.short 0x0000 - -dlabel D_802A9952_427322 -.short 0x0000, 0x0000, 0x0019, 0x0000, 0x0032, 0x0000, 0x004B, 0x0000, 0x004B - -dlabel D_802A9964_427334 -.word 0x00000028, 0x00000046, 0x00000063, 0x000000C8 - -dlabel D_802A9974_427344 -.word 0x00000023, 0x0000003C, 0x00000050, 0x00000063, 0x000000C8 - -dlabel D_802A9988_427358 -.word 0x00000023, 0x00000023, 0x0000003C, 0x00000050, 0x00000063, 0x000000C8 - -dlabel jtbl_802A99A0_427370 -.word L802A92E4_426CB4, L802A9340_426D10, L802A9818_4271E8, L802A9818_4271E8, L802A9818_4271E8, L802A9818_4271E8, L802A9818_4271E8, L802A9818_4271E8, L802A9818_4271E8, L802A9818_4271E8, L802A9398_426D68, L802A9400_426DD0, L802A97F8_4271C8, 0, 0, 0 diff --git a/ver/us/asm/data/battle/action_cmd/428280.data.s b/ver/us/asm/data/battle/action_cmd/428280.data.s deleted file mode 100644 index ae59a88016..0000000000 --- a/ver/us/asm/data/battle/action_cmd/428280.data.s +++ /dev/null @@ -1,12 +0,0 @@ -.include "macro.inc" - -.section .data - -dlabel D_802A9810_428280 -.short 0x0000 - -dlabel D_802A9812_428282 -.short 0x0000, 0x0000, 0x0019, 0x0000, 0x0032, 0x0000, 0x004B, 0x0000, 0x004B, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000 - -dlabel jtbl_802A9830_4282A0 -.word L802A92D4_427D44, L802A9330_427DA0, L802A96D4_428144, L802A96D4_428144, L802A96D4_428144, L802A96D4_428144, L802A96D4_428144, L802A96D4_428144, L802A96D4_428144, L802A96D4_428144, L802A9388_427DF8, L802A93E8_427E58, L802A96B4_428124, 0, 0, 0 diff --git a/ver/us/asm/data/battle/action_cmd/4292C0.data.s b/ver/us/asm/data/battle/action_cmd/4292C0.data.s deleted file mode 100644 index ffb716964b..0000000000 --- a/ver/us/asm/data/battle/action_cmd/4292C0.data.s +++ /dev/null @@ -1,9 +0,0 @@ -.include "macro.inc" - -.section .data - -dlabel D_802A9850_4292C0 -.short 0x0000 - -dlabel D_802A9852_4292C2 -.short 0x0000, 0x0000, 0x0019, 0x0000, 0x0032, 0x0000, 0x004B, 0x0000, 0x004B, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000 diff --git a/ver/us/asm/data/battle/action_cmd/42A480.data.s b/ver/us/asm/data/battle/action_cmd/42A480.data.s deleted file mode 100644 index 3481aaf77b..0000000000 --- a/ver/us/asm/data/battle/action_cmd/42A480.data.s +++ /dev/null @@ -1,15 +0,0 @@ -.include "macro.inc" - -.section .data - -dlabel D_802A9760_42A480 -.short 0x0000 - -dlabel D_802A9762_42A482 -.short 0x012C, 0x0000, 0x012C, 0x0000, 0x0109, 0x0000, 0x00DC, 0x0000, 0x00AF, 0x0000, 0x00AF - -dlabel D_802A9778_42A498 -.word 0x0000012C, 0x0000012C, 0x00000109, 0x000000DC, 0x000000AF, 0x000000AF - -dlabel jtbl_802A9790_42A4B0 -.word L802A9254_429F74, L802A92B0_429FD0, L802A9618_42A338, L802A9618_42A338, L802A9618_42A338, L802A9618_42A338, L802A9618_42A338, L802A9618_42A338, L802A9618_42A338, L802A9618_42A338, L802A9308_42A028, L802A936C_42A08C, L802A95F8_42A318, 0, 0, 0 diff --git a/ver/us/asm/data/battle/action_cmd/42B650.data.s b/ver/us/asm/data/battle/action_cmd/42B650.data.s deleted file mode 100644 index d3eeb2208a..0000000000 --- a/ver/us/asm/data/battle/action_cmd/42B650.data.s +++ /dev/null @@ -1,84 +0,0 @@ -.include "macro.inc" - -.section .data - -dlabel D_802AA160_42B650 -.word 0x00000000, 0x00007770, 0x00000000, 0x00000000, 0x00777777, 0x00000000, 0x00000000, 0x0778D1D7, 0x70000000, 0x00000007, 0x77B1111D, 0x77000000, 0x00000777, 0x91111111, 0xB7700000, 0x0000777E, 0x11111111, 0xB7700000, 0x00007711, 0x11111111, 0xA7700000, 0x00007711, 0x11111111, 0x77000000, 0x000077A2, 0x222B222D, 0x77000000, 0x00000779, 0x2B77222B, 0x77000000, 0x00000087, 0x777B333A, 0x70000000, 0x00000007, 0x77733337, 0x70000000, 0x00000000, 0x77A444D7, 0x70000000, 0x00000000, 0x774444C7, 0x70000000, 0x00000007, 0x775555A7, 0x00000000, 0x00000007, 0x7D555577, 0x00000000, 0x00000077, 0x76666D77, 0x00000000, 0x00000077, 0x66666A77, 0x00000000, 0x00000078, 0x66666770, 0x00000000, 0x00000078, 0x6666D770, 0x00000000, 0x00000077, 0xD666C770, 0x00000000, 0x00000077, 0x7D667700, 0x00000000, 0x00000007, 0x77777700, 0x00000000, 0x00000000, 0x77777000, 0x00000000 - -dlabel D_802AA280_42B770 -.word 0xBDE0FEED, 0xFEE9FFAB, 0xCBD9E4DB, 0xFDDF288F, 0x294F498D, 0x62537B19, 0x93DFB4E5, 0xDE2FFFFF - -dlabel D_802AA2A0_42B790 -.word 0x00000000, 0x07777770, 0x00000000, 0x00000007, 0x77777777, 0x70000000, 0x00000087, 0xA111111D, 0x77000000, 0x0000777B, 0x11111111, 0xD7700000, 0x000777D1, 0x11111111, 0x11870000, 0x00777111, 0x11111111, 0x11B70000, 0x07771111, 0x11DD1111, 0x11B70000, 0x077E1111, 0x1777A111, 0x11B70000, 0x07772222, 0x77778222, 0x22770000, 0x00787227, 0x70772222, 0x27700000, 0x00078777, 0x07733333, 0x87000000, 0x00007870, 0x78333337, 0x80000000, 0x00000007, 0x74444477, 0x77700000, 0x00000078, 0x44444777, 0x77770000, 0x00000785, 0x5555777A, 0x55A77000, 0x00007855, 0x55577AD5, 0x555D7800, 0x00078666, 0x667AD666, 0x66667700, 0x00776666, 0x66DE6666, 0x666D7700, 0x00776666, 0x66666666, 0x6D777000, 0x0077C666, 0x6666666C, 0x77770000, 0x00077A66, 0x6666DA77, 0x87000000, 0x00007776, 0x66C77777, 0x00000000, 0x00000777, 0x77777700, 0x00000000, 0x00000007, 0x77700000, 0x00000000 - -dlabel D_802AA3C0_42B8B0 -.word 0xBDE0FEED, 0xFEE9FFAB, 0xCBD9E4DB, 0xFDDF288F, 0x294F498D, 0x62537B19, 0x93DFB4E5, 0xDE2FFFFF - -dlabel D_802AA3E0_42B8D0 -.word 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00888888, 0x00000000, 0x00000000, 0x77787788, 0x77000000, 0x00000077, 0x7B111111, 0xD7700000, 0x00007779, 0x11111111, 0x1D770000, 0x000777D1, 0x11111111, 0x11D77000, 0x00077111, 0x111A7C11, 0x11177000, 0x00077111, 0x11777711, 0x11177000, 0x00077222, 0x27707722, 0x22D77000, 0x0000772D, 0x77077222, 0x2D770000, 0x00000777, 0x70873333, 0xA7700000, 0x00000000, 0x0773333A, 0x77000000, 0x00000000, 0x07744449, 0x77000000, 0x00000000, 0x00774444, 0xA7700000, 0x00000787, 0x77077555, 0x5D770000, 0x000077D5, 0x57707755, 0x55D77000, 0x00077D66, 0x66977796, 0x66667700, 0x00078666, 0x666B7776, 0x66667700, 0x00077966, 0x6666DCD6, 0x66667700, 0x0000777D, 0x66666666, 0x66D77000, 0x00000777, 0xA6666666, 0x6A770000, 0x00000077, 0x7766666D, 0x77700000, 0x00000000, 0x77777777, 0x77000000, 0x00000000, 0x00777777, 0x00000000 - -dlabel D_802AA500_42B9F0 -.word 0xBDE0FEED, 0xFEE9FFAB, 0xCBD9E4DB, 0xFDDF288F, 0x294F498D, 0x62537B19, 0x93DFB4E5, 0xDE2FFFFF - -dlabel D_802AA520_42BA10 -.word 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x07777770, 0x00000000, 0x00000000, 0x77777777, 0x70000000, 0x00000007, 0x771111D7, 0x77000000, 0x00000007, 0x7D111111, 0x77700000, 0x00000077, 0xB1111111, 0xB7700000, 0x00000077, 0x11111111, 0x1B770000, 0x0000077D, 0x111E77D1, 0x11877000, 0x00007782, 0x222B7772, 0x22277000, 0x000077D2, 0x22E77072, 0x222B7700, 0x00077833, 0x33B78073, 0x33337700, 0x00077D33, 0x3E770073, 0x33337700, 0x00778444, 0x4B780074, 0x44447700, 0x0077D444, 0x47700074, 0x44447700, 0x00775555, 0x58780775, 0x55557700, 0x00775555, 0x558777B5, 0x555D7700, 0x0077D666, 0x66687B66, 0x66677000, 0x00077666, 0x66666666, 0x66777000, 0x00077766, 0x66666666, 0xD7770000, 0x00007776, 0x6666666D, 0x77700000, 0x00000777, 0x666666D7, 0x77000000, 0x00000077, 0x7D666D77, 0x70000000, 0x00000007, 0x77777777, 0x00000000, 0x00000000, 0x07777700, 0x00000000 - -dlabel D_802AA640_42BB30 -.word 0xBDE0FEED, 0xFEE9FFAB, 0xCBD9E4DB, 0xFDDF288F, 0x294F498D, 0x62537B19, 0x93DFB4E5, 0xDE2FFFFF - -dlabel D_802AA660_42BB50 -.word 0x000000BD, 0xEEEEEEEE, 0xEEEEEEEE, 0xEEEEED00, 0x000DDE77, 0x77777777, 0x77777777, 0x777777C0, 0x0DEE78F8, 0xF8F8F8F8, 0xF8F8F8F8, 0xF8F87DB0, 0xE7FFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFEDCB0, 0xEEEEEEEE, 0x66666777, 0x8888FFFF, 0xFFDDCCB0, 0xEEEEEEEE, 0xEEEEEEEE, 0xEEEEEEEE, 0xEEDDDCB0, 0xEEEEEEEE, 0xEEEEEEEE, 0xEEEEEEEE, 0xEEDDCCB0, 0xEEEEEEEE, 0xEEEEEEEE, 0xEEEEEEEE, 0xEEDDDCB0, 0xEEEEEEEE, 0xEEEEEEEE, 0xEEEEEEEE, 0xEEDDCCB0, 0xEEEEEEEE, 0xEEEEEEEE, 0xEEEEEEEE, 0xEEDDDCB0, 0xEEEEEEEE, 0xCCCEEEEE, 0xCCCEEEEE, 0xEEDDCCB0, 0xEEEEEEEE, 0xCAAEEEEE, 0xCAAEEEEE, 0xEEDDDCB0, 0xDEEEEEEE, 0xAAAEEEEE, 0xAAAEEEEE, 0xEEDDCCB0, 0xDEEEEEEE, 0xAAAEEEEE, 0xAAAEEEEE, 0xEEDDDCB0, 0xDEEEEEEE, 0xAAAEEEEE, 0xAAAEEEEE, 0xEEDDCCB0, 0xDEEEEEEE, 0xAAAEEEEE, 0xAAAEEEEE, 0xEEEDDCB0, 0xDEEEEEEE, 0xAAAEEEEE, 0xAAAEEEEE, 0xEEEDCCB0, 0xCEEEEEEE, 0xAAAEEEEE, 0xAAAEEEEE, 0xEEEDDCB0, 0xCEEEEEEE, 0xCCCEEEEE, 0xCCCEEEEE, 0xEEEDCCB0, 0xCEEEEEEE, 0xEEEEEEEE, 0xEEEEEEEE, 0xEEEDDCD0, 0xBEEEEEEE, 0xEEEEEEEE, 0xEEEEEEEE, 0xEEEDCCD0, 0xBEEEEEEE, 0xEEEEEEEE, 0xEEEEEEEE, 0xEEEDDCD0, 0xBEEEEEEE, 0xEEEEEEEE, 0xEEEEEEEE, 0xEEEDCCC0, 0xBDEEEEEE, 0xEEEEEEEE, 0xEEEEEEEE, 0xEEEDDCB0, 0x0DEEEEEE, 0xEEEEEEEE, 0xEEEEEEEE, 0xEEEDCC00, 0x0DEEEEEE, 0xEEEEEEEE, 0xEEEEEEEE, 0xEEEDDC00, 0x0BEEEEEE, 0xEEEEEEEE, 0xEEEEEEEE, 0xEEEDCC00, 0x0BEEEEEE, 0xEEEEEEEE, 0xEEEEEEEE, 0xEEEDD000, 0x00BEEEEE, 0xEEEEEEEE, 0xEEEEEEEE, 0xEEEDC000, 0x000BBBBB, 0xBBBBBBBB, 0xBBBBBBBB, 0xBBBB0000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 - -dlabel D_802AA860_42BD50 -.word 0xBDE0FFC1, 0xFFC1FFC1, 0xFFC1FFC1, 0x1AB122F3, 0x2B35FFC1, 0x005300D9, 0x016101A7, 0x0A2D3377 - -dlabel D_802AA880_42BD70 -.word 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000011, 0x11111111, 0x10000000, 0x00000000, 0x00000000, 0x00001111, 0x11111111, 0x11100000, 0x00000000, 0x00000000, 0x0011118A, 0xDFFFFFDA, 0x81111000, 0x00000000, 0x00000000, 0x1112AFFF, 0xFFFFFFFF, 0xFFA21110, 0x00000000, 0x00000001, 0x11AFFFFF, 0xFFFFFFFF, 0xFFFFA111, 0x00000000, 0x00000011, 0x2DFFFFFF, 0xFFFFFFFF, 0xFFFFFD21, 0x10000000, 0x00000112, 0xDFFFFFFF, 0xDDCBCDDF, 0xFFFFFFD2, 0x11000000, 0x0000112D, 0xFFFFFFD7, 0x65555567, 0xDFFFFFFD, 0x21100000, 0x000011DF, 0xFFFFD955, 0x55555555, 0x59DFFFFF, 0xD1100000, 0x00011AFF, 0xFFFB6555, 0x55555555, 0x556BFFFF, 0xFA110000, 0x00012FFF, 0xFFB65555, 0x67999765, 0x5556BFFF, 0xFF210000, 0x0011AFFF, 0xFD655557, 0x9BCCCB97, 0x55556DFF, 0xFFA11000, 0x0011FFFF, 0xF955559B, 0xCCCCCCCB, 0x955559FF, 0xFFF11000, 0x0118FFFF, 0xD55559CC, 0xCCCCCCCC, 0xC95555DF, 0xFFF81100, 0x011AFFFF, 0x75557BCC, 0xCCCCCCCC, 0xCB75557F, 0xFFFA1100, 0x011DFFFD, 0x65569CCC, 0xCCCCCCCC, 0xCC96556D, 0xFFFD1100, 0x011FFFFD, 0x6557BCCC, 0xCCCCCCCC, 0xCCB7555D, 0xFFFF1100, 0x011FFFFC, 0x5559CCCC, 0xCCCCCCCC, 0xCCC9555C, 0xFFFF1100, 0x011FFFFB, 0x5559CCCC, 0xCCCCCCCC, 0xCCC9555B, 0xFFFF1100, 0x011FFFFC, 0x5559CCCC, 0xCCCCCCCC, 0xCCC9555C, 0xFFFF1100, 0x011FFFFD, 0x6557BCCC, 0xCCCCCCCC, 0xCCB7555D, 0xFFFF1100, 0x011DFFFD, 0x65569CCC, 0xCCCCCCCC, 0xCC96556D, 0xFFFD1100, 0x011AFFFF, 0x95557BCC, 0xCCCCCCCC, 0xCB75559F, 0xFFFA1100, 0x0118FFFF, 0xD55559CC, 0xCCCCCCCC, 0xC95555DF, 0xFFF81100, 0x0011FFFF, 0xF755559B, 0xCCCCCCCB, 0x955557FF, 0xFFF11000, 0x0011AFFF, 0xFD655557, 0x9BCCCB97, 0x55556DFF, 0xFFA11000, 0x00012FFF, 0xFFB65555, 0x67999765, 0x5556BFFF, 0xFF210000, 0x00011AFF, 0xFFFB6555, 0x55555555, 0x556BFFFF, 0xFA110000, 0x000011DF, 0xFFFFD955, 0x55555555, 0x59DFFFFF, 0xD1100000, 0x0000112D, 0xFFFFFFD7, 0x65555569, 0xDFFFFFFD, 0x21100000, 0x00000112, 0xDFFFFFFF, 0xDDCBCDDF, 0xFFFFFFD2, 0x11000000, 0x00000011, 0x2DFFFFFF, 0xFFFFFFFF, 0xFFFFFD21, 0x10000000, 0x00000001, 0x11AFFFFF, 0xFFFFFFFF, 0xFFFFA111, 0x00000000, 0x00000000, 0x1112AFFF, 0xFFFFFFFF, 0xFFA21110, 0x00000000, 0x00000000, 0x0011118A, 0xDFFFFFDA, 0x81111000, 0x00000000, 0x00000000, 0x00001111, 0x11111111, 0x11100000, 0x00000000, 0x00000000, 0x00000011, 0x11111111, 0x10000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 - -dlabel D_802AABA0_42C090 -.word 0x52924101, 0x6A41318D, 0x294BA941, 0xBA01C281, 0xA3C1CB81, 0xBC81E481, 0xFD01E5C1, 0x294BFE81 - -dlabel D_802AABC0_42C0B0 -.word 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000001, 0x22111122, 0x00000000, 0x00000000, 0x00000000, 0x00000211, 0x11111111, 0x11000000, 0x00000000, 0x00000000, 0x00001112, 0x7ACEDCA5, 0x21120000, 0x00000000, 0x00000000, 0x0001139C, 0xEFFFFFFE, 0xC7212000, 0x00000000, 0x00000000, 0x00115CDE, 0xFFFFFFFF, 0xEEA21200, 0x00000000, 0x00000000, 0x0115CCEF, 0xFFFFFFFF, 0xFEDA2100, 0x00000000, 0x00000000, 0x012CCDEF, 0xFFFFFFFF, 0xFFDC7110, 0x00000000, 0x00000011, 0x116CDEFF, 0xFFFFFFFF, 0xFFEDA212, 0x20000000, 0x00002112, 0x44ADEEFF, 0xFFFFFFFF, 0xFFEDC511, 0x11100000, 0x0002129C, 0xFEEEEFFF, 0xFFFFFFFF, 0xFFFEDB9A, 0x83110000, 0x00212CEF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFEEFF, 0xFD811000, 0x0011AEFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFE81100, 0x0214EEFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFEE5120, 0x0119EEFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFEEB110, 0x011DEEEF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFEED210, 0x012CDEEE, 0xEFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFEEEC210, 0x011BCDDE, 0xEEFFFFFF, 0xFFFFFFFF, 0xFFFFFFFE, 0xEEDDC110, 0x0216CDDD, 0xEEEEEEFF, 0xFFFFFFFF, 0xFFFEEEEE, 0xEDCC6110, 0x00117BCD, 0xDEEEEEEF, 0xFFFFFFFF, 0xFEEEEEDD, 0xDCCA1100, 0x000117BC, 0xDDEEEEEE, 0xEFFFFFEE, 0xEEEEEEDD, 0xCCB31200, 0x000015BB, 0xCDDDDDEE, 0xEEEEEEEE, 0xEDDDDDDC, 0xC9211000, 0x000015BB, 0xCCCDDDDD, 0xEEEEEEEE, 0xDDDDDCCC, 0xC5110000, 0x000017BB, 0xBCCCCCCD, 0xDDDEEEED, 0xDDCCCCCC, 0xC7100000, 0x000016BB, 0xBBCCCCCC, 0xCDDDDDDD, 0xCCBBBCCC, 0xC7100000, 0x000014BB, 0xBBBBBBCC, 0xCCCCCCCC, 0xCBBBBBBB, 0xB5100000, 0x0000119B, 0xBBBBBBBB, 0xBBBBBBBB, 0xBBBBBBBB, 0xB2100000, 0x0000212A, 0xBBBBBBBB, 0xBBBBBBBB, 0xBBBBBBBB, 0x61100000, 0x00000112, 0x69ABBBBB, 0xBBBBBBBB, 0xBBBBBA96, 0x11000000, 0x00000011, 0x11444ABB, 0xBBBBBBBB, 0xBB688741, 0x10000000, 0x00000000, 0x111114AB, 0xBBBBBBBB, 0xB9111111, 0x00000000, 0x00000000, 0x00021126, 0x9BBBBBB9, 0x72122000, 0x00000000, 0x00000000, 0x00001111, 0x14677631, 0x11200000, 0x00000000, 0x00000000, 0x00000011, 0x11111111, 0x10000000, 0x00000000, 0x00000000, 0x00000000, 0x02222220, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 - -dlabel D_802AAEE0_42C3D0 -.word 0x84202991, 0x31D34257, 0x4A995B1D, 0x635F73E3, 0x7C258CA9, 0x9D2BADAF, 0xBDF1CE75, 0xDEF7EF7B - -dlabel D_802AAF00_42C3F0 -.word 0x00000000, 0x00077777, 0x00000000, 0x00000000, 0x00777777, 0x70000000, 0x00000000, 0x07771111, 0x77000000, 0x00000000, 0x07711111, 0x17000000, 0x00000000, 0x77B11111, 0xC7000000, 0x00000000, 0x7911111C, 0x77000000, 0x00000007, 0x7D1111B7, 0x70000000, 0x00000077, 0xB1111B77, 0x70000000, 0x00000077, 0x22222227, 0x77000000, 0x0000077D, 0x22222222, 0x77000000, 0x00007793, 0x33373333, 0x77700000, 0x00007733, 0x33B77333, 0x78700000, 0x00077D44, 0xED777444, 0x77770000, 0x00079444, 0xD7777444, 0x44770000, 0x00775555, 0xC777B555, 0x55B77000, 0x00775555, 0x55555555, 0x55D77000, 0x0077D666, 0x66666666, 0x66677000, 0x00777D66, 0x66666669, 0x77777000, 0x00077777, 0x77766667, 0x77770000, 0x00000777, 0x77766667, 0x70000000, 0x00000000, 0x077666C7, 0x70000000, 0x00000000, 0x0776C977, 0x70000000, 0x00000000, 0x07777770, 0x00000000, 0x00000000, 0x00777000, 0x00000000 - -dlabel D_802AB020_42C510 -.word 0xBDE0FEED, 0xFEE9FFAB, 0xCBD9E4DB, 0xFDDF288F, 0x294F498D, 0x62537B19, 0x93DFB4E5, 0xDE2FFFFF - -dlabel D_802AB040_42C530 -.word 0x00000008, 0x00000005, 0x00000002, 0x00000004, 0x00000002, 0x0000003C, D_802AA160_42B650, D_802AA280_42B770, 0x00000003, 0x00000000 - -dlabel D_802AB068_42C558 -.word 0x00000008, 0x00000005, 0x00000002, 0x00000004, 0x00000002, 0x0000003C, D_802AA2A0_42B790, D_802AA3C0_42B8B0, 0x00000003, 0x00000000 - -dlabel D_802AB090_42C580 -.word 0x00000008, 0x00000005, 0x00000002, 0x00000004, 0x00000002, 0x0000003C, D_802AA3E0_42B8D0, D_802AA500_42B9F0, 0x00000003, 0x00000000 - -dlabel D_802AB0B8_42C5A8 -.word 0x00000008, 0x00000005, 0x00000002, 0x00000004, 0x00000002, 0x0000003C, D_802AA520_42BA10, D_802AA640_42BB30, 0x00000003, 0x00000000 - -dlabel D_802AB0E0_42C5D0 -.word 0x00000008, 0x00000005, 0x00000002, 0x00000004, 0x00000002, 0x0000003C, D_802AAF00_42C3F0, D_802AB020_42C510, 0x00000003, 0x00000000 - -dlabel D_802AB108_42C5F8 -.word 0x00000008, 0x00000005, 0x00000003, 0x00000004, 0x00000002, 0x0000003C, D_802AA660_42BB50, D_802AA860_42BD50, 0x00000003, 0x00000000 - -dlabel D_802AB130_42C620 -.word 0x00000008, 0x00000005, 0x00000013, 0x00000004, 0x00000002, 0x0000003C, D_802AA880_42BD70, D_802AABA0_42C090, 0x00000003, 0x00000000 - -dlabel D_802AB158_42C648 -.word 0x00000008, 0x00000005, 0x00000013, 0x00000004, 0x00000002, 0x0000003C, D_802AABC0_42C0B0, D_802AAEE0_42C3D0, 0x00000003, 0x00000000 - -dlabel D_802AB180_42C670 -.word D_802AB0B8_42C5A8 - -dlabel D_802AB184_42C674 -.word D_802AB040_42C530, D_802AB068_42C558, D_802AB090_42C580, D_802AB0E0_42C5D0, D_802AB0E0_42C5D0, D_802AB0E0_42C5D0, D_802AB0E0_42C5D0, D_802AB0E0_42C5D0, D_802AB0E0_42C5D0, 0x00000000, 0x00000000 - -dlabel jtbl_802AB1B0_42C6A0 -.word L802A94D0_42A9C0, L802A9628_42AB18, L802AA000_42B4F0, L802AA000_42B4F0, L802AA000_42B4F0, L802AA000_42B4F0, L802AA000_42B4F0, L802AA000_42B4F0, L802AA000_42B4F0, L802AA000_42B4F0, L802A9798_42AC88, L802A97E4_42ACD4, L802A98A8_42AD98, L802A9B04_42AFF4, L802A9D7C_42B26C, L802AA000_42B4F0, L802A9F8C_42B47C, L802A9FE0_42B4D0, 0, 0 diff --git a/ver/us/asm/data/battle/action_cmd/42CEB0.data.s b/ver/us/asm/data/battle/action_cmd/42CEB0.data.s deleted file mode 100644 index 0a54cebf9d..0000000000 --- a/ver/us/asm/data/battle/action_cmd/42CEB0.data.s +++ /dev/null @@ -1,9 +0,0 @@ -.include "macro.inc" - -.section .data - -dlabel D_802A97C0_42CEB0 -.word HudScript_PressAButton, HudScript_PressBButton, HudScript_PressCDownButton - -dlabel D_802A97CC_42CEBC -.word HudScript_AButtonDown, 0x80292348, 0x8029265C, 0x00000000, 0x00000000 diff --git a/ver/us/asm/data/battle/action_cmd/42D9B0.data.s b/ver/us/asm/data/battle/action_cmd/42D9B0.data.s deleted file mode 100644 index 43bed3b8ac..0000000000 --- a/ver/us/asm/data/battle/action_cmd/42D9B0.data.s +++ /dev/null @@ -1,9 +0,0 @@ -.include "macro.inc" - -.section .data - -dlabel D_802A9AA0_42D9B0 -.short 0x0000 - -dlabel D_802A9AA2_42D9B2 -.short 0x0000, 0x0000, 0x0019, 0x0000, 0x0032, 0x0000, 0x004B, 0x0000, 0x004B, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000 diff --git a/ver/us/asm/data/battle/action_cmd/42F680.data.s b/ver/us/asm/data/battle/action_cmd/42F680.data.s deleted file mode 100644 index a810e7f415..0000000000 --- a/ver/us/asm/data/battle/action_cmd/42F680.data.s +++ /dev/null @@ -1,12 +0,0 @@ -.include "macro.inc" - -.section .data - -dlabel D_802A9860_42F680 -.short 0x0000 - -dlabel D_802A9862_42F682 -.short 0x0000, 0x0000, 0x0019, 0x0000, 0x0032, 0x0000, 0x004B, 0x0000, 0x004B, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000 - -dlabel jtbl_802A9880_42F6A0 -.word L802A929C_42F0BC, L802A92F8_42F118, L802A9724_42F544, L802A9724_42F544, L802A9724_42F544, L802A9724_42F544, L802A9724_42F544, L802A9724_42F544, L802A9724_42F544, L802A9724_42F544, L802A9368_42F188, L802A93D0_42F1F0, L802A9704_42F524, 0, 0, 0 diff --git a/ver/us/asm/data/battle/action_cmd/42FFC0.data.s b/ver/us/asm/data/battle/action_cmd/42FFC0.data.s deleted file mode 100644 index 94c9a60852..0000000000 --- a/ver/us/asm/data/battle/action_cmd/42FFC0.data.s +++ /dev/null @@ -1,12 +0,0 @@ -.include "macro.inc" - -.section .data - -dlabel D_802A98E0_42FFC0 -.short 0x0000 - -dlabel D_802A98E2_42FFC2 -.short 0x0000, 0x0000, 0x0019, 0x0000, 0x0032, 0x0000, 0x004B, 0x0000, 0x004B, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000 - -dlabel jtbl_802A9900_42FFE0 -.word L802A92E8_42F9C8, L802A9368_42FA48, L802A9794_42FE74, L802A9794_42FE74, L802A9794_42FE74, L802A9794_42FE74, L802A9794_42FE74, L802A9794_42FE74, L802A9794_42FE74, L802A9794_42FE74, L802A93F0_42FAD0, L802A9450_42FB30, L802A9750_42FE30, 0, 0, 0 diff --git a/ver/us/asm/data/battle/action_cmd/430940.data.s b/ver/us/asm/data/battle/action_cmd/430940.data.s deleted file mode 100644 index e7f9736441..0000000000 --- a/ver/us/asm/data/battle/action_cmd/430940.data.s +++ /dev/null @@ -1,12 +0,0 @@ -.include "macro.inc" - -.section .data - -dlabel D_802A9920_430940 -.short 0x0000 - -dlabel D_802A9922_430942 -.short 0x0000, 0x0000, 0x0019, 0x0000, 0x0032, 0x0000, 0x004B, 0x0000, 0x004B, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000 - -dlabel jtbl_802A9940_430960 -.word L802A92E0_430300, L802A933C_43035C, L802A97E4_430804, L802A97E4_430804, L802A97E4_430804, L802A97E4_430804, L802A97E4_430804, L802A97E4_430804, L802A97E4_430804, L802A97E4_430804, L802A9394_4303B4, L802A93FC_43041C, L802A97A0_4307C0, 0, 0, 0 diff --git a/ver/us/asm/data/battle/area_kpa2/6A44E0.data.s b/ver/us/asm/data/battle/area_kpa2/6A44E0.data.s index d6b5ce447b..31958a0475 100644 --- a/ver/us/asm/data/battle/area_kpa2/6A44E0.data.s +++ b/ver/us/asm/data/battle/area_kpa2/6A44E0.data.s @@ -517,162 +517,3 @@ dlabel D_80234670_6BB870 dlabel D_8023468C_6BB88C .word D_8022D678_6B4878, D_80234610_6BB810, 0x0000000A, 0x00000000, 0x00000000, 0x00000000, 0x00000000, D_80234968_6BBB68, 0x00000001, D_8023461C_6BB81C, D_80234274_6BB474, 0x00000000, D_80234950_6BBB50, 0x00000001, D_80234638_6BB838, D_802342E0_6BB4E0, 0x00000000, D_80234938_6BBB38, 0x00000001, D_80234654_6BB854, D_802342E0_6BB4E0, 0x00000000, D_80234920_6BBB20, 0x00000001, D_80234670_6BB870, D_802345E8_6BB7E8, 0x00000000, D_80234908_6BBB08, 0x00000001, D_8023468C_6BB88C, D_802345E8_6BB7E8, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, D_80234980_6BBB80, D_80234274_6BB474, D_80234978_6BBB78, D_802342E0_6BB4E0, D_80234970_6BBB70, D_802345E8_6BB7E8, 0x00000000, 0x00000000 - -dlabel D_80234740_6BB940 -.double 0.4 - -dlabel D_80234748_6BB948 -.double 2.4000000953674316 - -dlabel D_80234750_6BB950 -.double 1.600000023841858 - -dlabel D_80234758_6BB958 -.double 1.2000000000000002 - -dlabel D_80234760_6BB960 -.double 0.9600000381469727 - -dlabel D_80234768_6BB968 -.double 0.4 - -dlabel D_80234770_6BB970 -.double 0.6400000095367432, 0.0 - -dlabel D_80234780_6BB980 -.double 0.4 - -dlabel D_80234788_6BB988 -.double 2.4000000953674316 - -dlabel D_80234790_6BB990 -.double 1.600000023841858 - -dlabel D_80234798_6BB998 -.double 1.2000000000000002 - -dlabel D_802347A0_6BB9A0 -.double 0.9600000381469727 - -dlabel D_802347A8_6BB9A8 -.double 0.4 - -dlabel D_802347B0_6BB9B0 -.double 0.6400000095367432, 0.0 - -dlabel D_802347C0_6BB9C0 -.double 0.4 - -dlabel D_802347C8_6BB9C8 -.double 90.0 - -dlabel D_802347D0_6BB9D0 -.double 3.6000001430511475 - -dlabel D_802347D8_6BB9D8 -.double 2.400000035762787 - -dlabel D_802347E0_6BB9E0 -.double 1.8 - -dlabel D_802347E8_6BB9E8 -.double 1.440000057220459 - -dlabel D_802347F0_6BB9F0 -.double 0.6000000000000001 - -dlabel D_802347F8_6BB9F8 -.double 0.9600000143051148 - -dlabel D_80234800_6BBA00 -.double 0.3, 0.0 - -dlabel D_80234810_6BBA10 -.word 0x0000005A, 0x00000087, 0x000000E1, 0x0000010E, 0x0000013B, 0x00000195 - -dlabel D_80234828_6BBA28 -.double 14.4 - -dlabel D_80234830_6BBA30 -.double 0.4 - -dlabel D_80234838_6BBA38 -.double 90.0 - -dlabel D_80234840_6BBA40 -.double 3.6000001430511475 - -dlabel D_80234848_6BBA48 -.double 2.400000035762787 - -dlabel D_80234850_6BBA50 -.double 1.8 - -dlabel D_80234858_6BBA58 -.double 1.440000057220459 - -dlabel D_80234860_6BBA60 -.double 0.6000000000000001 - -dlabel D_80234868_6BBA68 -.double 0.9600000143051148 - -dlabel D_80234870_6BBA70 -.double 0.3, 0.0 - -dlabel D_80234880_6BBA80 -.word 0x6B70615F, 0x62743031, 0x5F686974, 0x00000000 - -dlabel D_80234890_6BBA90 -.word 0x6B70615F, 0x62743031, 0x5F736861, 0x70650000 - -dlabel D_802348A0_6BBAA0 -.word 0x6B70615F, 0x74657800 - -dlabel D_802348A8_6BBAA8 -.word 0x6B70615F, 0x62670000 - -dlabel D_802348B0_6BBAB0 -.word 0x6B6B6A5F, 0x62743031, 0x5F686974, 0x00000000 - -dlabel D_802348C0_6BBAC0 -.word 0x6B6B6A5F, 0x62743031, 0x5F736861, 0x70650000 - -dlabel D_802348D0_6BBAD0 -.word 0x6B6B6A5F, 0x74657800 - -dlabel D_802348D8_6BBAD8 -.word 0x6B70615F, 0x62670000 - -dlabel D_802348E0_6BBAE0 -.word 0x6B6B6A5F, 0x62743032, 0x5F686974, 0x00000000 - -dlabel D_802348F0_6BBAF0 -.word 0x6B6B6A5F, 0x62743032, 0x5F736861, 0x70650000 - -dlabel D_80234900_6BBB00 -.word 0x6B6B6A5F, 0x74657800 - -dlabel D_80234908_6BBB08 -.word 0x834E8362, 0x83702883, 0x89835883, 0x67836F83, 0x67838B82, 0x52290000 - -dlabel D_80234920_6BBB20 -.word 0x834E8362, 0x83702883, 0x89835883, 0x67836F83, 0x67838B82, 0x51290000 - -dlabel D_80234938_6BBB38 -.word 0x834E8362, 0x83702883, 0x89835883, 0x67836F83, 0x67838B82, 0x50290000 - -dlabel D_80234950_6BBB50 -.word 0x834E8362, 0x83702883, 0x49815B83, 0x76836A83, 0x93834F29, 0x00000000 - -dlabel D_80234968_6BBB68 -.word 0x834E8362, 0x83700000 - -dlabel D_80234970_6BBB70 -.word 0x6B70615F, 0x30330000 - -dlabel D_80234978_6BBB78 -.word 0x6B70615F, 0x30320000 - -dlabel D_80234980_6BBB80 -.word 0x6B70615F, 0x30310000, 0x00000000, 0x00000000 diff --git a/ver/us/asm/data/battle/area_tik2/60ABD0.data.s b/ver/us/asm/data/battle/area_tik2/60ABD0.data.s index f9fe9d6788..b040ccd582 100644 --- a/ver/us/asm/data/battle/area_tik2/60ABD0.data.s +++ b/ver/us/asm/data/battle/area_tik2/60ABD0.data.s @@ -48,7 +48,7 @@ dlabel D_8021B204_60BCB4 .word 0x00000043, 0x00000003, UseIdleAnimation, 0xFFFFFF81, 0x00000000, 0x00000043, 0x00000003, EnableIdleScript, 0xFFFFFF81, 0x00000000, 0x00000043, 0x00000003, SetTargetActor, 0xFFFFFF81, 0x00000000, 0x00000043, 0x00000003, GetStatusFlags, 0xFFFFFF81, 0xFE363C80, 0x00000011, 0x00000002, 0xFE363C80, 0x00080000, 0x00000043, 0x00000005, GetActorPos, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000027, 0x00000002, 0xFE363C81, 0x0000005F, 0x00000043, 0x00000002, UseBattleCamPreset, 0x00000013, 0x00000043, 0x00000004, SetBattleCamTarget, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000002, SetBattleCamZoom, 0x00000190, 0x00000043, 0x00000002, MoveBattleCamOver, 0x00000082, 0x00000012, 0x00000000, 0x00000043, 0x00000005, GetActorPos, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000027, 0x00000002, 0xFE363C81, 0x00000048, 0x00000043, 0x00000002, UseBattleCamPreset, 0x00000013, 0x00000043, 0x00000004, SetBattleCamTarget, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000002, SetBattleCamZoom, 0x00000154, 0x00000043, 0x00000002, MoveBattleCamOver, 0x00000082, 0x00000013, 0x00000000, 0x00000043, 0x00000005, GetActorPos, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000024, 0x00000002, 0xFE363C81, 0x00000064, 0x00000024, 0x00000002, 0xFE363C83, 0x0000000F, 0x00000046, 0x00000001, D_8021A120_60ABD0, 0x00000043, 0x00000003, PlaySoundAtActor, 0xFFFFFF81, 0x000003DD, 0x00000043, 0x00000007, EnemyTestTarget, 0xFFFFFF81, 0xFE363C8F, 0x00000000, 0x00000000, 0x00000001, 0x00000010, 0x00000014, 0x00000001, 0xFE363C8F, 0x0000001D, 0x00000001, 0x00000006, 0x0000001D, 0x00000001, 0x00000005, 0x00000056, 0x00000000, 0x00000024, 0x00000002, 0xFE363C80, 0x00000000, 0x00000005, 0x00000001, 0x00000024, 0x00000027, 0x00000002, 0xFE363C80, 0x0000001E, 0x00000043, 0x00000003, SetActorYaw, 0xFFFFFF81, 0xFE363C80, 0x00000008, 0x00000001, 0x00000001, 0x00000006, 0x00000000, 0x00000043, 0x00000003, SetActorYaw, 0xFFFFFF81, 0x00000000, 0x00000057, 0x00000000, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x0050000D, 0x00000043, 0x00000005, GetActorPos, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000003, SetActorJumpGravity, 0xFFFFFF81, 0xF24A8080, 0x00000043, 0x00000005, SetGoalPos, 0xFFFFFF81, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000006, JumpToGoal, 0xFFFFFF81, 0x00000010, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000002, UseBattleCamPreset, 0x00000002, 0x00000043, 0x00000002, MoveBattleCamOver, 0x00000014, 0x0000000A, 0x00000002, 0xFE363C8F, 0x00000005, 0x00000043, 0x00000007, EnemyTestTarget, 0xFFFFFF81, 0xFE363C8F, 0x80000000, 0x00000000, 0x00000000, 0x00000000, 0x00000013, 0x00000000, 0x00000027, 0x00000002, 0xFE363C80, 0x0000001E, 0x00000043, 0x00000005, SetGoalPos, 0xFFFFFF81, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000006, JumpToGoal, 0xFFFFFF81, 0x0000000C, 0x00000000, 0x00000001, 0x00000000, 0x00000027, 0x00000002, 0xFE363C80, 0x00000014, 0x00000043, 0x00000005, SetGoalPos, 0xFFFFFF81, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000006, JumpToGoal, 0xFFFFFF81, 0x00000008, 0x00000000, 0x00000001, 0x00000000, 0x00000046, 0x00000001, D_8021A5FC_60B0AC, 0x00000043, 0x00000003, EnableIdleScript, 0xFFFFFF81, 0xFFFFFFFF, 0x00000043, 0x00000003, UseIdleAnimation, 0xFFFFFF81, 0x00000001, 0x00000002, 0x00000000, 0x00000020, 0x00000000, 0x00000023, 0x00000000, 0x00000056, 0x00000000, 0x00000024, 0x00000002, 0xFE363C80, 0x00000000, 0x00000005, 0x00000001, 0x00000010, 0x00000027, 0x00000002, 0xFE363C80, 0x0000001E, 0x00000043, 0x00000003, SetActorYaw, 0xFFFFFF81, 0xFE363C80, 0x00000008, 0x00000001, 0x00000001, 0x00000006, 0x00000000, 0x00000043, 0x00000003, SetActorYaw, 0xFFFFFF81, 0x00000000, 0x00000057, 0x00000000, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x0050000D, 0x00000043, 0x00000003, SetActorJumpGravity, 0xFFFFFF81, 0xF24A8080, 0x00000043, 0x00000005, GetActorPos, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000027, 0x00000002, 0xFE363C81, 0x0000001E, 0x00000043, 0x00000005, SetGoalPos, 0xFFFFFF81, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000006, JumpToGoal, 0xFFFFFF81, 0x00000010, 0x00000000, 0x00000001, 0x00000000, 0x00000008, 0x00000001, 0x00000002, 0x00000043, 0x00000008, EnemyDamageTarget, 0xFFFFFF81, 0xFE363C80, 0x00000000, 0x00000000, 0x00000000, 0x00000003, 0x00000020, 0x00000043, 0x00000002, UseBattleCamPreset, 0x00000002, 0x00000043, 0x00000002, MoveBattleCamOver, 0x00000014, 0x00000043, 0x00000003, GetStatusFlags, 0x00000000, 0xFE363C80, 0x00000010, 0x00000002, 0xFE363C80, 0x00100000, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x00500004, 0x00000012, 0x00000000, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x00500000, 0x00000013, 0x00000000, 0x00000043, 0x00000005, GetActorPos, 0xFFFFFF81, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000027, 0x00000002, 0xFE363C80, 0x0000001E, 0x00000028, 0x00000002, 0xFE363C81, 0x0000000F, 0x00000043, 0x00000003, SetActorJumpGravity, 0xFFFFFF81, 0xF24A7F4D, 0x00000043, 0x00000005, SetGoalPos, 0xFFFFFF81, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000006, JumpToGoal, 0xFFFFFF81, 0x0000000A, 0x00000000, 0x00000001, 0x00000000, 0x00000046, 0x00000001, D_8021A5FC_60B0AC, 0x00000043, 0x00000003, EnableIdleScript, 0xFFFFFF81, 0xFFFFFFFF, 0x00000043, 0x00000003, UseIdleAnimation, 0xFFFFFF81, 0x00000001, 0x00000002, 0x00000000, 0x00000001, 0x00000000 dlabel D_8021B8D0_60C380 -.word 0x00000043, 0x00000003, UseIdleAnimation, 0xFFFFFF81, 0x00000000, 0x00000043, 0x00000003, EnableIdleScript, 0xFFFFFF81, 0x00000000, 0x00000043, 0x00000003, SetTargetActor, 0xFFFFFF81, 0x00000000, 0x00000043, 0x00000002, SetGoalToTarget, 0xFFFFFF81, 0x00000043, 0x00000005, GetGoalPos, 0xFFFFFF81, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000027, 0x00000002, 0xFE363C80, 0x00000055, 0x00000027, 0x00000002, 0xFE363C81, 0x0000002D, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x00500000, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x0050000C, 0x00000043, 0x00000005, GetActorPos, 0xFFFFFF81, 0xFE363C8A, 0xFE363C8B, 0xFE363C8C, 0x0000000D, 0x00000002, 0xFE363C8B, 0x0000001E, 0x00000028, 0x00000002, 0xFE363C8B, 0x0000001E, 0x00000012, 0x00000000, 0x00000024, 0x00000002, 0xFE363C8B, 0x00000000, 0x00000013, 0x00000000, 0x00000043, 0x00000003, SetActorJumpGravity, 0xFFFFFF81, 0xF24A7BB4, 0x00000043, 0x00000005, SetGoalPos, 0xFFFFFF81, 0xFE363C8A, 0xFE363C8B, 0xFE363C8C, 0x00000043, 0x00000003, FallToGoal, 0xFFFFFF81, 0x00000008, 0x00000056, 0x00000000, 0x00000043, 0x00000002, UseBattleCamPreset, 0x00000013, 0x00000028, 0x00000002, 0xFE363C80, 0x0000001E, 0x00000043, 0x00000004, SetBattleCamTarget, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000002, SetBattleCamZoom, 0x0000015E, 0x00000043, 0x00000002, MoveBattleCamOver, 0x00000032, 0x00000057, 0x00000000, 0x00000043, 0x00000005, GetActorPos, 0xFFFFFF81, 0xFE363C84, 0xFE363C85, 0xFE363C86, 0x00000043, 0x00000003, PlaySoundAtActor, 0xFFFFFF81, 0x000003DC, 0x00000024, 0x00000002, 0xFE363C87, 0xFE363C84, 0x00000027, 0x00000002, 0xFE363C87, 0xFE363C80, 0x0000002E, 0x00000002, 0xFE363C87, 0xF24A7C80, 0x00000024, 0x00000002, 0xFE363C88, 0xFE363C85, 0x00000027, 0x00000002, 0xFE363C88, 0xFE363C81, 0x0000002E, 0x00000002, 0xFE363C88, 0xF24A7C80, 0x00000024, 0x00000002, 0xFE363C89, 0xFE363C86, 0x00000027, 0x00000002, 0xFE363C89, 0xFE363C82, 0x0000002E, 0x00000002, 0xFE363C89, 0xF24A7C80, 0x00000043, 0x00000003, SetActorSpeed, 0xFFFFFF81, 0xF24A8680, 0x00000043, 0x00000005, SetGoalPos, 0xFFFFFF81, 0xFE363C87, 0xFE363C88, 0xFE363C89, 0x00000043, 0x00000005, FlyToGoal, 0xFFFFFF81, 0x0000000F, 0xFFFFFFFE, 0x00000005, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x00500000, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x0050000C, 0x00000043, 0x00000005, GetActorPos, 0xFFFFFF81, 0xFE363C8A, 0xFE363C8B, 0xFE363C8C, 0x00000028, 0x00000002, 0xFE363C8B, 0x00000014, 0x00000043, 0x00000005, SetGoalPos, 0xFFFFFF81, 0xFE363C8A, 0xFE363C8B, 0xFE363C8C, 0x00000043, 0x00000003, SetActorJumpGravity, 0xFFFFFF81, 0xF24A7BB4, 0x00000043, 0x00000003, FallToGoal, 0xFFFFFF81, 0x00000008, 0x00000043, 0x00000003, PlaySoundAtActor, 0xFFFFFF81, 0x000003DC, 0x00000043, 0x00000003, SetActorSpeed, 0xFFFFFF81, 0xF24A8680, 0x00000043, 0x00000005, SetGoalPos, 0xFFFFFF81, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000005, FlyToGoal, 0xFFFFFF81, 0x0000000F, 0xFFFFFFFE, 0x00000005, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x00500003, 0x00000043, 0x00000005, GetActorPos, 0xFFFFFF81, 0xFE363C8A, 0xFE363C8B, 0xFE363C8C, 0x00000028, 0x00000002, 0xFE363C8B, 0x0000001E, 0x00000043, 0x00000003, SetActorJumpGravity, 0xFFFFFF81, 0xF24A7B4D, 0x00000043, 0x00000003, SetActorSpeed, 0xFFFFFF81, 0xF24A7E80, 0x00000043, 0x00000005, SetGoalPos, 0xFFFFFF81, 0xFE363C8A, 0xFE363C8B, 0xFE363C8C, 0x00000043, 0x00000005, FlyToGoal, 0xFFFFFF81, 0x00000010, 0x00000000, 0x00000000, 0x00000043, 0x00000002, UseBattleCamPreset, 0x00000002, 0x00000043, 0x00000002, MoveBattleCamOver, 0x0000000A, 0x00000043, 0x00000005, SetActorRotationOffset, 0xFFFFFF81, 0x00000000, 0x00000028, 0x00000000, 0x00000043, 0x00000005, SetActorRotation, 0xFFFFFF81, 0x00000000, 0x00000000, 0xFFFFFFD8, 0x00000043, 0x00000003, PlaySoundAtActor, 0xFFFFFF81, 0x000003DE, 0x00000043, 0x00000005, GetActorPos, 0xFFFFFF81, 0xFE363C83, 0xFE363C84, 0xFE363C85, 0x00000027, 0x00000002, 0xFE363C83, 0x00000001, 0x00000028, 0x00000002, 0xFE363C84, 0x0000001B, 0x00000028, 0x00000002, 0xFE363C85, 0x00000003, 0x00000043, 0x00000005, GetActorPos, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000007, func_80218058_608B08, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0xFE363C83, 0xFE363C84, 0xFE363C85, 0x00000043, 0x00000007, EnemyTestTarget, 0xFFFFFF81, 0xFE363C8F, 0x10000000, 0x00000000, 0x00000001, 0x00000010, 0x00000014, 0x00000001, 0xFE363C8F, 0x0000001D, 0x00000001, 0x00000006, 0x0000001D, 0x00000001, 0x00000005, 0x00000008, 0x00000001, 0x0000000A, 0x0000000A, 0x00000002, 0xFE363C8F, 0x00000005, 0x00000043, 0x00000007, EnemyTestTarget, 0xFFFFFF81, 0xFE363C8F, 0x80000000, 0x00000000, 0x00000000, 0x00000000, 0x00000013, 0x00000000, 0x00000008, 0x00000001, 0x0000001E, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x00500000, 0x00000043, 0x00000005, SetActorRotation, 0xFFFFFF81, 0x00000000, 0x00000000, 0x00000000, 0x00000043, 0x00000005, SetActorRotationOffset, 0xFFFFFF81, 0x00000000, 0x00000000, 0x00000000, 0x00000046, 0x00000001, D_8021A5FC_60B0AC, 0x00000043, 0x00000003, EnableIdleScript, 0xFFFFFF81, 0xFFFFFFFF, 0x00000043, 0x00000003, UseIdleAnimation, 0xFFFFFF81, 0x00000001, 0x00000002, 0x00000000, 0x00000020, 0x00000000, 0x00000023, 0x00000000, 0x00000008, 0x00000001, 0x0000000A, 0x00000043, 0x00000002, SetGoalToTarget, 0xFFFFFF81, 0x00000043, 0x00000002, func_80269EAC, 0x0000001A, 0x00000043, 0x00000008, EnemyDamageTarget, 0xFFFFFF81, 0xFE363C8F, 0x10000000, 0x00000000, 0x00000000, 0x00000003, 0x00000020, 0x00000008, 0x00000001, 0x0000001E, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x00500000, 0x00000043, 0x00000005, SetActorRotation, 0xFFFFFF81, 0x00000000, 0x00000000, 0x00000000, 0x00000043, 0x00000005, SetActorRotationOffset, 0xFFFFFF81, 0x00000000, 0x00000000, 0x00000000, 0x00000046, 0x00000001, D_8021A5FC_60B0AC, 0x00000043, 0x00000003, EnableIdleScript, 0xFFFFFF81, 0xFFFFFFFF, 0x00000043, 0x00000003, UseIdleAnimation, 0xFFFFFF81, 0x00000001, 0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000000 +.word 0x00000043, 0x00000003, UseIdleAnimation, 0xFFFFFF81, 0x00000000, 0x00000043, 0x00000003, EnableIdleScript, 0xFFFFFF81, 0x00000000, 0x00000043, 0x00000003, SetTargetActor, 0xFFFFFF81, 0x00000000, 0x00000043, 0x00000002, SetGoalToTarget, 0xFFFFFF81, 0x00000043, 0x00000005, GetGoalPos, 0xFFFFFF81, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000027, 0x00000002, 0xFE363C80, 0x00000055, 0x00000027, 0x00000002, 0xFE363C81, 0x0000002D, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x00500000, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x0050000C, 0x00000043, 0x00000005, GetActorPos, 0xFFFFFF81, 0xFE363C8A, 0xFE363C8B, 0xFE363C8C, 0x0000000D, 0x00000002, 0xFE363C8B, 0x0000001E, 0x00000028, 0x00000002, 0xFE363C8B, 0x0000001E, 0x00000012, 0x00000000, 0x00000024, 0x00000002, 0xFE363C8B, 0x00000000, 0x00000013, 0x00000000, 0x00000043, 0x00000003, SetActorJumpGravity, 0xFFFFFF81, 0xF24A7BB4, 0x00000043, 0x00000005, SetGoalPos, 0xFFFFFF81, 0xFE363C8A, 0xFE363C8B, 0xFE363C8C, 0x00000043, 0x00000003, FallToGoal, 0xFFFFFF81, 0x00000008, 0x00000056, 0x00000000, 0x00000043, 0x00000002, UseBattleCamPreset, 0x00000013, 0x00000028, 0x00000002, 0xFE363C80, 0x0000001E, 0x00000043, 0x00000004, SetBattleCamTarget, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000002, SetBattleCamZoom, 0x0000015E, 0x00000043, 0x00000002, MoveBattleCamOver, 0x00000032, 0x00000057, 0x00000000, 0x00000043, 0x00000005, GetActorPos, 0xFFFFFF81, 0xFE363C84, 0xFE363C85, 0xFE363C86, 0x00000043, 0x00000003, PlaySoundAtActor, 0xFFFFFF81, 0x000003DC, 0x00000024, 0x00000002, 0xFE363C87, 0xFE363C84, 0x00000027, 0x00000002, 0xFE363C87, 0xFE363C80, 0x0000002E, 0x00000002, 0xFE363C87, 0xF24A7C80, 0x00000024, 0x00000002, 0xFE363C88, 0xFE363C85, 0x00000027, 0x00000002, 0xFE363C88, 0xFE363C81, 0x0000002E, 0x00000002, 0xFE363C88, 0xF24A7C80, 0x00000024, 0x00000002, 0xFE363C89, 0xFE363C86, 0x00000027, 0x00000002, 0xFE363C89, 0xFE363C82, 0x0000002E, 0x00000002, 0xFE363C89, 0xF24A7C80, 0x00000043, 0x00000003, SetActorSpeed, 0xFFFFFF81, 0xF24A8680, 0x00000043, 0x00000005, SetGoalPos, 0xFFFFFF81, 0xFE363C87, 0xFE363C88, 0xFE363C89, 0x00000043, 0x00000005, FlyToGoal, 0xFFFFFF81, 0x0000000F, 0xFFFFFFFE, 0x00000005, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x00500000, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x0050000C, 0x00000043, 0x00000005, GetActorPos, 0xFFFFFF81, 0xFE363C8A, 0xFE363C8B, 0xFE363C8C, 0x00000028, 0x00000002, 0xFE363C8B, 0x00000014, 0x00000043, 0x00000005, SetGoalPos, 0xFFFFFF81, 0xFE363C8A, 0xFE363C8B, 0xFE363C8C, 0x00000043, 0x00000003, SetActorJumpGravity, 0xFFFFFF81, 0xF24A7BB4, 0x00000043, 0x00000003, FallToGoal, 0xFFFFFF81, 0x00000008, 0x00000043, 0x00000003, PlaySoundAtActor, 0xFFFFFF81, 0x000003DC, 0x00000043, 0x00000003, SetActorSpeed, 0xFFFFFF81, 0xF24A8680, 0x00000043, 0x00000005, SetGoalPos, 0xFFFFFF81, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000005, FlyToGoal, 0xFFFFFF81, 0x0000000F, 0xFFFFFFFE, 0x00000005, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x00500003, 0x00000043, 0x00000005, GetActorPos, 0xFFFFFF81, 0xFE363C8A, 0xFE363C8B, 0xFE363C8C, 0x00000028, 0x00000002, 0xFE363C8B, 0x0000001E, 0x00000043, 0x00000003, SetActorJumpGravity, 0xFFFFFF81, 0xF24A7B4D, 0x00000043, 0x00000003, SetActorSpeed, 0xFFFFFF81, 0xF24A7E80, 0x00000043, 0x00000005, SetGoalPos, 0xFFFFFF81, 0xFE363C8A, 0xFE363C8B, 0xFE363C8C, 0x00000043, 0x00000005, FlyToGoal, 0xFFFFFF81, 0x00000010, 0x00000000, 0x00000000, 0x00000043, 0x00000002, UseBattleCamPreset, 0x00000002, 0x00000043, 0x00000002, MoveBattleCamOver, 0x0000000A, 0x00000043, 0x00000005, SetActorRotationOffset, 0xFFFFFF81, 0x00000000, 0x00000028, 0x00000000, 0x00000043, 0x00000005, SetActorRotation, 0xFFFFFF81, 0x00000000, 0x00000000, 0xFFFFFFD8, 0x00000043, 0x00000003, PlaySoundAtActor, 0xFFFFFF81, 0x000003DE, 0x00000043, 0x00000005, GetActorPos, 0xFFFFFF81, 0xFE363C83, 0xFE363C84, 0xFE363C85, 0x00000027, 0x00000002, 0xFE363C83, 0x00000001, 0x00000028, 0x00000002, 0xFE363C84, 0x0000001B, 0x00000028, 0x00000002, 0xFE363C85, 0x00000003, 0x00000043, 0x00000005, GetActorPos, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000007, b_area_tik2_UnkWaterFountainFunc, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0xFE363C83, 0xFE363C84, 0xFE363C85, 0x00000043, 0x00000007, EnemyTestTarget, 0xFFFFFF81, 0xFE363C8F, 0x10000000, 0x00000000, 0x00000001, 0x00000010, 0x00000014, 0x00000001, 0xFE363C8F, 0x0000001D, 0x00000001, 0x00000006, 0x0000001D, 0x00000001, 0x00000005, 0x00000008, 0x00000001, 0x0000000A, 0x0000000A, 0x00000002, 0xFE363C8F, 0x00000005, 0x00000043, 0x00000007, EnemyTestTarget, 0xFFFFFF81, 0xFE363C8F, 0x80000000, 0x00000000, 0x00000000, 0x00000000, 0x00000013, 0x00000000, 0x00000008, 0x00000001, 0x0000001E, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x00500000, 0x00000043, 0x00000005, SetActorRotation, 0xFFFFFF81, 0x00000000, 0x00000000, 0x00000000, 0x00000043, 0x00000005, SetActorRotationOffset, 0xFFFFFF81, 0x00000000, 0x00000000, 0x00000000, 0x00000046, 0x00000001, D_8021A5FC_60B0AC, 0x00000043, 0x00000003, EnableIdleScript, 0xFFFFFF81, 0xFFFFFFFF, 0x00000043, 0x00000003, UseIdleAnimation, 0xFFFFFF81, 0x00000001, 0x00000002, 0x00000000, 0x00000020, 0x00000000, 0x00000023, 0x00000000, 0x00000008, 0x00000001, 0x0000000A, 0x00000043, 0x00000002, SetGoalToTarget, 0xFFFFFF81, 0x00000043, 0x00000002, func_80269EAC, 0x0000001A, 0x00000043, 0x00000008, EnemyDamageTarget, 0xFFFFFF81, 0xFE363C8F, 0x10000000, 0x00000000, 0x00000000, 0x00000003, 0x00000020, 0x00000008, 0x00000001, 0x0000001E, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x00500000, 0x00000043, 0x00000005, SetActorRotation, 0xFFFFFF81, 0x00000000, 0x00000000, 0x00000000, 0x00000043, 0x00000005, SetActorRotationOffset, 0xFFFFFF81, 0x00000000, 0x00000000, 0x00000000, 0x00000046, 0x00000001, D_8021A5FC_60B0AC, 0x00000043, 0x00000003, EnableIdleScript, 0xFFFFFF81, 0xFFFFFFFF, 0x00000043, 0x00000003, UseIdleAnimation, 0xFFFFFF81, 0x00000001, 0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000000 dlabel D_8021C070_60CB20 .word 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x00500000, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x0050000C, 0x00000043, 0x00000005, GetActorPos, 0xFFFFFF81, 0xFE363C8A, 0xFE363C8B, 0xFE363C8C, 0x0000000D, 0x00000002, 0xFE363C8B, 0x00000014, 0x00000028, 0x00000002, 0xFE363C8B, 0x00000014, 0x00000012, 0x00000000, 0x00000024, 0x00000002, 0xFE363C8B, 0x00000000, 0x00000013, 0x00000000, 0x00000043, 0x00000003, SetActorJumpGravity, 0xFFFFFF81, 0xF24A7BB4, 0x00000043, 0x00000005, SetGoalPos, 0xFFFFFF81, 0xFE363C8A, 0xFE363C8B, 0xFE363C8C, 0x00000043, 0x00000003, FallToGoal, 0xFFFFFF81, 0x00000008, 0x00000043, 0x00000005, GetActorPos, 0xFFFFFF81, 0xFE363C84, 0xFE363C85, 0xFE363C86, 0x00000043, 0x00000003, PlaySoundAtActor, 0xFFFFFF81, 0x000003DC, 0x00000024, 0x00000002, 0xFE363C87, 0xFE363C84, 0x00000027, 0x00000002, 0xFE363C87, 0xFE363C84, 0x00000027, 0x00000002, 0xFE363C87, 0xFE363C80, 0x0000002E, 0x00000002, 0xFE363C87, 0xF24A7BD2, 0x00000024, 0x00000002, 0xFE363C88, 0xFE363C85, 0x00000027, 0x00000002, 0xFE363C88, 0xFE363C85, 0x00000027, 0x00000002, 0xFE363C88, 0xFE363C81, 0x0000002E, 0x00000002, 0xFE363C88, 0xF24A7BD2, 0x00000024, 0x00000002, 0xFE363C89, 0xFE363C86, 0x00000027, 0x00000002, 0xFE363C89, 0xFE363C86, 0x00000027, 0x00000002, 0xFE363C89, 0xFE363C82, 0x0000002E, 0x00000002, 0xFE363C89, 0xF24A7BD2, 0x00000043, 0x00000003, SetActorSpeed, 0xFFFFFF81, 0xF24A8680, 0x00000043, 0x00000005, SetGoalPos, 0xFFFFFF81, 0xFE363C87, 0xFE363C88, 0xFE363C89, 0x00000043, 0x00000005, FlyToGoal, 0xFFFFFF81, 0xFE363C83, 0xFFFFFFFE, 0x00000005, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x00500000, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x0050000C, 0x00000043, 0x00000005, GetActorPos, 0xFFFFFF81, 0xFE363C8A, 0xFE363C8B, 0xFE363C8C, 0x00000028, 0x00000002, 0xFE363C8B, 0x00000014, 0x00000043, 0x00000005, SetGoalPos, 0xFFFFFF81, 0xFE363C8A, 0xFE363C8B, 0xFE363C8C, 0x00000043, 0x00000003, SetActorJumpGravity, 0xFFFFFF81, 0xF24A7BB4, 0x00000043, 0x00000003, FallToGoal, 0xFFFFFF81, 0x00000008, 0x00000043, 0x00000003, PlaySoundAtActor, 0xFFFFFF81, 0x000003DC, 0x00000024, 0x00000002, 0xFE363C87, 0xFE363C80, 0x00000027, 0x00000002, 0xFE363C87, 0xFE363C80, 0x00000027, 0x00000002, 0xFE363C87, 0xFE363C84, 0x0000002E, 0x00000002, 0xFE363C87, 0xF24A7BD2, 0x00000024, 0x00000002, 0xFE363C88, 0xFE363C81, 0x00000027, 0x00000002, 0xFE363C88, 0xFE363C81, 0x00000027, 0x00000002, 0xFE363C88, 0xFE363C85, 0x0000002E, 0x00000002, 0xFE363C88, 0xF24A7BD2, 0x00000024, 0x00000002, 0xFE363C89, 0xFE363C82, 0x00000027, 0x00000002, 0xFE363C89, 0xFE363C82, 0x00000027, 0x00000002, 0xFE363C89, 0xFE363C86, 0x0000002E, 0x00000002, 0xFE363C89, 0xF24A7BD2, 0x00000043, 0x00000003, SetActorSpeed, 0xFFFFFF81, 0xF24A8680, 0x00000043, 0x00000005, SetGoalPos, 0xFFFFFF81, 0xFE363C87, 0xFE363C88, 0xFE363C89, 0x00000043, 0x00000005, FlyToGoal, 0xFFFFFF81, 0xFE363C83, 0xFFFFFFFE, 0x00000005, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x00500000, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x0050000C, 0x00000043, 0x00000005, GetActorPos, 0xFFFFFF81, 0xFE363C8A, 0xFE363C8B, 0xFE363C8C, 0x00000028, 0x00000002, 0xFE363C8B, 0x00000014, 0x00000043, 0x00000005, SetGoalPos, 0xFFFFFF81, 0xFE363C8A, 0xFE363C8B, 0xFE363C8C, 0x00000043, 0x00000003, SetActorJumpGravity, 0xFFFFFF81, 0xF24A7BB4, 0x00000043, 0x00000003, FallToGoal, 0xFFFFFF81, 0x00000008, 0x00000043, 0x00000003, PlaySoundAtActor, 0xFFFFFF81, 0x000003DC, 0x00000043, 0x00000003, SetActorSpeed, 0xFFFFFF81, 0xF24A8680, 0x00000043, 0x00000005, SetGoalPos, 0xFFFFFF81, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000005, FlyToGoal, 0xFFFFFF81, 0xFE363C83, 0xFFFFFFFE, 0x00000005, 0x00000002, 0x00000000, 0x00000001, 0x00000000 @@ -108,7 +108,7 @@ dlabel D_8021DE18_60E8C8 .word 0x00000043, 0x00000003, UseIdleAnimation, 0xFFFFFF81, 0x00000000, 0x00000043, 0x00000003, EnableIdleScript, 0xFFFFFF81, 0x00000000, 0x00000043, 0x00000003, SetTargetActor, 0xFFFFFF81, 0x00000000, 0x00000043, 0x00000003, GetStatusFlags, 0xFFFFFF81, 0xFE363C80, 0x00000011, 0x00000002, 0xFE363C80, 0x00080000, 0x00000043, 0x00000005, GetActorPos, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000027, 0x00000002, 0xFE363C81, 0x00000070, 0x00000043, 0x00000002, UseBattleCamPreset, 0x00000013, 0x00000043, 0x00000004, SetBattleCamTarget, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000002, SetBattleCamZoom, 0x000001F4, 0x00000043, 0x00000002, MoveBattleCamOver, 0x00000082, 0x00000012, 0x00000000, 0x00000043, 0x00000005, GetActorPos, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000027, 0x00000002, 0xFE363C81, 0x00000052, 0x00000043, 0x00000002, UseBattleCamPreset, 0x00000013, 0x00000043, 0x00000004, SetBattleCamTarget, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000002, SetBattleCamZoom, 0x00000181, 0x00000043, 0x00000002, MoveBattleCamOver, 0x00000082, 0x00000013, 0x00000000, 0x00000043, 0x00000005, GetActorPos, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000024, 0x00000002, 0xFE363C81, 0x00000064, 0x00000024, 0x00000002, 0xFE363C83, 0x0000000F, 0x00000046, 0x00000001, D_8021C070_60CB20, 0x00000043, 0x00000007, EnemyTestTarget, 0xFFFFFF81, 0xFE363C8F, 0x00000020, 0x00000000, 0x00000001, 0x00000010, 0x00000014, 0x00000001, 0xFE363C8F, 0x0000001D, 0x00000001, 0x00000006, 0x0000001D, 0x00000001, 0x00000005, 0x00000056, 0x00000000, 0x00000024, 0x00000002, 0xFE363C80, 0x00000000, 0x00000005, 0x00000001, 0x00000024, 0x00000027, 0x00000002, 0xFE363C80, 0x0000001E, 0x00000043, 0x00000003, SetActorYaw, 0xFFFFFF81, 0xFE363C80, 0x00000008, 0x00000001, 0x00000001, 0x00000006, 0x00000000, 0x00000043, 0x00000003, SetActorYaw, 0xFFFFFF81, 0x00000000, 0x00000057, 0x00000000, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x0050000D, 0x00000043, 0x00000005, GetActorPos, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000003, SetActorJumpGravity, 0xFFFFFF81, 0xF24A8080, 0x00000043, 0x00000005, SetGoalPos, 0xFFFFFF81, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000006, JumpToGoal, 0xFFFFFF81, 0x00000010, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000002, UseBattleCamPreset, 0x00000002, 0x00000043, 0x00000002, MoveBattleCamOver, 0x00000014, 0x0000000A, 0x00000002, 0xFE363C8F, 0x00000005, 0x00000043, 0x00000007, EnemyTestTarget, 0xFFFFFF81, 0xFE363C8F, 0x80000000, 0x00000000, 0x00000000, 0x00000000, 0x00000013, 0x00000000, 0x00000027, 0x00000002, 0xFE363C80, 0x0000001E, 0x00000043, 0x00000005, SetGoalPos, 0xFFFFFF81, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000006, JumpToGoal, 0xFFFFFF81, 0x0000000C, 0x00000000, 0x00000001, 0x00000000, 0x00000027, 0x00000002, 0xFE363C80, 0x00000014, 0x00000043, 0x00000005, SetGoalPos, 0xFFFFFF81, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000006, JumpToGoal, 0xFFFFFF81, 0x00000008, 0x00000000, 0x00000001, 0x00000000, 0x00000046, 0x00000001, D_8021C54C_60CFFC, 0x00000043, 0x00000003, EnableIdleScript, 0xFFFFFF81, 0xFFFFFFFF, 0x00000043, 0x00000003, UseIdleAnimation, 0xFFFFFF81, 0x00000001, 0x00000002, 0x00000000, 0x00000020, 0x00000000, 0x00000023, 0x00000000, 0x00000056, 0x00000000, 0x00000024, 0x00000002, 0xFE363C80, 0x00000000, 0x00000005, 0x00000001, 0x00000010, 0x00000027, 0x00000002, 0xFE363C80, 0x0000001E, 0x00000043, 0x00000003, SetActorYaw, 0xFFFFFF81, 0xFE363C80, 0x00000008, 0x00000001, 0x00000001, 0x00000006, 0x00000000, 0x00000043, 0x00000003, SetActorYaw, 0xFFFFFF81, 0x00000000, 0x00000057, 0x00000000, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x0050000D, 0x00000043, 0x00000003, SetActorJumpGravity, 0xFFFFFF81, 0xF24A8080, 0x00000043, 0x00000005, GetActorPos, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000027, 0x00000002, 0xFE363C81, 0x0000001E, 0x00000043, 0x00000005, SetGoalPos, 0xFFFFFF81, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000006, JumpToGoal, 0xFFFFFF81, 0x00000010, 0x00000000, 0x00000001, 0x00000000, 0x00000008, 0x00000001, 0x00000002, 0x00000043, 0x00000008, EnemyDamageTarget, 0xFFFFFF81, 0xFE363C80, 0x00000020, 0x00000008, 0x00000000, 0x00000006, 0x00000020, 0x0000000B, 0x00000002, 0xFE363C8F, 0x00000007, 0x00000046, 0x00000001, D_8021EE44_60F8F4, 0x00000013, 0x00000000, 0x00000043, 0x00000002, UseBattleCamPreset, 0x00000002, 0x00000043, 0x00000002, MoveBattleCamOver, 0x00000014, 0x00000043, 0x00000003, GetStatusFlags, 0x00000000, 0xFE363C80, 0x00000010, 0x00000002, 0xFE363C80, 0x00100000, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x00500004, 0x00000012, 0x00000000, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x00500000, 0x00000013, 0x00000000, 0x00000043, 0x00000005, GetActorPos, 0xFFFFFF81, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000027, 0x00000002, 0xFE363C80, 0x0000001E, 0x00000028, 0x00000002, 0xFE363C81, 0x0000000F, 0x00000043, 0x00000003, SetActorJumpGravity, 0xFFFFFF81, 0xF24A7F4D, 0x00000043, 0x00000005, SetGoalPos, 0xFFFFFF81, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000006, JumpToGoal, 0xFFFFFF81, 0x0000000A, 0x00000000, 0x00000001, 0x00000000, 0x00000046, 0x00000001, D_8021C54C_60CFFC, 0x00000043, 0x00000003, EnableIdleScript, 0xFFFFFF81, 0xFFFFFFFF, 0x00000043, 0x00000003, UseIdleAnimation, 0xFFFFFF81, 0x00000001, 0x00000002, 0x00000000, 0x00000001, 0x00000000 dlabel D_8021E4F4_60EFA4 -.word 0x00000043, 0x00000003, UseIdleAnimation, 0xFFFFFF81, 0x00000000, 0x00000043, 0x00000003, EnableIdleScript, 0xFFFFFF81, 0x00000000, 0x00000043, 0x00000003, SetTargetActor, 0xFFFFFF81, 0x00000000, 0x00000043, 0x00000002, SetGoalToTarget, 0xFFFFFF81, 0x00000043, 0x00000005, GetGoalPos, 0xFFFFFF81, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000027, 0x00000002, 0xFE363C80, 0x00000055, 0x00000027, 0x00000002, 0xFE363C81, 0x0000002D, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x00500000, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x0050000C, 0x00000043, 0x00000005, GetActorPos, 0xFFFFFF81, 0xFE363C8A, 0xFE363C8B, 0xFE363C8C, 0x0000000D, 0x00000002, 0xFE363C8B, 0x0000001E, 0x00000028, 0x00000002, 0xFE363C8B, 0x0000001E, 0x00000012, 0x00000000, 0x00000024, 0x00000002, 0xFE363C8B, 0x00000000, 0x00000013, 0x00000000, 0x00000043, 0x00000003, SetActorJumpGravity, 0xFFFFFF81, 0xF24A7BB4, 0x00000043, 0x00000005, SetGoalPos, 0xFFFFFF81, 0xFE363C8A, 0xFE363C8B, 0xFE363C8C, 0x00000043, 0x00000003, FallToGoal, 0xFFFFFF81, 0x00000008, 0x00000056, 0x00000000, 0x00000043, 0x00000002, UseBattleCamPreset, 0x00000013, 0x00000028, 0x00000002, 0xFE363C80, 0x0000001E, 0x00000043, 0x00000004, SetBattleCamTarget, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000002, SetBattleCamZoom, 0x0000015E, 0x00000043, 0x00000002, MoveBattleCamOver, 0x00000050, 0x00000057, 0x00000000, 0x00000043, 0x00000005, GetActorPos, 0xFFFFFF81, 0xFE363C84, 0xFE363C85, 0xFE363C86, 0x00000043, 0x00000003, PlaySoundAtActor, 0xFFFFFF81, 0x000003DC, 0x00000024, 0x00000002, 0xFE363C87, 0xFE363C84, 0x00000027, 0x00000002, 0xFE363C87, 0xFE363C80, 0x0000002E, 0x00000002, 0xFE363C87, 0xF24A7C80, 0x00000024, 0x00000002, 0xFE363C88, 0xFE363C85, 0x00000027, 0x00000002, 0xFE363C88, 0xFE363C81, 0x0000002E, 0x00000002, 0xFE363C88, 0xF24A7C80, 0x00000024, 0x00000002, 0xFE363C89, 0xFE363C86, 0x00000027, 0x00000002, 0xFE363C89, 0xFE363C82, 0x0000002E, 0x00000002, 0xFE363C89, 0xF24A7C80, 0x00000043, 0x00000003, SetActorSpeed, 0xFFFFFF81, 0xF24A8680, 0x00000043, 0x00000005, SetGoalPos, 0xFFFFFF81, 0xFE363C87, 0xFE363C88, 0xFE363C89, 0x00000043, 0x00000005, FlyToGoal, 0xFFFFFF81, 0x0000000F, 0xFFFFFFFE, 0x00000005, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x00500000, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x0050000C, 0x00000043, 0x00000005, GetActorPos, 0xFFFFFF81, 0xFE363C8A, 0xFE363C8B, 0xFE363C8C, 0x00000028, 0x00000002, 0xFE363C8B, 0x00000014, 0x00000043, 0x00000005, SetGoalPos, 0xFFFFFF81, 0xFE363C8A, 0xFE363C8B, 0xFE363C8C, 0x00000043, 0x00000003, SetActorJumpGravity, 0xFFFFFF81, 0xF24A7BB4, 0x00000043, 0x00000003, FallToGoal, 0xFFFFFF81, 0x00000008, 0x00000043, 0x00000003, PlaySoundAtActor, 0xFFFFFF81, 0x000003DC, 0x00000043, 0x00000003, SetActorSpeed, 0xFFFFFF81, 0xF24A8680, 0x00000043, 0x00000005, SetGoalPos, 0xFFFFFF81, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000005, FlyToGoal, 0xFFFFFF81, 0x0000000F, 0xFFFFFFFE, 0x00000005, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x00500003, 0x00000043, 0x00000005, GetActorPos, 0xFFFFFF81, 0xFE363C8A, 0xFE363C8B, 0xFE363C8C, 0x00000028, 0x00000002, 0xFE363C8B, 0x0000001E, 0x00000043, 0x00000003, SetActorJumpGravity, 0xFFFFFF81, 0xF24A7B4D, 0x00000043, 0x00000003, SetActorSpeed, 0xFFFFFF81, 0xF24A7E80, 0x00000043, 0x00000005, SetGoalPos, 0xFFFFFF81, 0xFE363C8A, 0xFE363C8B, 0xFE363C8C, 0x00000043, 0x00000005, FlyToGoal, 0xFFFFFF81, 0x00000010, 0x00000000, 0x00000000, 0x00000043, 0x00000002, UseBattleCamPreset, 0x00000002, 0x00000043, 0x00000002, MoveBattleCamOver, 0x0000000A, 0x00000043, 0x00000005, SetActorRotationOffset, 0xFFFFFF81, 0x00000000, 0x00000028, 0x00000000, 0x00000043, 0x00000005, SetActorRotation, 0xFFFFFF81, 0x00000000, 0x00000000, 0xFFFFFFD8, 0x00000043, 0x00000003, PlaySoundAtActor, 0xFFFFFF81, 0x000003DE, 0x00000043, 0x00000005, GetActorPos, 0xFFFFFF81, 0xFE363C83, 0xFE363C84, 0xFE363C85, 0x00000027, 0x00000002, 0xFE363C83, 0x00000001, 0x00000028, 0x00000002, 0xFE363C84, 0x0000001C, 0x00000028, 0x00000002, 0xFE363C85, 0x00000003, 0x00000043, 0x00000005, GetActorPos, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000007, func_802184E4_608F94, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0xFE363C83, 0xFE363C84, 0xFE363C85, 0x00000043, 0x00000007, EnemyTestTarget, 0xFFFFFF81, 0xFE363C8F, 0x10000000, 0x00000000, 0x00000001, 0x00000010, 0x00000014, 0x00000001, 0xFE363C8F, 0x0000001D, 0x00000001, 0x00000006, 0x0000001D, 0x00000001, 0x00000005, 0x00000008, 0x00000001, 0x0000000A, 0x0000000A, 0x00000002, 0xFE363C8F, 0x00000005, 0x00000043, 0x00000007, EnemyTestTarget, 0xFFFFFF81, 0xFE363C8F, 0x80000000, 0x00000000, 0x00000000, 0x00000000, 0x00000013, 0x00000000, 0x00000008, 0x00000001, 0x0000001E, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x00500000, 0x00000043, 0x00000005, SetActorRotation, 0xFFFFFF81, 0x00000000, 0x00000000, 0x00000000, 0x00000043, 0x00000005, SetActorRotationOffset, 0xFFFFFF81, 0x00000000, 0x00000000, 0x00000000, 0x00000046, 0x00000001, D_8021C54C_60CFFC, 0x00000043, 0x00000003, EnableIdleScript, 0xFFFFFF81, 0xFFFFFFFF, 0x00000043, 0x00000003, UseIdleAnimation, 0xFFFFFF81, 0x00000001, 0x00000002, 0x00000000, 0x00000020, 0x00000000, 0x00000023, 0x00000000, 0x00000008, 0x00000001, 0x0000000A, 0x00000043, 0x00000002, SetGoalToTarget, 0xFFFFFF81, 0x00000043, 0x00000002, func_80269EAC, 0x0000001A, 0x00000043, 0x00000008, EnemyDamageTarget, 0xFFFFFF81, 0xFE363C8F, 0x10000000, 0x00000000, 0x00000000, 0x00000004, 0x00000020, 0x00000008, 0x00000001, 0x0000001E, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x00500000, 0x00000043, 0x00000005, SetActorRotation, 0xFFFFFF81, 0x00000000, 0x00000000, 0x00000000, 0x00000043, 0x00000005, SetActorRotationOffset, 0xFFFFFF81, 0x00000000, 0x00000000, 0x00000000, 0x00000046, 0x00000001, D_8021C54C_60CFFC, 0x00000043, 0x00000003, EnableIdleScript, 0xFFFFFF81, 0xFFFFFFFF, 0x00000043, 0x00000003, UseIdleAnimation, 0xFFFFFF81, 0x00000001, 0x00000002, 0x00000000, 0x00000001, 0x00000000 +.word 0x00000043, 0x00000003, UseIdleAnimation, 0xFFFFFF81, 0x00000000, 0x00000043, 0x00000003, EnableIdleScript, 0xFFFFFF81, 0x00000000, 0x00000043, 0x00000003, SetTargetActor, 0xFFFFFF81, 0x00000000, 0x00000043, 0x00000002, SetGoalToTarget, 0xFFFFFF81, 0x00000043, 0x00000005, GetGoalPos, 0xFFFFFF81, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000027, 0x00000002, 0xFE363C80, 0x00000055, 0x00000027, 0x00000002, 0xFE363C81, 0x0000002D, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x00500000, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x0050000C, 0x00000043, 0x00000005, GetActorPos, 0xFFFFFF81, 0xFE363C8A, 0xFE363C8B, 0xFE363C8C, 0x0000000D, 0x00000002, 0xFE363C8B, 0x0000001E, 0x00000028, 0x00000002, 0xFE363C8B, 0x0000001E, 0x00000012, 0x00000000, 0x00000024, 0x00000002, 0xFE363C8B, 0x00000000, 0x00000013, 0x00000000, 0x00000043, 0x00000003, SetActorJumpGravity, 0xFFFFFF81, 0xF24A7BB4, 0x00000043, 0x00000005, SetGoalPos, 0xFFFFFF81, 0xFE363C8A, 0xFE363C8B, 0xFE363C8C, 0x00000043, 0x00000003, FallToGoal, 0xFFFFFF81, 0x00000008, 0x00000056, 0x00000000, 0x00000043, 0x00000002, UseBattleCamPreset, 0x00000013, 0x00000028, 0x00000002, 0xFE363C80, 0x0000001E, 0x00000043, 0x00000004, SetBattleCamTarget, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000002, SetBattleCamZoom, 0x0000015E, 0x00000043, 0x00000002, MoveBattleCamOver, 0x00000050, 0x00000057, 0x00000000, 0x00000043, 0x00000005, GetActorPos, 0xFFFFFF81, 0xFE363C84, 0xFE363C85, 0xFE363C86, 0x00000043, 0x00000003, PlaySoundAtActor, 0xFFFFFF81, 0x000003DC, 0x00000024, 0x00000002, 0xFE363C87, 0xFE363C84, 0x00000027, 0x00000002, 0xFE363C87, 0xFE363C80, 0x0000002E, 0x00000002, 0xFE363C87, 0xF24A7C80, 0x00000024, 0x00000002, 0xFE363C88, 0xFE363C85, 0x00000027, 0x00000002, 0xFE363C88, 0xFE363C81, 0x0000002E, 0x00000002, 0xFE363C88, 0xF24A7C80, 0x00000024, 0x00000002, 0xFE363C89, 0xFE363C86, 0x00000027, 0x00000002, 0xFE363C89, 0xFE363C82, 0x0000002E, 0x00000002, 0xFE363C89, 0xF24A7C80, 0x00000043, 0x00000003, SetActorSpeed, 0xFFFFFF81, 0xF24A8680, 0x00000043, 0x00000005, SetGoalPos, 0xFFFFFF81, 0xFE363C87, 0xFE363C88, 0xFE363C89, 0x00000043, 0x00000005, FlyToGoal, 0xFFFFFF81, 0x0000000F, 0xFFFFFFFE, 0x00000005, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x00500000, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x0050000C, 0x00000043, 0x00000005, GetActorPos, 0xFFFFFF81, 0xFE363C8A, 0xFE363C8B, 0xFE363C8C, 0x00000028, 0x00000002, 0xFE363C8B, 0x00000014, 0x00000043, 0x00000005, SetGoalPos, 0xFFFFFF81, 0xFE363C8A, 0xFE363C8B, 0xFE363C8C, 0x00000043, 0x00000003, SetActorJumpGravity, 0xFFFFFF81, 0xF24A7BB4, 0x00000043, 0x00000003, FallToGoal, 0xFFFFFF81, 0x00000008, 0x00000043, 0x00000003, PlaySoundAtActor, 0xFFFFFF81, 0x000003DC, 0x00000043, 0x00000003, SetActorSpeed, 0xFFFFFF81, 0xF24A8680, 0x00000043, 0x00000005, SetGoalPos, 0xFFFFFF81, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000005, FlyToGoal, 0xFFFFFF81, 0x0000000F, 0xFFFFFFFE, 0x00000005, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x00500003, 0x00000043, 0x00000005, GetActorPos, 0xFFFFFF81, 0xFE363C8A, 0xFE363C8B, 0xFE363C8C, 0x00000028, 0x00000002, 0xFE363C8B, 0x0000001E, 0x00000043, 0x00000003, SetActorJumpGravity, 0xFFFFFF81, 0xF24A7B4D, 0x00000043, 0x00000003, SetActorSpeed, 0xFFFFFF81, 0xF24A7E80, 0x00000043, 0x00000005, SetGoalPos, 0xFFFFFF81, 0xFE363C8A, 0xFE363C8B, 0xFE363C8C, 0x00000043, 0x00000005, FlyToGoal, 0xFFFFFF81, 0x00000010, 0x00000000, 0x00000000, 0x00000043, 0x00000002, UseBattleCamPreset, 0x00000002, 0x00000043, 0x00000002, MoveBattleCamOver, 0x0000000A, 0x00000043, 0x00000005, SetActorRotationOffset, 0xFFFFFF81, 0x00000000, 0x00000028, 0x00000000, 0x00000043, 0x00000005, SetActorRotation, 0xFFFFFF81, 0x00000000, 0x00000000, 0xFFFFFFD8, 0x00000043, 0x00000003, PlaySoundAtActor, 0xFFFFFF81, 0x000003DE, 0x00000043, 0x00000005, GetActorPos, 0xFFFFFF81, 0xFE363C83, 0xFE363C84, 0xFE363C85, 0x00000027, 0x00000002, 0xFE363C83, 0x00000001, 0x00000028, 0x00000002, 0xFE363C84, 0x0000001C, 0x00000028, 0x00000002, 0xFE363C85, 0x00000003, 0x00000043, 0x00000005, GetActorPos, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000007, dup_b_area_tik2_UnkWaterFountainFunc, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0xFE363C83, 0xFE363C84, 0xFE363C85, 0x00000043, 0x00000007, EnemyTestTarget, 0xFFFFFF81, 0xFE363C8F, 0x10000000, 0x00000000, 0x00000001, 0x00000010, 0x00000014, 0x00000001, 0xFE363C8F, 0x0000001D, 0x00000001, 0x00000006, 0x0000001D, 0x00000001, 0x00000005, 0x00000008, 0x00000001, 0x0000000A, 0x0000000A, 0x00000002, 0xFE363C8F, 0x00000005, 0x00000043, 0x00000007, EnemyTestTarget, 0xFFFFFF81, 0xFE363C8F, 0x80000000, 0x00000000, 0x00000000, 0x00000000, 0x00000013, 0x00000000, 0x00000008, 0x00000001, 0x0000001E, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x00500000, 0x00000043, 0x00000005, SetActorRotation, 0xFFFFFF81, 0x00000000, 0x00000000, 0x00000000, 0x00000043, 0x00000005, SetActorRotationOffset, 0xFFFFFF81, 0x00000000, 0x00000000, 0x00000000, 0x00000046, 0x00000001, D_8021C54C_60CFFC, 0x00000043, 0x00000003, EnableIdleScript, 0xFFFFFF81, 0xFFFFFFFF, 0x00000043, 0x00000003, UseIdleAnimation, 0xFFFFFF81, 0x00000001, 0x00000002, 0x00000000, 0x00000020, 0x00000000, 0x00000023, 0x00000000, 0x00000008, 0x00000001, 0x0000000A, 0x00000043, 0x00000002, SetGoalToTarget, 0xFFFFFF81, 0x00000043, 0x00000002, func_80269EAC, 0x0000001A, 0x00000043, 0x00000008, EnemyDamageTarget, 0xFFFFFF81, 0xFE363C8F, 0x10000000, 0x00000000, 0x00000000, 0x00000004, 0x00000020, 0x00000008, 0x00000001, 0x0000001E, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x00500000, 0x00000043, 0x00000005, SetActorRotation, 0xFFFFFF81, 0x00000000, 0x00000000, 0x00000000, 0x00000043, 0x00000005, SetActorRotationOffset, 0xFFFFFF81, 0x00000000, 0x00000000, 0x00000000, 0x00000046, 0x00000001, D_8021C54C_60CFFC, 0x00000043, 0x00000003, EnableIdleScript, 0xFFFFFF81, 0xFFFFFFFF, 0x00000043, 0x00000003, UseIdleAnimation, 0xFFFFFF81, 0x00000001, 0x00000002, 0x00000000, 0x00000001, 0x00000000 dlabel D_8021EC88_60F738 .word 0x00000043, 0x00000004, GetActorVar, 0xFFFFFF81, 0x00000000, 0xFE363C80, 0x0000000B, 0x00000002, 0xFE363C80, 0x00000000, 0x00000002, 0x00000000, 0x00000013, 0x00000000, 0x00000043, 0x00000004, SetActorVar, 0xFFFFFF81, 0x00000000, 0x00000001, 0x00000043, 0x00000005, GetActorPos, 0xFFFFFF81, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000003, GetStatusFlags, 0xFFFFFF81, 0xFE363C83, 0x00000011, 0x00000002, 0xFE363C83, 0x00080000, 0x00000027, 0x00000002, 0xFE363C81, 0x0000002D, 0x00000026, 0x00000002, 0xFE363C83, 0xF24A80E7, 0x00000012, 0x00000000, 0x00000027, 0x00000002, 0xFE363C81, 0x00000012, 0x00000026, 0x00000002, 0xFE363C83, 0xF24A7D10, 0x00000013, 0x00000000, 0x00000043, 0x0000000F, PlayEffect, 0x00000057, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0xFE363C83, 0xFFFFFFFF, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000043, 0x00000004, SetActorVar, 0xFFFFFF81, 0x00000001, 0xFE363C8F, 0x00000043, 0x00000003, PlaySoundAtActor, 0xFFFFFF81, 0x0000035C, 0x00000043, 0x00000004, SetPartEventFlags, 0xFFFFFF81, 0x00000002, 0x00400080, 0x00000043, 0x00000004, func_8026ED20, 0xFFFFFF81, 0x00000001, 0x00000001, 0x00000043, 0x00000004, func_8026EA7C, 0xFFFFFF81, 0x00000001, 0x00000004, 0x00000043, 0x00000003, SetStatusTable, 0xFFFFFF81, D_8021C710_60D1C0, 0x00000002, 0x00000000, 0x00000001, 0x00000000 @@ -165,7 +165,7 @@ dlabel D_802203FC_610EAC .word 0x00000043, 0x00000003, UseIdleAnimation, 0xFFFFFF81, 0x00000000, 0x00000043, 0x00000003, EnableIdleScript, 0xFFFFFF81, 0x00000000, 0x00000043, 0x00000003, SetTargetActor, 0xFFFFFF81, 0x00000000, 0x00000043, 0x00000005, GetActorPos, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000024, 0x00000002, 0xFE363C81, 0x00000064, 0x00000024, 0x00000002, 0xFE363C83, 0x0000000F, 0x00000046, 0x00000001, D_8021EF60_60FA10, 0x00000043, 0x00000003, PlaySoundAtActor, 0xFFFFFF81, 0x000003DD, 0x00000043, 0x00000007, EnemyTestTarget, 0xFFFFFF81, 0xFE363C8F, 0x00000000, 0x00000000, 0x00000001, 0x00000010, 0x00000014, 0x00000001, 0xFE363C8F, 0x0000001D, 0x00000001, 0x00000006, 0x0000001D, 0x00000001, 0x00000005, 0x00000056, 0x00000000, 0x00000024, 0x00000002, 0xFE363C80, 0x00000000, 0x00000005, 0x00000001, 0x00000024, 0x00000027, 0x00000002, 0xFE363C80, 0x0000001E, 0x00000043, 0x00000003, SetActorYaw, 0xFFFFFF81, 0xFE363C80, 0x00000008, 0x00000001, 0x00000001, 0x00000006, 0x00000000, 0x00000043, 0x00000003, SetActorYaw, 0xFFFFFF81, 0x00000000, 0x00000057, 0x00000000, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x0050000D, 0x00000043, 0x00000005, GetActorPos, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000003, SetActorJumpGravity, 0xFFFFFF81, 0xF24A8080, 0x00000043, 0x00000005, SetGoalPos, 0xFFFFFF81, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000006, JumpToGoal, 0xFFFFFF81, 0x00000010, 0x00000000, 0x00000001, 0x00000000, 0x0000000A, 0x00000002, 0xFE363C8F, 0x00000005, 0x00000043, 0x00000007, EnemyTestTarget, 0xFFFFFF81, 0xFE363C8F, 0x80000000, 0x00000000, 0x00000000, 0x00000000, 0x00000013, 0x00000000, 0x00000027, 0x00000002, 0xFE363C80, 0x0000001E, 0x00000043, 0x00000005, SetGoalPos, 0xFFFFFF81, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000006, JumpToGoal, 0xFFFFFF81, 0x0000000C, 0x00000000, 0x00000001, 0x00000000, 0x00000027, 0x00000002, 0xFE363C80, 0x00000014, 0x00000043, 0x00000005, SetGoalPos, 0xFFFFFF81, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000006, JumpToGoal, 0xFFFFFF81, 0x00000008, 0x00000000, 0x00000001, 0x00000000, 0x00000046, 0x00000001, D_8021F43C_60FEEC, 0x00000043, 0x00000003, EnableIdleScript, 0xFFFFFF81, 0xFFFFFFFF, 0x00000043, 0x00000003, UseIdleAnimation, 0xFFFFFF81, 0x00000001, 0x00000002, 0x00000000, 0x00000020, 0x00000000, 0x00000023, 0x00000000, 0x00000056, 0x00000000, 0x00000024, 0x00000002, 0xFE363C80, 0x00000000, 0x00000005, 0x00000001, 0x00000010, 0x00000027, 0x00000002, 0xFE363C80, 0x0000001E, 0x00000043, 0x00000003, SetActorYaw, 0xFFFFFF81, 0xFE363C80, 0x00000008, 0x00000001, 0x00000001, 0x00000006, 0x00000000, 0x00000043, 0x00000003, SetActorYaw, 0xFFFFFF81, 0x00000000, 0x00000057, 0x00000000, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x0050000D, 0x00000043, 0x00000003, SetActorJumpGravity, 0xFFFFFF81, 0xF24A8080, 0x00000043, 0x00000005, GetActorPos, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000027, 0x00000002, 0xFE363C81, 0x0000001E, 0x00000043, 0x00000005, SetGoalPos, 0xFFFFFF81, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000006, JumpToGoal, 0xFFFFFF81, 0x00000010, 0x00000000, 0x00000001, 0x00000000, 0x00000008, 0x00000001, 0x00000002, 0x00000043, 0x00000008, EnemyDamageTarget, 0xFFFFFF81, 0xFE363C80, 0x00000000, 0x00000000, 0x00000000, 0x00000005, 0x00000020, 0x00000043, 0x00000003, GetStatusFlags, 0x00000000, 0xFE363C80, 0x00000010, 0x00000002, 0xFE363C80, 0x00100000, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x00500004, 0x00000012, 0x00000000, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x00500000, 0x00000013, 0x00000000, 0x00000043, 0x00000005, GetActorPos, 0xFFFFFF81, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000027, 0x00000002, 0xFE363C80, 0x0000001E, 0x00000028, 0x00000002, 0xFE363C81, 0x0000000F, 0x00000043, 0x00000003, SetActorJumpGravity, 0xFFFFFF81, 0xF24A7F4D, 0x00000043, 0x00000005, SetGoalPos, 0xFFFFFF81, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000006, JumpToGoal, 0xFFFFFF81, 0x0000000A, 0x00000000, 0x00000001, 0x00000000, 0x00000046, 0x00000001, D_8021F43C_60FEEC, 0x00000043, 0x00000003, EnableIdleScript, 0xFFFFFF81, 0xFFFFFFFF, 0x00000043, 0x00000003, UseIdleAnimation, 0xFFFFFF81, 0x00000001, 0x00000002, 0x00000000, 0x00000001, 0x00000000 dlabel D_8022096C_61141C -.word 0x00000043, 0x00000003, UseIdleAnimation, 0xFFFFFF81, 0x00000000, 0x00000043, 0x00000003, EnableIdleScript, 0xFFFFFF81, 0x00000000, 0x00000043, 0x00000003, SetTargetActor, 0xFFFFFF81, 0x00000000, 0x00000043, 0x00000002, SetGoalToTarget, 0xFFFFFF81, 0x00000043, 0x00000005, GetGoalPos, 0xFFFFFF81, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000027, 0x00000002, 0xFE363C80, 0x00000055, 0x00000027, 0x00000002, 0xFE363C81, 0x0000002D, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x00500000, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x0050000C, 0x00000043, 0x00000005, GetActorPos, 0xFFFFFF81, 0xFE363C8A, 0xFE363C8B, 0xFE363C8C, 0x0000000D, 0x00000002, 0xFE363C8B, 0x0000001E, 0x00000028, 0x00000002, 0xFE363C8B, 0x0000001E, 0x00000012, 0x00000000, 0x00000024, 0x00000002, 0xFE363C8B, 0x00000000, 0x00000013, 0x00000000, 0x00000043, 0x00000003, SetActorJumpGravity, 0xFFFFFF81, 0xF24A7BB4, 0x00000043, 0x00000005, SetGoalPos, 0xFFFFFF81, 0xFE363C8A, 0xFE363C8B, 0xFE363C8C, 0x00000043, 0x00000003, FallToGoal, 0xFFFFFF81, 0x00000008, 0x00000043, 0x00000005, GetActorPos, 0xFFFFFF81, 0xFE363C84, 0xFE363C85, 0xFE363C86, 0x00000043, 0x00000003, PlaySoundAtActor, 0xFFFFFF81, 0x000003DC, 0x00000024, 0x00000002, 0xFE363C87, 0xFE363C84, 0x00000027, 0x00000002, 0xFE363C87, 0xFE363C80, 0x0000002E, 0x00000002, 0xFE363C87, 0xF24A7C80, 0x00000024, 0x00000002, 0xFE363C88, 0xFE363C85, 0x00000027, 0x00000002, 0xFE363C88, 0xFE363C81, 0x0000002E, 0x00000002, 0xFE363C88, 0xF24A7C80, 0x00000024, 0x00000002, 0xFE363C89, 0xFE363C86, 0x00000027, 0x00000002, 0xFE363C89, 0xFE363C82, 0x0000002E, 0x00000002, 0xFE363C89, 0xF24A7C80, 0x00000043, 0x00000003, SetActorSpeed, 0xFFFFFF81, 0xF24A8680, 0x00000043, 0x00000005, SetGoalPos, 0xFFFFFF81, 0xFE363C87, 0xFE363C88, 0xFE363C89, 0x00000043, 0x00000005, FlyToGoal, 0xFFFFFF81, 0x0000000F, 0xFFFFFFFE, 0x00000005, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x00500000, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x0050000C, 0x00000043, 0x00000005, GetActorPos, 0xFFFFFF81, 0xFE363C8A, 0xFE363C8B, 0xFE363C8C, 0x00000028, 0x00000002, 0xFE363C8B, 0x00000014, 0x00000043, 0x00000005, SetGoalPos, 0xFFFFFF81, 0xFE363C8A, 0xFE363C8B, 0xFE363C8C, 0x00000043, 0x00000003, SetActorJumpGravity, 0xFFFFFF81, 0xF24A7BB4, 0x00000043, 0x00000003, FallToGoal, 0xFFFFFF81, 0x00000008, 0x00000043, 0x00000003, PlaySoundAtActor, 0xFFFFFF81, 0x000003DC, 0x00000043, 0x00000003, SetActorSpeed, 0xFFFFFF81, 0xF24A8680, 0x00000043, 0x00000005, SetGoalPos, 0xFFFFFF81, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000005, FlyToGoal, 0xFFFFFF81, 0x0000000F, 0xFFFFFFFE, 0x00000005, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x00500003, 0x00000043, 0x00000005, GetActorPos, 0xFFFFFF81, 0xFE363C8A, 0xFE363C8B, 0xFE363C8C, 0x00000028, 0x00000002, 0xFE363C8B, 0x0000001E, 0x00000043, 0x00000003, SetActorJumpGravity, 0xFFFFFF81, 0xF24A7B4D, 0x00000043, 0x00000003, SetActorSpeed, 0xFFFFFF81, 0xF24A7E80, 0x00000043, 0x00000005, SetGoalPos, 0xFFFFFF81, 0xFE363C8A, 0xFE363C8B, 0xFE363C8C, 0x00000043, 0x00000005, FlyToGoal, 0xFFFFFF81, 0x00000010, 0x00000000, 0x00000000, 0x00000043, 0x00000005, SetActorRotationOffset, 0xFFFFFF81, 0x00000000, 0x00000028, 0x00000000, 0x00000043, 0x00000005, SetActorRotation, 0xFFFFFF81, 0x00000000, 0x00000000, 0xFFFFFFD8, 0x00000043, 0x00000003, PlaySoundAtActor, 0xFFFFFF81, 0x000003DE, 0x00000043, 0x00000005, GetActorPos, 0xFFFFFF81, 0xFE363C83, 0xFE363C84, 0xFE363C85, 0x00000027, 0x00000002, 0xFE363C83, 0x00000001, 0x00000028, 0x00000002, 0xFE363C84, 0x0000001E, 0x00000043, 0x00000005, GetActorPos, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000007, func_80218884_609334, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0xFE363C83, 0xFE363C84, 0xFE363C85, 0x00000043, 0x00000007, EnemyTestTarget, 0xFFFFFF81, 0xFE363C8F, 0x10000000, 0x00000000, 0x00000001, 0x00000010, 0x00000014, 0x00000001, 0xFE363C8F, 0x0000001D, 0x00000001, 0x00000006, 0x0000001D, 0x00000001, 0x00000005, 0x00000008, 0x00000001, 0x0000000A, 0x0000000A, 0x00000002, 0xFE363C8F, 0x00000005, 0x00000043, 0x00000007, EnemyTestTarget, 0xFFFFFF81, 0xFE363C8F, 0x80000000, 0x00000000, 0x00000000, 0x00000000, 0x00000013, 0x00000000, 0x00000008, 0x00000001, 0x0000001E, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x00500000, 0x00000043, 0x00000005, SetActorRotation, 0xFFFFFF81, 0x00000000, 0x00000000, 0x00000000, 0x00000043, 0x00000005, SetActorRotationOffset, 0xFFFFFF81, 0x00000000, 0x00000000, 0x00000000, 0x00000046, 0x00000001, D_8021F43C_60FEEC, 0x00000043, 0x00000003, EnableIdleScript, 0xFFFFFF81, 0xFFFFFFFF, 0x00000043, 0x00000003, UseIdleAnimation, 0xFFFFFF81, 0x00000001, 0x00000002, 0x00000000, 0x00000020, 0x00000000, 0x00000023, 0x00000000, 0x00000008, 0x00000001, 0x0000000A, 0x00000043, 0x00000002, SetGoalToTarget, 0xFFFFFF81, 0x00000043, 0x00000002, func_80269EAC, 0x0000001A, 0x00000043, 0x00000008, EnemyDamageTarget, 0xFFFFFF81, 0xFE363C8F, 0x10000000, 0x00000000, 0x00000000, 0x00000005, 0x00000020, 0x00000008, 0x00000001, 0x0000001E, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x00500000, 0x00000043, 0x00000005, SetActorRotation, 0xFFFFFF81, 0x00000000, 0x00000000, 0x00000000, 0x00000043, 0x00000005, SetActorRotationOffset, 0xFFFFFF81, 0x00000000, 0x00000000, 0x00000000, 0x00000046, 0x00000001, D_8021F43C_60FEEC, 0x00000043, 0x00000003, EnableIdleScript, 0xFFFFFF81, 0xFFFFFFFF, 0x00000043, 0x00000003, UseIdleAnimation, 0xFFFFFF81, 0x00000001, 0x00000002, 0x00000000, 0x00000001, 0x00000000 +.word 0x00000043, 0x00000003, UseIdleAnimation, 0xFFFFFF81, 0x00000000, 0x00000043, 0x00000003, EnableIdleScript, 0xFFFFFF81, 0x00000000, 0x00000043, 0x00000003, SetTargetActor, 0xFFFFFF81, 0x00000000, 0x00000043, 0x00000002, SetGoalToTarget, 0xFFFFFF81, 0x00000043, 0x00000005, GetGoalPos, 0xFFFFFF81, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000027, 0x00000002, 0xFE363C80, 0x00000055, 0x00000027, 0x00000002, 0xFE363C81, 0x0000002D, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x00500000, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x0050000C, 0x00000043, 0x00000005, GetActorPos, 0xFFFFFF81, 0xFE363C8A, 0xFE363C8B, 0xFE363C8C, 0x0000000D, 0x00000002, 0xFE363C8B, 0x0000001E, 0x00000028, 0x00000002, 0xFE363C8B, 0x0000001E, 0x00000012, 0x00000000, 0x00000024, 0x00000002, 0xFE363C8B, 0x00000000, 0x00000013, 0x00000000, 0x00000043, 0x00000003, SetActorJumpGravity, 0xFFFFFF81, 0xF24A7BB4, 0x00000043, 0x00000005, SetGoalPos, 0xFFFFFF81, 0xFE363C8A, 0xFE363C8B, 0xFE363C8C, 0x00000043, 0x00000003, FallToGoal, 0xFFFFFF81, 0x00000008, 0x00000043, 0x00000005, GetActorPos, 0xFFFFFF81, 0xFE363C84, 0xFE363C85, 0xFE363C86, 0x00000043, 0x00000003, PlaySoundAtActor, 0xFFFFFF81, 0x000003DC, 0x00000024, 0x00000002, 0xFE363C87, 0xFE363C84, 0x00000027, 0x00000002, 0xFE363C87, 0xFE363C80, 0x0000002E, 0x00000002, 0xFE363C87, 0xF24A7C80, 0x00000024, 0x00000002, 0xFE363C88, 0xFE363C85, 0x00000027, 0x00000002, 0xFE363C88, 0xFE363C81, 0x0000002E, 0x00000002, 0xFE363C88, 0xF24A7C80, 0x00000024, 0x00000002, 0xFE363C89, 0xFE363C86, 0x00000027, 0x00000002, 0xFE363C89, 0xFE363C82, 0x0000002E, 0x00000002, 0xFE363C89, 0xF24A7C80, 0x00000043, 0x00000003, SetActorSpeed, 0xFFFFFF81, 0xF24A8680, 0x00000043, 0x00000005, SetGoalPos, 0xFFFFFF81, 0xFE363C87, 0xFE363C88, 0xFE363C89, 0x00000043, 0x00000005, FlyToGoal, 0xFFFFFF81, 0x0000000F, 0xFFFFFFFE, 0x00000005, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x00500000, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x0050000C, 0x00000043, 0x00000005, GetActorPos, 0xFFFFFF81, 0xFE363C8A, 0xFE363C8B, 0xFE363C8C, 0x00000028, 0x00000002, 0xFE363C8B, 0x00000014, 0x00000043, 0x00000005, SetGoalPos, 0xFFFFFF81, 0xFE363C8A, 0xFE363C8B, 0xFE363C8C, 0x00000043, 0x00000003, SetActorJumpGravity, 0xFFFFFF81, 0xF24A7BB4, 0x00000043, 0x00000003, FallToGoal, 0xFFFFFF81, 0x00000008, 0x00000043, 0x00000003, PlaySoundAtActor, 0xFFFFFF81, 0x000003DC, 0x00000043, 0x00000003, SetActorSpeed, 0xFFFFFF81, 0xF24A8680, 0x00000043, 0x00000005, SetGoalPos, 0xFFFFFF81, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000005, FlyToGoal, 0xFFFFFF81, 0x0000000F, 0xFFFFFFFE, 0x00000005, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x00500003, 0x00000043, 0x00000005, GetActorPos, 0xFFFFFF81, 0xFE363C8A, 0xFE363C8B, 0xFE363C8C, 0x00000028, 0x00000002, 0xFE363C8B, 0x0000001E, 0x00000043, 0x00000003, SetActorJumpGravity, 0xFFFFFF81, 0xF24A7B4D, 0x00000043, 0x00000003, SetActorSpeed, 0xFFFFFF81, 0xF24A7E80, 0x00000043, 0x00000005, SetGoalPos, 0xFFFFFF81, 0xFE363C8A, 0xFE363C8B, 0xFE363C8C, 0x00000043, 0x00000005, FlyToGoal, 0xFFFFFF81, 0x00000010, 0x00000000, 0x00000000, 0x00000043, 0x00000005, SetActorRotationOffset, 0xFFFFFF81, 0x00000000, 0x00000028, 0x00000000, 0x00000043, 0x00000005, SetActorRotation, 0xFFFFFF81, 0x00000000, 0x00000000, 0xFFFFFFD8, 0x00000043, 0x00000003, PlaySoundAtActor, 0xFFFFFF81, 0x000003DE, 0x00000043, 0x00000005, GetActorPos, 0xFFFFFF81, 0xFE363C83, 0xFE363C84, 0xFE363C85, 0x00000027, 0x00000002, 0xFE363C83, 0x00000001, 0x00000028, 0x00000002, 0xFE363C84, 0x0000001E, 0x00000043, 0x00000005, GetActorPos, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000007, dup2_b_area_tik2_UnkWaterFountainFunc, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0xFE363C83, 0xFE363C84, 0xFE363C85, 0x00000043, 0x00000007, EnemyTestTarget, 0xFFFFFF81, 0xFE363C8F, 0x10000000, 0x00000000, 0x00000001, 0x00000010, 0x00000014, 0x00000001, 0xFE363C8F, 0x0000001D, 0x00000001, 0x00000006, 0x0000001D, 0x00000001, 0x00000005, 0x00000008, 0x00000001, 0x0000000A, 0x0000000A, 0x00000002, 0xFE363C8F, 0x00000005, 0x00000043, 0x00000007, EnemyTestTarget, 0xFFFFFF81, 0xFE363C8F, 0x80000000, 0x00000000, 0x00000000, 0x00000000, 0x00000013, 0x00000000, 0x00000008, 0x00000001, 0x0000001E, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x00500000, 0x00000043, 0x00000005, SetActorRotation, 0xFFFFFF81, 0x00000000, 0x00000000, 0x00000000, 0x00000043, 0x00000005, SetActorRotationOffset, 0xFFFFFF81, 0x00000000, 0x00000000, 0x00000000, 0x00000046, 0x00000001, D_8021F43C_60FEEC, 0x00000043, 0x00000003, EnableIdleScript, 0xFFFFFF81, 0xFFFFFFFF, 0x00000043, 0x00000003, UseIdleAnimation, 0xFFFFFF81, 0x00000001, 0x00000002, 0x00000000, 0x00000020, 0x00000000, 0x00000023, 0x00000000, 0x00000008, 0x00000001, 0x0000000A, 0x00000043, 0x00000002, SetGoalToTarget, 0xFFFFFF81, 0x00000043, 0x00000002, func_80269EAC, 0x0000001A, 0x00000043, 0x00000008, EnemyDamageTarget, 0xFFFFFF81, 0xFE363C8F, 0x10000000, 0x00000000, 0x00000000, 0x00000005, 0x00000020, 0x00000008, 0x00000001, 0x0000001E, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x00500000, 0x00000043, 0x00000005, SetActorRotation, 0xFFFFFF81, 0x00000000, 0x00000000, 0x00000000, 0x00000043, 0x00000005, SetActorRotationOffset, 0xFFFFFF81, 0x00000000, 0x00000000, 0x00000000, 0x00000046, 0x00000001, D_8021F43C_60FEEC, 0x00000043, 0x00000003, EnableIdleScript, 0xFFFFFF81, 0xFFFFFFFF, 0x00000043, 0x00000003, UseIdleAnimation, 0xFFFFFF81, 0x00000001, 0x00000002, 0x00000000, 0x00000001, 0x00000000 dlabel D_80221068_611B18 .word 0x00000043, 0x00000003, UseIdleAnimation, 0xFFFFFF81, 0x00000000, 0x00000043, 0x00000003, EnableIdleScript, 0xFFFFFF81, 0x00000000, 0x00000043, 0x00000005, GetActorPos, 0xFFFFFF81, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000005, SetGoalPos, 0xFFFFFF81, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000002, UseBattleCamPreset, 0x00000007, 0x00000043, 0x00000002, BattleCamTargetActor, 0xFFFFFF81, 0x00000043, 0x00000002, SetBattleCamOffsetZ, 0x00000032, 0x00000043, 0x00000002, SetBattleCamZoom, 0x0000014A, 0x00000043, 0x00000002, MoveBattleCamOver, 0x00000028, 0x00000008, 0x00000001, 0x00000014, 0x00000043, 0x00000003, PlaySoundAtActor, 0xFFFFFF81, 0x000003E6, 0x00000043, 0x00000001, dup_b_area_tik2_FadeBackgroundToBlack, 0x00000043, 0x00000003, dup2_b_area_tik2_StartRumbleWithParams, 0x00000032, 0x00000014, 0x00000056, 0x00000000, 0x00000043, 0x00000005, ShakeCam, 0x00000001, 0x00000000, 0x0000000A, 0xF24A7BB4, 0x00000057, 0x00000000, 0x00000043, 0x00000002, UseBattleCamPreset, 0x00000007, 0x00000043, 0x00000002, BattleCamTargetActor, 0xFFFFFF81, 0x00000043, 0x00000002, SetBattleCamOffsetZ, 0x00000041, 0x00000043, 0x00000002, SetBattleCamZoom, 0x000000F0, 0x00000043, 0x00000002, MoveBattleCamOver, 0x0000000F, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x00500009, 0x00000008, 0x00000001, 0x0000000F, 0x00000043, 0x00000003, dup2_b_area_tik2_StartRumbleWithParams, 0x00000064, 0x00000014, 0x00000056, 0x00000000, 0x00000043, 0x00000005, ShakeCam, 0x00000001, 0x00000000, 0x0000000A, 0xF24A7C1A, 0x00000057, 0x00000000, 0x00000043, 0x00000002, UseBattleCamPreset, 0x00000007, 0x00000043, 0x00000002, BattleCamTargetActor, 0xFFFFFF81, 0x00000043, 0x00000002, SetBattleCamOffsetZ, 0x00000050, 0x00000043, 0x00000002, SetBattleCamZoom, 0x00000096, 0x00000043, 0x00000002, MoveBattleCamOver, 0x0000000F, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x0050000A, 0x00000008, 0x00000001, 0x0000000F, 0x00000043, 0x00000003, dup2_b_area_tik2_StartRumbleWithParams, 0x00000096, 0x00000014, 0x00000056, 0x00000000, 0x00000043, 0x00000005, ShakeCam, 0x00000001, 0x00000000, 0x0000000A, 0xF24A7C80, 0x00000057, 0x00000000, 0x00000043, 0x00000002, UseBattleCamPreset, 0x00000007, 0x00000043, 0x00000002, BattleCamTargetActor, 0xFFFFFF81, 0x00000043, 0x00000002, SetBattleCamOffsetZ, 0x0000005F, 0x00000043, 0x00000002, SetBattleCamZoom, 0x0000003C, 0x00000043, 0x00000002, MoveBattleCamOver, 0x0000000F, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x0050000B, 0x00000008, 0x00000001, 0x0000001E, 0x00000043, 0x00000002, UseBattleCamPreset, 0x00000002, 0x00000043, 0x00000002, MoveBattleCamOver, 0x00000014, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x00500003, 0x00000008, 0x00000001, 0x0000000A, 0x00000043, 0x00000003, ActorExists, 0x00000201, 0xFE363C81, 0x0000000A, 0x00000002, 0xFE363C81, 0x00000000, 0x00000043, 0x00000003, PlaySoundAtActor, 0xFFFFFF81, 0x000003D9, 0x00000043, 0x00000003, SummonEnemy, D_80221EFC_6129AC, 0x00000000, 0x00000013, 0x00000000, 0x00000043, 0x00000003, ActorExists, 0x00000202, 0xFE363C81, 0x0000000A, 0x00000002, 0xFE363C81, 0x00000000, 0x00000043, 0x00000003, PlaySoundAtActor, 0xFFFFFF81, 0x000003D9, 0x00000043, 0x00000003, SummonEnemy, D_80221F18_6129C8, 0x00000000, 0x00000013, 0x00000000, 0x00000008, 0x00000001, 0x00000002, 0x00000043, 0x00000004, SetAnimation, 0xFFFFFF81, 0x00000001, 0x0050000C, 0x00000043, 0x00000001, dup_b_area_tik2_UnfadeBackgroundToBlack, 0x00000043, 0x00000003, EnableIdleScript, 0xFFFFFF81, 0xFFFFFFFF, 0x00000043, 0x00000003, UseIdleAnimation, 0xFFFFFF81, 0x00000001, 0x00000002, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 diff --git a/ver/us/asm/data/effects/363890.data.s b/ver/us/asm/data/effects/363890.data.s deleted file mode 100644 index a1f61c02fe..0000000000 --- a/ver/us/asm/data/effects/363890.data.s +++ /dev/null @@ -1,21 +0,0 @@ -.include "macro.inc" - -.section .data - -dlabel D_E0060730 -.word 0x090009E8, 0x09000A10 - -dlabel D_E0060738 -.word 0x09000900, 0x09000900 - -dlabel D_E0060740 -.double 0.3 - -dlabel D_E0060748 -.double 0.8 - -dlabel D_E0060750 -.double 0.2 - -dlabel D_E0060758 -.double 0.92 diff --git a/ver/us/asm/data/world/area_jan/jan_00/B25E90.data.s b/ver/us/asm/data/world/area_jan/jan_00/B25E90.data.s index e92e7928d8..09c368b001 100644 --- a/ver/us/asm/data/world/area_jan/jan_00/B25E90.data.s +++ b/ver/us/asm/data/world/area_jan/jan_00/B25E90.data.s @@ -2,29 +2,29 @@ .section .data -dlabel D_80245950_B25E90 +dlabel jan_00_unkAngle1 .word 0x00000000 -dlabel D_80245954_B25E94 +dlabel jan_00_unkAngle2 .word 0xFFFFFFFF -dlabel D_80245958_B25E98 +dlabel jan_00_unkAngle3 .word 0xFFFFFFFF dlabel D_8024595C_B25E9C -.word 0x00000043, 0x00000008, func_802416F8_B21C38, 0xFE363C8C, 0xFE363C80, 0x0000001E, 0x0000003C, 0x0000001E, 0x00000000, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000051, 0xFE363C80, 0x00000001, 0x00000000, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x0000004F, 0xFE363C80, 0xFFFFFFFF, 0x00000000, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 +.word 0x00000043, 0x00000008, jan_00_UnkFloatFunc001, 0xFE363C8C, 0xFE363C80, 0x0000001E, 0x0000003C, 0x0000001E, 0x00000000, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000051, 0xFE363C80, 0x00000001, 0x00000000, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x0000004F, 0xFE363C80, 0xFFFFFFFF, 0x00000000, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 dlabel D_802459D4_B25F14 -.word 0x00000043, 0x00000008, func_802416F8_B21C38, 0xFE363C8C, 0xFE363C80, 0x00000000, 0x0000001E, 0x0000001E, 0x00000001, 0x00000000, 0x00000026, 0x00000002, 0xFE363C81, 0xFE363C80, 0x0000002F, 0x00000002, 0xFE363C81, 0xF24A8680, 0x00000043, 0x00000006, RotateModel, 0x00000053, 0xFE363C80, 0x00000000, 0x00000000, 0x00000001, 0x00000043, 0x00000006, RotateGroup, 0x00000058, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000005, TranslateModel, 0x0000004B, 0xFFFFFFFB, 0xFFFFFFBC, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004D, 0xFFFFFFFB, 0xFFFFFFBC, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000051, 0x0000003C, 0x0000001D, 0xFFFFFFCD, 0x00000043, 0x00000005, TranslateModel, 0x0000004F, 0x0000003C, 0x0000001D, 0x00000033, 0x00000043, 0x00000006, RotateModel, 0x0000004B, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000006, RotateModel, 0x0000004D, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000006, RotateModel, 0x00000051, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000006, RotateModel, 0x0000004F, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000005, TranslateModel, 0x0000004B, 0x00000005, 0x00000044, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004D, 0x00000005, 0x00000044, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000051, 0xFFFFFFC4, 0xFFFFFFE3, 0x00000033, 0x00000043, 0x00000005, TranslateModel, 0x0000004F, 0xFFFFFFC4, 0xFFFFFFE3, 0xFFFFFFCD, 0x00000043, 0x00000008, func_802416F8_B21C38, 0xFE363C8C, 0xFE363C80, 0x00000000, 0xFFFFFFD8, 0x0000001E, 0x00000001, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000059, 0xFE363C80, 0x00000000, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 +.word 0x00000043, 0x00000008, jan_00_UnkFloatFunc001, 0xFE363C8C, 0xFE363C80, 0x00000000, 0x0000001E, 0x0000001E, 0x00000001, 0x00000000, 0x00000026, 0x00000002, 0xFE363C81, 0xFE363C80, 0x0000002F, 0x00000002, 0xFE363C81, 0xF24A8680, 0x00000043, 0x00000006, RotateModel, 0x00000053, 0xFE363C80, 0x00000000, 0x00000000, 0x00000001, 0x00000043, 0x00000006, RotateGroup, 0x00000058, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000005, TranslateModel, 0x0000004B, 0xFFFFFFFB, 0xFFFFFFBC, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004D, 0xFFFFFFFB, 0xFFFFFFBC, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000051, 0x0000003C, 0x0000001D, 0xFFFFFFCD, 0x00000043, 0x00000005, TranslateModel, 0x0000004F, 0x0000003C, 0x0000001D, 0x00000033, 0x00000043, 0x00000006, RotateModel, 0x0000004B, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000006, RotateModel, 0x0000004D, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000006, RotateModel, 0x00000051, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000006, RotateModel, 0x0000004F, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000005, TranslateModel, 0x0000004B, 0x00000005, 0x00000044, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004D, 0x00000005, 0x00000044, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000051, 0xFFFFFFC4, 0xFFFFFFE3, 0x00000033, 0x00000043, 0x00000005, TranslateModel, 0x0000004F, 0xFFFFFFC4, 0xFFFFFFE3, 0xFFFFFFCD, 0x00000043, 0x00000008, jan_00_UnkFloatFunc001, 0xFE363C8C, 0xFE363C80, 0x00000000, 0xFFFFFFD8, 0x0000001E, 0x00000001, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000059, 0xFE363C80, 0x00000000, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 dlabel D_80245C10_B26150 -.word 0x00000043, 0x00000008, func_802416F8_B21C38, 0xFE363C8C, 0xFE363C80, 0x00000000, 0xFFFFFFE2, 0x00000008, 0x00000001, 0x00000000, 0x0000002C, 0x00000002, 0xFE363C80, 0xF24AF280, 0x00000026, 0x00000002, 0xFE363C81, 0xFE363C80, 0x0000002F, 0x00000002, 0xFE363C81, 0xF24A8680, 0x00000043, 0x00000006, RotateModel, 0x00000053, 0xFE363C80, 0x00000000, 0x00000000, 0x00000001, 0x00000043, 0x00000006, RotateGroup, 0x00000058, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000005, TranslateModel, 0x0000004B, 0xFFFFFFFB, 0xFFFFFFBC, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004D, 0xFFFFFFFB, 0xFFFFFFBC, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000051, 0x0000003C, 0x0000001D, 0xFFFFFFCD, 0x00000043, 0x00000005, TranslateModel, 0x0000004F, 0x0000003C, 0x0000001D, 0x00000033, 0x00000043, 0x00000006, RotateModel, 0x0000004B, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000006, RotateModel, 0x0000004D, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000006, RotateModel, 0x00000051, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000006, RotateModel, 0x0000004F, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000005, TranslateModel, 0x0000004B, 0x00000005, 0x00000044, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004D, 0x00000005, 0x00000044, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000051, 0xFFFFFFC4, 0xFFFFFFE3, 0x00000033, 0x00000043, 0x00000005, TranslateModel, 0x0000004F, 0xFFFFFFC4, 0xFFFFFFE3, 0xFFFFFFCD, 0x00000043, 0x00000008, func_802416F8_B21C38, 0xFE363C8C, 0xFE363C80, 0x00000000, 0xFFFFFFD8, 0x00000078, 0x00000001, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000059, 0xFE363C80, 0x00000000, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 +.word 0x00000043, 0x00000008, jan_00_UnkFloatFunc001, 0xFE363C8C, 0xFE363C80, 0x00000000, 0xFFFFFFE2, 0x00000008, 0x00000001, 0x00000000, 0x0000002C, 0x00000002, 0xFE363C80, 0xF24AF280, 0x00000026, 0x00000002, 0xFE363C81, 0xFE363C80, 0x0000002F, 0x00000002, 0xFE363C81, 0xF24A8680, 0x00000043, 0x00000006, RotateModel, 0x00000053, 0xFE363C80, 0x00000000, 0x00000000, 0x00000001, 0x00000043, 0x00000006, RotateGroup, 0x00000058, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000005, TranslateModel, 0x0000004B, 0xFFFFFFFB, 0xFFFFFFBC, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004D, 0xFFFFFFFB, 0xFFFFFFBC, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000051, 0x0000003C, 0x0000001D, 0xFFFFFFCD, 0x00000043, 0x00000005, TranslateModel, 0x0000004F, 0x0000003C, 0x0000001D, 0x00000033, 0x00000043, 0x00000006, RotateModel, 0x0000004B, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000006, RotateModel, 0x0000004D, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000006, RotateModel, 0x00000051, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000006, RotateModel, 0x0000004F, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000005, TranslateModel, 0x0000004B, 0x00000005, 0x00000044, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004D, 0x00000005, 0x00000044, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000051, 0xFFFFFFC4, 0xFFFFFFE3, 0x00000033, 0x00000043, 0x00000005, TranslateModel, 0x0000004F, 0xFFFFFFC4, 0xFFFFFFE3, 0xFFFFFFCD, 0x00000043, 0x00000008, jan_00_UnkFloatFunc001, 0xFE363C8C, 0xFE363C80, 0x00000000, 0xFFFFFFD8, 0x00000078, 0x00000001, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000059, 0xFE363C80, 0x00000000, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 dlabel D_80245E5C_B2639C .word 0x00000002, 0x00000000, 0x00000001, 0x00000000 dlabel D_80245E6C_B263AC -.word 0x00000024, 0x00000002, 0xFE363C81, 0xFE363C8C, 0x0000002B, 0x00000002, 0xFE363C81, 0x00000004, 0x0000000A, 0x00000002, 0xFE363C81, 0x00000000, 0x00000043, 0x00000001, func_80241868_B21DA8, 0x00000043, 0x0000000F, PlayEffect, 0x00000018, 0x00000002, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000000, 0xFFFFFFFF, 0x00000000, 0x00000005, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000013, 0x00000000, 0x00000043, 0x00000008, func_802416F8_B21C38, 0xFE363C8C, 0xFE363C80, 0x0000001E, 0x0000003C, 0x0000001E, 0x00000000, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000051, 0xFE363C80, 0x00000001, 0x00000000, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x0000004F, 0xFE363C80, 0xFFFFFFFF, 0x00000000, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 +.word 0x00000024, 0x00000002, 0xFE363C81, 0xFE363C8C, 0x0000002B, 0x00000002, 0xFE363C81, 0x00000004, 0x0000000A, 0x00000002, 0xFE363C81, 0x00000000, 0x00000043, 0x00000001, func_80241868_B21DA8, 0x00000043, 0x0000000F, PlayEffect, 0x00000018, 0x00000002, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000000, 0xFFFFFFFF, 0x00000000, 0x00000005, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000013, 0x00000000, 0x00000043, 0x00000008, jan_00_UnkFloatFunc001, 0xFE363C8C, 0xFE363C80, 0x0000001E, 0x0000003C, 0x0000001E, 0x00000000, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000051, 0xFE363C80, 0x00000001, 0x00000000, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x0000004F, 0xFE363C80, 0xFFFFFFFF, 0x00000000, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 dlabel D_80245F6C_B264AC .word 0x00000002, 0x00000000, 0x00000001, 0x00000000 @@ -33,16 +33,16 @@ dlabel D_80245F7C_B264BC .word 0x0000000F, 0x00000002, 0xFE363C8C, 0x00000000, 0x0000000E, 0x00000002, 0xFE363C8C, 0x00000002, 0x00000043, 0x00000003, EnableModel, 0x0000004B, 0x00000000, 0x00000043, 0x00000003, EnableModel, 0x0000004D, 0x00000001, 0x00000002, 0x00000000, 0x00000013, 0x00000000, 0x00000013, 0x00000000, 0x0000000A, 0x00000002, 0xFE363C8C, 0x0000000F, 0x00000043, 0x00000003, EnableModel, 0x0000004B, 0x00000000, 0x00000043, 0x00000003, EnableModel, 0x0000004D, 0x00000001, 0x00000002, 0x00000000, 0x00000013, 0x00000000, 0x0000000A, 0x00000002, 0xFE363C8C, 0x00000016, 0x00000043, 0x00000003, EnableModel, 0x0000004B, 0x00000000, 0x00000043, 0x00000003, EnableModel, 0x0000004D, 0x00000001, 0x00000002, 0x00000000, 0x00000013, 0x00000000, 0x00000043, 0x00000003, EnableModel, 0x0000004B, 0x00000001, 0x00000043, 0x00000003, EnableModel, 0x0000004D, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 dlabel D_802460A4_B265E4 -.word 0x00000024, 0x00000002, 0xFE363C80, 0xFE363C8C, 0x0000002A, 0x00000002, 0xFE363C80, 0x00000014, 0x0000002B, 0x00000002, 0xFE363C80, 0x00000002, 0x0000000A, 0x00000002, 0xFE363C80, 0x00000000, 0x00000002, 0x00000000, 0x00000013, 0x00000000, 0x00000043, 0x00000008, func_802416F8_B21C38, 0xFE363C8C, 0xFE363C80, 0xF24A7680, 0xF24A7E80, 0x00000003, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000053, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateGroup, 0x00000058, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004B, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004D, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000051, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004F, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000051, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004F, 0xFE363C80, 0x00000000, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 +.word 0x00000024, 0x00000002, 0xFE363C80, 0xFE363C8C, 0x0000002A, 0x00000002, 0xFE363C80, 0x00000014, 0x0000002B, 0x00000002, 0xFE363C80, 0x00000002, 0x0000000A, 0x00000002, 0xFE363C80, 0x00000000, 0x00000002, 0x00000000, 0x00000013, 0x00000000, 0x00000043, 0x00000008, jan_00_UnkFloatFunc001, 0xFE363C8C, 0xFE363C80, 0xF24A7680, 0xF24A7E80, 0x00000003, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000053, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateGroup, 0x00000058, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004B, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004D, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000051, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004F, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000051, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004F, 0xFE363C80, 0x00000000, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 dlabel D_8024620C_B2674C -.word 0x00000043, 0x00000008, func_802416F8_B21C38, 0xFE363C8C, 0xFE363C80, 0xF24A6280, 0xF24A9280, 0x00000003, 0x00000000, 0x00000000, 0x00000043, 0x00000008, func_802416F8_B21C38, 0xFE363C8C, 0xFE363C81, 0xF24A9280, 0xF24A6280, 0x00000002, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000053, 0xFE363C80, 0xFE363C81, 0x00000000, 0x00000043, 0x00000005, TranslateGroup, 0x00000058, 0xFE363C80, 0xFE363C81, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004B, 0xFE363C80, 0xFE363C81, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004D, 0xFE363C80, 0xFE363C81, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000051, 0xFE363C80, 0xFE363C81, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004F, 0xFE363C80, 0xFE363C81, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000051, 0xFE363C80, 0xFE363C81, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004F, 0xFE363C80, 0xFE363C81, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 +.word 0x00000043, 0x00000008, jan_00_UnkFloatFunc001, 0xFE363C8C, 0xFE363C80, 0xF24A6280, 0xF24A9280, 0x00000003, 0x00000000, 0x00000000, 0x00000043, 0x00000008, jan_00_UnkFloatFunc001, 0xFE363C8C, 0xFE363C81, 0xF24A9280, 0xF24A6280, 0x00000002, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000053, 0xFE363C80, 0xFE363C81, 0x00000000, 0x00000043, 0x00000005, TranslateGroup, 0x00000058, 0xFE363C80, 0xFE363C81, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004B, 0xFE363C80, 0xFE363C81, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004D, 0xFE363C80, 0xFE363C81, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000051, 0xFE363C80, 0xFE363C81, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004F, 0xFE363C80, 0xFE363C81, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000051, 0xFE363C80, 0xFE363C81, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004F, 0xFE363C80, 0xFE363C81, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 dlabel D_8024634C_B2688C -.word 0x00000024, 0x00000002, 0xFE363C80, 0xFE363C8C, 0x0000002A, 0x00000002, 0xFE363C80, 0x00000014, 0x0000002B, 0x00000002, 0xFE363C80, 0x00000002, 0x0000000A, 0x00000002, 0xFE363C80, 0x00000000, 0x00000002, 0x00000000, 0x00000013, 0x00000000, 0x00000043, 0x00000008, func_802416F8_B21C38, 0xFE363C8C, 0xFE363C80, 0xF24A7680, 0xF24A7E80, 0x00000003, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000053, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateGroup, 0x00000058, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004B, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004D, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000051, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004F, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000051, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004F, 0xFE363C80, 0x00000000, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 +.word 0x00000024, 0x00000002, 0xFE363C80, 0xFE363C8C, 0x0000002A, 0x00000002, 0xFE363C80, 0x00000014, 0x0000002B, 0x00000002, 0xFE363C80, 0x00000002, 0x0000000A, 0x00000002, 0xFE363C80, 0x00000000, 0x00000002, 0x00000000, 0x00000013, 0x00000000, 0x00000043, 0x00000008, jan_00_UnkFloatFunc001, 0xFE363C8C, 0xFE363C80, 0xF24A7680, 0xF24A7E80, 0x00000003, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000053, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateGroup, 0x00000058, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004B, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004D, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000051, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004F, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000051, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004F, 0xFE363C80, 0x00000000, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 dlabel D_802464B4_B269F4 -.word 0x00000043, 0x00000008, func_802416F8_B21C38, 0xFE363C8C, 0xFE363C80, 0x0000001E, 0x0000003C, 0x0000001E, 0x00000000, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000051, 0xFE363C80, 0x00000001, 0x00000000, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x0000004F, 0xFE363C80, 0xFFFFFFFF, 0x00000000, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 +.word 0x00000043, 0x00000008, jan_00_UnkFloatFunc001, 0xFE363C8C, 0xFE363C80, 0x0000001E, 0x0000003C, 0x0000001E, 0x00000000, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000051, 0xFE363C80, 0x00000001, 0x00000000, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x0000004F, 0xFE363C80, 0xFFFFFFFF, 0x00000000, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 dlabel D_8024652C_B26A6C -.word 0x00000043, 0x00000008, func_802416F8_B21C38, 0xFE363C8C, 0xFE363C80, 0x00000000, 0x00000008, 0x00000003, 0x00000000, 0x00000000, 0x00000024, 0x00000002, 0xFE363C81, 0xFE363C80, 0x0000002A, 0x00000002, 0xFE363C81, 0x00000003, 0x00000043, 0x00000006, RotateModel, 0x00000053, 0xFE363C80, 0x00000000, 0x00000000, 0x00000001, 0x00000043, 0x00000006, RotateGroup, 0x00000058, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000005, TranslateModel, 0x0000004B, 0xFFFFFFFB, 0xFFFFFFBC, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004D, 0xFFFFFFFB, 0xFFFFFFBC, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000051, 0x0000003C, 0x0000001D, 0xFFFFFFCD, 0x00000043, 0x00000005, TranslateModel, 0x0000004F, 0x0000003C, 0x0000001D, 0x00000033, 0x00000043, 0x00000006, RotateModel, 0x0000004B, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000006, RotateModel, 0x0000004D, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000006, RotateModel, 0x00000051, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000006, RotateModel, 0x0000004F, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000005, TranslateModel, 0x0000004B, 0x00000005, 0x00000044, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004D, 0x00000005, 0x00000044, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000051, 0xFFFFFFC4, 0xFFFFFFE3, 0x00000033, 0x00000043, 0x00000005, TranslateModel, 0x0000004F, 0xFFFFFFC4, 0xFFFFFFE3, 0xFFFFFFCD, 0x00000024, 0x00000002, 0xFE363C80, 0xFE363C8C, 0x00000029, 0x00000002, 0xFE363C80, 0x00000002, 0x00000043, 0x00000008, func_802416F8_B21C38, 0xFE363C80, 0xFE363C80, 0x0000001E, 0x0000003C, 0x00000003, 0x00000000, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000051, 0xFE363C80, 0x00000001, 0x00000000, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x0000004F, 0xFE363C80, 0xFFFFFFFF, 0x00000000, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x0000004D, 0x00000001, 0x00000000, 0x00000043, 0x00000004, MakeLocalVertexCopy, 0x00000001, 0x00000056, 0x00000001, 0x00000043, 0x00000004, SetCustomGfxBuilders, 0x00000001, func_802415B0_B21AF0, 0x00000000, 0x00000043, 0x00000004, SetModelCustomGfx, 0x00000056, 0x00000001, 0xFFFFFFFF, 0x00000043, 0x00000004, MakeLocalVertexCopy, 0x00000002, 0x00000055, 0x00000001, 0x00000043, 0x00000004, SetCustomGfxBuilders, 0x00000002, func_80241654_B21B94, 0x00000000, 0x00000043, 0x00000004, SetModelCustomGfx, 0x00000055, 0x00000002, 0xFFFFFFFF, 0x00000056, 0x00000000, 0x00000003, 0x00000001, 0x00000000, 0x00000043, 0x00000005, func_802411EC_B2172C, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x0000002D, 0x00000002, 0xFE363C80, 0xFFFFFFB0, 0x0000002D, 0x00000002, 0xFE363C81, 0xFFFFFFEE, 0x0000002D, 0x00000002, 0xFE363C82, 0x000001A4, 0x0000002C, 0x00000002, 0xFE363C80, 0x00000037, 0x0000002C, 0x00000002, 0xFE363C81, 0xFFFFFFEC, 0x0000002C, 0x00000002, 0xFE363C82, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000059, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000005, TranslateModel, 0x0000004B, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000005, TranslateModel, 0x0000004D, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000005, TranslateModel, 0x00000053, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000005, TranslateModel, 0x00000051, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000005, TranslateModel, 0x0000004F, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000005, TranslateGroup, 0x00000058, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000003, GetNpcYaw, 0x00000000, 0xFE363C80, 0x0000002E, 0x00000002, 0xFE363C80, 0xFFFFFFFF, 0x0000002C, 0x00000002, 0xFE363C80, 0xFFFFFFA6, 0x00000043, 0x00000005, TranslateModel, 0x00000059, 0xFFFFFF9C, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004B, 0xFFFFFF9C, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004D, 0xFFFFFF9C, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000053, 0xFFFFFF9C, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000051, 0xFFFFFF9C, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004F, 0xFFFFFF9C, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateGroup, 0x00000058, 0xFFFFFF9C, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000059, 0x00000064, 0xFFFFFFFF, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004B, 0xFFFFFFFB, 0xFFFFFFBC, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004D, 0xFFFFFFFB, 0xFFFFFFBC, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000053, 0x00000066, 0x00000004, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000051, 0x0000003C, 0x0000001D, 0xFFFFFFCD, 0x00000043, 0x00000005, TranslateModel, 0x0000004F, 0x0000003C, 0x0000001D, 0x00000033, 0x00000043, 0x00000006, RotateModel, 0x00000059, 0xFE363C80, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x0000004B, 0xFE363C80, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x0000004D, 0xFE363C80, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000053, 0xFE363C80, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000051, 0xFE363C80, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x0000004F, 0xFE363C80, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000006, RotateGroup, 0x00000058, 0xFE363C80, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000059, 0xFFFFFF9C, 0x00000001, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004B, 0x00000005, 0x00000044, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004D, 0x00000005, 0x00000044, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000053, 0xFFFFFF9A, 0xFFFFFFFC, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000051, 0xFFFFFFC4, 0xFFFFFFE3, 0x00000033, 0x00000043, 0x00000005, TranslateModel, 0x0000004F, 0xFFFFFFC4, 0xFFFFFFE3, 0xFFFFFFCD, 0x00000043, 0x00000005, TranslateModel, 0x00000059, 0x00000064, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004B, 0x00000064, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004D, 0x00000064, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000053, 0x00000064, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000051, 0x00000064, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004F, 0x00000064, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateGroup, 0x00000058, 0x00000064, 0x00000000, 0x00000000, 0x00000043, 0x00000003, GetNpcAnimation, 0x00000000, 0xFE363C80, 0x0000000B, 0x00000002, 0xFE363C80, 0xFE363C8B, 0x00000024, 0x00000002, 0xFE363C8B, 0xFE363C80, 0x00000024, 0x00000002, 0xFE363C8C, 0x00000000, 0x00000043, 0x00000003, EnableModel, 0x0000004B, 0x00000001, 0x00000043, 0x00000003, EnableModel, 0x0000004D, 0x00000000, 0x00000014, 0x00000001, 0xFE363C8B, 0x00000016, 0x00000001, 0x00B60003, 0x00000024, 0x00000002, 0xFE363C8D, D_80245C10_B26150, 0x00000016, 0x00000001, 0x00B60000, 0x00000024, 0x00000002, 0xFE363C8D, D_8024595C_B25E9C, 0x00000016, 0x00000001, 0x00B60002, 0x00000024, 0x00000002, 0xFE363C8D, D_802459D4_B25F14, 0x00000016, 0x00000001, 0x00B60001, 0x00000024, 0x00000002, 0xFE363C8D, D_802464B4_B269F4, 0x00000016, 0x00000001, 0x00B60004, 0x00000024, 0x00000002, 0xFE363C8D, D_8024652C_B26A6C, 0x00000016, 0x00000001, 0x00B60005, 0x00000024, 0x00000002, 0xFE363C8D, D_80245E5C_B2639C, 0x00000043, 0x00000003, EnableModel, 0x0000004B, 0x00000000, 0x00000043, 0x00000003, EnableModel, 0x0000004D, 0x00000000, 0x00000016, 0x00000001, 0x00B60006, 0x00000024, 0x00000002, 0xFE363C8D, D_802460A4_B265E4, 0x00000043, 0x00000003, EnableModel, 0x0000004B, 0x00000000, 0x00000043, 0x00000003, EnableModel, 0x0000004D, 0x00000000, 0x00000016, 0x00000001, 0x00B60007, 0x00000024, 0x00000002, 0xFE363C8D, D_8024620C_B2674C, 0x00000043, 0x00000003, EnableModel, 0x0000004B, 0x00000000, 0x00000043, 0x00000003, EnableModel, 0x0000004D, 0x00000000, 0x00000016, 0x00000001, 0x00B60008, 0x00000024, 0x00000002, 0xFE363C8D, D_8024634C_B2688C, 0x00000016, 0x00000001, 0x00B60009, 0x00000024, 0x00000002, 0xFE363C8D, D_80245E6C_B263AC, 0x00000016, 0x00000001, 0x00B6000A, 0x00000024, 0x00000002, 0xFE363C8D, D_80245F6C_B264AC, 0x00000016, 0x00000001, 0x00B6000C, 0x00000024, 0x00000002, 0xFE363C8D, D_80245F7C_B264BC, 0x00000023, 0x00000000, 0x00000013, 0x00000000, 0x00000046, 0x00000001, 0xFE363C8D, 0x00000027, 0x00000002, 0xFE363C8C, 0x00000001, 0x0000000D, 0x00000002, 0xFE363C8C, 0x000003E8, 0x00000024, 0x00000002, 0xFE363C8C, 0x00000000, 0x00000013, 0x00000000, 0x00000004, 0x00000001, 0x00000000, 0x00000057, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000003, SetNpcAnimation, 0x00000000, 0x00B60003, 0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000000 +.word 0x00000043, 0x00000008, jan_00_UnkFloatFunc001, 0xFE363C8C, 0xFE363C80, 0x00000000, 0x00000008, 0x00000003, 0x00000000, 0x00000000, 0x00000024, 0x00000002, 0xFE363C81, 0xFE363C80, 0x0000002A, 0x00000002, 0xFE363C81, 0x00000003, 0x00000043, 0x00000006, RotateModel, 0x00000053, 0xFE363C80, 0x00000000, 0x00000000, 0x00000001, 0x00000043, 0x00000006, RotateGroup, 0x00000058, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000005, TranslateModel, 0x0000004B, 0xFFFFFFFB, 0xFFFFFFBC, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004D, 0xFFFFFFFB, 0xFFFFFFBC, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000051, 0x0000003C, 0x0000001D, 0xFFFFFFCD, 0x00000043, 0x00000005, TranslateModel, 0x0000004F, 0x0000003C, 0x0000001D, 0x00000033, 0x00000043, 0x00000006, RotateModel, 0x0000004B, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000006, RotateModel, 0x0000004D, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000006, RotateModel, 0x00000051, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000006, RotateModel, 0x0000004F, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000005, TranslateModel, 0x0000004B, 0x00000005, 0x00000044, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004D, 0x00000005, 0x00000044, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000051, 0xFFFFFFC4, 0xFFFFFFE3, 0x00000033, 0x00000043, 0x00000005, TranslateModel, 0x0000004F, 0xFFFFFFC4, 0xFFFFFFE3, 0xFFFFFFCD, 0x00000024, 0x00000002, 0xFE363C80, 0xFE363C8C, 0x00000029, 0x00000002, 0xFE363C80, 0x00000002, 0x00000043, 0x00000008, jan_00_UnkFloatFunc001, 0xFE363C80, 0xFE363C80, 0x0000001E, 0x0000003C, 0x00000003, 0x00000000, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000051, 0xFE363C80, 0x00000001, 0x00000000, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x0000004F, 0xFE363C80, 0xFFFFFFFF, 0x00000000, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x0000004D, 0x00000001, 0x00000000, 0x00000043, 0x00000004, MakeLocalVertexCopy, 0x00000001, 0x00000056, 0x00000001, 0x00000043, 0x00000004, SetCustomGfxBuilders, 0x00000001, jan_00_unkAngleFunc002, 0x00000000, 0x00000043, 0x00000004, SetModelCustomGfx, 0x00000056, 0x00000001, 0xFFFFFFFF, 0x00000043, 0x00000004, MakeLocalVertexCopy, 0x00000002, 0x00000055, 0x00000001, 0x00000043, 0x00000004, SetCustomGfxBuilders, 0x00000002, jan_00_unkAngleFunc003, 0x00000000, 0x00000043, 0x00000004, SetModelCustomGfx, 0x00000055, 0x00000002, 0xFFFFFFFF, 0x00000056, 0x00000000, 0x00000003, 0x00000001, 0x00000000, 0x00000043, 0x00000005, jan_00_UnkAngleFunc001, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x0000002D, 0x00000002, 0xFE363C80, 0xFFFFFFB0, 0x0000002D, 0x00000002, 0xFE363C81, 0xFFFFFFEE, 0x0000002D, 0x00000002, 0xFE363C82, 0x000001A4, 0x0000002C, 0x00000002, 0xFE363C80, 0x00000037, 0x0000002C, 0x00000002, 0xFE363C81, 0xFFFFFFEC, 0x0000002C, 0x00000002, 0xFE363C82, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000059, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000005, TranslateModel, 0x0000004B, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000005, TranslateModel, 0x0000004D, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000005, TranslateModel, 0x00000053, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000005, TranslateModel, 0x00000051, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000005, TranslateModel, 0x0000004F, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000005, TranslateGroup, 0x00000058, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000003, GetNpcYaw, 0x00000000, 0xFE363C80, 0x0000002E, 0x00000002, 0xFE363C80, 0xFFFFFFFF, 0x0000002C, 0x00000002, 0xFE363C80, 0xFFFFFFA6, 0x00000043, 0x00000005, TranslateModel, 0x00000059, 0xFFFFFF9C, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004B, 0xFFFFFF9C, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004D, 0xFFFFFF9C, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000053, 0xFFFFFF9C, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000051, 0xFFFFFF9C, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004F, 0xFFFFFF9C, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateGroup, 0x00000058, 0xFFFFFF9C, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000059, 0x00000064, 0xFFFFFFFF, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004B, 0xFFFFFFFB, 0xFFFFFFBC, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004D, 0xFFFFFFFB, 0xFFFFFFBC, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000053, 0x00000066, 0x00000004, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000051, 0x0000003C, 0x0000001D, 0xFFFFFFCD, 0x00000043, 0x00000005, TranslateModel, 0x0000004F, 0x0000003C, 0x0000001D, 0x00000033, 0x00000043, 0x00000006, RotateModel, 0x00000059, 0xFE363C80, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x0000004B, 0xFE363C80, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x0000004D, 0xFE363C80, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000053, 0xFE363C80, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000051, 0xFE363C80, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x0000004F, 0xFE363C80, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000006, RotateGroup, 0x00000058, 0xFE363C80, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000059, 0xFFFFFF9C, 0x00000001, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004B, 0x00000005, 0x00000044, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004D, 0x00000005, 0x00000044, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000053, 0xFFFFFF9A, 0xFFFFFFFC, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000051, 0xFFFFFFC4, 0xFFFFFFE3, 0x00000033, 0x00000043, 0x00000005, TranslateModel, 0x0000004F, 0xFFFFFFC4, 0xFFFFFFE3, 0xFFFFFFCD, 0x00000043, 0x00000005, TranslateModel, 0x00000059, 0x00000064, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004B, 0x00000064, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004D, 0x00000064, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000053, 0x00000064, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000051, 0x00000064, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000004F, 0x00000064, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateGroup, 0x00000058, 0x00000064, 0x00000000, 0x00000000, 0x00000043, 0x00000003, GetNpcAnimation, 0x00000000, 0xFE363C80, 0x0000000B, 0x00000002, 0xFE363C80, 0xFE363C8B, 0x00000024, 0x00000002, 0xFE363C8B, 0xFE363C80, 0x00000024, 0x00000002, 0xFE363C8C, 0x00000000, 0x00000043, 0x00000003, EnableModel, 0x0000004B, 0x00000001, 0x00000043, 0x00000003, EnableModel, 0x0000004D, 0x00000000, 0x00000014, 0x00000001, 0xFE363C8B, 0x00000016, 0x00000001, 0x00B60003, 0x00000024, 0x00000002, 0xFE363C8D, D_80245C10_B26150, 0x00000016, 0x00000001, 0x00B60000, 0x00000024, 0x00000002, 0xFE363C8D, D_8024595C_B25E9C, 0x00000016, 0x00000001, 0x00B60002, 0x00000024, 0x00000002, 0xFE363C8D, D_802459D4_B25F14, 0x00000016, 0x00000001, 0x00B60001, 0x00000024, 0x00000002, 0xFE363C8D, D_802464B4_B269F4, 0x00000016, 0x00000001, 0x00B60004, 0x00000024, 0x00000002, 0xFE363C8D, D_8024652C_B26A6C, 0x00000016, 0x00000001, 0x00B60005, 0x00000024, 0x00000002, 0xFE363C8D, D_80245E5C_B2639C, 0x00000043, 0x00000003, EnableModel, 0x0000004B, 0x00000000, 0x00000043, 0x00000003, EnableModel, 0x0000004D, 0x00000000, 0x00000016, 0x00000001, 0x00B60006, 0x00000024, 0x00000002, 0xFE363C8D, D_802460A4_B265E4, 0x00000043, 0x00000003, EnableModel, 0x0000004B, 0x00000000, 0x00000043, 0x00000003, EnableModel, 0x0000004D, 0x00000000, 0x00000016, 0x00000001, 0x00B60007, 0x00000024, 0x00000002, 0xFE363C8D, D_8024620C_B2674C, 0x00000043, 0x00000003, EnableModel, 0x0000004B, 0x00000000, 0x00000043, 0x00000003, EnableModel, 0x0000004D, 0x00000000, 0x00000016, 0x00000001, 0x00B60008, 0x00000024, 0x00000002, 0xFE363C8D, D_8024634C_B2688C, 0x00000016, 0x00000001, 0x00B60009, 0x00000024, 0x00000002, 0xFE363C8D, D_80245E6C_B263AC, 0x00000016, 0x00000001, 0x00B6000A, 0x00000024, 0x00000002, 0xFE363C8D, D_80245F6C_B264AC, 0x00000016, 0x00000001, 0x00B6000C, 0x00000024, 0x00000002, 0xFE363C8D, D_80245F7C_B264BC, 0x00000023, 0x00000000, 0x00000013, 0x00000000, 0x00000046, 0x00000001, 0xFE363C8D, 0x00000027, 0x00000002, 0xFE363C8C, 0x00000001, 0x0000000D, 0x00000002, 0xFE363C8C, 0x000003E8, 0x00000024, 0x00000002, 0xFE363C8C, 0x00000000, 0x00000013, 0x00000000, 0x00000004, 0x00000001, 0x00000000, 0x00000057, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000003, SetNpcAnimation, 0x00000000, 0x00B60003, 0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000000 diff --git a/ver/us/asm/data/world/area_kmr/kmr_02/8B5640.data.s b/ver/us/asm/data/world/area_kmr/kmr_02/8B5640.data.s index f79f7d28a9..acad759a40 100644 --- a/ver/us/asm/data/world/area_kmr/kmr_02/8B5640.data.s +++ b/ver/us/asm/data/world/area_kmr/kmr_02/8B5640.data.s @@ -261,7 +261,7 @@ dlabel D_8024D134_8BD1A4 .word 0x00000043, 0x00000003, BindNpcIdle, 0xFFFFFFFF, D_8024CDAC_8BCE1C, 0x00000043, 0x00000003, BindNpcInteract, 0xFFFFFFFF, D_8024CE80_8BCEF0, 0x00000002, 0x00000000, 0x00000001, 0x00000000 dlabel D_8024D16C_8BD1DC -.word 0x00000043, 0x00000005, GetNpcPos, 0x00000007, 0xFE363C86, 0xFE363C87, 0xFE363C88, 0x00000003, 0x00000001, 0x00000000, 0x00000043, 0x00000001, func_80242860_8B28D0, 0x00000043, 0x00000005, GetNpcPos, 0x00000007, 0xFE363C89, 0xFE363C8A, 0xFE363C8B, 0x00000024, 0x00000002, 0xFE363C83, 0xFE363C89, 0x00000024, 0x00000002, 0xFE363C84, 0xFE363C8A, 0x00000024, 0x00000002, 0xFE363C85, 0xFE363C8B, 0x0000002D, 0x00000002, 0xFE363C83, 0xFE363C86, 0x0000002D, 0x00000002, 0xFE363C84, 0xFE363C87, 0x0000002D, 0x00000002, 0xFE363C85, 0xFE363C88, 0x00000026, 0x00000002, 0xFE363C86, 0xFE363C89, 0x00000026, 0x00000002, 0xFE363C87, 0xFE363C8A, 0x00000026, 0x00000002, 0xFE363C88, 0xFE363C8B, 0x0000000B, 0x00000002, 0xFE363C83, 0x00000000, 0x0000000B, 0x00000002, 0xFE363C85, 0x00000000, 0x00000043, 0x0000000F, PlayEffect, 0x0000001F, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0xFE363C83, 0xFE363C84, 0xFE363C85, 0xF24A7E80, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000013, 0x00000000, 0x00000013, 0x00000000, 0x00000008, 0x00000001, 0x00000003, 0x00000004, 0x00000001, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 +.word 0x00000043, 0x00000005, GetNpcPos, 0x00000007, 0xFE363C86, 0xFE363C87, 0xFE363C88, 0x00000003, 0x00000001, 0x00000000, 0x00000043, 0x00000001, kmr_02_UnkNpcPosFunc, 0x00000043, 0x00000005, GetNpcPos, 0x00000007, 0xFE363C89, 0xFE363C8A, 0xFE363C8B, 0x00000024, 0x00000002, 0xFE363C83, 0xFE363C89, 0x00000024, 0x00000002, 0xFE363C84, 0xFE363C8A, 0x00000024, 0x00000002, 0xFE363C85, 0xFE363C8B, 0x0000002D, 0x00000002, 0xFE363C83, 0xFE363C86, 0x0000002D, 0x00000002, 0xFE363C84, 0xFE363C87, 0x0000002D, 0x00000002, 0xFE363C85, 0xFE363C88, 0x00000026, 0x00000002, 0xFE363C86, 0xFE363C89, 0x00000026, 0x00000002, 0xFE363C87, 0xFE363C8A, 0x00000026, 0x00000002, 0xFE363C88, 0xFE363C8B, 0x0000000B, 0x00000002, 0xFE363C83, 0x00000000, 0x0000000B, 0x00000002, 0xFE363C85, 0x00000000, 0x00000043, 0x0000000F, PlayEffect, 0x0000001F, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0xFE363C83, 0xFE363C84, 0xFE363C85, 0xF24A7E80, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000013, 0x00000000, 0x00000013, 0x00000000, 0x00000008, 0x00000001, 0x00000003, 0x00000004, 0x00000001, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 dlabel D_8024D2E8_8BD358 .word 0x00000001, 0x00000002, 0x00000003, 0x00000002, 0x00000001, 0xFFFFFFFF, 0xFFFFFFFE, 0xFFFFFFFD, 0xFFFFFFFE, 0xFFFFFFFF diff --git a/ver/us/asm/data/world/area_kmr/kmr_11/8DE400.data.s b/ver/us/asm/data/world/area_kmr/kmr_11/8DE400.data.s index 4e393acfad..c91b8587f6 100644 --- a/ver/us/asm/data/world/area_kmr/kmr_11/8DE400.data.s +++ b/ver/us/asm/data/world/area_kmr/kmr_11/8DE400.data.s @@ -36,7 +36,7 @@ dlabel D_80244CF4_8DEDF4 .word 0x0000000F, 0x00000002, 0xF5DE0180, 0xFFFFFF94, 0x00000043, 0x00000002, RemoveNpc, 0xFFFFFFFF, 0x00000013, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 dlabel D_80244D2C_8DEE2C -.word 0x00000003, 0x00000001, 0x00000001, 0x00000043, 0x00000003, GetSelfVar, 0x00000000, 0xFE363C80, 0x00000008, 0x00000001, 0x00000001, 0x0000000A, 0x00000002, 0xFE363C80, 0x00000000, 0x00000004, 0x00000001, 0x00000001, 0x00000013, 0x00000000, 0x00000043, 0x00000005, GetNpcPos, 0x00000004, 0xFE363C86, 0xFE363C87, 0xFE363C88, 0x00000003, 0x00000001, 0x00000000, 0x00000043, 0x00000001, func_80240DDC_8DAEDC, 0x00000043, 0x00000005, GetNpcPos, 0x00000004, 0xFE363C89, 0xFE363C8A, 0xFE363C8B, 0x00000024, 0x00000002, 0xFE363C83, 0xFE363C89, 0x00000024, 0x00000002, 0xFE363C84, 0xFE363C8A, 0x00000024, 0x00000002, 0xFE363C85, 0xFE363C8B, 0x00000028, 0x00000002, 0xFE363C83, 0xFE363C86, 0x00000028, 0x00000002, 0xFE363C84, 0xFE363C87, 0x00000028, 0x00000002, 0xFE363C85, 0xFE363C88, 0x00000024, 0x00000002, 0xFE363C86, 0xFE363C89, 0x00000024, 0x00000002, 0xFE363C87, 0xFE363C8A, 0x00000024, 0x00000002, 0xFE363C88, 0xFE363C8B, 0x0000000A, 0x00000002, 0xFE363C83, 0x00000000, 0x0000000A, 0x00000002, 0xFE363C85, 0x00000000, 0x00000012, 0x00000000, 0x00000043, 0x0000000F, PlayEffect, 0x0000001F, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0xFE363C83, 0xFE363C84, 0xFE363C85, 0xF24A7E80, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000013, 0x00000000, 0x00000012, 0x00000000, 0x00000043, 0x0000000F, PlayEffect, 0x0000001F, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0xFE363C83, 0xFE363C84, 0xFE363C85, 0xF24A7E80, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000013, 0x00000000, 0x00000008, 0x00000001, 0x00000003, 0x00000004, 0x00000001, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 +.word 0x00000003, 0x00000001, 0x00000001, 0x00000043, 0x00000003, GetSelfVar, 0x00000000, 0xFE363C80, 0x00000008, 0x00000001, 0x00000001, 0x0000000A, 0x00000002, 0xFE363C80, 0x00000000, 0x00000004, 0x00000001, 0x00000001, 0x00000013, 0x00000000, 0x00000043, 0x00000005, GetNpcPos, 0x00000004, 0xFE363C86, 0xFE363C87, 0xFE363C88, 0x00000003, 0x00000001, 0x00000000, 0x00000043, 0x00000001, kmr_11_UnkNpcPosFunc, 0x00000043, 0x00000005, GetNpcPos, 0x00000004, 0xFE363C89, 0xFE363C8A, 0xFE363C8B, 0x00000024, 0x00000002, 0xFE363C83, 0xFE363C89, 0x00000024, 0x00000002, 0xFE363C84, 0xFE363C8A, 0x00000024, 0x00000002, 0xFE363C85, 0xFE363C8B, 0x00000028, 0x00000002, 0xFE363C83, 0xFE363C86, 0x00000028, 0x00000002, 0xFE363C84, 0xFE363C87, 0x00000028, 0x00000002, 0xFE363C85, 0xFE363C88, 0x00000024, 0x00000002, 0xFE363C86, 0xFE363C89, 0x00000024, 0x00000002, 0xFE363C87, 0xFE363C8A, 0x00000024, 0x00000002, 0xFE363C88, 0xFE363C8B, 0x0000000A, 0x00000002, 0xFE363C83, 0x00000000, 0x0000000A, 0x00000002, 0xFE363C85, 0x00000000, 0x00000012, 0x00000000, 0x00000043, 0x0000000F, PlayEffect, 0x0000001F, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0xFE363C83, 0xFE363C84, 0xFE363C85, 0xF24A7E80, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000013, 0x00000000, 0x00000012, 0x00000000, 0x00000043, 0x0000000F, PlayEffect, 0x0000001F, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0xFE363C83, 0xFE363C84, 0xFE363C85, 0xF24A7E80, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000013, 0x00000000, 0x00000008, 0x00000001, 0x00000003, 0x00000004, 0x00000001, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 dlabel D_80244F4C_8DF04C .word 0x00000001, 0x00000002, 0x00000003, 0x00000002, 0x00000001, 0xFFFFFFFF, 0xFFFFFFFE, 0xFFFFFFFD, 0xFFFFFFFE, 0xFFFFFFFF diff --git a/ver/us/asm/data/world/area_mac/mac_05/856650.data.s b/ver/us/asm/data/world/area_mac/mac_05/856650.data.s index b8fa1cbc52..71a9be522b 100644 --- a/ver/us/asm/data/world/area_mac/mac_05/856650.data.s +++ b/ver/us/asm/data/world/area_mac/mac_05/856650.data.s @@ -6,7 +6,7 @@ dlabel D_802444E0_856650 .word 0x0000004D, 0x00000001, 0x00000000, 0x0000000A, 0x00000002, 0xFE363C85, 0x00000001, 0x0000000A, 0x00000002, 0xFE363C86, 0x00000001, 0x0000000A, 0x00000002, 0xFE363C87, 0x00000001, 0x0000000A, 0x00000002, 0xFE363C88, 0x00000001, 0x00000043, 0x00000001, mac_05_UpdateTexturePanSmooth, 0x00000002, 0x00000000, 0x00000013, 0x00000000, 0x00000013, 0x00000000, 0x00000013, 0x00000000, 0x00000013, 0x00000000, 0x00000043, 0x00000001, mac_05_UpdateTexturePanStepped, 0x00000002, 0x00000000, 0x00000001, 0x00000000 dlabel D_8024457C_8566EC -.word 0x0000004D, 0x00000001, 0x00000000, 0x00000024, 0x00000002, 0xFE363C8C, 0x00000000, 0x00000003, 0x00000001, 0x00000000, 0x0000000F, 0x00000002, 0xFE363C8C, 0x0000003C, 0x00000024, 0x00000002, 0xFE363C8C, 0x00000000, 0x00000013, 0x00000000, 0x00000043, 0x00000008, func_8024030C_85247C, 0xFE363C8C, 0xFE363C80, 0xF24A7680, 0xF24A7E80, 0x0000001E, 0x00000000, 0x00000000, 0x00000043, 0x00000005, ScaleModel, 0x00000063, 0x00000001, 0xFE363C80, 0x00000001, 0x00000027, 0x00000002, 0xFE363C8C, 0x00000001, 0x00000008, 0x00000001, 0x00000001, 0x00000004, 0x00000001, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 +.word 0x0000004D, 0x00000001, 0x00000000, 0x00000024, 0x00000002, 0xFE363C8C, 0x00000000, 0x00000003, 0x00000001, 0x00000000, 0x0000000F, 0x00000002, 0xFE363C8C, 0x0000003C, 0x00000024, 0x00000002, 0xFE363C8C, 0x00000000, 0x00000013, 0x00000000, 0x00000043, 0x00000008, dup_mac_05_UnkFloatFunc001, 0xFE363C8C, 0xFE363C80, 0xF24A7680, 0xF24A7E80, 0x0000001E, 0x00000000, 0x00000000, 0x00000043, 0x00000005, ScaleModel, 0x00000063, 0x00000001, 0xFE363C80, 0x00000001, 0x00000027, 0x00000002, 0xFE363C8C, 0x00000001, 0x00000008, 0x00000001, 0x00000001, 0x00000004, 0x00000001, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 dlabel D_80244648_8567B8 .word 0x00000005, 0x00000001, 0x00000000, 0x00000043, 0x00000005, MakeLerp, 0x00000258, 0xFFFFFF10, 0x00000140, 0x00000000, 0x00000005, 0x00000001, 0x00000000, 0x00000043, 0x00000001, UpdateLerp, 0x00000043, 0x00000005, TranslateModel, 0x00000061, 0xFE363C80, 0xFFFFFFE7, 0xFFFFFFB5, 0x00000043, 0x00000006, RotateModel, 0x00000061, 0x00000000, 0x00000000, 0x00000001, 0x00000000, 0x00000008, 0x00000001, 0x00000001, 0x0000000A, 0x00000002, 0xFE363C81, 0x00000000, 0x00000007, 0x00000000, 0x00000013, 0x00000000, 0x00000006, 0x00000000, 0x00000043, 0x00000005, MakeLerp, 0xFFFFFF10, 0x00000258, 0x00000140, 0x00000000, 0x00000005, 0x00000001, 0x00000000, 0x00000043, 0x00000001, UpdateLerp, 0x00000043, 0x00000005, TranslateModel, 0x00000061, 0xFE363C80, 0xFFFFFFE7, 0xFFFFFFB5, 0x00000043, 0x00000006, RotateModel, 0x00000061, 0x000000B4, 0x00000000, 0x00000001, 0x00000000, 0x00000008, 0x00000001, 0x00000001, 0x0000000A, 0x00000002, 0xFE363C81, 0x00000000, 0x00000007, 0x00000000, 0x00000013, 0x00000000, 0x00000006, 0x00000000, 0x00000006, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 diff --git a/ver/us/asm/data/world/area_mac/mac_05/862BC0.data.s b/ver/us/asm/data/world/area_mac/mac_05/862BC0.data.s index 0ae353f50a..21406cbc00 100644 --- a/ver/us/asm/data/world/area_mac/mac_05/862BC0.data.s +++ b/ver/us/asm/data/world/area_mac/mac_05/862BC0.data.s @@ -2,29 +2,29 @@ .section .data -dlabel D_80250A50_862BC0 +dlabel mac_05_unkAngle1 .word 0x00000000 -dlabel D_80250A54_862BC4 +dlabel mac_05_unkAngle2 .word 0xFFFFFFFF -dlabel D_80250A58_862BC8 +dlabel mac_05_unkAngle3 .word 0xFFFFFFFF dlabel D_80250A5C_862BCC -.word 0x00000043, 0x00000008, func_80243948_855AB8, 0xFE363C8C, 0xFE363C80, 0x0000001E, 0x0000003C, 0x0000001E, 0x00000000, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000056, 0xFE363C80, 0x00000001, 0x00000000, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000054, 0xFE363C80, 0xFFFFFFFF, 0x00000000, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 +.word 0x00000043, 0x00000008, mac_05_UnkFloatFunc001, 0xFE363C8C, 0xFE363C80, 0x0000001E, 0x0000003C, 0x0000001E, 0x00000000, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000056, 0xFE363C80, 0x00000001, 0x00000000, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000054, 0xFE363C80, 0xFFFFFFFF, 0x00000000, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 dlabel D_80250AD4_862C44 -.word 0x00000043, 0x00000008, func_80243948_855AB8, 0xFE363C8C, 0xFE363C80, 0x00000000, 0x0000001E, 0x0000001E, 0x00000001, 0x00000000, 0x00000026, 0x00000002, 0xFE363C81, 0xFE363C80, 0x0000002F, 0x00000002, 0xFE363C81, 0xF24A8680, 0x00000043, 0x00000006, RotateModel, 0x00000058, 0xFE363C80, 0x00000000, 0x00000000, 0x00000001, 0x00000043, 0x00000006, RotateGroup, 0x0000005D, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000005, TranslateModel, 0x00000050, 0xFFFFFFFB, 0xFFFFFFBC, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000052, 0xFFFFFFFB, 0xFFFFFFBC, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000056, 0x0000003C, 0x0000001D, 0xFFFFFFCD, 0x00000043, 0x00000005, TranslateModel, 0x00000054, 0x0000003C, 0x0000001D, 0x00000033, 0x00000043, 0x00000006, RotateModel, 0x00000050, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000006, RotateModel, 0x00000052, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000006, RotateModel, 0x00000056, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000006, RotateModel, 0x00000054, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000005, TranslateModel, 0x00000050, 0x00000005, 0x00000044, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000052, 0x00000005, 0x00000044, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000056, 0xFFFFFFC4, 0xFFFFFFE3, 0x00000033, 0x00000043, 0x00000005, TranslateModel, 0x00000054, 0xFFFFFFC4, 0xFFFFFFE3, 0xFFFFFFCD, 0x00000043, 0x00000008, func_80243948_855AB8, 0xFE363C8C, 0xFE363C80, 0x00000000, 0xFFFFFFD8, 0x0000001E, 0x00000001, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000005E, 0xFE363C80, 0x00000000, 0x00000000, 0x0000000F, 0x00000002, 0xFE363C8C, 0x0000001E, 0x00000043, 0x00000004, ModifyColliderFlags, 0x00000000, 0x00000015, 0x7FFFFE00, 0x00000043, 0x00000004, ModifyColliderFlags, 0x00000001, 0x00000010, 0x7FFFFE00, 0x00000013, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 +.word 0x00000043, 0x00000008, mac_05_UnkFloatFunc001, 0xFE363C8C, 0xFE363C80, 0x00000000, 0x0000001E, 0x0000001E, 0x00000001, 0x00000000, 0x00000026, 0x00000002, 0xFE363C81, 0xFE363C80, 0x0000002F, 0x00000002, 0xFE363C81, 0xF24A8680, 0x00000043, 0x00000006, RotateModel, 0x00000058, 0xFE363C80, 0x00000000, 0x00000000, 0x00000001, 0x00000043, 0x00000006, RotateGroup, 0x0000005D, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000005, TranslateModel, 0x00000050, 0xFFFFFFFB, 0xFFFFFFBC, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000052, 0xFFFFFFFB, 0xFFFFFFBC, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000056, 0x0000003C, 0x0000001D, 0xFFFFFFCD, 0x00000043, 0x00000005, TranslateModel, 0x00000054, 0x0000003C, 0x0000001D, 0x00000033, 0x00000043, 0x00000006, RotateModel, 0x00000050, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000006, RotateModel, 0x00000052, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000006, RotateModel, 0x00000056, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000006, RotateModel, 0x00000054, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000005, TranslateModel, 0x00000050, 0x00000005, 0x00000044, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000052, 0x00000005, 0x00000044, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000056, 0xFFFFFFC4, 0xFFFFFFE3, 0x00000033, 0x00000043, 0x00000005, TranslateModel, 0x00000054, 0xFFFFFFC4, 0xFFFFFFE3, 0xFFFFFFCD, 0x00000043, 0x00000008, mac_05_UnkFloatFunc001, 0xFE363C8C, 0xFE363C80, 0x00000000, 0xFFFFFFD8, 0x0000001E, 0x00000001, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000005E, 0xFE363C80, 0x00000000, 0x00000000, 0x0000000F, 0x00000002, 0xFE363C8C, 0x0000001E, 0x00000043, 0x00000004, ModifyColliderFlags, 0x00000000, 0x00000015, 0x7FFFFE00, 0x00000043, 0x00000004, ModifyColliderFlags, 0x00000001, 0x00000010, 0x7FFFFE00, 0x00000013, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 dlabel D_80250D58_862EC8 -.word 0x00000043, 0x00000008, func_80243948_855AB8, 0xFE363C8C, 0xFE363C80, 0x00000000, 0xFFFFFFE2, 0x00000008, 0x00000001, 0x00000000, 0x0000002C, 0x00000002, 0xFE363C80, 0xF24AF280, 0x00000026, 0x00000002, 0xFE363C81, 0xFE363C80, 0x0000002F, 0x00000002, 0xFE363C81, 0xF24A8680, 0x00000043, 0x00000006, RotateModel, 0x00000058, 0xFE363C80, 0x00000000, 0x00000000, 0x00000001, 0x00000043, 0x00000006, RotateGroup, 0x0000005D, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000005, TranslateModel, 0x00000050, 0xFFFFFFFB, 0xFFFFFFBC, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000052, 0xFFFFFFFB, 0xFFFFFFBC, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000056, 0x0000003C, 0x0000001D, 0xFFFFFFCD, 0x00000043, 0x00000005, TranslateModel, 0x00000054, 0x0000003C, 0x0000001D, 0x00000033, 0x00000043, 0x00000006, RotateModel, 0x00000050, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000006, RotateModel, 0x00000052, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000006, RotateModel, 0x00000056, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000006, RotateModel, 0x00000054, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000005, TranslateModel, 0x00000050, 0x00000005, 0x00000044, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000052, 0x00000005, 0x00000044, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000056, 0xFFFFFFC4, 0xFFFFFFE3, 0x00000033, 0x00000043, 0x00000005, TranslateModel, 0x00000054, 0xFFFFFFC4, 0xFFFFFFE3, 0xFFFFFFCD, 0x00000043, 0x00000008, func_80243948_855AB8, 0xFE363C8C, 0xFE363C80, 0x00000000, 0xFFFFFFD8, 0x00000078, 0x00000001, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000005E, 0xFE363C80, 0x00000000, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 +.word 0x00000043, 0x00000008, mac_05_UnkFloatFunc001, 0xFE363C8C, 0xFE363C80, 0x00000000, 0xFFFFFFE2, 0x00000008, 0x00000001, 0x00000000, 0x0000002C, 0x00000002, 0xFE363C80, 0xF24AF280, 0x00000026, 0x00000002, 0xFE363C81, 0xFE363C80, 0x0000002F, 0x00000002, 0xFE363C81, 0xF24A8680, 0x00000043, 0x00000006, RotateModel, 0x00000058, 0xFE363C80, 0x00000000, 0x00000000, 0x00000001, 0x00000043, 0x00000006, RotateGroup, 0x0000005D, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000005, TranslateModel, 0x00000050, 0xFFFFFFFB, 0xFFFFFFBC, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000052, 0xFFFFFFFB, 0xFFFFFFBC, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000056, 0x0000003C, 0x0000001D, 0xFFFFFFCD, 0x00000043, 0x00000005, TranslateModel, 0x00000054, 0x0000003C, 0x0000001D, 0x00000033, 0x00000043, 0x00000006, RotateModel, 0x00000050, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000006, RotateModel, 0x00000052, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000006, RotateModel, 0x00000056, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000006, RotateModel, 0x00000054, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000005, TranslateModel, 0x00000050, 0x00000005, 0x00000044, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000052, 0x00000005, 0x00000044, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000056, 0xFFFFFFC4, 0xFFFFFFE3, 0x00000033, 0x00000043, 0x00000005, TranslateModel, 0x00000054, 0xFFFFFFC4, 0xFFFFFFE3, 0xFFFFFFCD, 0x00000043, 0x00000008, mac_05_UnkFloatFunc001, 0xFE363C8C, 0xFE363C80, 0x00000000, 0xFFFFFFD8, 0x00000078, 0x00000001, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000005E, 0xFE363C80, 0x00000000, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 dlabel D_80250FA4_863114 .word 0x00000002, 0x00000000, 0x00000001, 0x00000000 dlabel D_80250FB4_863124 -.word 0x00000043, 0x00000004, GetNpcVar, 0x00000000, 0x00000000, 0xFE363C83, 0x0000000A, 0x00000002, 0xFE363C83, 0x00000000, 0x00000043, 0x00000001, func_80243AB8_855C28, 0x00000043, 0x00000006, PlaySoundAt, 0x8000004F, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000009, mac_05_PlayFX3D, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000000, 0xFFFFFFFF, 0x00000000, 0x0000001E, 0x00000043, 0x00000004, SetNpcVar, 0x00000000, 0x00000000, 0xFE363C80, 0x00000013, 0x00000000, 0x00000043, 0x00000004, GetNpcVar, 0x00000000, 0x00000000, 0xFE363C83, 0x00000043, 0x00000001, func_80243AB8_855C28, 0x00000043, 0x00000005, func_80243CD4_855E44, 0xFE363C83, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000008, func_80243948_855AB8, 0xFE363C8C, 0xFE363C80, 0x0000001E, 0x0000003C, 0x0000001E, 0x00000000, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000056, 0xFE363C80, 0x00000001, 0x00000000, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000054, 0xFE363C80, 0xFFFFFFFF, 0x00000000, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 +.word 0x00000043, 0x00000004, GetNpcVar, 0x00000000, 0x00000000, 0xFE363C83, 0x0000000A, 0x00000002, 0xFE363C83, 0x00000000, 0x00000043, 0x00000001, mac_05_UnkPlayerPosFunc, 0x00000043, 0x00000006, PlaySoundAt, 0x8000004F, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000009, mac_05_PlayFX3D, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000000, 0xFFFFFFFF, 0x00000000, 0x0000001E, 0x00000043, 0x00000004, SetNpcVar, 0x00000000, 0x00000000, 0xFE363C80, 0x00000013, 0x00000000, 0x00000043, 0x00000004, GetNpcVar, 0x00000000, 0x00000000, 0xFE363C83, 0x00000043, 0x00000001, mac_05_UnkPlayerPosFunc, 0x00000043, 0x00000005, func_80243CD4_855E44, 0xFE363C83, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000008, mac_05_UnkFloatFunc001, 0xFE363C8C, 0xFE363C80, 0x0000001E, 0x0000003C, 0x0000001E, 0x00000000, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000056, 0xFE363C80, 0x00000001, 0x00000000, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000054, 0xFE363C80, 0xFFFFFFFF, 0x00000000, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 dlabel D_8025110C_86327C .word 0x00000002, 0x00000000, 0x00000001, 0x00000000 @@ -33,16 +33,16 @@ dlabel D_8025111C_86328C .word 0x0000000F, 0x00000002, 0xFE363C8C, 0x00000000, 0x0000000E, 0x00000002, 0xFE363C8C, 0x00000002, 0x00000043, 0x00000003, EnableModel, 0x00000050, 0x00000000, 0x00000043, 0x00000003, EnableModel, 0x00000052, 0x00000001, 0x00000002, 0x00000000, 0x00000013, 0x00000000, 0x00000013, 0x00000000, 0x0000000A, 0x00000002, 0xFE363C8C, 0x0000000F, 0x00000043, 0x00000003, EnableModel, 0x00000050, 0x00000000, 0x00000043, 0x00000003, EnableModel, 0x00000052, 0x00000001, 0x00000002, 0x00000000, 0x00000013, 0x00000000, 0x0000000A, 0x00000002, 0xFE363C8C, 0x00000016, 0x00000043, 0x00000003, EnableModel, 0x00000050, 0x00000000, 0x00000043, 0x00000003, EnableModel, 0x00000052, 0x00000001, 0x00000002, 0x00000000, 0x00000013, 0x00000000, 0x00000043, 0x00000003, EnableModel, 0x00000050, 0x00000001, 0x00000043, 0x00000003, EnableModel, 0x00000052, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 dlabel D_80251244_8633B4 -.word 0x00000024, 0x00000002, 0xFE363C80, 0xFE363C8C, 0x0000002A, 0x00000002, 0xFE363C80, 0x00000014, 0x0000002B, 0x00000002, 0xFE363C80, 0x00000002, 0x0000000A, 0x00000002, 0xFE363C80, 0x00000000, 0x00000002, 0x00000000, 0x00000013, 0x00000000, 0x00000043, 0x00000008, func_80243948_855AB8, 0xFE363C8C, 0xFE363C80, 0xF24A7680, 0xF24A7E80, 0x00000003, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000058, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateGroup, 0x0000005D, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000050, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000052, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000056, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000054, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000056, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000054, 0xFE363C80, 0x00000000, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 +.word 0x00000024, 0x00000002, 0xFE363C80, 0xFE363C8C, 0x0000002A, 0x00000002, 0xFE363C80, 0x00000014, 0x0000002B, 0x00000002, 0xFE363C80, 0x00000002, 0x0000000A, 0x00000002, 0xFE363C80, 0x00000000, 0x00000002, 0x00000000, 0x00000013, 0x00000000, 0x00000043, 0x00000008, mac_05_UnkFloatFunc001, 0xFE363C8C, 0xFE363C80, 0xF24A7680, 0xF24A7E80, 0x00000003, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000058, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateGroup, 0x0000005D, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000050, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000052, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000056, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000054, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000056, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000054, 0xFE363C80, 0x00000000, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 dlabel D_802513AC_86351C -.word 0x00000043, 0x00000008, func_80243948_855AB8, 0xFE363C8C, 0xFE363C80, 0xF24A6280, 0xF24A9280, 0x00000003, 0x00000000, 0x00000000, 0x00000043, 0x00000008, func_80243948_855AB8, 0xFE363C8C, 0xFE363C81, 0xF24A9280, 0xF24A6280, 0x00000002, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000058, 0xFE363C80, 0xFE363C81, 0x00000000, 0x00000043, 0x00000005, TranslateGroup, 0x0000005D, 0xFE363C80, 0xFE363C81, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000050, 0xFE363C80, 0xFE363C81, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000052, 0xFE363C80, 0xFE363C81, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000056, 0xFE363C80, 0xFE363C81, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000054, 0xFE363C80, 0xFE363C81, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000056, 0xFE363C80, 0xFE363C81, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000054, 0xFE363C80, 0xFE363C81, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 +.word 0x00000043, 0x00000008, mac_05_UnkFloatFunc001, 0xFE363C8C, 0xFE363C80, 0xF24A6280, 0xF24A9280, 0x00000003, 0x00000000, 0x00000000, 0x00000043, 0x00000008, mac_05_UnkFloatFunc001, 0xFE363C8C, 0xFE363C81, 0xF24A9280, 0xF24A6280, 0x00000002, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000058, 0xFE363C80, 0xFE363C81, 0x00000000, 0x00000043, 0x00000005, TranslateGroup, 0x0000005D, 0xFE363C80, 0xFE363C81, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000050, 0xFE363C80, 0xFE363C81, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000052, 0xFE363C80, 0xFE363C81, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000056, 0xFE363C80, 0xFE363C81, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000054, 0xFE363C80, 0xFE363C81, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000056, 0xFE363C80, 0xFE363C81, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000054, 0xFE363C80, 0xFE363C81, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 dlabel D_802514EC_86365C -.word 0x00000024, 0x00000002, 0xFE363C80, 0xFE363C8C, 0x0000002A, 0x00000002, 0xFE363C80, 0x00000014, 0x0000002B, 0x00000002, 0xFE363C80, 0x00000002, 0x0000000A, 0x00000002, 0xFE363C80, 0x00000000, 0x00000002, 0x00000000, 0x00000013, 0x00000000, 0x00000043, 0x00000008, func_80243948_855AB8, 0xFE363C8C, 0xFE363C80, 0xF24A7680, 0xF24A7E80, 0x00000003, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000058, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateGroup, 0x0000005D, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000050, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000052, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000056, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000054, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000056, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000054, 0xFE363C80, 0x00000000, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 +.word 0x00000024, 0x00000002, 0xFE363C80, 0xFE363C8C, 0x0000002A, 0x00000002, 0xFE363C80, 0x00000014, 0x0000002B, 0x00000002, 0xFE363C80, 0x00000002, 0x0000000A, 0x00000002, 0xFE363C80, 0x00000000, 0x00000002, 0x00000000, 0x00000013, 0x00000000, 0x00000043, 0x00000008, mac_05_UnkFloatFunc001, 0xFE363C8C, 0xFE363C80, 0xF24A7680, 0xF24A7E80, 0x00000003, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000058, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateGroup, 0x0000005D, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000050, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000052, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000056, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000054, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000056, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000054, 0xFE363C80, 0x00000000, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 dlabel D_80251654_8637C4 -.word 0x00000043, 0x00000008, func_80243948_855AB8, 0xFE363C8C, 0xFE363C80, 0x0000001E, 0x0000003C, 0x0000001E, 0x00000000, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000056, 0xFE363C80, 0x00000001, 0x00000000, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000054, 0xFE363C80, 0xFFFFFFFF, 0x00000000, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 +.word 0x00000043, 0x00000008, mac_05_UnkFloatFunc001, 0xFE363C8C, 0xFE363C80, 0x0000001E, 0x0000003C, 0x0000001E, 0x00000000, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000056, 0xFE363C80, 0x00000001, 0x00000000, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000054, 0xFE363C80, 0xFFFFFFFF, 0x00000000, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 dlabel D_802516CC_86383C -.word 0x00000043, 0x00000008, func_80243948_855AB8, 0xFE363C8C, 0xFE363C80, 0x00000000, 0x00000008, 0x00000003, 0x00000000, 0x00000000, 0x00000024, 0x00000002, 0xFE363C81, 0xFE363C80, 0x0000002A, 0x00000002, 0xFE363C81, 0x00000003, 0x00000043, 0x00000006, RotateModel, 0x00000058, 0xFE363C80, 0x00000000, 0x00000000, 0x00000001, 0x00000043, 0x00000006, RotateGroup, 0x0000005D, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000005, TranslateModel, 0x00000050, 0xFFFFFFFB, 0xFFFFFFBC, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000052, 0xFFFFFFFB, 0xFFFFFFBC, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000056, 0x0000003C, 0x0000001D, 0xFFFFFFCD, 0x00000043, 0x00000005, TranslateModel, 0x00000054, 0x0000003C, 0x0000001D, 0x00000033, 0x00000043, 0x00000006, RotateModel, 0x00000050, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000006, RotateModel, 0x00000052, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000006, RotateModel, 0x00000056, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000006, RotateModel, 0x00000054, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000005, TranslateModel, 0x00000050, 0x00000005, 0x00000044, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000052, 0x00000005, 0x00000044, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000056, 0xFFFFFFC4, 0xFFFFFFE3, 0x00000033, 0x00000043, 0x00000005, TranslateModel, 0x00000054, 0xFFFFFFC4, 0xFFFFFFE3, 0xFFFFFFCD, 0x00000024, 0x00000002, 0xFE363C80, 0xFE363C8C, 0x00000029, 0x00000002, 0xFE363C80, 0x00000002, 0x00000043, 0x00000008, func_80243948_855AB8, 0xFE363C80, 0xFE363C80, 0x0000001E, 0x0000003C, 0x00000003, 0x00000000, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000056, 0xFE363C80, 0x00000001, 0x00000000, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000054, 0xFE363C80, 0xFFFFFFFF, 0x00000000, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x0000004D, 0x00000001, 0x00000000, 0x00000043, 0x00000004, MakeLocalVertexCopy, 0x00000001, 0x0000005A, 0x00000001, 0x00000043, 0x00000004, SetCustomGfxBuilders, 0x00000001, func_80243800_855970, 0x00000000, 0x00000043, 0x00000004, SetModelCustomGfx, 0x0000005A, 0x00000001, 0xFFFFFFFF, 0x00000043, 0x00000004, MakeLocalVertexCopy, 0x00000002, 0x0000005B, 0x00000001, 0x00000043, 0x00000004, SetCustomGfxBuilders, 0x00000002, func_802438A4_855A14, 0x00000000, 0x00000043, 0x00000004, SetModelCustomGfx, 0x0000005B, 0x00000002, 0xFFFFFFFF, 0x00000056, 0x00000000, 0x00000003, 0x00000001, 0x00000000, 0x00000043, 0x00000005, func_8024343C_8555AC, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x0000002D, 0x00000002, 0xFE363C80, 0xFFFFFFB0, 0x0000002D, 0x00000002, 0xFE363C81, 0xFFFFFFEE, 0x0000002D, 0x00000002, 0xFE363C82, 0x000001A4, 0x0000002C, 0x00000002, 0xFE363C80, 0x00000082, 0x0000002C, 0x00000002, 0xFE363C81, 0xFFFFFFEC, 0x0000002C, 0x00000002, 0xFE363C82, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000005E, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000005, TranslateModel, 0x00000050, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000005, TranslateModel, 0x00000052, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000005, TranslateModel, 0x00000058, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000005, TranslateModel, 0x00000056, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000005, TranslateModel, 0x00000054, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000005, TranslateGroup, 0x0000005D, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000003, GetNpcYaw, 0x00000000, 0xFE363C80, 0x0000002E, 0x00000002, 0xFE363C80, 0xFFFFFFFF, 0x0000002C, 0x00000002, 0xFE363C80, 0xFFFFFFA6, 0x00000043, 0x00000005, TranslateModel, 0x0000005E, 0xFFFFFF9C, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000050, 0xFFFFFF9C, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000052, 0xFFFFFF9C, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000058, 0xFFFFFF9C, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000056, 0xFFFFFF9C, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000054, 0xFFFFFF9C, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateGroup, 0x0000005D, 0xFFFFFF9C, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000005E, 0x00000064, 0xFFFFFFFF, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000050, 0xFFFFFFFB, 0xFFFFFFBC, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000052, 0xFFFFFFFB, 0xFFFFFFBC, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000058, 0x00000066, 0x00000004, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000056, 0x0000003C, 0x0000001D, 0xFFFFFFCD, 0x00000043, 0x00000005, TranslateModel, 0x00000054, 0x0000003C, 0x0000001D, 0x00000033, 0x00000043, 0x00000006, RotateModel, 0x0000005E, 0xFE363C80, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000050, 0xFE363C80, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000052, 0xFE363C80, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000058, 0xFE363C80, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000056, 0xFE363C80, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000054, 0xFE363C80, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000006, RotateGroup, 0x0000005D, 0xFE363C80, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000005E, 0xFFFFFF9C, 0x00000001, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000050, 0x00000005, 0x00000044, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000052, 0x00000005, 0x00000044, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000058, 0xFFFFFF9A, 0xFFFFFFFC, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000056, 0xFFFFFFC4, 0xFFFFFFE3, 0x00000033, 0x00000043, 0x00000005, TranslateModel, 0x00000054, 0xFFFFFFC4, 0xFFFFFFE3, 0xFFFFFFCD, 0x00000043, 0x00000005, TranslateModel, 0x0000005E, 0x00000064, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000050, 0x00000064, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000052, 0x00000064, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000058, 0x00000064, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000056, 0x00000064, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000054, 0x00000064, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateGroup, 0x0000005D, 0x00000064, 0x00000000, 0x00000000, 0x00000043, 0x00000003, GetNpcAnimation, 0x00000000, 0xFE363C80, 0x0000000B, 0x00000002, 0xFE363C80, 0xFE363C8B, 0x00000024, 0x00000002, 0xFE363C8B, 0xFE363C80, 0x00000024, 0x00000002, 0xFE363C8C, 0x00000000, 0x00000043, 0x00000004, ModifyColliderFlags, 0x00000001, 0x00000015, 0x7FFFFE00, 0x00000043, 0x00000003, EnableModel, 0x00000050, 0x00000001, 0x00000043, 0x00000003, EnableModel, 0x00000052, 0x00000000, 0x0000000B, 0x00000002, 0xFE363C8B, 0x00B60009, 0x00000043, 0x00000004, GetNpcVar, 0x00000000, 0x00000000, 0xFE363C80, 0x0000000B, 0x00000002, 0xFE363C80, 0x00000000, 0x00000043, 0x00000002, PlaySound, 0x00000443, 0x00000043, 0x00000002, func_802D62E4, 0x00000043, 0x00000043, 0x00000002, func_80243D78_855EE8, 0xFE363C80, 0x00000043, 0x00000004, SetNpcVar, 0x00000000, 0x00000000, 0x00000000, 0x00000013, 0x00000000, 0x00000013, 0x00000000, 0x00000014, 0x00000001, 0xFE363C8B, 0x00000016, 0x00000001, 0x00B60003, 0x00000043, 0x00000004, PlaySoundAtNpc, 0x00000000, 0x00002037, 0x00000000, 0x00000024, 0x00000002, 0xFE363C8D, D_80250D58_862EC8, 0x00000016, 0x00000001, 0x00B60000, 0x00000024, 0x00000002, 0xFE363C8D, D_80250A5C_862BCC, 0x00000016, 0x00000001, 0x00B60002, 0x00000043, 0x00000004, PlaySoundAtNpc, 0x00000000, 0x00002036, 0x00000000, 0x00000024, 0x00000002, 0xFE363C8D, D_80250AD4_862C44, 0x00000016, 0x00000001, 0x00B60001, 0x00000024, 0x00000002, 0xFE363C8D, D_80251654_8637C4, 0x00000016, 0x00000001, 0x00B60004, 0x00000024, 0x00000002, 0xFE363C8D, D_802516CC_86383C, 0x00000016, 0x00000001, 0x00B60005, 0x00000024, 0x00000002, 0xFE363C8D, D_80250FA4_863114, 0x00000043, 0x00000003, EnableModel, 0x00000050, 0x00000000, 0x00000043, 0x00000003, EnableModel, 0x00000052, 0x00000000, 0x00000016, 0x00000001, 0x00B60006, 0x00000024, 0x00000002, 0xFE363C8D, D_80251244_8633B4, 0x00000043, 0x00000003, EnableModel, 0x00000050, 0x00000000, 0x00000043, 0x00000003, EnableModel, 0x00000052, 0x00000000, 0x00000016, 0x00000001, 0x00B60007, 0x00000024, 0x00000002, 0xFE363C8D, D_802513AC_86351C, 0x00000043, 0x00000003, EnableModel, 0x00000050, 0x00000000, 0x00000043, 0x00000003, EnableModel, 0x00000052, 0x00000000, 0x00000016, 0x00000001, 0x00B60008, 0x00000024, 0x00000002, 0xFE363C8D, D_802514EC_86365C, 0x00000016, 0x00000001, 0x00B60009, 0x00000024, 0x00000002, 0xFE363C8D, D_80250FB4_863124, 0x00000016, 0x00000001, 0x00B6000A, 0x00000024, 0x00000002, 0xFE363C8D, D_8025110C_86327C, 0x00000016, 0x00000001, 0x00B6000C, 0x00000024, 0x00000002, 0xFE363C8D, D_8025111C_86328C, 0x00000023, 0x00000000, 0x00000013, 0x00000000, 0x00000046, 0x00000001, 0xFE363C8D, 0x00000027, 0x00000002, 0xFE363C8C, 0x00000001, 0x0000000D, 0x00000002, 0xFE363C8C, 0x000003E8, 0x00000024, 0x00000002, 0xFE363C8C, 0x00000000, 0x00000013, 0x00000000, 0x00000004, 0x00000001, 0x00000000, 0x00000057, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000003, SetNpcAnimation, 0x00000000, 0x00B60003, 0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000000 +.word 0x00000043, 0x00000008, mac_05_UnkFloatFunc001, 0xFE363C8C, 0xFE363C80, 0x00000000, 0x00000008, 0x00000003, 0x00000000, 0x00000000, 0x00000024, 0x00000002, 0xFE363C81, 0xFE363C80, 0x0000002A, 0x00000002, 0xFE363C81, 0x00000003, 0x00000043, 0x00000006, RotateModel, 0x00000058, 0xFE363C80, 0x00000000, 0x00000000, 0x00000001, 0x00000043, 0x00000006, RotateGroup, 0x0000005D, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000005, TranslateModel, 0x00000050, 0xFFFFFFFB, 0xFFFFFFBC, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000052, 0xFFFFFFFB, 0xFFFFFFBC, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000056, 0x0000003C, 0x0000001D, 0xFFFFFFCD, 0x00000043, 0x00000005, TranslateModel, 0x00000054, 0x0000003C, 0x0000001D, 0x00000033, 0x00000043, 0x00000006, RotateModel, 0x00000050, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000006, RotateModel, 0x00000052, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000006, RotateModel, 0x00000056, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000006, RotateModel, 0x00000054, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000005, TranslateModel, 0x00000050, 0x00000005, 0x00000044, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000052, 0x00000005, 0x00000044, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000056, 0xFFFFFFC4, 0xFFFFFFE3, 0x00000033, 0x00000043, 0x00000005, TranslateModel, 0x00000054, 0xFFFFFFC4, 0xFFFFFFE3, 0xFFFFFFCD, 0x00000024, 0x00000002, 0xFE363C80, 0xFE363C8C, 0x00000029, 0x00000002, 0xFE363C80, 0x00000002, 0x00000043, 0x00000008, mac_05_UnkFloatFunc001, 0xFE363C80, 0xFE363C80, 0x0000001E, 0x0000003C, 0x00000003, 0x00000000, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000056, 0xFE363C80, 0x00000001, 0x00000000, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000054, 0xFE363C80, 0xFFFFFFFF, 0x00000000, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x0000004D, 0x00000001, 0x00000000, 0x00000043, 0x00000004, MakeLocalVertexCopy, 0x00000001, 0x0000005A, 0x00000001, 0x00000043, 0x00000004, SetCustomGfxBuilders, 0x00000001, mac_05_unkAngleFunc002, 0x00000000, 0x00000043, 0x00000004, SetModelCustomGfx, 0x0000005A, 0x00000001, 0xFFFFFFFF, 0x00000043, 0x00000004, MakeLocalVertexCopy, 0x00000002, 0x0000005B, 0x00000001, 0x00000043, 0x00000004, SetCustomGfxBuilders, 0x00000002, mac_05_unkAngleFunc003, 0x00000000, 0x00000043, 0x00000004, SetModelCustomGfx, 0x0000005B, 0x00000002, 0xFFFFFFFF, 0x00000056, 0x00000000, 0x00000003, 0x00000001, 0x00000000, 0x00000043, 0x00000005, mac_05_UnkAngleFunc001, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x0000002D, 0x00000002, 0xFE363C80, 0xFFFFFFB0, 0x0000002D, 0x00000002, 0xFE363C81, 0xFFFFFFEE, 0x0000002D, 0x00000002, 0xFE363C82, 0x000001A4, 0x0000002C, 0x00000002, 0xFE363C80, 0x00000082, 0x0000002C, 0x00000002, 0xFE363C81, 0xFFFFFFEC, 0x0000002C, 0x00000002, 0xFE363C82, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000005E, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000005, TranslateModel, 0x00000050, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000005, TranslateModel, 0x00000052, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000005, TranslateModel, 0x00000058, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000005, TranslateModel, 0x00000056, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000005, TranslateModel, 0x00000054, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000005, TranslateGroup, 0x0000005D, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000003, GetNpcYaw, 0x00000000, 0xFE363C80, 0x0000002E, 0x00000002, 0xFE363C80, 0xFFFFFFFF, 0x0000002C, 0x00000002, 0xFE363C80, 0xFFFFFFA6, 0x00000043, 0x00000005, TranslateModel, 0x0000005E, 0xFFFFFF9C, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000050, 0xFFFFFF9C, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000052, 0xFFFFFF9C, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000058, 0xFFFFFF9C, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000056, 0xFFFFFF9C, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000054, 0xFFFFFF9C, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateGroup, 0x0000005D, 0xFFFFFF9C, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000005E, 0x00000064, 0xFFFFFFFF, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000050, 0xFFFFFFFB, 0xFFFFFFBC, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000052, 0xFFFFFFFB, 0xFFFFFFBC, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000058, 0x00000066, 0x00000004, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000056, 0x0000003C, 0x0000001D, 0xFFFFFFCD, 0x00000043, 0x00000005, TranslateModel, 0x00000054, 0x0000003C, 0x0000001D, 0x00000033, 0x00000043, 0x00000006, RotateModel, 0x0000005E, 0xFE363C80, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000050, 0xFE363C80, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000052, 0xFE363C80, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000058, 0xFE363C80, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000056, 0xFE363C80, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000054, 0xFE363C80, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000006, RotateGroup, 0x0000005D, 0xFE363C80, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000005E, 0xFFFFFF9C, 0x00000001, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000050, 0x00000005, 0x00000044, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000052, 0x00000005, 0x00000044, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000058, 0xFFFFFF9A, 0xFFFFFFFC, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000056, 0xFFFFFFC4, 0xFFFFFFE3, 0x00000033, 0x00000043, 0x00000005, TranslateModel, 0x00000054, 0xFFFFFFC4, 0xFFFFFFE3, 0xFFFFFFCD, 0x00000043, 0x00000005, TranslateModel, 0x0000005E, 0x00000064, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000050, 0x00000064, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000052, 0x00000064, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000058, 0x00000064, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000056, 0x00000064, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000054, 0x00000064, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateGroup, 0x0000005D, 0x00000064, 0x00000000, 0x00000000, 0x00000043, 0x00000003, GetNpcAnimation, 0x00000000, 0xFE363C80, 0x0000000B, 0x00000002, 0xFE363C80, 0xFE363C8B, 0x00000024, 0x00000002, 0xFE363C8B, 0xFE363C80, 0x00000024, 0x00000002, 0xFE363C8C, 0x00000000, 0x00000043, 0x00000004, ModifyColliderFlags, 0x00000001, 0x00000015, 0x7FFFFE00, 0x00000043, 0x00000003, EnableModel, 0x00000050, 0x00000001, 0x00000043, 0x00000003, EnableModel, 0x00000052, 0x00000000, 0x0000000B, 0x00000002, 0xFE363C8B, 0x00B60009, 0x00000043, 0x00000004, GetNpcVar, 0x00000000, 0x00000000, 0xFE363C80, 0x0000000B, 0x00000002, 0xFE363C80, 0x00000000, 0x00000043, 0x00000002, PlaySound, 0x00000443, 0x00000043, 0x00000002, func_802D62E4, 0x00000043, 0x00000043, 0x00000002, func_80243D78_855EE8, 0xFE363C80, 0x00000043, 0x00000004, SetNpcVar, 0x00000000, 0x00000000, 0x00000000, 0x00000013, 0x00000000, 0x00000013, 0x00000000, 0x00000014, 0x00000001, 0xFE363C8B, 0x00000016, 0x00000001, 0x00B60003, 0x00000043, 0x00000004, PlaySoundAtNpc, 0x00000000, 0x00002037, 0x00000000, 0x00000024, 0x00000002, 0xFE363C8D, D_80250D58_862EC8, 0x00000016, 0x00000001, 0x00B60000, 0x00000024, 0x00000002, 0xFE363C8D, D_80250A5C_862BCC, 0x00000016, 0x00000001, 0x00B60002, 0x00000043, 0x00000004, PlaySoundAtNpc, 0x00000000, 0x00002036, 0x00000000, 0x00000024, 0x00000002, 0xFE363C8D, D_80250AD4_862C44, 0x00000016, 0x00000001, 0x00B60001, 0x00000024, 0x00000002, 0xFE363C8D, D_80251654_8637C4, 0x00000016, 0x00000001, 0x00B60004, 0x00000024, 0x00000002, 0xFE363C8D, D_802516CC_86383C, 0x00000016, 0x00000001, 0x00B60005, 0x00000024, 0x00000002, 0xFE363C8D, D_80250FA4_863114, 0x00000043, 0x00000003, EnableModel, 0x00000050, 0x00000000, 0x00000043, 0x00000003, EnableModel, 0x00000052, 0x00000000, 0x00000016, 0x00000001, 0x00B60006, 0x00000024, 0x00000002, 0xFE363C8D, D_80251244_8633B4, 0x00000043, 0x00000003, EnableModel, 0x00000050, 0x00000000, 0x00000043, 0x00000003, EnableModel, 0x00000052, 0x00000000, 0x00000016, 0x00000001, 0x00B60007, 0x00000024, 0x00000002, 0xFE363C8D, D_802513AC_86351C, 0x00000043, 0x00000003, EnableModel, 0x00000050, 0x00000000, 0x00000043, 0x00000003, EnableModel, 0x00000052, 0x00000000, 0x00000016, 0x00000001, 0x00B60008, 0x00000024, 0x00000002, 0xFE363C8D, D_802514EC_86365C, 0x00000016, 0x00000001, 0x00B60009, 0x00000024, 0x00000002, 0xFE363C8D, D_80250FB4_863124, 0x00000016, 0x00000001, 0x00B6000A, 0x00000024, 0x00000002, 0xFE363C8D, D_8025110C_86327C, 0x00000016, 0x00000001, 0x00B6000C, 0x00000024, 0x00000002, 0xFE363C8D, D_8025111C_86328C, 0x00000023, 0x00000000, 0x00000013, 0x00000000, 0x00000046, 0x00000001, 0xFE363C8D, 0x00000027, 0x00000002, 0xFE363C8C, 0x00000001, 0x0000000D, 0x00000002, 0xFE363C8C, 0x000003E8, 0x00000024, 0x00000002, 0xFE363C8C, 0x00000000, 0x00000013, 0x00000000, 0x00000004, 0x00000001, 0x00000000, 0x00000057, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000003, SetNpcAnimation, 0x00000000, 0x00B60003, 0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000000 diff --git a/ver/us/asm/data/world/area_mac/mac_06/8661D0.data.s b/ver/us/asm/data/world/area_mac/mac_06/8661D0.data.s index d5632fe30e..0688d604d5 100644 --- a/ver/us/asm/data/world/area_mac/mac_06/8661D0.data.s +++ b/ver/us/asm/data/world/area_mac/mac_06/8661D0.data.s @@ -9,7 +9,7 @@ dlabel D_802416E0_866220 .word 0x0000004D, 0x00000001, 0x00000000, 0x0000000A, 0x00000002, 0xFE363C85, 0x00000001, 0x0000000A, 0x00000002, 0xFE363C86, 0x00000001, 0x0000000A, 0x00000002, 0xFE363C87, 0x00000001, 0x0000000A, 0x00000002, 0xFE363C88, 0x00000001, 0x00000043, 0x00000001, mac_06_UpdateTexturePanSmooth, 0x00000002, 0x00000000, 0x00000013, 0x00000000, 0x00000013, 0x00000000, 0x00000013, 0x00000000, 0x00000013, 0x00000000, 0x00000043, 0x00000001, mac_06_UpdateTexturePanStepped, 0x00000002, 0x00000000, 0x00000001, 0x00000000 dlabel D_8024177C_8662BC -.word 0x0000004D, 0x00000001, 0x00000000, 0x00000024, 0x00000002, 0xFE363C8C, 0x00000000, 0x00000003, 0x00000001, 0x00000000, 0x0000000F, 0x00000002, 0xFE363C8C, 0x0000003C, 0x00000024, 0x00000002, 0xFE363C8C, 0x00000000, 0x00000013, 0x00000000, 0x00000043, 0x00000008, func_8024030C_864E4C, 0xFE363C8C, 0xFE363C80, 0xF24A7680, 0xF24A7E80, 0x0000001E, 0x00000000, 0x00000000, 0x00000043, 0x00000005, ScaleGroup, 0x00000014, 0x00000001, 0xFE363C80, 0x00000001, 0x00000027, 0x00000002, 0xFE363C8C, 0x00000001, 0x00000008, 0x00000001, 0x00000001, 0x00000004, 0x00000001, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 +.word 0x0000004D, 0x00000001, 0x00000000, 0x00000024, 0x00000002, 0xFE363C8C, 0x00000000, 0x00000003, 0x00000001, 0x00000000, 0x0000000F, 0x00000002, 0xFE363C8C, 0x0000003C, 0x00000024, 0x00000002, 0xFE363C8C, 0x00000000, 0x00000013, 0x00000000, 0x00000043, 0x00000008, dup_mac_06_UnkFloatFunc001, 0xFE363C8C, 0xFE363C80, 0xF24A7680, 0xF24A7E80, 0x0000001E, 0x00000000, 0x00000000, 0x00000043, 0x00000005, ScaleGroup, 0x00000014, 0x00000001, 0xFE363C80, 0x00000001, 0x00000027, 0x00000002, 0xFE363C8C, 0x00000001, 0x00000008, 0x00000001, 0x00000001, 0x00000004, 0x00000001, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 dlabel D_80241848_866388 .word 0x00000024, 0x00000002, 0xF5DE0329, 0x00000001, 0x00000043, 0x00000002, SetSpriteShading, 0xFFFFFFFF, 0x00000043, 0x00000006, SetCamPerspective, 0x00000000, 0x00000003, 0x00000019, 0x00000010, 0x00001000, 0x00000043, 0x00000005, SetCamBGColor, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000043, 0x00000003, SetCamEnabled, 0x00000000, 0x00000001, 0x00000043, 0x00000003, MakeNpcs, 0x00000000, 0x802448D8, 0x00000044, 0x00000001, 0x80243AEC, 0x00000044, 0x00000001, 0x80242A14, 0x00000043, 0x00000005, SetMusicTrack, 0x00000000, 0x00000081, 0x00000000, 0x00000008, 0x00000043, 0x00000002, PlayAmbientSounds, 0x00000002, 0x00000044, 0x00000001, D_8024177C_8662BC, 0x00000043, 0x00000003, SetTexPanner, 0x00000013, 0x00000001, 0x00000043, 0x00000001, mac_06_SpawnSunEffect, 0x00000043, 0x00000002, GetEntryID, 0xFE363C80, 0x0000000A, 0x00000002, 0xFE363C80, 0x00000000, 0x00000056, 0x00000000, 0x00000024, 0x00000002, 0xFE363C80, 0x00000001, 0x00000024, 0x00000002, 0xFE363C81, 0x00000190, 0x00000024, 0x00000002, 0xFE363C82, 0x00000096, 0x00000024, 0x00000002, 0xFE363C83, 0x000000C8, 0x00000024, 0x00000002, 0xFE363C84, 0xFFFFFFC4, 0x00000024, 0x00000002, 0xFE363C85, 0x00000001, 0x00000024, 0x00000002, 0xFE363C86, 0x00000001, 0x00000024, 0x00000002, 0xFE363C87, 0x00000001, 0x00000024, 0x00000002, 0xFE363C88, 0x00000001, 0x00000024, 0x00000002, 0xFE363C89, 0x00000000, 0x00000024, 0x00000002, 0xFE363C8A, 0x00000000, 0x00000024, 0x00000002, 0xFE363C8B, 0x00000000, 0x00000024, 0x00000002, 0xFE363C8C, 0x00000000, 0x00000044, 0x00000001, D_802416E0_866220, 0x00000057, 0x00000000, 0x00000012, 0x00000000, 0x00000056, 0x00000000, 0x00000024, 0x00000002, 0xFE363C80, 0x00000001, 0x00000024, 0x00000002, 0xFE363C81, 0xFFFFFE70, 0x00000024, 0x00000002, 0xFE363C82, 0xFFFFFF6A, 0x00000024, 0x00000002, 0xFE363C83, 0xFFFFFF38, 0x00000024, 0x00000002, 0xFE363C84, 0x0000003C, 0x00000024, 0x00000002, 0xFE363C85, 0x00000001, 0x00000024, 0x00000002, 0xFE363C86, 0x00000001, 0x00000024, 0x00000002, 0xFE363C87, 0x00000001, 0x00000024, 0x00000002, 0xFE363C88, 0x00000001, 0x00000024, 0x00000002, 0xFE363C89, 0x00000000, 0x00000024, 0x00000002, 0xFE363C8A, 0x00000000, 0x00000024, 0x00000002, 0xFE363C8B, 0x00000000, 0x00000024, 0x00000002, 0xFE363C8C, 0x00000000, 0x00000044, 0x00000001, D_802416E0_866220, 0x00000057, 0x00000000, 0x00000013, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000000 diff --git a/ver/us/asm/data/world/area_mac/mac_06/8666A0.data.s b/ver/us/asm/data/world/area_mac/mac_06/8666A0.data.s index a0cc7edfa5..932e679245 100644 --- a/ver/us/asm/data/world/area_mac/mac_06/8666A0.data.s +++ b/ver/us/asm/data/world/area_mac/mac_06/8666A0.data.s @@ -2,29 +2,29 @@ .section .data -dlabel D_80241B60_8666A0 +dlabel mac_06_unkAngle1 .word 0x00000000 -dlabel D_80241B64_8666A4 +dlabel mac_06_unkAngle2 .word 0xFFFFFFFF -dlabel D_80241B68_8666A8 +dlabel mac_06_unkAngle3 .word 0xFFFFFFFF dlabel D_80241B6C_8666AC -.word 0x00000043, 0x00000008, func_80240A18_865558, 0xFE363C8C, 0xFE363C80, 0x0000001E, 0x0000003C, 0x0000001E, 0x00000000, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000006, 0xFE363C80, 0x00000001, 0x00000000, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000004, 0xFE363C80, 0xFFFFFFFF, 0x00000000, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 +.word 0x00000043, 0x00000008, mac_06_UnkFloatFunc001, 0xFE363C8C, 0xFE363C80, 0x0000001E, 0x0000003C, 0x0000001E, 0x00000000, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000006, 0xFE363C80, 0x00000001, 0x00000000, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000004, 0xFE363C80, 0xFFFFFFFF, 0x00000000, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 dlabel D_80241BE4_866724 -.word 0x00000043, 0x00000008, func_80240A18_865558, 0xFE363C8C, 0xFE363C80, 0x00000000, 0x0000001E, 0x0000001E, 0x00000001, 0x00000000, 0x00000026, 0x00000002, 0xFE363C81, 0xFE363C80, 0x0000002F, 0x00000002, 0xFE363C81, 0xF24A8680, 0x00000043, 0x00000006, RotateModel, 0x00000008, 0xFE363C80, 0x00000000, 0x00000000, 0x00000001, 0x00000043, 0x00000006, RotateGroup, 0x0000000D, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000005, TranslateModel, 0x00000000, 0xFFFFFFFB, 0xFFFFFFBC, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000002, 0xFFFFFFFB, 0xFFFFFFBC, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000006, 0x0000003C, 0x0000001D, 0xFFFFFFCD, 0x00000043, 0x00000005, TranslateModel, 0x00000004, 0x0000003C, 0x0000001D, 0x00000033, 0x00000043, 0x00000006, RotateModel, 0x00000000, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000006, RotateModel, 0x00000002, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000006, RotateModel, 0x00000006, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000006, RotateModel, 0x00000004, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000005, TranslateModel, 0x00000000, 0x00000005, 0x00000044, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000002, 0x00000005, 0x00000044, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000006, 0xFFFFFFC4, 0xFFFFFFE3, 0x00000033, 0x00000043, 0x00000005, TranslateModel, 0x00000004, 0xFFFFFFC4, 0xFFFFFFE3, 0xFFFFFFCD, 0x00000043, 0x00000008, func_80240A18_865558, 0xFE363C8C, 0xFE363C80, 0x00000000, 0xFFFFFFD8, 0x0000001E, 0x00000001, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000000E, 0xFE363C80, 0x00000000, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 +.word 0x00000043, 0x00000008, mac_06_UnkFloatFunc001, 0xFE363C8C, 0xFE363C80, 0x00000000, 0x0000001E, 0x0000001E, 0x00000001, 0x00000000, 0x00000026, 0x00000002, 0xFE363C81, 0xFE363C80, 0x0000002F, 0x00000002, 0xFE363C81, 0xF24A8680, 0x00000043, 0x00000006, RotateModel, 0x00000008, 0xFE363C80, 0x00000000, 0x00000000, 0x00000001, 0x00000043, 0x00000006, RotateGroup, 0x0000000D, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000005, TranslateModel, 0x00000000, 0xFFFFFFFB, 0xFFFFFFBC, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000002, 0xFFFFFFFB, 0xFFFFFFBC, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000006, 0x0000003C, 0x0000001D, 0xFFFFFFCD, 0x00000043, 0x00000005, TranslateModel, 0x00000004, 0x0000003C, 0x0000001D, 0x00000033, 0x00000043, 0x00000006, RotateModel, 0x00000000, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000006, RotateModel, 0x00000002, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000006, RotateModel, 0x00000006, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000006, RotateModel, 0x00000004, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000005, TranslateModel, 0x00000000, 0x00000005, 0x00000044, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000002, 0x00000005, 0x00000044, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000006, 0xFFFFFFC4, 0xFFFFFFE3, 0x00000033, 0x00000043, 0x00000005, TranslateModel, 0x00000004, 0xFFFFFFC4, 0xFFFFFFE3, 0xFFFFFFCD, 0x00000043, 0x00000008, mac_06_UnkFloatFunc001, 0xFE363C8C, 0xFE363C80, 0x00000000, 0xFFFFFFD8, 0x0000001E, 0x00000001, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000000E, 0xFE363C80, 0x00000000, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 dlabel D_80241E20_866960 -.word 0x00000043, 0x00000008, func_80240A18_865558, 0xFE363C8C, 0xFE363C80, 0x00000000, 0xFFFFFFE2, 0x00000008, 0x00000001, 0x00000000, 0x0000002C, 0x00000002, 0xFE363C80, 0xF24AF280, 0x00000026, 0x00000002, 0xFE363C81, 0xFE363C80, 0x0000002F, 0x00000002, 0xFE363C81, 0xF24A8680, 0x00000043, 0x00000006, RotateModel, 0x00000008, 0xFE363C80, 0x00000000, 0x00000000, 0x00000001, 0x00000043, 0x00000006, RotateGroup, 0x0000000D, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000005, TranslateModel, 0x00000000, 0xFFFFFFFB, 0xFFFFFFBC, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000002, 0xFFFFFFFB, 0xFFFFFFBC, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000006, 0x0000003C, 0x0000001D, 0xFFFFFFCD, 0x00000043, 0x00000005, TranslateModel, 0x00000004, 0x0000003C, 0x0000001D, 0x00000033, 0x00000043, 0x00000006, RotateModel, 0x00000000, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000006, RotateModel, 0x00000002, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000006, RotateModel, 0x00000006, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000006, RotateModel, 0x00000004, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000005, TranslateModel, 0x00000000, 0x00000005, 0x00000044, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000002, 0x00000005, 0x00000044, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000006, 0xFFFFFFC4, 0xFFFFFFE3, 0x00000033, 0x00000043, 0x00000005, TranslateModel, 0x00000004, 0xFFFFFFC4, 0xFFFFFFE3, 0xFFFFFFCD, 0x00000043, 0x00000008, func_80240A18_865558, 0xFE363C8C, 0xFE363C80, 0x00000000, 0xFFFFFFD8, 0x00000078, 0x00000001, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000000E, 0xFE363C80, 0x00000000, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 +.word 0x00000043, 0x00000008, mac_06_UnkFloatFunc001, 0xFE363C8C, 0xFE363C80, 0x00000000, 0xFFFFFFE2, 0x00000008, 0x00000001, 0x00000000, 0x0000002C, 0x00000002, 0xFE363C80, 0xF24AF280, 0x00000026, 0x00000002, 0xFE363C81, 0xFE363C80, 0x0000002F, 0x00000002, 0xFE363C81, 0xF24A8680, 0x00000043, 0x00000006, RotateModel, 0x00000008, 0xFE363C80, 0x00000000, 0x00000000, 0x00000001, 0x00000043, 0x00000006, RotateGroup, 0x0000000D, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000005, TranslateModel, 0x00000000, 0xFFFFFFFB, 0xFFFFFFBC, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000002, 0xFFFFFFFB, 0xFFFFFFBC, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000006, 0x0000003C, 0x0000001D, 0xFFFFFFCD, 0x00000043, 0x00000005, TranslateModel, 0x00000004, 0x0000003C, 0x0000001D, 0x00000033, 0x00000043, 0x00000006, RotateModel, 0x00000000, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000006, RotateModel, 0x00000002, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000006, RotateModel, 0x00000006, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000006, RotateModel, 0x00000004, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000005, TranslateModel, 0x00000000, 0x00000005, 0x00000044, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000002, 0x00000005, 0x00000044, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000006, 0xFFFFFFC4, 0xFFFFFFE3, 0x00000033, 0x00000043, 0x00000005, TranslateModel, 0x00000004, 0xFFFFFFC4, 0xFFFFFFE3, 0xFFFFFFCD, 0x00000043, 0x00000008, mac_06_UnkFloatFunc001, 0xFE363C8C, 0xFE363C80, 0x00000000, 0xFFFFFFD8, 0x00000078, 0x00000001, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000000E, 0xFE363C80, 0x00000000, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 dlabel D_8024206C_866BAC .word 0x00000002, 0x00000000, 0x00000001, 0x00000000 dlabel D_8024207C_866BBC -.word 0x00000043, 0x00000004, GetNpcVar, 0x00000000, 0x00000000, 0xFE363C83, 0x0000000A, 0x00000002, 0xFE363C83, 0x00000000, 0x00000043, 0x00000001, func_80240B88_8656C8, 0x00000043, 0x00000006, PlaySoundAt, 0x8000004F, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000009, mac_06_PlayFX3D, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000000, 0xFFFFFFFF, 0x00000000, 0x0000001E, 0x00000043, 0x00000004, SetNpcVar, 0x00000000, 0x00000000, 0xFE363C80, 0x00000013, 0x00000000, 0x00000043, 0x00000004, GetNpcVar, 0x00000000, 0x00000000, 0xFE363C83, 0x00000043, 0x00000001, func_80240B88_8656C8, 0x00000043, 0x00000005, func_80240DA4_8658E4, 0xFE363C83, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000008, func_80240A18_865558, 0xFE363C8C, 0xFE363C80, 0x0000001E, 0x0000003C, 0x00000019, 0x00000000, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000006, 0xFE363C80, 0x00000001, 0x00000000, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000004, 0xFE363C80, 0xFFFFFFFF, 0x00000000, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 +.word 0x00000043, 0x00000004, GetNpcVar, 0x00000000, 0x00000000, 0xFE363C83, 0x0000000A, 0x00000002, 0xFE363C83, 0x00000000, 0x00000043, 0x00000001, mac_06_UnkPlayerPosFunc, 0x00000043, 0x00000006, PlaySoundAt, 0x8000004F, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000009, mac_06_PlayFX3D, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000000, 0xFFFFFFFF, 0x00000000, 0x0000001E, 0x00000043, 0x00000004, SetNpcVar, 0x00000000, 0x00000000, 0xFE363C80, 0x00000013, 0x00000000, 0x00000043, 0x00000004, GetNpcVar, 0x00000000, 0x00000000, 0xFE363C83, 0x00000043, 0x00000001, mac_06_UnkPlayerPosFunc, 0x00000043, 0x00000005, func_80240DA4_8658E4, 0xFE363C83, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000008, mac_06_UnkFloatFunc001, 0xFE363C8C, 0xFE363C80, 0x0000001E, 0x0000003C, 0x00000019, 0x00000000, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000006, 0xFE363C80, 0x00000001, 0x00000000, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000004, 0xFE363C80, 0xFFFFFFFF, 0x00000000, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 dlabel D_802421D4_866D14 .word 0x00000002, 0x00000000, 0x00000001, 0x00000000 @@ -33,16 +33,16 @@ dlabel D_802421E4_866D24 .word 0x0000000F, 0x00000002, 0xFE363C8C, 0x00000000, 0x0000000E, 0x00000002, 0xFE363C8C, 0x00000002, 0x00000043, 0x00000003, EnableModel, 0x00000000, 0x00000000, 0x00000043, 0x00000003, EnableModel, 0x00000002, 0x00000001, 0x00000002, 0x00000000, 0x00000013, 0x00000000, 0x00000013, 0x00000000, 0x0000000A, 0x00000002, 0xFE363C8C, 0x0000000F, 0x00000043, 0x00000003, EnableModel, 0x00000000, 0x00000000, 0x00000043, 0x00000003, EnableModel, 0x00000002, 0x00000001, 0x00000002, 0x00000000, 0x00000013, 0x00000000, 0x0000000A, 0x00000002, 0xFE363C8C, 0x00000016, 0x00000043, 0x00000003, EnableModel, 0x00000000, 0x00000000, 0x00000043, 0x00000003, EnableModel, 0x00000002, 0x00000001, 0x00000002, 0x00000000, 0x00000013, 0x00000000, 0x00000043, 0x00000003, EnableModel, 0x00000000, 0x00000001, 0x00000043, 0x00000003, EnableModel, 0x00000002, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 dlabel D_8024230C_866E4C -.word 0x00000024, 0x00000002, 0xFE363C80, 0xFE363C8C, 0x0000002A, 0x00000002, 0xFE363C80, 0x00000014, 0x0000002B, 0x00000002, 0xFE363C80, 0x00000002, 0x0000000A, 0x00000002, 0xFE363C80, 0x00000000, 0x00000002, 0x00000000, 0x00000013, 0x00000000, 0x00000043, 0x00000008, func_80240A18_865558, 0xFE363C8C, 0xFE363C80, 0xF24A7680, 0xF24A7E80, 0x00000003, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000008, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateGroup, 0x0000000D, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000000, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000002, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000006, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000004, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000006, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000004, 0xFE363C80, 0x00000000, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 +.word 0x00000024, 0x00000002, 0xFE363C80, 0xFE363C8C, 0x0000002A, 0x00000002, 0xFE363C80, 0x00000014, 0x0000002B, 0x00000002, 0xFE363C80, 0x00000002, 0x0000000A, 0x00000002, 0xFE363C80, 0x00000000, 0x00000002, 0x00000000, 0x00000013, 0x00000000, 0x00000043, 0x00000008, mac_06_UnkFloatFunc001, 0xFE363C8C, 0xFE363C80, 0xF24A7680, 0xF24A7E80, 0x00000003, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000008, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateGroup, 0x0000000D, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000000, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000002, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000006, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000004, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000006, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000004, 0xFE363C80, 0x00000000, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 dlabel D_80242474_866FB4 -.word 0x00000043, 0x00000008, func_80240A18_865558, 0xFE363C8C, 0xFE363C80, 0xF24A6280, 0xF24A9280, 0x00000003, 0x00000000, 0x00000000, 0x00000043, 0x00000008, func_80240A18_865558, 0xFE363C8C, 0xFE363C81, 0xF24A9280, 0xF24A6280, 0x00000002, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000008, 0xFE363C80, 0xFE363C81, 0x00000000, 0x00000043, 0x00000005, TranslateGroup, 0x0000000D, 0xFE363C80, 0xFE363C81, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000000, 0xFE363C80, 0xFE363C81, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000002, 0xFE363C80, 0xFE363C81, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000006, 0xFE363C80, 0xFE363C81, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000004, 0xFE363C80, 0xFE363C81, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000006, 0xFE363C80, 0xFE363C81, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000004, 0xFE363C80, 0xFE363C81, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 +.word 0x00000043, 0x00000008, mac_06_UnkFloatFunc001, 0xFE363C8C, 0xFE363C80, 0xF24A6280, 0xF24A9280, 0x00000003, 0x00000000, 0x00000000, 0x00000043, 0x00000008, mac_06_UnkFloatFunc001, 0xFE363C8C, 0xFE363C81, 0xF24A9280, 0xF24A6280, 0x00000002, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000008, 0xFE363C80, 0xFE363C81, 0x00000000, 0x00000043, 0x00000005, TranslateGroup, 0x0000000D, 0xFE363C80, 0xFE363C81, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000000, 0xFE363C80, 0xFE363C81, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000002, 0xFE363C80, 0xFE363C81, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000006, 0xFE363C80, 0xFE363C81, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000004, 0xFE363C80, 0xFE363C81, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000006, 0xFE363C80, 0xFE363C81, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000004, 0xFE363C80, 0xFE363C81, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 dlabel D_802425B4_8670F4 -.word 0x00000024, 0x00000002, 0xFE363C80, 0xFE363C8C, 0x0000002A, 0x00000002, 0xFE363C80, 0x00000014, 0x0000002B, 0x00000002, 0xFE363C80, 0x00000002, 0x0000000A, 0x00000002, 0xFE363C80, 0x00000000, 0x00000002, 0x00000000, 0x00000013, 0x00000000, 0x00000043, 0x00000008, func_80240A18_865558, 0xFE363C8C, 0xFE363C80, 0xF24A7680, 0xF24A7E80, 0x00000003, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000008, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateGroup, 0x0000000D, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000000, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000002, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000006, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000004, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000006, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000004, 0xFE363C80, 0x00000000, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 +.word 0x00000024, 0x00000002, 0xFE363C80, 0xFE363C8C, 0x0000002A, 0x00000002, 0xFE363C80, 0x00000014, 0x0000002B, 0x00000002, 0xFE363C80, 0x00000002, 0x0000000A, 0x00000002, 0xFE363C80, 0x00000000, 0x00000002, 0x00000000, 0x00000013, 0x00000000, 0x00000043, 0x00000008, mac_06_UnkFloatFunc001, 0xFE363C8C, 0xFE363C80, 0xF24A7680, 0xF24A7E80, 0x00000003, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000008, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateGroup, 0x0000000D, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000000, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000002, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000006, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000004, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000006, 0xFE363C80, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000004, 0xFE363C80, 0x00000000, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 dlabel D_8024271C_86725C -.word 0x00000043, 0x00000008, func_80240A18_865558, 0xFE363C8C, 0xFE363C80, 0x0000001E, 0x0000003C, 0x0000001E, 0x00000000, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000006, 0xFE363C80, 0x00000001, 0x00000000, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000004, 0xFE363C80, 0xFFFFFFFF, 0x00000000, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 +.word 0x00000043, 0x00000008, mac_06_UnkFloatFunc001, 0xFE363C8C, 0xFE363C80, 0x0000001E, 0x0000003C, 0x0000001E, 0x00000000, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000006, 0xFE363C80, 0x00000001, 0x00000000, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000004, 0xFE363C80, 0xFFFFFFFF, 0x00000000, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 dlabel D_80242794_8672D4 -.word 0x00000043, 0x00000008, func_80240A18_865558, 0xFE363C8C, 0xFE363C80, 0x00000000, 0x0000001E, 0x00000003, 0x00000000, 0x00000000, 0x00000024, 0x00000002, 0xFE363C81, 0xFE363C80, 0x0000002A, 0x00000002, 0xFE363C81, 0x00000003, 0x00000043, 0x00000006, RotateModel, 0x00000008, 0xFE363C80, 0x00000000, 0x00000000, 0x00000001, 0x00000043, 0x00000006, RotateGroup, 0x0000000D, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000005, TranslateModel, 0x00000000, 0xFFFFFFFB, 0xFFFFFFBC, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000002, 0xFFFFFFFB, 0xFFFFFFBC, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000006, 0x0000003C, 0x0000001D, 0xFFFFFFCD, 0x00000043, 0x00000005, TranslateModel, 0x00000004, 0x0000003C, 0x0000001D, 0x00000033, 0x00000043, 0x00000006, RotateModel, 0x00000000, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000006, RotateModel, 0x00000002, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000006, RotateModel, 0x00000006, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000006, RotateModel, 0x00000004, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000005, TranslateModel, 0x00000000, 0x00000005, 0x00000044, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000002, 0x00000005, 0x00000044, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000006, 0xFFFFFFC4, 0xFFFFFFE3, 0x00000033, 0x00000043, 0x00000005, TranslateModel, 0x00000004, 0xFFFFFFC4, 0xFFFFFFE3, 0xFFFFFFCD, 0x00000024, 0x00000002, 0xFE363C80, 0xFE363C8C, 0x00000029, 0x00000002, 0xFE363C80, 0x00000002, 0x00000043, 0x00000008, func_80240A18_865558, 0xFE363C80, 0xFE363C80, 0x0000001E, 0x0000003C, 0x00000003, 0x00000000, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000006, 0xFE363C80, 0x00000001, 0x00000000, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000004, 0xFE363C80, 0xFFFFFFFF, 0x00000000, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x0000004D, 0x00000001, 0x00000000, 0x00000043, 0x00000004, MakeLocalVertexCopy, 0x00000001, 0x0000000A, 0x00000001, 0x00000043, 0x00000004, SetCustomGfxBuilders, 0x00000001, func_802408D0_865410, 0x00000000, 0x00000043, 0x00000004, SetModelCustomGfx, 0x0000000A, 0x00000001, 0xFFFFFFFF, 0x00000043, 0x00000004, MakeLocalVertexCopy, 0x00000002, 0x0000000B, 0x00000001, 0x00000043, 0x00000004, SetCustomGfxBuilders, 0x00000002, func_80240974_8654B4, 0x00000000, 0x00000043, 0x00000004, SetModelCustomGfx, 0x0000000B, 0x00000002, 0xFFFFFFFF, 0x00000043, 0x00000004, SetNpcVar, 0x00000000, 0x00000000, 0x00000000, 0x00000056, 0x00000000, 0x00000003, 0x00000001, 0x00000000, 0x00000043, 0x00000005, func_8024050C_86504C, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x0000002D, 0x00000002, 0xFE363C80, 0xFFFFFFB0, 0x0000002D, 0x00000002, 0xFE363C81, 0xFFFFFFEE, 0x0000002D, 0x00000002, 0xFE363C82, 0x000001A4, 0x0000002C, 0x00000002, 0xFE363C80, 0x00000082, 0x0000002C, 0x00000002, 0xFE363C81, 0xFFFFFFEC, 0x0000002C, 0x00000002, 0xFE363C82, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000000E, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000005, TranslateModel, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000005, TranslateModel, 0x00000002, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000005, TranslateModel, 0x00000008, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000005, TranslateModel, 0x00000006, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000005, TranslateModel, 0x00000004, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000005, TranslateGroup, 0x0000000D, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000003, GetNpcYaw, 0x00000000, 0xFE363C80, 0x0000002E, 0x00000002, 0xFE363C80, 0xFFFFFFFF, 0x0000002C, 0x00000002, 0xFE363C80, 0xFFFFFFA6, 0x00000043, 0x00000005, TranslateModel, 0x0000000E, 0xFFFFFF9C, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000000, 0xFFFFFF9C, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000002, 0xFFFFFF9C, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000008, 0xFFFFFF9C, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000006, 0xFFFFFF9C, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000004, 0xFFFFFF9C, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateGroup, 0x0000000D, 0xFFFFFF9C, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000000E, 0x00000064, 0xFFFFFFFF, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000000, 0xFFFFFFFB, 0xFFFFFFBC, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000002, 0xFFFFFFFB, 0xFFFFFFBC, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000008, 0x00000066, 0x00000004, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000006, 0x0000003C, 0x0000001D, 0xFFFFFFCD, 0x00000043, 0x00000005, TranslateModel, 0x00000004, 0x0000003C, 0x0000001D, 0x00000033, 0x00000043, 0x00000006, RotateModel, 0x0000000E, 0xFE363C80, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000000, 0xFE363C80, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000002, 0xFE363C80, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000008, 0xFE363C80, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000006, 0xFE363C80, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000004, 0xFE363C80, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000006, RotateGroup, 0x0000000D, 0xFE363C80, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000000E, 0xFFFFFF9C, 0x00000001, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000000, 0x00000005, 0x00000044, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000002, 0x00000005, 0x00000044, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000008, 0xFFFFFF9A, 0xFFFFFFFC, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000006, 0xFFFFFFC4, 0xFFFFFFE3, 0x00000033, 0x00000043, 0x00000005, TranslateModel, 0x00000004, 0xFFFFFFC4, 0xFFFFFFE3, 0xFFFFFFCD, 0x00000043, 0x00000005, TranslateModel, 0x0000000E, 0x00000064, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000000, 0x00000064, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000002, 0x00000064, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000008, 0x00000064, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000006, 0x00000064, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000004, 0x00000064, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateGroup, 0x0000000D, 0x00000064, 0x00000000, 0x00000000, 0x00000043, 0x00000003, GetNpcAnimation, 0x00000000, 0xFE363C80, 0x0000000B, 0x00000002, 0xFE363C80, 0xFE363C8B, 0x00000024, 0x00000002, 0xFE363C8B, 0xFE363C80, 0x00000024, 0x00000002, 0xFE363C8C, 0x00000000, 0x00000043, 0x00000003, EnableModel, 0x00000000, 0x00000001, 0x00000043, 0x00000003, EnableModel, 0x00000002, 0x00000000, 0x0000000B, 0x00000002, 0xFE363C8B, 0x00B60009, 0x00000043, 0x00000004, GetNpcVar, 0x00000000, 0x00000000, 0xFE363C80, 0x0000000B, 0x00000002, 0xFE363C80, 0x00000000, 0x00000043, 0x00000002, PlaySound, 0x00000443, 0x00000043, 0x00000002, func_802D62E4, 0x00000043, 0x00000043, 0x00000002, func_80240E48_865988, 0xFE363C80, 0x00000043, 0x00000004, SetNpcVar, 0x00000000, 0x00000000, 0x00000000, 0x00000013, 0x00000000, 0x00000013, 0x00000000, 0x00000014, 0x00000001, 0xFE363C8B, 0x00000016, 0x00000001, 0x00B60003, 0x00000043, 0x00000004, PlaySoundAtNpc, 0x00000000, 0x00002037, 0x00000000, 0x00000024, 0x00000002, 0xFE363C8D, D_80241E20_866960, 0x00000016, 0x00000001, 0x00B60000, 0x00000024, 0x00000002, 0xFE363C8D, D_80241B6C_8666AC, 0x00000016, 0x00000001, 0x00B60002, 0x00000043, 0x00000004, PlaySoundAtNpc, 0x00000000, 0x00002036, 0x00000000, 0x00000024, 0x00000002, 0xFE363C8D, D_80241BE4_866724, 0x00000016, 0x00000001, 0x00B60001, 0x00000024, 0x00000002, 0xFE363C8D, D_8024271C_86725C, 0x00000016, 0x00000001, 0x00B60004, 0x00000024, 0x00000002, 0xFE363C8D, D_80242794_8672D4, 0x00000016, 0x00000001, 0x00B60005, 0x00000024, 0x00000002, 0xFE363C8D, D_8024206C_866BAC, 0x00000043, 0x00000003, EnableModel, 0x00000000, 0x00000000, 0x00000043, 0x00000003, EnableModel, 0x00000002, 0x00000000, 0x00000016, 0x00000001, 0x00B60006, 0x00000024, 0x00000002, 0xFE363C8D, D_8024230C_866E4C, 0x00000043, 0x00000003, EnableModel, 0x00000000, 0x00000000, 0x00000043, 0x00000003, EnableModel, 0x00000002, 0x00000000, 0x00000016, 0x00000001, 0x00B60007, 0x00000024, 0x00000002, 0xFE363C8D, D_80242474_866FB4, 0x00000043, 0x00000003, EnableModel, 0x00000000, 0x00000000, 0x00000043, 0x00000003, EnableModel, 0x00000002, 0x00000000, 0x00000016, 0x00000001, 0x00B60008, 0x00000024, 0x00000002, 0xFE363C8D, D_802425B4_8670F4, 0x00000016, 0x00000001, 0x00B60009, 0x00000024, 0x00000002, 0xFE363C8D, D_8024207C_866BBC, 0x00000016, 0x00000001, 0x00B6000A, 0x00000024, 0x00000002, 0xFE363C8D, D_802421D4_866D14, 0x00000016, 0x00000001, 0x00B6000C, 0x00000024, 0x00000002, 0xFE363C8D, D_802421E4_866D24, 0x00000023, 0x00000000, 0x00000013, 0x00000000, 0x00000046, 0x00000001, 0xFE363C8D, 0x00000027, 0x00000002, 0xFE363C8C, 0x00000001, 0x0000000D, 0x00000002, 0xFE363C8C, 0x000003E8, 0x00000024, 0x00000002, 0xFE363C8C, 0x00000000, 0x00000013, 0x00000000, 0x00000004, 0x00000001, 0x00000000, 0x00000057, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000003, SetNpcAnimation, 0x00000000, 0x00B60003, 0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000000 +.word 0x00000043, 0x00000008, mac_06_UnkFloatFunc001, 0xFE363C8C, 0xFE363C80, 0x00000000, 0x0000001E, 0x00000003, 0x00000000, 0x00000000, 0x00000024, 0x00000002, 0xFE363C81, 0xFE363C80, 0x0000002A, 0x00000002, 0xFE363C81, 0x00000003, 0x00000043, 0x00000006, RotateModel, 0x00000008, 0xFE363C80, 0x00000000, 0x00000000, 0x00000001, 0x00000043, 0x00000006, RotateGroup, 0x0000000D, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000005, TranslateModel, 0x00000000, 0xFFFFFFFB, 0xFFFFFFBC, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000002, 0xFFFFFFFB, 0xFFFFFFBC, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000006, 0x0000003C, 0x0000001D, 0xFFFFFFCD, 0x00000043, 0x00000005, TranslateModel, 0x00000004, 0x0000003C, 0x0000001D, 0x00000033, 0x00000043, 0x00000006, RotateModel, 0x00000000, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000006, RotateModel, 0x00000002, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000006, RotateModel, 0x00000006, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000006, RotateModel, 0x00000004, 0xFE363C81, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000043, 0x00000005, TranslateModel, 0x00000000, 0x00000005, 0x00000044, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000002, 0x00000005, 0x00000044, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000006, 0xFFFFFFC4, 0xFFFFFFE3, 0x00000033, 0x00000043, 0x00000005, TranslateModel, 0x00000004, 0xFFFFFFC4, 0xFFFFFFE3, 0xFFFFFFCD, 0x00000024, 0x00000002, 0xFE363C80, 0xFE363C8C, 0x00000029, 0x00000002, 0xFE363C80, 0x00000002, 0x00000043, 0x00000008, mac_06_UnkFloatFunc001, 0xFE363C80, 0xFE363C80, 0x0000001E, 0x0000003C, 0x00000003, 0x00000000, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000006, 0xFE363C80, 0x00000001, 0x00000000, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000004, 0xFE363C80, 0xFFFFFFFF, 0x00000000, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x0000004D, 0x00000001, 0x00000000, 0x00000043, 0x00000004, MakeLocalVertexCopy, 0x00000001, 0x0000000A, 0x00000001, 0x00000043, 0x00000004, SetCustomGfxBuilders, 0x00000001, mac_06_unkAngleFunc002, 0x00000000, 0x00000043, 0x00000004, SetModelCustomGfx, 0x0000000A, 0x00000001, 0xFFFFFFFF, 0x00000043, 0x00000004, MakeLocalVertexCopy, 0x00000002, 0x0000000B, 0x00000001, 0x00000043, 0x00000004, SetCustomGfxBuilders, 0x00000002, mac_06_unkAngleFunc003, 0x00000000, 0x00000043, 0x00000004, SetModelCustomGfx, 0x0000000B, 0x00000002, 0xFFFFFFFF, 0x00000043, 0x00000004, SetNpcVar, 0x00000000, 0x00000000, 0x00000000, 0x00000056, 0x00000000, 0x00000003, 0x00000001, 0x00000000, 0x00000043, 0x00000005, mac_06_UnkAngleFunc001, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x0000002D, 0x00000002, 0xFE363C80, 0xFFFFFFB0, 0x0000002D, 0x00000002, 0xFE363C81, 0xFFFFFFEE, 0x0000002D, 0x00000002, 0xFE363C82, 0x000001A4, 0x0000002C, 0x00000002, 0xFE363C80, 0x00000082, 0x0000002C, 0x00000002, 0xFE363C81, 0xFFFFFFEC, 0x0000002C, 0x00000002, 0xFE363C82, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000000E, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000005, TranslateModel, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000005, TranslateModel, 0x00000002, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000005, TranslateModel, 0x00000008, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000005, TranslateModel, 0x00000006, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000005, TranslateModel, 0x00000004, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000005, TranslateGroup, 0x0000000D, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x00000003, GetNpcYaw, 0x00000000, 0xFE363C80, 0x0000002E, 0x00000002, 0xFE363C80, 0xFFFFFFFF, 0x0000002C, 0x00000002, 0xFE363C80, 0xFFFFFFA6, 0x00000043, 0x00000005, TranslateModel, 0x0000000E, 0xFFFFFF9C, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000000, 0xFFFFFF9C, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000002, 0xFFFFFF9C, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000008, 0xFFFFFF9C, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000006, 0xFFFFFF9C, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000004, 0xFFFFFF9C, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateGroup, 0x0000000D, 0xFFFFFF9C, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000000E, 0x00000064, 0xFFFFFFFF, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000000, 0xFFFFFFFB, 0xFFFFFFBC, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000002, 0xFFFFFFFB, 0xFFFFFFBC, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000008, 0x00000066, 0x00000004, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000006, 0x0000003C, 0x0000001D, 0xFFFFFFCD, 0x00000043, 0x00000005, TranslateModel, 0x00000004, 0x0000003C, 0x0000001D, 0x00000033, 0x00000043, 0x00000006, RotateModel, 0x0000000E, 0xFE363C80, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000000, 0xFE363C80, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000002, 0xFE363C80, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000008, 0xFE363C80, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000006, 0xFE363C80, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000006, RotateModel, 0x00000004, 0xFE363C80, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000006, RotateGroup, 0x0000000D, 0xFE363C80, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x0000000E, 0xFFFFFF9C, 0x00000001, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000000, 0x00000005, 0x00000044, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000002, 0x00000005, 0x00000044, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000008, 0xFFFFFF9A, 0xFFFFFFFC, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000006, 0xFFFFFFC4, 0xFFFFFFE3, 0x00000033, 0x00000043, 0x00000005, TranslateModel, 0x00000004, 0xFFFFFFC4, 0xFFFFFFE3, 0xFFFFFFCD, 0x00000043, 0x00000005, TranslateModel, 0x0000000E, 0x00000064, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000000, 0x00000064, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000002, 0x00000064, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000008, 0x00000064, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000006, 0x00000064, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateModel, 0x00000004, 0x00000064, 0x00000000, 0x00000000, 0x00000043, 0x00000005, TranslateGroup, 0x0000000D, 0x00000064, 0x00000000, 0x00000000, 0x00000043, 0x00000003, GetNpcAnimation, 0x00000000, 0xFE363C80, 0x0000000B, 0x00000002, 0xFE363C80, 0xFE363C8B, 0x00000024, 0x00000002, 0xFE363C8B, 0xFE363C80, 0x00000024, 0x00000002, 0xFE363C8C, 0x00000000, 0x00000043, 0x00000003, EnableModel, 0x00000000, 0x00000001, 0x00000043, 0x00000003, EnableModel, 0x00000002, 0x00000000, 0x0000000B, 0x00000002, 0xFE363C8B, 0x00B60009, 0x00000043, 0x00000004, GetNpcVar, 0x00000000, 0x00000000, 0xFE363C80, 0x0000000B, 0x00000002, 0xFE363C80, 0x00000000, 0x00000043, 0x00000002, PlaySound, 0x00000443, 0x00000043, 0x00000002, func_802D62E4, 0x00000043, 0x00000043, 0x00000002, func_80240E48_865988, 0xFE363C80, 0x00000043, 0x00000004, SetNpcVar, 0x00000000, 0x00000000, 0x00000000, 0x00000013, 0x00000000, 0x00000013, 0x00000000, 0x00000014, 0x00000001, 0xFE363C8B, 0x00000016, 0x00000001, 0x00B60003, 0x00000043, 0x00000004, PlaySoundAtNpc, 0x00000000, 0x00002037, 0x00000000, 0x00000024, 0x00000002, 0xFE363C8D, D_80241E20_866960, 0x00000016, 0x00000001, 0x00B60000, 0x00000024, 0x00000002, 0xFE363C8D, D_80241B6C_8666AC, 0x00000016, 0x00000001, 0x00B60002, 0x00000043, 0x00000004, PlaySoundAtNpc, 0x00000000, 0x00002036, 0x00000000, 0x00000024, 0x00000002, 0xFE363C8D, D_80241BE4_866724, 0x00000016, 0x00000001, 0x00B60001, 0x00000024, 0x00000002, 0xFE363C8D, D_8024271C_86725C, 0x00000016, 0x00000001, 0x00B60004, 0x00000024, 0x00000002, 0xFE363C8D, D_80242794_8672D4, 0x00000016, 0x00000001, 0x00B60005, 0x00000024, 0x00000002, 0xFE363C8D, D_8024206C_866BAC, 0x00000043, 0x00000003, EnableModel, 0x00000000, 0x00000000, 0x00000043, 0x00000003, EnableModel, 0x00000002, 0x00000000, 0x00000016, 0x00000001, 0x00B60006, 0x00000024, 0x00000002, 0xFE363C8D, D_8024230C_866E4C, 0x00000043, 0x00000003, EnableModel, 0x00000000, 0x00000000, 0x00000043, 0x00000003, EnableModel, 0x00000002, 0x00000000, 0x00000016, 0x00000001, 0x00B60007, 0x00000024, 0x00000002, 0xFE363C8D, D_80242474_866FB4, 0x00000043, 0x00000003, EnableModel, 0x00000000, 0x00000000, 0x00000043, 0x00000003, EnableModel, 0x00000002, 0x00000000, 0x00000016, 0x00000001, 0x00B60008, 0x00000024, 0x00000002, 0xFE363C8D, D_802425B4_8670F4, 0x00000016, 0x00000001, 0x00B60009, 0x00000024, 0x00000002, 0xFE363C8D, D_8024207C_866BBC, 0x00000016, 0x00000001, 0x00B6000A, 0x00000024, 0x00000002, 0xFE363C8D, D_802421D4_866D14, 0x00000016, 0x00000001, 0x00B6000C, 0x00000024, 0x00000002, 0xFE363C8D, D_802421E4_866D24, 0x00000023, 0x00000000, 0x00000013, 0x00000000, 0x00000046, 0x00000001, 0xFE363C8D, 0x00000027, 0x00000002, 0xFE363C8C, 0x00000001, 0x0000000D, 0x00000002, 0xFE363C8C, 0x000003E8, 0x00000024, 0x00000002, 0xFE363C8C, 0x00000000, 0x00000013, 0x00000000, 0x00000004, 0x00000001, 0x00000000, 0x00000057, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000003, SetNpcAnimation, 0x00000000, 0x00B60003, 0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000000 diff --git a/ver/us/asm/data/world/area_obk/obk_02/BC3720.data.s b/ver/us/asm/data/world/area_obk/obk_02/BC3720.data.s index 958be273cb..6df695bd88 100644 --- a/ver/us/asm/data/world/area_obk/obk_02/BC3720.data.s +++ b/ver/us/asm/data/world/area_obk/obk_02/BC3720.data.s @@ -9,7 +9,7 @@ dlabel D_80240CBC_BC374C .short 0x0032, 0x003C, 0x00C8, 0x00F0 dlabel D_80240CC4_BC3754 -.word 0x00000024, 0x00000002, 0xFE363C80, 0x00000000, 0x00000024, 0x00000002, 0xFE363C81, 0x00000000, 0x00000043, 0x00000001, func_80240000_BC2A90, 0x00000005, 0x00000001, 0x00000000, 0x00000043, 0x00000001, func_8024000C_BC2A9C, 0x00000043, 0x00000001, func_80240194_BC2C24, 0x00000043, 0x00000007, func_802CFD30, 0xFFFFFFFF, 0x00000007, 0xFE363C80, 0x00000000, 0x00000000, 0x00000000, 0x00000043, 0x00000003, SetNpcRenderMode, 0xFFFFFFFF, 0x00000011, 0x00000008, 0x00000001, 0x00000001, 0x00000006, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 +.word 0x00000024, 0x00000002, 0xFE363C80, 0x00000000, 0x00000024, 0x00000002, 0xFE363C81, 0x00000000, 0x00000043, 0x00000001, func_80240000_BC2A90, 0x00000005, 0x00000001, 0x00000000, 0x00000043, 0x00000001, obk_02_UnkAngleFunc004, 0x00000043, 0x00000001, func_80240194_BC2C24, 0x00000043, 0x00000007, func_802CFD30, 0xFFFFFFFF, 0x00000007, 0xFE363C80, 0x00000000, 0x00000000, 0x00000000, 0x00000043, 0x00000003, SetNpcRenderMode, 0xFFFFFFFF, 0x00000011, 0x00000008, 0x00000001, 0x00000001, 0x00000006, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 dlabel D_80240D70_BC3800 .word 0x00000043, 0x00000003, BindNpcIdle, 0xFFFFFFFF, D_80240CC4_BC3754, 0x00000002, 0x00000000, 0x00000001, 0x00000000 diff --git a/ver/us/asm/data/world/area_obk/obk_07/BD14F0.data.s b/ver/us/asm/data/world/area_obk/obk_07/BD14F0.data.s index 20a5cf64d3..58b1fe80dc 100644 --- a/ver/us/asm/data/world/area_obk/obk_07/BD14F0.data.s +++ b/ver/us/asm/data/world/area_obk/obk_07/BD14F0.data.s @@ -9,7 +9,7 @@ dlabel D_8024292C_BD151C .short 0x0032, 0x003C, 0x00C8, 0x00F0 dlabel D_80242934_BD1524 -.word 0x00000024, 0x00000002, 0xFE363C80, 0x00000000, 0x00000024, 0x00000002, 0xFE363C81, 0x00000000, 0x00000043, 0x00000001, func_802402C0_BCEEB0, 0x00000005, 0x00000001, 0x00000000, 0x00000043, 0x00000001, func_802402CC_BCEEBC, 0x00000043, 0x00000001, func_80240454_BCF044, 0x00000043, 0x00000007, func_802CFD30, 0xFFFFFFFF, 0x00000007, 0xFE363C80, 0x00000000, 0x00000000, 0x00000000, 0x00000043, 0x00000003, SetNpcRenderMode, 0xFFFFFFFF, 0x00000011, 0x00000008, 0x00000001, 0x00000001, 0x00000006, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 +.word 0x00000024, 0x00000002, 0xFE363C80, 0x00000000, 0x00000024, 0x00000002, 0xFE363C81, 0x00000000, 0x00000043, 0x00000001, func_802402C0_BCEEB0, 0x00000005, 0x00000001, 0x00000000, 0x00000043, 0x00000001, obk_07_UnkAngleFunc004, 0x00000043, 0x00000001, func_80240454_BCF044, 0x00000043, 0x00000007, func_802CFD30, 0xFFFFFFFF, 0x00000007, 0xFE363C80, 0x00000000, 0x00000000, 0x00000000, 0x00000043, 0x00000003, SetNpcRenderMode, 0xFFFFFFFF, 0x00000011, 0x00000008, 0x00000001, 0x00000001, 0x00000006, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 dlabel D_802429E0_BD15D0 .word 0x00000043, 0x00000003, BindNpcIdle, 0xFFFFFFFF, D_80242934_BD1524, 0x00000002, 0x00000000, 0x00000001, 0x00000000 diff --git a/ver/us/asm/data/world/area_omo/omo_04/DAF3E0.data.s b/ver/us/asm/data/world/area_omo/omo_04/DAF3E0.data.s index 39c340c4cf..e7ada5b748 100644 --- a/ver/us/asm/data/world/area_omo/omo_04/DAF3E0.data.s +++ b/ver/us/asm/data/world/area_omo/omo_04/DAF3E0.data.s @@ -144,7 +144,7 @@ dlabel D_80243E88_DB1288 .word 0x00000043, 0x00000003, SetSelfVar, 0x00000000, 0x00000000, 0x00000043, 0x00000005, GetNpcPos, 0xFFFFFFFF, 0xFE363C86, 0xFE363C83, 0xFE363C84, 0x00000005, 0x00000001, 0x00000000, 0x00000030, 0x00000001, D_80243E60_DB1260, 0x00000005, 0x00000001, 0x0000000A, 0x00000043, 0x00000005, GetNpcPos, 0xFFFFFFFF, 0xFE363C82, 0xFE363C83, 0xFE363C84, 0x00000043, 0x00000003, GetSelfVar, 0x00000000, 0xFE363C85, 0x0000000A, 0x00000002, 0xFE363C85, 0x00000000, 0x00000014, 0x00000001, 0xFE363C86, 0x00000018, 0x00000001, 0xFE363C82, 0x00000043, 0x00000003, SetNpcYaw, 0xFFFFFFFF, 0x0000005A, 0x00000019, 0x00000001, 0xFE363C82, 0x00000043, 0x00000003, SetNpcYaw, 0xFFFFFFFF, 0x0000010E, 0x00000023, 0x00000000, 0x00000024, 0x00000002, 0xFE363C86, 0xFE363C82, 0x00000008, 0x00000001, 0x00000001, 0x00000012, 0x00000000, 0x00000031, 0x00000001, 0xFE363C81, 0x00000027, 0x00000002, 0xFE363C83, 0xFE363C81, 0x00000043, 0x00000005, SetNpcPos, 0xFFFFFFFF, 0xFE363C82, 0xFE363C83, 0xFE363C84, 0x00000008, 0x00000001, 0x00000003, 0x00000013, 0x00000000, 0x00000006, 0x00000000, 0x00000006, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 dlabel D_80244000_DB1400 -.word 0x00000024, 0x00000002, 0xFAA2B58A, 0x00000000, 0x00000043, 0x00000005, GetNpcPos, 0x00000002, 0xFE363C86, 0xFE363C87, 0xFE363C88, 0x00000005, 0x00000001, 0x00000000, 0x00000043, 0x00000002, func_80241E40_DAF240, 0xFAA2B58A, 0x00000043, 0x00000005, GetNpcPos, 0x00000002, 0xFE363C89, 0xFE363C8A, 0xFE363C8B, 0x00000024, 0x00000002, 0xFE363C83, 0xFE363C89, 0x00000024, 0x00000002, 0xFE363C84, 0xFE363C8A, 0x00000024, 0x00000002, 0xFE363C85, 0xFE363C8B, 0x0000002D, 0x00000002, 0xFE363C83, 0xFE363C86, 0x0000002D, 0x00000002, 0xFE363C84, 0xFE363C87, 0x0000002D, 0x00000002, 0xFE363C85, 0xFE363C88, 0x00000026, 0x00000002, 0xFE363C86, 0xFE363C89, 0x00000026, 0x00000002, 0xFE363C87, 0xFE363C8A, 0x00000026, 0x00000002, 0xFE363C88, 0xFE363C8B, 0x0000000B, 0x00000002, 0xFE363C83, 0x00000000, 0x0000000B, 0x00000002, 0xFE363C85, 0x00000000, 0x00000043, 0x0000000F, PlayEffect, 0x0000001F, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0xFE363C83, 0xFE363C84, 0xFE363C85, 0xF24A7E80, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000013, 0x00000000, 0x00000013, 0x00000000, 0x00000008, 0x00000001, 0x00000003, 0x00000006, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 +.word 0x00000024, 0x00000002, 0xFAA2B58A, 0x00000000, 0x00000043, 0x00000005, GetNpcPos, 0x00000002, 0xFE363C86, 0xFE363C87, 0xFE363C88, 0x00000005, 0x00000001, 0x00000000, 0x00000043, 0x00000002, omo_04_UnkNpcPosFunc, 0xFAA2B58A, 0x00000043, 0x00000005, GetNpcPos, 0x00000002, 0xFE363C89, 0xFE363C8A, 0xFE363C8B, 0x00000024, 0x00000002, 0xFE363C83, 0xFE363C89, 0x00000024, 0x00000002, 0xFE363C84, 0xFE363C8A, 0x00000024, 0x00000002, 0xFE363C85, 0xFE363C8B, 0x0000002D, 0x00000002, 0xFE363C83, 0xFE363C86, 0x0000002D, 0x00000002, 0xFE363C84, 0xFE363C87, 0x0000002D, 0x00000002, 0xFE363C85, 0xFE363C88, 0x00000026, 0x00000002, 0xFE363C86, 0xFE363C89, 0x00000026, 0x00000002, 0xFE363C87, 0xFE363C8A, 0x00000026, 0x00000002, 0xFE363C88, 0xFE363C8B, 0x0000000B, 0x00000002, 0xFE363C83, 0x00000000, 0x0000000B, 0x00000002, 0xFE363C85, 0x00000000, 0x00000043, 0x0000000F, PlayEffect, 0x0000001F, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0xFE363C83, 0xFE363C84, 0xFE363C85, 0xF24A7E80, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000013, 0x00000000, 0x00000013, 0x00000000, 0x00000008, 0x00000001, 0x00000003, 0x00000006, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000 dlabel D_8024418C_DB158C .word 0x44480000, 0x430C0000, 0xC1A00000, 0x44834000, 0x42F00000, 0xC28C0000, 0x448FC000, 0x42BE0000, 0xC2C80000, 0x44960000, 0x429A0000, 0xC1F00000, 0x448FC000, 0x42780000, 0x42AA0000, 0x44834000, 0x42480000, 0x43020000, 0x44480000, 0x42200000, 0x42480000, 0x447A0000, 0x41A00000, 0x00000000 diff --git a/ver/us/asm/data/world/area_omo/omo_07/DC3730.data.s b/ver/us/asm/data/world/area_omo/omo_07/DC3730.data.s index 57b17466de..cc4a16577b 100644 --- a/ver/us/asm/data/world/area_omo/omo_07/DC3730.data.s +++ b/ver/us/asm/data/world/area_omo/omo_07/DC3730.data.s @@ -3,4 +3,4 @@ .section .data dlabel D_80246480_DC3730 -.word 0x00000001, 0x00000002, 0x00000003, 0x00000002, 0x00000001, 0xFFFFFFFF, 0xFFFFFFFE, 0xFFFFFFFD, 0xFFFFFFFE, 0xFFFFFFFF, 0x00000043, 0x00000003, SetSelfVar, 0x00000000, 0x00000000, 0x00000043, 0x00000005, GetNpcPos, 0xFFFFFFFF, 0xFE363C86, 0xFE363C83, 0xFE363C84, 0x00000005, 0x00000001, 0x00000000, 0x00000030, 0x00000001, D_80246480_DC3730, 0x00000005, 0x00000001, 0x0000000A, 0x00000043, 0x00000005, GetNpcPos, 0xFFFFFFFF, 0xFE363C82, 0xFE363C83, 0xFE363C84, 0x00000043, 0x00000003, GetSelfVar, 0x00000000, 0xFE363C85, 0x0000000A, 0x00000002, 0xFE363C85, 0x00000000, 0x00000008, 0x00000001, 0x00000001, 0x00000012, 0x00000000, 0x00000031, 0x00000001, 0xFE363C81, 0x00000027, 0x00000002, 0xFE363C83, 0xFE363C81, 0x00000043, 0x00000005, SetNpcPos, 0xFFFFFFFF, 0xFE363C82, 0xFE363C83, 0xFE363C84, 0x00000008, 0x00000001, 0x00000003, 0x00000013, 0x00000000, 0x00000006, 0x00000000, 0x00000006, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000005, GetNpcPos, 0x00000007, 0xFE363C86, 0xFE363C87, 0xFE363C88, 0x00000005, 0x00000001, 0x00000000, 0x00000043, 0x00000001, func_80243220_DC04D0, 0x00000043, 0x00000005, GetNpcPos, 0x00000007, 0xFE363C89, 0xFE363C8A, 0xFE363C8B, 0x00000024, 0x00000002, 0xFE363C83, 0xFE363C89, 0x00000024, 0x00000002, 0xFE363C84, 0xFE363C8A, 0x00000024, 0x00000002, 0xFE363C85, 0xFE363C8B, 0x0000002D, 0x00000002, 0xFE363C83, 0xFE363C86, 0x0000002D, 0x00000002, 0xFE363C84, 0xFE363C87, 0x0000002D, 0x00000002, 0xFE363C85, 0xFE363C88, 0x00000026, 0x00000002, 0xFE363C86, 0xFE363C89, 0x00000026, 0x00000002, 0xFE363C87, 0xFE363C8A, 0x00000026, 0x00000002, 0xFE363C88, 0xFE363C8B, 0x0000000B, 0x00000002, 0xFE363C83, 0x00000000, 0x0000000B, 0x00000002, 0xFE363C85, 0x00000000, 0x00000043, 0x0000000F, PlayEffect, 0x0000001F, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0xFE363C83, 0xFE363C84, 0xFE363C85, 0xF24A7E80, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000013, 0x00000000, 0x00000013, 0x00000000, 0x00000008, 0x00000001, 0x00000003, 0x00000006, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000002, DisablePlayerInput, 0x00000001, 0x00000024, 0x00000002, 0xF8405FF4, 0x00000001, 0x00000024, 0x00000002, 0xF70F2E84, 0xF5DE0259, 0x00000014, 0x00000001, 0xF70F2E84, 0x00000016, 0x00000001, 0x00000000, 0x00000024, 0x00000002, 0xFD050F8A, 0x00000005, 0x00000016, 0x00000001, 0x00000001, 0x00000024, 0x00000002, 0xFD050F8A, 0x00000006, 0x00000016, 0x00000001, 0x00000002, 0x00000024, 0x00000002, 0xFD050F8A, 0x00000082, 0x00000023, 0x00000000, 0x00000043, 0x00000005, SetNpcPos, 0x00000007, 0x000003E8, 0x0000000F, 0x00000000, 0x00000043, 0x00000003, SetNpcYaw, 0x00000007, 0x0000005A, 0x00000043, 0x00000003, SetNpcAnimation, 0x00000007, 0x00600013, 0x0000000B, 0x00000002, 0xF70F2E84, 0x00000002, 0x00000043, 0x00000005, SetNpcPos, 0xFD050F8A, 0x00000000, 0xFFFFFC18, 0x00000000, 0x00000013, 0x00000000, 0x00000043, 0x00000005, UseSettingsFrom, 0x00000000, 0x00000424, 0x00000000, 0x00000000, 0x00000043, 0x00000005, SetPanTarget, 0x00000000, 0x00000424, 0x00000000, 0x00000000, 0x00000043, 0x00000003, SetCamDistance, 0x00000000, 0xF24FF280, 0x00000043, 0x00000004, SetCamPitch, 0x00000000, 0xF24AB680, 0xF24A5C80, 0x00000043, 0x00000003, SetCamSpeed, 0x00000000, 0xF24BE280, 0x00000043, 0x00000004, PanToTarget, 0x00000000, 0x00000000, 0x00000001, 0x00000043, 0x00000003, WaitForCam, 0x00000000, 0xF24A7E80, 0x00000008, 0x00000001, 0x00000005, 0x00000043, 0x00000004, SetNpcVar, 0x00000007, 0x00000000, 0x00000001, 0x00000043, 0x00000003, SetNpcAnimation, 0x00000007, 0x00600013, 0x00000008, 0x00000001, 0x00000019, 0x00000043, 0x00000003, SetNpcAnimation, 0x00000007, 0x0060000E, 0x00000043, 0x00000005, GetNpcPos, 0x00000007, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000027, 0x00000002, 0xFE363C80, 0x00000019, 0x00000027, 0x00000002, 0xFE363C81, 0x00000026, 0x00000043, 0x00000006, PlaySoundAt, 0x0000207A, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x0000000F, PlayEffect, 0x00000013, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0xF24A7E80, 0x0000004B, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000008, 0x00000001, 0x0000004B, 0x00000043, 0x00000003, SetNpcAnimation, 0x00000007, 0x0060000F, 0x00000027, 0x00000002, 0xFE363C80, 0x00000037, 0x00000043, 0x00000006, PlaySoundAt, 0x00002098, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x0000000F, PlayEffect, 0x00000001, 0xFE363C80, 0x00000000, 0x00000000, 0x00000001, 0x0000000F, 0x00000003, 0x00000008, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000008, 0x00000001, 0x00000005, 0x0000000B, 0x00000002, 0xF70F2E84, 0x00000002, 0x00000043, 0x00000005, SetNpcPos, 0xFD050F8A, 0xFE363C80, 0x00000000, 0x00000000, 0x00000012, 0x00000000, 0x00000043, 0x00000007, MakeItemEntity, 0xFD050F8A, 0xFE363C80, 0x00000000, 0x00000000, 0x00000001, 0x00000000, 0x00000013, 0x00000000, 0x00000008, 0x00000001, 0x0000000A, 0x00000043, 0x00000003, SetNpcAnimation, 0x00000007, 0x00600013, 0x00000043, 0x00000004, SetNpcVar, 0x00000007, 0x00000000, 0x00000000, 0x00000008, 0x00000001, 0x00000005, 0x0000000B, 0x00000002, 0xF70F2E84, 0x00000002, 0x00000043, 0x00000004, PlaySoundAtNpc, 0xFD050F8A, 0x00000263, 0x00000000, 0x00000043, 0x0000000A, ShowEmote, 0xFD050F8A, 0x00000002, 0x00000000, 0x00000014, 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000008, 0x00000001, 0x00000005, 0x00000013, 0x00000000, 0x00000043, 0x00000003, GotoMap, 0x80247110, 0x00000000, 0x00000008, 0x00000001, 0x00000064, 0x00000002, 0x00000000, 0x00000001, 0x00000000 +.word 0x00000001, 0x00000002, 0x00000003, 0x00000002, 0x00000001, 0xFFFFFFFF, 0xFFFFFFFE, 0xFFFFFFFD, 0xFFFFFFFE, 0xFFFFFFFF, 0x00000043, 0x00000003, SetSelfVar, 0x00000000, 0x00000000, 0x00000043, 0x00000005, GetNpcPos, 0xFFFFFFFF, 0xFE363C86, 0xFE363C83, 0xFE363C84, 0x00000005, 0x00000001, 0x00000000, 0x00000030, 0x00000001, D_80246480_DC3730, 0x00000005, 0x00000001, 0x0000000A, 0x00000043, 0x00000005, GetNpcPos, 0xFFFFFFFF, 0xFE363C82, 0xFE363C83, 0xFE363C84, 0x00000043, 0x00000003, GetSelfVar, 0x00000000, 0xFE363C85, 0x0000000A, 0x00000002, 0xFE363C85, 0x00000000, 0x00000008, 0x00000001, 0x00000001, 0x00000012, 0x00000000, 0x00000031, 0x00000001, 0xFE363C81, 0x00000027, 0x00000002, 0xFE363C83, 0xFE363C81, 0x00000043, 0x00000005, SetNpcPos, 0xFFFFFFFF, 0xFE363C82, 0xFE363C83, 0xFE363C84, 0x00000008, 0x00000001, 0x00000003, 0x00000013, 0x00000000, 0x00000006, 0x00000000, 0x00000006, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000005, GetNpcPos, 0x00000007, 0xFE363C86, 0xFE363C87, 0xFE363C88, 0x00000005, 0x00000001, 0x00000000, 0x00000043, 0x00000001, omo_07_UnkNpcPosFunc, 0x00000043, 0x00000005, GetNpcPos, 0x00000007, 0xFE363C89, 0xFE363C8A, 0xFE363C8B, 0x00000024, 0x00000002, 0xFE363C83, 0xFE363C89, 0x00000024, 0x00000002, 0xFE363C84, 0xFE363C8A, 0x00000024, 0x00000002, 0xFE363C85, 0xFE363C8B, 0x0000002D, 0x00000002, 0xFE363C83, 0xFE363C86, 0x0000002D, 0x00000002, 0xFE363C84, 0xFE363C87, 0x0000002D, 0x00000002, 0xFE363C85, 0xFE363C88, 0x00000026, 0x00000002, 0xFE363C86, 0xFE363C89, 0x00000026, 0x00000002, 0xFE363C87, 0xFE363C8A, 0x00000026, 0x00000002, 0xFE363C88, 0xFE363C8B, 0x0000000B, 0x00000002, 0xFE363C83, 0x00000000, 0x0000000B, 0x00000002, 0xFE363C85, 0x00000000, 0x00000043, 0x0000000F, PlayEffect, 0x0000001F, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0xFE363C83, 0xFE363C84, 0xFE363C85, 0xF24A7E80, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000013, 0x00000000, 0x00000013, 0x00000000, 0x00000008, 0x00000001, 0x00000003, 0x00000006, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000002, DisablePlayerInput, 0x00000001, 0x00000024, 0x00000002, 0xF8405FF4, 0x00000001, 0x00000024, 0x00000002, 0xF70F2E84, 0xF5DE0259, 0x00000014, 0x00000001, 0xF70F2E84, 0x00000016, 0x00000001, 0x00000000, 0x00000024, 0x00000002, 0xFD050F8A, 0x00000005, 0x00000016, 0x00000001, 0x00000001, 0x00000024, 0x00000002, 0xFD050F8A, 0x00000006, 0x00000016, 0x00000001, 0x00000002, 0x00000024, 0x00000002, 0xFD050F8A, 0x00000082, 0x00000023, 0x00000000, 0x00000043, 0x00000005, SetNpcPos, 0x00000007, 0x000003E8, 0x0000000F, 0x00000000, 0x00000043, 0x00000003, SetNpcYaw, 0x00000007, 0x0000005A, 0x00000043, 0x00000003, SetNpcAnimation, 0x00000007, 0x00600013, 0x0000000B, 0x00000002, 0xF70F2E84, 0x00000002, 0x00000043, 0x00000005, SetNpcPos, 0xFD050F8A, 0x00000000, 0xFFFFFC18, 0x00000000, 0x00000013, 0x00000000, 0x00000043, 0x00000005, UseSettingsFrom, 0x00000000, 0x00000424, 0x00000000, 0x00000000, 0x00000043, 0x00000005, SetPanTarget, 0x00000000, 0x00000424, 0x00000000, 0x00000000, 0x00000043, 0x00000003, SetCamDistance, 0x00000000, 0xF24FF280, 0x00000043, 0x00000004, SetCamPitch, 0x00000000, 0xF24AB680, 0xF24A5C80, 0x00000043, 0x00000003, SetCamSpeed, 0x00000000, 0xF24BE280, 0x00000043, 0x00000004, PanToTarget, 0x00000000, 0x00000000, 0x00000001, 0x00000043, 0x00000003, WaitForCam, 0x00000000, 0xF24A7E80, 0x00000008, 0x00000001, 0x00000005, 0x00000043, 0x00000004, SetNpcVar, 0x00000007, 0x00000000, 0x00000001, 0x00000043, 0x00000003, SetNpcAnimation, 0x00000007, 0x00600013, 0x00000008, 0x00000001, 0x00000019, 0x00000043, 0x00000003, SetNpcAnimation, 0x00000007, 0x0060000E, 0x00000043, 0x00000005, GetNpcPos, 0x00000007, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000027, 0x00000002, 0xFE363C80, 0x00000019, 0x00000027, 0x00000002, 0xFE363C81, 0x00000026, 0x00000043, 0x00000006, PlaySoundAt, 0x0000207A, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x0000000F, PlayEffect, 0x00000013, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0xF24A7E80, 0x0000004B, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000008, 0x00000001, 0x0000004B, 0x00000043, 0x00000003, SetNpcAnimation, 0x00000007, 0x0060000F, 0x00000027, 0x00000002, 0xFE363C80, 0x00000037, 0x00000043, 0x00000006, PlaySoundAt, 0x00002098, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x0000000F, PlayEffect, 0x00000001, 0xFE363C80, 0x00000000, 0x00000000, 0x00000001, 0x0000000F, 0x00000003, 0x00000008, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000008, 0x00000001, 0x00000005, 0x0000000B, 0x00000002, 0xF70F2E84, 0x00000002, 0x00000043, 0x00000005, SetNpcPos, 0xFD050F8A, 0xFE363C80, 0x00000000, 0x00000000, 0x00000012, 0x00000000, 0x00000043, 0x00000007, MakeItemEntity, 0xFD050F8A, 0xFE363C80, 0x00000000, 0x00000000, 0x00000001, 0x00000000, 0x00000013, 0x00000000, 0x00000008, 0x00000001, 0x0000000A, 0x00000043, 0x00000003, SetNpcAnimation, 0x00000007, 0x00600013, 0x00000043, 0x00000004, SetNpcVar, 0x00000007, 0x00000000, 0x00000000, 0x00000008, 0x00000001, 0x00000005, 0x0000000B, 0x00000002, 0xF70F2E84, 0x00000002, 0x00000043, 0x00000004, PlaySoundAtNpc, 0xFD050F8A, 0x00000263, 0x00000000, 0x00000043, 0x0000000A, ShowEmote, 0xFD050F8A, 0x00000002, 0x00000000, 0x00000014, 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000008, 0x00000001, 0x00000005, 0x00000013, 0x00000000, 0x00000043, 0x00000003, GotoMap, 0x80247110, 0x00000000, 0x00000008, 0x00000001, 0x00000064, 0x00000002, 0x00000000, 0x00000001, 0x00000000 diff --git a/ver/us/asm/data/world/area_omo/omo_09/DD6BB0.data.s b/ver/us/asm/data/world/area_omo/omo_09/DD6BB0.data.s index 7ffac0b498..c476ed67ef 100644 --- a/ver/us/asm/data/world/area_omo/omo_09/DD6BB0.data.s +++ b/ver/us/asm/data/world/area_omo/omo_09/DD6BB0.data.s @@ -3,4 +3,4 @@ .section .data dlabel D_80249EE0_DD6BB0 -.word 0x00000001, 0x00000002, 0x00000003, 0x00000002, 0x00000001, 0xFFFFFFFF, 0xFFFFFFFE, 0xFFFFFFFD, 0xFFFFFFFE, 0xFFFFFFFF, 0x00000043, 0x00000003, SetSelfVar, 0x00000000, 0x00000000, 0x00000043, 0x00000005, GetNpcPos, 0xFFFFFFFF, 0xFE363C86, 0xFE363C83, 0xFE363C84, 0x00000005, 0x00000001, 0x00000000, 0x00000030, 0x00000001, D_80249EE0_DD6BB0, 0x00000005, 0x00000001, 0x0000000A, 0x00000043, 0x00000005, GetNpcPos, 0xFFFFFFFF, 0xFE363C82, 0xFE363C83, 0xFE363C84, 0x00000043, 0x00000003, GetSelfVar, 0x00000000, 0xFE363C85, 0x0000000A, 0x00000002, 0xFE363C85, 0x00000000, 0x00000008, 0x00000001, 0x00000001, 0x00000012, 0x00000000, 0x00000031, 0x00000001, 0xFE363C81, 0x00000027, 0x00000002, 0xFE363C83, 0xFE363C81, 0x00000043, 0x00000005, SetNpcPos, 0xFFFFFFFF, 0xFE363C82, 0xFE363C83, 0xFE363C84, 0x00000008, 0x00000001, 0x00000003, 0x00000013, 0x00000000, 0x00000006, 0x00000000, 0x00000006, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000005, GetNpcPos, 0x00000007, 0xFE363C86, 0xFE363C87, 0xFE363C88, 0x00000005, 0x00000001, 0x00000000, 0x00000043, 0x00000001, func_80243610_DD02E0, 0x00000043, 0x00000005, GetNpcPos, 0x00000007, 0xFE363C89, 0xFE363C8A, 0xFE363C8B, 0x00000024, 0x00000002, 0xFE363C83, 0xFE363C89, 0x00000024, 0x00000002, 0xFE363C84, 0xFE363C8A, 0x00000024, 0x00000002, 0xFE363C85, 0xFE363C8B, 0x0000002D, 0x00000002, 0xFE363C83, 0xFE363C86, 0x0000002D, 0x00000002, 0xFE363C84, 0xFE363C87, 0x0000002D, 0x00000002, 0xFE363C85, 0xFE363C88, 0x00000026, 0x00000002, 0xFE363C86, 0xFE363C89, 0x00000026, 0x00000002, 0xFE363C87, 0xFE363C8A, 0x00000026, 0x00000002, 0xFE363C88, 0xFE363C8B, 0x0000000B, 0x00000002, 0xFE363C83, 0x00000000, 0x0000000B, 0x00000002, 0xFE363C85, 0x00000000, 0x00000043, 0x0000000F, PlayEffect, 0x0000001F, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0xFE363C83, 0xFE363C84, 0xFE363C85, 0xF24A7E80, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000013, 0x00000000, 0x00000013, 0x00000000, 0x00000008, 0x00000001, 0x00000003, 0x00000006, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000002, DisablePlayerInput, 0x00000001, 0x00000024, 0x00000002, 0xF8405FFA, 0x00000001, 0x00000024, 0x00000002, 0xF70F2E84, 0xF5DE025A, 0x00000014, 0x00000001, 0xF70F2E84, 0x00000016, 0x00000001, 0x00000000, 0x00000024, 0x00000002, 0xFD050F8A, 0x00000005, 0x00000016, 0x00000001, 0x00000001, 0x00000024, 0x00000002, 0xFD050F8A, 0x00000006, 0x00000016, 0x00000001, 0x00000002, 0x00000024, 0x00000002, 0xFD050F8A, 0x0000009B, 0x00000023, 0x00000000, 0x00000043, 0x00000005, SetNpcPos, 0x00000007, 0x0000071C, 0x000000A5, 0x00000000, 0x00000043, 0x00000003, SetNpcYaw, 0x00000007, 0x0000005A, 0x00000043, 0x00000003, SetNpcAnimation, 0x00000007, 0x00600013, 0x0000000B, 0x00000002, 0xF70F2E84, 0x00000002, 0x00000043, 0x00000005, SetNpcPos, 0xFD050F8A, 0x00000000, 0xFFFFFC18, 0x00000000, 0x00000013, 0x00000000, 0x00000043, 0x00000005, UseSettingsFrom, 0x00000000, 0x0000076C, 0x00000096, 0x00000000, 0x00000043, 0x00000005, SetPanTarget, 0x00000000, 0x0000076C, 0x00000096, 0x00000000, 0x00000043, 0x00000003, SetCamDistance, 0x00000000, 0xF24FF280, 0x00000043, 0x00000004, SetCamPitch, 0x00000000, 0xF24AB680, 0xF24A5C80, 0x00000043, 0x00000003, SetCamSpeed, 0x00000000, 0xF24BE280, 0x00000043, 0x00000004, PanToTarget, 0x00000000, 0x00000000, 0x00000001, 0x00000043, 0x00000003, WaitForCam, 0x00000000, 0xF24A7E80, 0x00000008, 0x00000001, 0x00000005, 0x00000043, 0x00000004, SetNpcVar, 0x00000007, 0x00000000, 0x00000001, 0x00000043, 0x00000003, SetNpcAnimation, 0x00000007, 0x00600013, 0x00000008, 0x00000001, 0x00000019, 0x00000043, 0x00000003, SetNpcAnimation, 0x00000007, 0x0060000E, 0x00000043, 0x00000005, GetNpcPos, 0x00000007, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000027, 0x00000002, 0xFE363C80, 0x00000019, 0x00000027, 0x00000002, 0xFE363C81, 0x00000026, 0x00000043, 0x00000006, PlaySoundAt, 0x0000207A, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x0000000F, PlayEffect, 0x00000013, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0xF24A7E80, 0x0000004B, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000008, 0x00000001, 0x0000004B, 0x00000043, 0x00000003, SetNpcAnimation, 0x00000007, 0x0060000F, 0x00000027, 0x00000002, 0xFE363C80, 0x00000037, 0x00000043, 0x00000006, PlaySoundAt, 0x00002098, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x0000000F, PlayEffect, 0x00000001, 0xFE363C80, 0x00000096, 0x00000000, 0x00000001, 0x0000000F, 0x00000003, 0x00000008, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000008, 0x00000001, 0x00000005, 0x0000000B, 0x00000002, 0xF70F2E84, 0x00000002, 0x00000043, 0x00000005, SetNpcPos, 0xFD050F8A, 0xFE363C80, 0x00000096, 0x00000000, 0x00000012, 0x00000000, 0x00000043, 0x00000007, MakeItemEntity, 0xFD050F8A, 0xFE363C80, 0x00000096, 0x00000000, 0x00000001, 0x00000000, 0x00000013, 0x00000000, 0x00000008, 0x00000001, 0x0000000A, 0x00000043, 0x00000003, SetNpcAnimation, 0x00000007, 0x00600013, 0x00000043, 0x00000004, SetNpcVar, 0x00000007, 0x00000000, 0x00000000, 0x00000008, 0x00000001, 0x00000005, 0x0000000B, 0x00000002, 0xF70F2E84, 0x00000002, 0x00000043, 0x00000004, PlaySoundAtNpc, 0xFD050F8A, 0x00000263, 0x00000000, 0x00000043, 0x0000000A, ShowEmote, 0xFD050F8A, 0x00000002, 0x00000000, 0x00000014, 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000008, 0x00000001, 0x00000005, 0x00000013, 0x00000000, 0x00000043, 0x00000003, GotoMap, 0x8024ACD0, 0x00000000, 0x00000008, 0x00000001, 0x00000064, 0x00000002, 0x00000000, 0x00000001, 0x00000000 +.word 0x00000001, 0x00000002, 0x00000003, 0x00000002, 0x00000001, 0xFFFFFFFF, 0xFFFFFFFE, 0xFFFFFFFD, 0xFFFFFFFE, 0xFFFFFFFF, 0x00000043, 0x00000003, SetSelfVar, 0x00000000, 0x00000000, 0x00000043, 0x00000005, GetNpcPos, 0xFFFFFFFF, 0xFE363C86, 0xFE363C83, 0xFE363C84, 0x00000005, 0x00000001, 0x00000000, 0x00000030, 0x00000001, D_80249EE0_DD6BB0, 0x00000005, 0x00000001, 0x0000000A, 0x00000043, 0x00000005, GetNpcPos, 0xFFFFFFFF, 0xFE363C82, 0xFE363C83, 0xFE363C84, 0x00000043, 0x00000003, GetSelfVar, 0x00000000, 0xFE363C85, 0x0000000A, 0x00000002, 0xFE363C85, 0x00000000, 0x00000008, 0x00000001, 0x00000001, 0x00000012, 0x00000000, 0x00000031, 0x00000001, 0xFE363C81, 0x00000027, 0x00000002, 0xFE363C83, 0xFE363C81, 0x00000043, 0x00000005, SetNpcPos, 0xFFFFFFFF, 0xFE363C82, 0xFE363C83, 0xFE363C84, 0x00000008, 0x00000001, 0x00000003, 0x00000013, 0x00000000, 0x00000006, 0x00000000, 0x00000006, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000005, GetNpcPos, 0x00000007, 0xFE363C86, 0xFE363C87, 0xFE363C88, 0x00000005, 0x00000001, 0x00000000, 0x00000043, 0x00000001, omo_09_UnkNpcPosFunc, 0x00000043, 0x00000005, GetNpcPos, 0x00000007, 0xFE363C89, 0xFE363C8A, 0xFE363C8B, 0x00000024, 0x00000002, 0xFE363C83, 0xFE363C89, 0x00000024, 0x00000002, 0xFE363C84, 0xFE363C8A, 0x00000024, 0x00000002, 0xFE363C85, 0xFE363C8B, 0x0000002D, 0x00000002, 0xFE363C83, 0xFE363C86, 0x0000002D, 0x00000002, 0xFE363C84, 0xFE363C87, 0x0000002D, 0x00000002, 0xFE363C85, 0xFE363C88, 0x00000026, 0x00000002, 0xFE363C86, 0xFE363C89, 0x00000026, 0x00000002, 0xFE363C87, 0xFE363C8A, 0x00000026, 0x00000002, 0xFE363C88, 0xFE363C8B, 0x0000000B, 0x00000002, 0xFE363C83, 0x00000000, 0x0000000B, 0x00000002, 0xFE363C85, 0x00000000, 0x00000043, 0x0000000F, PlayEffect, 0x0000001F, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0xFE363C83, 0xFE363C84, 0xFE363C85, 0xF24A7E80, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000013, 0x00000000, 0x00000013, 0x00000000, 0x00000008, 0x00000001, 0x00000003, 0x00000006, 0x00000000, 0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000043, 0x00000002, DisablePlayerInput, 0x00000001, 0x00000024, 0x00000002, 0xF8405FFA, 0x00000001, 0x00000024, 0x00000002, 0xF70F2E84, 0xF5DE025A, 0x00000014, 0x00000001, 0xF70F2E84, 0x00000016, 0x00000001, 0x00000000, 0x00000024, 0x00000002, 0xFD050F8A, 0x00000005, 0x00000016, 0x00000001, 0x00000001, 0x00000024, 0x00000002, 0xFD050F8A, 0x00000006, 0x00000016, 0x00000001, 0x00000002, 0x00000024, 0x00000002, 0xFD050F8A, 0x0000009B, 0x00000023, 0x00000000, 0x00000043, 0x00000005, SetNpcPos, 0x00000007, 0x0000071C, 0x000000A5, 0x00000000, 0x00000043, 0x00000003, SetNpcYaw, 0x00000007, 0x0000005A, 0x00000043, 0x00000003, SetNpcAnimation, 0x00000007, 0x00600013, 0x0000000B, 0x00000002, 0xF70F2E84, 0x00000002, 0x00000043, 0x00000005, SetNpcPos, 0xFD050F8A, 0x00000000, 0xFFFFFC18, 0x00000000, 0x00000013, 0x00000000, 0x00000043, 0x00000005, UseSettingsFrom, 0x00000000, 0x0000076C, 0x00000096, 0x00000000, 0x00000043, 0x00000005, SetPanTarget, 0x00000000, 0x0000076C, 0x00000096, 0x00000000, 0x00000043, 0x00000003, SetCamDistance, 0x00000000, 0xF24FF280, 0x00000043, 0x00000004, SetCamPitch, 0x00000000, 0xF24AB680, 0xF24A5C80, 0x00000043, 0x00000003, SetCamSpeed, 0x00000000, 0xF24BE280, 0x00000043, 0x00000004, PanToTarget, 0x00000000, 0x00000000, 0x00000001, 0x00000043, 0x00000003, WaitForCam, 0x00000000, 0xF24A7E80, 0x00000008, 0x00000001, 0x00000005, 0x00000043, 0x00000004, SetNpcVar, 0x00000007, 0x00000000, 0x00000001, 0x00000043, 0x00000003, SetNpcAnimation, 0x00000007, 0x00600013, 0x00000008, 0x00000001, 0x00000019, 0x00000043, 0x00000003, SetNpcAnimation, 0x00000007, 0x0060000E, 0x00000043, 0x00000005, GetNpcPos, 0x00000007, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000027, 0x00000002, 0xFE363C80, 0x00000019, 0x00000027, 0x00000002, 0xFE363C81, 0x00000026, 0x00000043, 0x00000006, PlaySoundAt, 0x0000207A, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x0000000F, PlayEffect, 0x00000013, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0xF24A7E80, 0x0000004B, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000008, 0x00000001, 0x0000004B, 0x00000043, 0x00000003, SetNpcAnimation, 0x00000007, 0x0060000F, 0x00000027, 0x00000002, 0xFE363C80, 0x00000037, 0x00000043, 0x00000006, PlaySoundAt, 0x00002098, 0x00000000, 0xFE363C80, 0xFE363C81, 0xFE363C82, 0x00000043, 0x0000000F, PlayEffect, 0x00000001, 0xFE363C80, 0x00000096, 0x00000000, 0x00000001, 0x0000000F, 0x00000003, 0x00000008, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000008, 0x00000001, 0x00000005, 0x0000000B, 0x00000002, 0xF70F2E84, 0x00000002, 0x00000043, 0x00000005, SetNpcPos, 0xFD050F8A, 0xFE363C80, 0x00000096, 0x00000000, 0x00000012, 0x00000000, 0x00000043, 0x00000007, MakeItemEntity, 0xFD050F8A, 0xFE363C80, 0x00000096, 0x00000000, 0x00000001, 0x00000000, 0x00000013, 0x00000000, 0x00000008, 0x00000001, 0x0000000A, 0x00000043, 0x00000003, SetNpcAnimation, 0x00000007, 0x00600013, 0x00000043, 0x00000004, SetNpcVar, 0x00000007, 0x00000000, 0x00000000, 0x00000008, 0x00000001, 0x00000005, 0x0000000B, 0x00000002, 0xF70F2E84, 0x00000002, 0x00000043, 0x00000004, PlaySoundAtNpc, 0xFD050F8A, 0x00000263, 0x00000000, 0x00000043, 0x0000000A, ShowEmote, 0xFD050F8A, 0x00000002, 0x00000000, 0x00000014, 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000008, 0x00000001, 0x00000005, 0x00000013, 0x00000000, 0x00000043, 0x00000003, GotoMap, 0x8024ACD0, 0x00000000, 0x00000008, 0x00000001, 0x00000064, 0x00000002, 0x00000000, 0x00000001, 0x00000000 diff --git a/ver/us/asm/nonmatchings/16F740/btl_merlee_on_first_strike.s b/ver/us/asm/nonmatchings/16F740/btl_merlee_on_first_strike.s deleted file mode 100644 index 67b69ac08b..0000000000 --- a/ver/us/asm/nonmatchings/16F740/btl_merlee_on_first_strike.s +++ /dev/null @@ -1,125 +0,0 @@ -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches - -glabel btl_merlee_on_first_strike -/* 16F8BC 80240FDC 27BDFFD8 */ addiu $sp, $sp, -0x28 -/* 16F8C0 80240FE0 AFB40020 */ sw $s4, 0x20($sp) -/* 16F8C4 80240FE4 3C14800E */ lui $s4, %hi(gBattleStatus) -/* 16F8C8 80240FE8 2694C070 */ addiu $s4, $s4, %lo(gBattleStatus) -/* 16F8CC 80240FEC AFB3001C */ sw $s3, 0x1c($sp) -/* 16F8D0 80240FF0 3C13800B */ lui $s3, %hi(gCurrentEncounter) -/* 16F8D4 80240FF4 26730F10 */ addiu $s3, $s3, %lo(gCurrentEncounter) -/* 16F8D8 80240FF8 AFB00010 */ sw $s0, 0x10($sp) -/* 16F8DC 80240FFC 3C108011 */ lui $s0, %hi(gPlayerData) -/* 16F8E0 80241000 2610F290 */ addiu $s0, $s0, %lo(gPlayerData) -/* 16F8E4 80241004 AFBF0024 */ sw $ra, 0x24($sp) -/* 16F8E8 80241008 AFB20018 */ sw $s2, 0x18($sp) -/* 16F8EC 8024100C AFB10014 */ sw $s1, 0x14($sp) -/* 16F8F0 80241010 8E820004 */ lw $v0, 4($s4) -/* 16F8F4 80241014 30420040 */ andi $v0, $v0, 0x40 -/* 16F8F8 80241018 14400055 */ bnez $v0, .L80241170 -/* 16F8FC 8024101C 24110003 */ addiu $s1, $zero, 3 -/* 16F900 80241020 8282008A */ lb $v0, 0x8a($s4) -/* 16F904 80241024 10510052 */ beq $v0, $s1, .L80241170 -/* 16F908 80241028 24120004 */ addiu $s2, $zero, 4 -/* 16F90C 8024102C 10520050 */ beq $v0, $s2, .L80241170 -/* 16F910 80241030 00000000 */ nop -/* 16F914 80241034 8202028A */ lb $v0, 0x28a($s0) -/* 16F918 80241038 1840004D */ blez $v0, .L80241170 -/* 16F91C 8024103C 00000000 */ nop -/* 16F920 80241040 8602028C */ lh $v0, 0x28c($s0) -/* 16F924 80241044 1C400039 */ bgtz $v0, .L8024112C -/* 16F928 80241048 00000000 */ nop -/* 16F92C 8024104C 0C00A67F */ jal rand_int -/* 16F930 80241050 24040064 */ addiu $a0, $zero, 0x64 -/* 16F934 80241054 8E63008C */ lw $v1, 0x8c($s3) -/* 16F938 80241058 10600018 */ beqz $v1, .L802410BC -/* 16F93C 8024105C 0040202D */ daddu $a0, $v0, $zero -/* 16F940 80241060 8C620000 */ lw $v0, ($v1) -/* 16F944 80241064 3C030004 */ lui $v1, 4 -/* 16F948 80241068 00431024 */ and $v0, $v0, $v1 -/* 16F94C 8024106C 10400008 */ beqz $v0, .L80241090 -/* 16F950 80241070 2882002E */ slti $v0, $a0, 0x2e -/* 16F954 80241074 14400014 */ bnez $v0, .L802410C8 -/* 16F958 80241078 24020001 */ addiu $v0, $zero, 1 -/* 16F95C 8024107C 2882005B */ slti $v0, $a0, 0x5b -/* 16F960 80241080 14400016 */ bnez $v0, .L802410DC -/* 16F964 80241084 24020002 */ addiu $v0, $zero, 2 -/* 16F968 80241088 0809043D */ j .L802410F4 -/* 16F96C 8024108C A2110289 */ sb $s1, 0x289($s0) -.L80241090: -/* 16F970 80241090 2882001F */ slti $v0, $a0, 0x1f -/* 16F974 80241094 1440000C */ bnez $v0, .L802410C8 -/* 16F978 80241098 24020001 */ addiu $v0, $zero, 1 -/* 16F97C 8024109C 2882003D */ slti $v0, $a0, 0x3d -/* 16F980 802410A0 1440000E */ bnez $v0, .L802410DC -/* 16F984 802410A4 24020002 */ addiu $v0, $zero, 2 -/* 16F988 802410A8 28820051 */ slti $v0, $a0, 0x51 -/* 16F98C 802410AC 54400011 */ bnel $v0, $zero, .L802410F4 -/* 16F990 802410B0 A2110289 */ sb $s1, 0x289($s0) -/* 16F994 802410B4 0809043D */ j .L802410F4 -/* 16F998 802410B8 A2120289 */ sb $s2, 0x289($s0) -.L802410BC: -/* 16F99C 802410BC 2882001F */ slti $v0, $a0, 0x1f -/* 16F9A0 802410C0 10400003 */ beqz $v0, .L802410D0 -/* 16F9A4 802410C4 24020001 */ addiu $v0, $zero, 1 -.L802410C8: -/* 16F9A8 802410C8 0809043D */ j .L802410F4 -/* 16F9AC 802410CC A2020289 */ sb $v0, 0x289($s0) -.L802410D0: -/* 16F9B0 802410D0 2882003D */ slti $v0, $a0, 0x3d -/* 16F9B4 802410D4 10400003 */ beqz $v0, .L802410E4 -/* 16F9B8 802410D8 24020002 */ addiu $v0, $zero, 2 -.L802410DC: -/* 16F9BC 802410DC 0809043D */ j .L802410F4 -/* 16F9C0 802410E0 A2020289 */ sb $v0, 0x289($s0) -.L802410E4: -/* 16F9C4 802410E4 28820051 */ slti $v0, $a0, 0x51 -/* 16F9C8 802410E8 50400002 */ beql $v0, $zero, .L802410F4 -/* 16F9CC 802410EC A2120289 */ sb $s2, 0x289($s0) -/* 16F9D0 802410F0 A2110289 */ sb $s1, 0x289($s0) -.L802410F4: -/* 16F9D4 802410F4 82030289 */ lb $v1, 0x289($s0) -/* 16F9D8 802410F8 24020004 */ addiu $v0, $zero, 4 -/* 16F9DC 802410FC 10620006 */ beq $v1, $v0, .L80241118 -/* 16F9E0 80241100 2402FFFF */ addiu $v0, $zero, -1 -/* 16F9E4 80241104 8603028C */ lh $v1, 0x28c($s0) -/* 16F9E8 80241108 10620004 */ beq $v1, $v0, .L8024111C -/* 16F9EC 8024110C 24040005 */ addiu $a0, $zero, 5 -/* 16F9F0 80241110 08090447 */ j .L8024111C -/* 16F9F4 80241114 00000000 */ nop -.L80241118: -/* 16F9F8 80241118 24040008 */ addiu $a0, $zero, 8 -.L8024111C: -/* 16F9FC 8024111C 0C00A67F */ jal rand_int -/* 16FA00 80241120 00000000 */ nop -/* 16FA04 80241124 24440005 */ addiu $a0, $v0, 5 -/* 16FA08 80241128 A604028C */ sh $a0, 0x28c($s0) -.L8024112C: -/* 16FA0C 8024112C 92040289 */ lbu $a0, 0x289($s0) -/* 16FA10 80241130 2482FFFD */ addiu $v0, $a0, -3 -/* 16FA14 80241134 2C420002 */ sltiu $v0, $v0, 2 -/* 16FA18 80241138 1040000D */ beqz $v0, .L80241170 -/* 16FA1C 8024113C 00000000 */ nop -/* 16FA20 80241140 8602028C */ lh $v0, 0x28c($s0) -/* 16FA24 80241144 9603028C */ lhu $v1, 0x28c($s0) -/* 16FA28 80241148 28420002 */ slti $v0, $v0, 2 -/* 16FA2C 8024114C 14400003 */ bnez $v0, .L8024115C -/* 16FA30 80241150 2462FFFF */ addiu $v0, $v1, -1 -/* 16FA34 80241154 0809045C */ j .L80241170 -/* 16FA38 80241158 A602028C */ sh $v0, 0x28c($s0) -.L8024115C: -/* 16FA3C 8024115C 9202028A */ lbu $v0, 0x28a($s0) -/* 16FA40 80241160 A284008A */ sb $a0, 0x8a($s4) -/* 16FA44 80241164 A600028C */ sh $zero, 0x28c($s0) -/* 16FA48 80241168 2442FFFF */ addiu $v0, $v0, -1 -/* 16FA4C 8024116C A202028A */ sb $v0, 0x28a($s0) -.L80241170: -/* 16FA50 80241170 8FBF0024 */ lw $ra, 0x24($sp) -/* 16FA54 80241174 8FB40020 */ lw $s4, 0x20($sp) -/* 16FA58 80241178 8FB3001C */ lw $s3, 0x1c($sp) -/* 16FA5C 8024117C 8FB20018 */ lw $s2, 0x18($sp) -/* 16FA60 80241180 8FB10014 */ lw $s1, 0x14($sp) -/* 16FA64 80241184 8FB00010 */ lw $s0, 0x10($sp) -/* 16FA68 80241188 03E00008 */ jr $ra -/* 16FA6C 8024118C 27BD0028 */ addiu $sp, $sp, 0x28 diff --git a/ver/us/asm/nonmatchings/16F740/btl_merlee_on_start_turn.s b/ver/us/asm/nonmatchings/16F740/btl_merlee_on_start_turn.s deleted file mode 100644 index f689f98501..0000000000 --- a/ver/us/asm/nonmatchings/16F740/btl_merlee_on_start_turn.s +++ /dev/null @@ -1,109 +0,0 @@ -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches - -glabel btl_merlee_on_start_turn -/* 16F740 80240E60 27BDFFD8 */ addiu $sp, $sp, -0x28 -/* 16F744 80240E64 AFB40020 */ sw $s4, 0x20($sp) -/* 16F748 80240E68 3C14800E */ lui $s4, %hi(gBattleStatus) -/* 16F74C 80240E6C 2694C070 */ addiu $s4, $s4, %lo(gBattleStatus) -/* 16F750 80240E70 AFB3001C */ sw $s3, 0x1c($sp) -/* 16F754 80240E74 3C13800B */ lui $s3, %hi(gCurrentEncounter) -/* 16F758 80240E78 26730F10 */ addiu $s3, $s3, %lo(gCurrentEncounter) -/* 16F75C 80240E7C AFB00010 */ sw $s0, 0x10($sp) -/* 16F760 80240E80 3C108011 */ lui $s0, %hi(gPlayerData) -/* 16F764 80240E84 2610F290 */ addiu $s0, $s0, %lo(gPlayerData) -/* 16F768 80240E88 AFBF0024 */ sw $ra, 0x24($sp) -/* 16F76C 80240E8C AFB20018 */ sw $s2, 0x18($sp) -/* 16F770 80240E90 AFB10014 */ sw $s1, 0x14($sp) -/* 16F774 80240E94 8E820004 */ lw $v0, 4($s4) -/* 16F778 80240E98 30420040 */ andi $v0, $v0, 0x40 -/* 16F77C 80240E9C 14400047 */ bnez $v0, .L80240FBC -/* 16F780 80240EA0 24110003 */ addiu $s1, $zero, 3 -/* 16F784 80240EA4 8282008A */ lb $v0, 0x8a($s4) -/* 16F788 80240EA8 10510044 */ beq $v0, $s1, .L80240FBC -/* 16F78C 80240EAC 24120004 */ addiu $s2, $zero, 4 -/* 16F790 80240EB0 10520042 */ beq $v0, $s2, .L80240FBC -/* 16F794 80240EB4 00000000 */ nop -/* 16F798 80240EB8 8202028A */ lb $v0, 0x28a($s0) -/* 16F79C 80240EBC 1840003F */ blez $v0, .L80240FBC -/* 16F7A0 80240EC0 00000000 */ nop -/* 16F7A4 80240EC4 8602028C */ lh $v0, 0x28c($s0) -/* 16F7A8 80240EC8 1C400030 */ bgtz $v0, .L80240F8C -/* 16F7AC 80240ECC 00000000 */ nop -/* 16F7B0 80240ED0 0C00A67F */ jal rand_int -/* 16F7B4 80240ED4 24040064 */ addiu $a0, $zero, 0x64 -/* 16F7B8 80240ED8 8E63008C */ lw $v1, 0x8c($s3) -/* 16F7BC 80240EDC 10600018 */ beqz $v1, .L80240F40 -/* 16F7C0 80240EE0 0040202D */ daddu $a0, $v0, $zero -/* 16F7C4 80240EE4 8C620000 */ lw $v0, ($v1) -/* 16F7C8 80240EE8 3C030004 */ lui $v1, 4 -/* 16F7CC 80240EEC 00431024 */ and $v0, $v0, $v1 -/* 16F7D0 80240EF0 10400008 */ beqz $v0, .L80240F14 -/* 16F7D4 80240EF4 2882002E */ slti $v0, $a0, 0x2e -/* 16F7D8 80240EF8 14400014 */ bnez $v0, .L80240F4C -/* 16F7DC 80240EFC 24020001 */ addiu $v0, $zero, 1 -/* 16F7E0 80240F00 2882005B */ slti $v0, $a0, 0x5b -/* 16F7E4 80240F04 14400016 */ bnez $v0, .L80240F60 -/* 16F7E8 80240F08 24020002 */ addiu $v0, $zero, 2 -/* 16F7EC 80240F0C 080903DE */ j .L80240F78 -/* 16F7F0 80240F10 A2110289 */ sb $s1, 0x289($s0) -.L80240F14: -/* 16F7F4 80240F14 2882001F */ slti $v0, $a0, 0x1f -/* 16F7F8 80240F18 1440000C */ bnez $v0, .L80240F4C -/* 16F7FC 80240F1C 24020001 */ addiu $v0, $zero, 1 -/* 16F800 80240F20 2882003D */ slti $v0, $a0, 0x3d -/* 16F804 80240F24 1440000E */ bnez $v0, .L80240F60 -/* 16F808 80240F28 24020002 */ addiu $v0, $zero, 2 -/* 16F80C 80240F2C 28820051 */ slti $v0, $a0, 0x51 -/* 16F810 80240F30 54400011 */ bnel $v0, $zero, .L80240F78 -/* 16F814 80240F34 A2110289 */ sb $s1, 0x289($s0) -/* 16F818 80240F38 080903DE */ j .L80240F78 -/* 16F81C 80240F3C A2120289 */ sb $s2, 0x289($s0) -.L80240F40: -/* 16F820 80240F40 2882001F */ slti $v0, $a0, 0x1f -/* 16F824 80240F44 10400003 */ beqz $v0, .L80240F54 -/* 16F828 80240F48 24020001 */ addiu $v0, $zero, 1 -.L80240F4C: -/* 16F82C 80240F4C 080903DE */ j .L80240F78 -/* 16F830 80240F50 A2020289 */ sb $v0, 0x289($s0) -.L80240F54: -/* 16F834 80240F54 2882003D */ slti $v0, $a0, 0x3d -/* 16F838 80240F58 10400003 */ beqz $v0, .L80240F68 -/* 16F83C 80240F5C 24020002 */ addiu $v0, $zero, 2 -.L80240F60: -/* 16F840 80240F60 080903DE */ j .L80240F78 -/* 16F844 80240F64 A2020289 */ sb $v0, 0x289($s0) -.L80240F68: -/* 16F848 80240F68 28820051 */ slti $v0, $a0, 0x51 -/* 16F84C 80240F6C 50400002 */ beql $v0, $zero, .L80240F78 -/* 16F850 80240F70 A2120289 */ sb $s2, 0x289($s0) -/* 16F854 80240F74 A2110289 */ sb $s1, 0x289($s0) -.L80240F78: -/* 16F858 80240F78 0C00A67F */ jal rand_int -/* 16F85C 80240F7C 2404000A */ addiu $a0, $zero, 0xa -/* 16F860 80240F80 24440006 */ addiu $a0, $v0, 6 -/* 16F864 80240F84 A604028C */ sh $a0, 0x28c($s0) -/* 16F868 80240F88 8602028C */ lh $v0, 0x28c($s0) -.L80240F8C: -/* 16F86C 80240F8C 9603028C */ lhu $v1, 0x28c($s0) -/* 16F870 80240F90 28420002 */ slti $v0, $v0, 2 -/* 16F874 80240F94 14400003 */ bnez $v0, .L80240FA4 -/* 16F878 80240F98 2462FFFF */ addiu $v0, $v1, -1 -/* 16F87C 80240F9C 080903EF */ j .L80240FBC -/* 16F880 80240FA0 A602028C */ sh $v0, 0x28c($s0) -.L80240FA4: -/* 16F884 80240FA4 92030289 */ lbu $v1, 0x289($s0) -/* 16F888 80240FA8 9202028A */ lbu $v0, 0x28a($s0) -/* 16F88C 80240FAC A600028C */ sh $zero, 0x28c($s0) -/* 16F890 80240FB0 2442FFFF */ addiu $v0, $v0, -1 -/* 16F894 80240FB4 A283008A */ sb $v1, 0x8a($s4) -/* 16F898 80240FB8 A202028A */ sb $v0, 0x28a($s0) -.L80240FBC: -/* 16F89C 80240FBC 8FBF0024 */ lw $ra, 0x24($sp) -/* 16F8A0 80240FC0 8FB40020 */ lw $s4, 0x20($sp) -/* 16F8A4 80240FC4 8FB3001C */ lw $s3, 0x1c($sp) -/* 16F8A8 80240FC8 8FB20018 */ lw $s2, 0x18($sp) -/* 16F8AC 80240FCC 8FB10014 */ lw $s1, 0x14($sp) -/* 16F8B0 80240FD0 8FB00010 */ lw $s0, 0x10($sp) -/* 16F8B4 80240FD4 03E00008 */ jr $ra -/* 16F8B8 80240FD8 27BD0028 */ addiu $sp, $sp, 0x28 diff --git a/ver/us/asm/nonmatchings/16F740/btl_state_update_begin_partner_turn.s b/ver/us/asm/nonmatchings/16F740/btl_state_update_begin_partner_turn.s deleted file mode 100644 index cf99f6be7f..0000000000 --- a/ver/us/asm/nonmatchings/16F740/btl_state_update_begin_partner_turn.s +++ /dev/null @@ -1,234 +0,0 @@ -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches - -glabel btl_state_update_begin_partner_turn -/* 171490 80242BB0 27BDFFD8 */ addiu $sp, $sp, -0x28 -/* 171494 80242BB4 AFB20018 */ sw $s2, 0x18($sp) -/* 171498 80242BB8 3C12800E */ lui $s2, %hi(gBattleStatus) -/* 17149C 80242BBC 2652C070 */ addiu $s2, $s2, %lo(gBattleStatus) -/* 1714A0 80242BC0 AFB10014 */ sw $s1, 0x14($sp) -/* 1714A4 80242BC4 3C11800E */ lui $s1, %hi(gBattleState2) -/* 1714A8 80242BC8 2631C4DC */ addiu $s1, $s1, %lo(gBattleState2) -/* 1714AC 80242BCC AFBF0020 */ sw $ra, 0x20($sp) -/* 1714B0 80242BD0 AFB3001C */ sw $s3, 0x1c($sp) -/* 1714B4 80242BD4 AFB00010 */ sw $s0, 0x10($sp) -/* 1714B8 80242BD8 8E220000 */ lw $v0, ($s1) -/* 1714BC 80242BDC 14400016 */ bnez $v0, .L80242C38 -/* 1714C0 80242BE0 8E5000DC */ lw $s0, 0xdc($s2) -/* 1714C4 80242BE4 16000006 */ bnez $s0, .L80242C00 -/* 1714C8 80242BE8 24030006 */ addiu $v1, $zero, 6 -/* 1714CC 80242BEC 24020001 */ addiu $v0, $zero, 1 -/* 1714D0 80242BF0 3C01802A */ lui $at, %hi(D_8029F254) -/* 1714D4 80242BF4 AC22F254 */ sw $v0, %lo(D_8029F254)($at) -/* 1714D8 80242BF8 08090B0D */ j .L80242C34 -/* 1714DC 80242BFC 2402000A */ addiu $v0, $zero, 0xa -.L80242C00: -/* 1714E0 80242C00 8E420004 */ lw $v0, 4($s2) -/* 1714E4 80242C04 30420006 */ andi $v0, $v0, 6 -/* 1714E8 80242C08 104300B1 */ beq $v0, $v1, .L80242ED0 -/* 1714EC 80242C0C 3C030020 */ lui $v1, 0x20 -/* 1714F0 80242C10 8E020000 */ lw $v0, ($s0) -/* 1714F4 80242C14 00431024 */ and $v0, $v0, $v1 -/* 1714F8 80242C18 144000AE */ bnez $v0, .L80242ED4 -/* 1714FC 80242C1C 24040009 */ addiu $a0, $zero, 9 -/* 171500 80242C20 0C093903 */ jal btl_cam_use_preset -/* 171504 80242C24 24040002 */ addiu $a0, $zero, 2 -/* 171508 80242C28 0C093936 */ jal btl_cam_move -/* 17150C 80242C2C 24040005 */ addiu $a0, $zero, 5 -/* 171510 80242C30 24020064 */ addiu $v0, $zero, 0x64 -.L80242C34: -/* 171514 80242C34 AE220000 */ sw $v0, ($s1) -.L80242C38: -/* 171518 80242C38 3C03800E */ lui $v1, %hi(gBattleState2) -/* 17151C 80242C3C 8C63C4DC */ lw $v1, %lo(gBattleState2)($v1) -/* 171520 80242C40 24020064 */ addiu $v0, $zero, 0x64 -/* 171524 80242C44 14620048 */ bne $v1, $v0, .L80242D68 -/* 171528 80242C48 24020001 */ addiu $v0, $zero, 1 -/* 17152C 80242C4C 0C093961 */ jal btl_cam_is_moving_done -/* 171530 80242C50 00000000 */ nop -/* 171534 80242C54 10400041 */ beqz $v0, .L80242D5C -/* 171538 80242C58 00000000 */ nop -/* 17153C 80242C5C 3C13802A */ lui $s3, %hi(D_8029F258) -/* 171540 80242C60 2673F258 */ addiu $s3, $s3, %lo(D_8029F258) -/* 171544 80242C64 0C098F18 */ jal reset_actor_turn_info -/* 171548 80242C68 AE600000 */ sw $zero, ($s3) -/* 17154C 80242C6C 2402007F */ addiu $v0, $zero, 0x7f -/* 171550 80242C70 3C05802A */ lui $a1, %hi(D_8029F254) -/* 171554 80242C74 24A5F254 */ addiu $a1, $a1, %lo(D_8029F254) -/* 171558 80242C78 8E5000DC */ lw $s0, 0xdc($s2) -/* 17155C 80242C7C 3C11800E */ lui $s1, %hi(gBattleStatus) -/* 171560 80242C80 2631C070 */ addiu $s1, $s1, %lo(gBattleStatus) -/* 171564 80242C84 A2420086 */ sb $v0, 0x86($s2) -/* 171568 80242C88 A2420087 */ sb $v0, 0x87($s2) -/* 17156C 80242C8C ACA00000 */ sw $zero, ($a1) -/* 171570 80242C90 8E220000 */ lw $v0, ($s1) -/* 171574 80242C94 3C030008 */ lui $v1, 8 -/* 171578 80242C98 00431025 */ or $v0, $v0, $v1 -/* 17157C 80242C9C AE220000 */ sw $v0, ($s1) -/* 171580 80242CA0 8E220004 */ lw $v0, 4($s1) -/* 171584 80242CA4 3C030010 */ lui $v1, 0x10 -/* 171588 80242CA8 00431025 */ or $v0, $v0, $v1 -/* 17158C 80242CAC 3C030800 */ lui $v1, 0x800 -/* 171590 80242CB0 AE220004 */ sw $v0, 4($s1) -/* 171594 80242CB4 8E020000 */ lw $v0, ($s0) -/* 171598 80242CB8 82040216 */ lb $a0, 0x216($s0) -/* 17159C 80242CBC 00431025 */ or $v0, $v0, $v1 -/* 1715A0 80242CC0 10800017 */ beqz $a0, .L80242D20 -/* 1715A4 80242CC4 AE020000 */ sw $v0, ($s0) -/* 1715A8 80242CC8 92020217 */ lbu $v0, 0x217($s0) -/* 1715AC 80242CCC 2442FFFF */ addiu $v0, $v0, -1 -/* 1715B0 80242CD0 A2020217 */ sb $v0, 0x217($s0) -/* 1715B4 80242CD4 24020001 */ addiu $v0, $zero, 1 -/* 1715B8 80242CD8 ACA20000 */ sw $v0, ($a1) -/* 1715BC 80242CDC 24020014 */ addiu $v0, $zero, 0x14 -/* 1715C0 80242CE0 AE620000 */ sw $v0, ($s3) -/* 1715C4 80242CE4 82030217 */ lb $v1, 0x217($s0) -/* 1715C8 80242CE8 18600005 */ blez $v1, .L80242D00 -/* 1715CC 80242CEC 24040034 */ addiu $a0, $zero, 0x34 -/* 1715D0 80242CF0 8E020440 */ lw $v0, 0x440($s0) -/* 1715D4 80242CF4 8C42000C */ lw $v0, 0xc($v0) -/* 1715D8 80242CF8 08090B48 */ j .L80242D20 -/* 1715DC 80242CFC AC43003C */ sw $v1, 0x3c($v0) -.L80242D00: -/* 1715E0 80242D00 0C09F7A0 */ jal dispatch_event_partner -/* 1715E4 80242D04 A2000216 */ sb $zero, 0x216($s0) -/* 1715E8 80242D08 8E020440 */ lw $v0, 0x440($s0) -/* 1715EC 80242D0C 8C42000C */ lw $v0, 0xc($v0) -/* 1715F0 80242D10 AC40003C */ sw $zero, 0x3c($v0) -/* 1715F4 80242D14 8E220004 */ lw $v0, 4($s1) -/* 1715F8 80242D18 34420008 */ ori $v0, $v0, 8 -/* 1715FC 80242D1C AE220004 */ sw $v0, 4($s1) -.L80242D20: -/* 171600 80242D20 0000282D */ daddu $a1, $zero, $zero -/* 171604 80242D24 3C060C00 */ lui $a2, 0xc00 -/* 171608 80242D28 0240202D */ daddu $a0, $s2, $zero -.L80242D2C: -/* 17160C 80242D2C 8C8300E0 */ lw $v1, 0xe0($a0) -/* 171610 80242D30 10600004 */ beqz $v1, .L80242D44 -/* 171614 80242D34 24A50001 */ addiu $a1, $a1, 1 -/* 171618 80242D38 8C620000 */ lw $v0, ($v1) -/* 17161C 80242D3C 00461025 */ or $v0, $v0, $a2 -/* 171620 80242D40 AC620000 */ sw $v0, ($v1) -.L80242D44: -/* 171624 80242D44 28A20018 */ slti $v0, $a1, 0x18 -/* 171628 80242D48 1440FFF8 */ bnez $v0, .L80242D2C -/* 17162C 80242D4C 24840004 */ addiu $a0, $a0, 4 -/* 171630 80242D50 24020001 */ addiu $v0, $zero, 1 -/* 171634 80242D54 3C01800E */ lui $at, %hi(gBattleState2) -/* 171638 80242D58 AC22C4DC */ sw $v0, %lo(gBattleState2)($at) -.L80242D5C: -/* 17163C 80242D5C 3C03800E */ lui $v1, %hi(gBattleState2) -/* 171640 80242D60 8C63C4DC */ lw $v1, %lo(gBattleState2)($v1) -/* 171644 80242D64 24020001 */ addiu $v0, $zero, 1 -.L80242D68: -/* 171648 80242D68 1462001B */ bne $v1, $v0, .L80242DD8 -/* 17164C 80242D6C 00000000 */ nop -/* 171650 80242D70 1200000A */ beqz $s0, .L80242D9C -/* 171654 80242D74 00000000 */ nop -/* 171658 80242D78 8E0201D8 */ lw $v0, 0x1d8($s0) -/* 17165C 80242D7C 50400007 */ beql $v0, $zero, .L80242D9C -/* 171660 80242D80 AE0001D8 */ sw $zero, 0x1d8($s0) -/* 171664 80242D84 8E0401E8 */ lw $a0, 0x1e8($s0) -/* 171668 80242D88 0C0B1059 */ jal does_script_exist -/* 17166C 80242D8C 00000000 */ nop -/* 171670 80242D90 14400011 */ bnez $v0, .L80242DD8 -/* 171674 80242D94 00000000 */ nop -/* 171678 80242D98 AE0001D8 */ sw $zero, 0x1d8($s0) -.L80242D9C: -/* 17167C 80242D9C 3C02800E */ lui $v0, %hi(gBattleStatus) -/* 171680 80242DA0 2442C070 */ addiu $v0, $v0, %lo(gBattleStatus) -/* 171684 80242DA4 8C430004 */ lw $v1, 4($v0) -/* 171688 80242DA8 2404FFF7 */ addiu $a0, $zero, -9 -/* 17168C 80242DAC 00641824 */ and $v1, $v1, $a0 -/* 171690 80242DB0 0C098D19 */ jal btl_check_player_defeated -/* 171694 80242DB4 AC430004 */ sw $v1, 4($v0) -/* 171698 80242DB8 14400048 */ bnez $v0, .L80242EDC -/* 17169C 80242DBC 00000000 */ nop -/* 1716A0 80242DC0 0C098D0D */ jal btl_check_enemies_defeated -/* 1716A4 80242DC4 00000000 */ nop -/* 1716A8 80242DC8 14400044 */ bnez $v0, .L80242EDC -/* 1716AC 80242DCC 24020008 */ addiu $v0, $zero, 8 -/* 1716B0 80242DD0 3C01800E */ lui $at, %hi(gBattleState2) -/* 1716B4 80242DD4 AC22C4DC */ sw $v0, %lo(gBattleState2)($at) -.L80242DD8: -/* 1716B8 80242DD8 3C11800E */ lui $s1, %hi(gBattleState2) -/* 1716BC 80242DDC 2631C4DC */ addiu $s1, $s1, %lo(gBattleState2) -/* 1716C0 80242DE0 8E230000 */ lw $v1, ($s1) -/* 1716C4 80242DE4 24020008 */ addiu $v0, $zero, 8 -/* 1716C8 80242DE8 14620014 */ bne $v1, $v0, .L80242E3C -/* 1716CC 80242DEC 24020009 */ addiu $v0, $zero, 9 -/* 1716D0 80242DF0 8E0201CC */ lw $v0, 0x1cc($s0) -/* 1716D4 80242DF4 1040000B */ beqz $v0, .L80242E24 -/* 1716D8 80242DF8 2402000C */ addiu $v0, $zero, 0xc -/* 1716DC 80242DFC 2405000A */ addiu $a1, $zero, 0xa -/* 1716E0 80242E00 A24201A7 */ sb $v0, 0x1a7($s2) -/* 1716E4 80242E04 8E0401CC */ lw $a0, 0x1cc($s0) -/* 1716E8 80242E08 0C0B0CF8 */ jal start_script -/* 1716EC 80242E0C 0000302D */ daddu $a2, $zero, $zero -/* 1716F0 80242E10 AE0201DC */ sw $v0, 0x1dc($s0) -/* 1716F4 80242E14 8C430144 */ lw $v1, 0x144($v0) -/* 1716F8 80242E18 AE0301EC */ sw $v1, 0x1ec($s0) -/* 1716FC 80242E1C 24030100 */ addiu $v1, $zero, 0x100 -/* 171700 80242E20 AC430148 */ sw $v1, 0x148($v0) -.L80242E24: -/* 171704 80242E24 24020009 */ addiu $v0, $zero, 9 -/* 171708 80242E28 AE220000 */ sw $v0, ($s1) -/* 17170C 80242E2C 3C11800E */ lui $s1, %hi(gBattleState2) -/* 171710 80242E30 2631C4DC */ addiu $s1, $s1, %lo(gBattleState2) -/* 171714 80242E34 8E230000 */ lw $v1, ($s1) -/* 171718 80242E38 24020009 */ addiu $v0, $zero, 9 -.L80242E3C: -/* 17171C 80242E3C 1462000A */ bne $v1, $v0, .L80242E68 -/* 171720 80242E40 00000000 */ nop -/* 171724 80242E44 8E0201CC */ lw $v0, 0x1cc($s0) -/* 171728 80242E48 10400006 */ beqz $v0, .L80242E64 -/* 17172C 80242E4C 2402000A */ addiu $v0, $zero, 0xa -/* 171730 80242E50 8E0401EC */ lw $a0, 0x1ec($s0) -/* 171734 80242E54 0C0B1059 */ jal does_script_exist -/* 171738 80242E58 00000000 */ nop -/* 17173C 80242E5C 14400002 */ bnez $v0, .L80242E68 -/* 171740 80242E60 2402000A */ addiu $v0, $zero, 0xa -.L80242E64: -/* 171744 80242E64 AE220000 */ sw $v0, ($s1) -.L80242E68: -/* 171748 80242E68 3C03800E */ lui $v1, %hi(gBattleState2) -/* 17174C 80242E6C 8C63C4DC */ lw $v1, %lo(gBattleState2)($v1) -/* 171750 80242E70 2402000A */ addiu $v0, $zero, 0xa -/* 171754 80242E74 14620019 */ bne $v1, $v0, .L80242EDC -/* 171758 80242E78 00000000 */ nop -/* 17175C 80242E7C 3C03802A */ lui $v1, %hi(D_8029F258) -/* 171760 80242E80 2463F258 */ addiu $v1, $v1, %lo(D_8029F258) -/* 171764 80242E84 8C620000 */ lw $v0, ($v1) -/* 171768 80242E88 10400003 */ beqz $v0, .L80242E98 -/* 17176C 80242E8C 2442FFFF */ addiu $v0, $v0, -1 -/* 171770 80242E90 08090BB7 */ j .L80242EDC -/* 171774 80242E94 AC620000 */ sw $v0, ($v1) -.L80242E98: -/* 171778 80242E98 3C02FFEF */ lui $v0, 0xffef -/* 17177C 80242E9C 3442FFFF */ ori $v0, $v0, 0xffff -/* 171780 80242EA0 3C05800E */ lui $a1, %hi(gBattleStatus) -/* 171784 80242EA4 24A5C070 */ addiu $a1, $a1, %lo(gBattleStatus) -/* 171788 80242EA8 8CA30004 */ lw $v1, 4($a1) -/* 17178C 80242EAC 3C04802A */ lui $a0, %hi(D_8029F254) -/* 171790 80242EB0 8C84F254 */ lw $a0, %lo(D_8029F254)($a0) -/* 171794 80242EB4 00621024 */ and $v0, $v1, $v0 -/* 171798 80242EB8 14800003 */ bnez $a0, .L80242EC8 -/* 17179C 80242EBC ACA20004 */ sw $v0, 4($a1) -/* 1717A0 80242EC0 08090BB5 */ j .L80242ED4 -/* 1717A4 80242EC4 2404000B */ addiu $a0, $zero, 0xb -.L80242EC8: -/* 1717A8 80242EC8 34420004 */ ori $v0, $v0, 4 -/* 1717AC 80242ECC ACA20004 */ sw $v0, 4($a1) -.L80242ED0: -/* 1717B0 80242ED0 24040009 */ addiu $a0, $zero, 9 -.L80242ED4: -/* 1717B4 80242ED4 0C090464 */ jal btl_set_state -/* 1717B8 80242ED8 00000000 */ nop -.L80242EDC: -/* 1717BC 80242EDC 8FBF0020 */ lw $ra, 0x20($sp) -/* 1717C0 80242EE0 8FB3001C */ lw $s3, 0x1c($sp) -/* 1717C4 80242EE4 8FB20018 */ lw $s2, 0x18($sp) -/* 1717C8 80242EE8 8FB10014 */ lw $s1, 0x14($sp) -/* 1717CC 80242EEC 8FB00010 */ lw $s0, 0x10($sp) -/* 1717D0 80242EF0 03E00008 */ jr $ra -/* 1717D4 80242EF4 27BD0028 */ addiu $sp, $sp, 0x28 diff --git a/ver/us/asm/nonmatchings/16F740/btl_state_update_end_battle.s b/ver/us/asm/nonmatchings/16F740/btl_state_update_end_battle.s deleted file mode 100644 index 3a0409bcbf..0000000000 --- a/ver/us/asm/nonmatchings/16F740/btl_state_update_end_battle.s +++ /dev/null @@ -1,242 +0,0 @@ -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches - -.section .rodata - -dlabel D_8029CAAC -.ascii "gv_01\0\0\0\0\0\0\0" - -dlabel jtbl_8029CAB8 -.word .L80244AA8_173388, .L80244B40_173420, .L80244B88_173468, .L80244C0C_1734EC, .L80244C28_173508, 0 - -.section .text - -glabel btl_state_update_end_battle -/* 173330 80244A50 3C03800E */ lui $v1, %hi(gBattleState2) -/* 173334 80244A54 8C63C4DC */ lw $v1, %lo(gBattleState2)($v1) -/* 173338 80244A58 3C06800E */ lui $a2, %hi(D_800DC4FC) -/* 17333C 80244A5C 8CC6C4FC */ lw $a2, %lo(D_800DC4FC)($a2) -/* 173340 80244A60 27BDFFD0 */ addiu $sp, $sp, -0x30 -/* 173344 80244A64 AFB30024 */ sw $s3, 0x24($sp) -/* 173348 80244A68 3C13800B */ lui $s3, %hi(gCurrentEncounter) -/* 17334C 80244A6C 26730F10 */ addiu $s3, $s3, %lo(gCurrentEncounter) -/* 173350 80244A70 AFB20020 */ sw $s2, 0x20($sp) -/* 173354 80244A74 3C12800E */ lui $s2, %hi(gBattleStatus) -/* 173358 80244A78 2652C070 */ addiu $s2, $s2, %lo(gBattleStatus) -/* 17335C 80244A7C AFBF0028 */ sw $ra, 0x28($sp) -/* 173360 80244A80 AFB1001C */ sw $s1, 0x1c($sp) -/* 173364 80244A84 2C620005 */ sltiu $v0, $v1, 5 -/* 173368 80244A88 104000BA */ beqz $v0, .L80244D74 -/* 17336C 80244A8C AFB00018 */ sw $s0, 0x18($sp) -/* 173370 80244A90 00031080 */ sll $v0, $v1, 2 -/* 173374 80244A94 3C01802A */ lui $at, %hi(jtbl_8029CAB8) -/* 173378 80244A98 00220821 */ addu $at, $at, $v0 -/* 17337C 80244A9C 8C22CAB8 */ lw $v0, %lo(jtbl_8029CAB8)($at) -/* 173380 80244AA0 00400008 */ jr $v0 -/* 173384 80244AA4 00000000 */ nop -.L80244AA8_173388: -/* 173388 80244AA8 3C028007 */ lui $v0, %hi(gGameStatusPtr) -/* 17338C 80244AAC 8C42419C */ lw $v0, %lo(gGameStatusPtr)($v0) -/* 173390 80244AB0 3C048028 */ lui $a0, %hi(D_80280A30) -/* 173394 80244AB4 24840A30 */ addiu $a0, $a0, %lo(D_80280A30) -/* 173398 80244AB8 AC800000 */ sw $zero, ($a0) -/* 17339C 80244ABC 80430074 */ lb $v1, 0x74($v0) -/* 1733A0 80244AC0 24020002 */ addiu $v0, $zero, 2 -/* 1733A4 80244AC4 14620002 */ bne $v1, $v0, .L80244AD0 -/* 1733A8 80244AC8 240200FF */ addiu $v0, $zero, 0xff -/* 1733AC 80244ACC AC820000 */ sw $v0, ($a0) -.L80244AD0: -/* 1733B0 80244AD0 82630009 */ lb $v1, 9($s3) -/* 1733B4 80244AD4 24020001 */ addiu $v0, $zero, 1 -/* 1733B8 80244AD8 14620015 */ bne $v1, $v0, .L80244B30 -/* 1733BC 80244ADC 3C030080 */ lui $v1, 0x80 -/* 1733C0 80244AE0 3C02800E */ lui $v0, %hi(gBattleStatus) -/* 1733C4 80244AE4 8C42C070 */ lw $v0, %lo(gBattleStatus)($v0) -/* 1733C8 80244AE8 00431024 */ and $v0, $v0, $v1 -/* 1733CC 80244AEC 14400010 */ bnez $v0, .L80244B30 -/* 1733D0 80244AF0 24020001 */ addiu $v0, $zero, 1 -/* 1733D4 80244AF4 0C093980 */ jal btl_cam_unfreeze -/* 1733D8 80244AF8 00000000 */ nop -/* 1733DC 80244AFC 0C093903 */ jal btl_cam_use_preset -/* 1733E0 80244B00 24040001 */ addiu $a0, $zero, 1 -/* 1733E4 80244B04 0000202D */ daddu $a0, $zero, $zero -/* 1733E8 80244B08 0080282D */ daddu $a1, $a0, $zero -/* 1733EC 80244B0C 0080302D */ daddu $a2, $a0, $zero -/* 1733F0 80244B10 0C04DF84 */ jal set_screen_overlay_color -/* 1733F4 80244B14 0080382D */ daddu $a3, $a0, $zero -/* 1733F8 80244B18 0000202D */ daddu $a0, $zero, $zero -/* 1733FC 80244B1C 0080282D */ daddu $a1, $a0, $zero -/* 173400 80244B20 240600A0 */ addiu $a2, $zero, 0xa0 -/* 173404 80244B24 0C04DF93 */ jal set_screen_overlay_center -/* 173408 80244B28 24070078 */ addiu $a3, $zero, 0x78 -/* 17340C 80244B2C 24020001 */ addiu $v0, $zero, 1 -.L80244B30: -/* 173410 80244B30 3C01800E */ lui $at, %hi(gBattleState2) -/* 173414 80244B34 AC22C4DC */ sw $v0, %lo(gBattleState2)($at) -/* 173418 80244B38 0809135D */ j .L80244D74 -/* 17341C 80244B3C 00000000 */ nop -.L80244B40_173420: -/* 173420 80244B40 3C048028 */ lui $a0, %hi(D_80280A30) -/* 173424 80244B44 24840A30 */ addiu $a0, $a0, %lo(D_80280A30) -/* 173428 80244B48 8C830000 */ lw $v1, ($a0) -/* 17342C 80244B4C 240500FF */ addiu $a1, $zero, 0xff -/* 173430 80244B50 14650005 */ bne $v1, $a1, .L80244B68 -/* 173434 80244B54 24020002 */ addiu $v0, $zero, 2 -/* 173438 80244B58 3C01800E */ lui $at, %hi(gBattleState2) -/* 17343C 80244B5C AC22C4DC */ sw $v0, %lo(gBattleState2)($at) -/* 173440 80244B60 0809135D */ j .L80244D74 -/* 173444 80244B64 00000000 */ nop -.L80244B68: -/* 173448 80244B68 8242008D */ lb $v0, 0x8d($s2) -/* 17344C 80244B6C 00621021 */ addu $v0, $v1, $v0 -/* 173450 80244B70 AC820000 */ sw $v0, ($a0) -/* 173454 80244B74 28420100 */ slti $v0, $v0, 0x100 -/* 173458 80244B78 5040007E */ beql $v0, $zero, .L80244D74 -/* 17345C 80244B7C AC850000 */ sw $a1, ($a0) -/* 173460 80244B80 0809135D */ j .L80244D74 -/* 173464 80244B84 00000000 */ nop -.L80244B88_173468: -/* 173468 80244B88 240200FF */ addiu $v0, $zero, 0xff -/* 17346C 80244B8C 3C04800E */ lui $a0, %hi(gBattleStatus) -/* 173470 80244B90 2484C070 */ addiu $a0, $a0, %lo(gBattleStatus) -/* 173474 80244B94 2403FFFE */ addiu $v1, $zero, -2 -/* 173478 80244B98 3C018028 */ lui $at, %hi(D_80280A30) -/* 17347C 80244B9C AC220A30 */ sw $v0, %lo(D_80280A30)($at) -/* 173480 80244BA0 8C820000 */ lw $v0, ($a0) -/* 173484 80244BA4 3C05800E */ lui $a1, %hi(D_800DC064) -/* 173488 80244BA8 8CA5C064 */ lw $a1, %lo(D_800DC064)($a1) -/* 17348C 80244BAC 00431024 */ and $v0, $v0, $v1 -/* 173490 80244BB0 14A00004 */ bnez $a1, .L80244BC4 -/* 173494 80244BB4 AC820000 */ sw $v0, ($a0) -/* 173498 80244BB8 8CC4000C */ lw $a0, 0xc($a2) -/* 17349C 80244BBC 080912F2 */ j .L80244BC8 -/* 1734A0 80244BC0 00000000 */ nop -.L80244BC4: -/* 1734A4 80244BC4 8CA40004 */ lw $a0, 4($a1) -.L80244BC8: -/* 1734A8 80244BC8 8C840010 */ lw $a0, 0x10($a0) -/* 1734AC 80244BCC 14800006 */ bnez $a0, .L80244BE8 -/* 1734B0 80244BD0 2405000A */ addiu $a1, $zero, 0xa -/* 1734B4 80244BD4 24020004 */ addiu $v0, $zero, 4 -/* 1734B8 80244BD8 3C01800E */ lui $at, %hi(gBattleState2) -/* 1734BC 80244BDC AC22C4DC */ sw $v0, %lo(gBattleState2)($at) -/* 1734C0 80244BE0 0809135D */ j .L80244D74 -/* 1734C4 80244BE4 00000000 */ nop -.L80244BE8: -/* 1734C8 80244BE8 0C0B0CF8 */ jal start_script -/* 1734CC 80244BEC 0000302D */ daddu $a2, $zero, $zero -/* 1734D0 80244BF0 AE4200BC */ sw $v0, 0xbc($s2) -/* 1734D4 80244BF4 8C430144 */ lw $v1, 0x144($v0) -/* 1734D8 80244BF8 24020003 */ addiu $v0, $zero, 3 -/* 1734DC 80244BFC 3C01800E */ lui $at, %hi(gBattleState2) -/* 1734E0 80244C00 AC22C4DC */ sw $v0, %lo(gBattleState2)($at) -/* 1734E4 80244C04 0809135D */ j .L80244D74 -/* 1734E8 80244C08 AE4300C0 */ sw $v1, 0xc0($s2) -.L80244C0C_1734EC: -/* 1734EC 80244C0C 8E4400C0 */ lw $a0, 0xc0($s2) -/* 1734F0 80244C10 0C0B1059 */ jal does_script_exist -/* 1734F4 80244C14 00000000 */ nop -/* 1734F8 80244C18 14400056 */ bnez $v0, .L80244D74 -/* 1734FC 80244C1C 24020004 */ addiu $v0, $zero, 4 -/* 173500 80244C20 3C01800E */ lui $at, %hi(gBattleState2) -/* 173504 80244C24 AC22C4DC */ sw $v0, %lo(gBattleState2)($at) -.L80244C28_173508: -/* 173508 80244C28 0C0B1045 */ jal kill_all_scripts -/* 17350C 80244C2C 0000882D */ daddu $s1, $zero, $zero -/* 173510 80244C30 0240802D */ daddu $s0, $s2, $zero -.L80244C34: -/* 173514 80244C34 8E0400E0 */ lw $a0, 0xe0($s0) -/* 173518 80244C38 10800003 */ beqz $a0, .L80244C48 -/* 17351C 80244C3C 26310001 */ addiu $s1, $s1, 1 -/* 173520 80244C40 0C0902EF */ jal btl_delete_actor -/* 173524 80244C44 00000000 */ nop -.L80244C48: -/* 173528 80244C48 2A220018 */ slti $v0, $s1, 0x18 -/* 17352C 80244C4C 1440FFF9 */ bnez $v0, .L80244C34 -/* 173530 80244C50 26100004 */ addiu $s0, $s0, 4 -/* 173534 80244C54 8E4400DC */ lw $a0, 0xdc($s2) -/* 173538 80244C58 10800003 */ beqz $a0, .L80244C68 -/* 17353C 80244C5C 00000000 */ nop -/* 173540 80244C60 0C0902EF */ jal btl_delete_actor -/* 173544 80244C64 00000000 */ nop -.L80244C68: -/* 173548 80244C68 0C09035A */ jal btl_delete_player_actor -/* 17354C 80244C6C 8E4400D8 */ lw $a0, 0xd8($s2) -/* 173550 80244C70 8243008A */ lb $v1, 0x8a($s2) -/* 173554 80244C74 24020004 */ addiu $v0, $zero, 4 -/* 173558 80244C78 14620003 */ bne $v1, $v0, .L80244C88 -/* 17355C 80244C7C 24020001 */ addiu $v0, $zero, 1 -/* 173560 80244C80 A262000B */ sb $v0, 0xb($s3) -/* 173564 80244C84 A240008A */ sb $zero, 0x8a($s2) -.L80244C88: -/* 173568 80244C88 9242007B */ lbu $v0, 0x7b($s2) -/* 17356C 80244C8C 3C10800E */ lui $s0, %hi(gBattleStatus) -/* 173570 80244C90 2610C070 */ addiu $s0, $s0, %lo(gBattleStatus) -/* 173574 80244C94 A262000C */ sb $v0, 0xc($s3) -/* 173578 80244C98 8E020004 */ lw $v0, 4($s0) -/* 17357C 80244C9C 3C031000 */ lui $v1, 0x1000 -/* 173580 80244CA0 00431024 */ and $v0, $v0, $v1 -/* 173584 80244CA4 10400002 */ beqz $v0, .L80244CB0 -/* 173588 80244CA8 24020001 */ addiu $v0, $zero, 1 -/* 17358C 80244CAC A2620013 */ sb $v0, 0x13($s3) -.L80244CB0: -/* 173590 80244CB0 0C016938 */ jal remove_all_effects -/* 173594 80244CB4 00000000 */ nop -/* 173598 80244CB8 0C051FB1 */ jal set_windows_visible -/* 17359C 80244CBC 0000202D */ daddu $a0, $zero, $zero -/* 1735A0 80244CC0 8E020004 */ lw $v0, 4($s0) -/* 1735A4 80244CC4 30420040 */ andi $v0, $v0, 0x40 -/* 1735A8 80244CC8 10400003 */ beqz $v0, .L80244CD8 -/* 1735AC 80244CCC 00000000 */ nop -/* 1735B0 80244CD0 0C03A6CC */ jal decrement_status_menu_disabled -/* 1735B4 80244CD4 00000000 */ nop -.L80244CD8: -/* 1735B8 80244CD8 82630009 */ lb $v1, 9($s3) -/* 1735BC 80244CDC 24020001 */ addiu $v0, $zero, 1 -/* 1735C0 80244CE0 14620019 */ bne $v1, $v0, .L80244D48 -/* 1735C4 80244CE4 3C030080 */ lui $v1, 0x80 -/* 1735C8 80244CE8 8E020000 */ lw $v0, ($s0) -/* 1735CC 80244CEC 00431024 */ and $v0, $v0, $v1 -/* 1735D0 80244CF0 14400015 */ bnez $v0, .L80244D48 -/* 1735D4 80244CF4 00000000 */ nop -/* 1735D8 80244CF8 0C090464 */ jal btl_set_state -/* 1735DC 80244CFC 0000202D */ daddu $a0, $zero, $zero -/* 1735E0 80244D00 3C04802A */ lui $a0, %hi(D_8029CAAC) -/* 1735E4 80244D04 2484CAAC */ addiu $a0, $a0, %lo(D_8029CAAC) -/* 1735E8 80244D08 27A50010 */ addiu $a1, $sp, 0x10 -/* 1735EC 80244D0C 3C02800E */ lui $v0, %hi(gBattleState) -/* 1735F0 80244D10 8C42C068 */ lw $v0, %lo(gBattleState)($v0) -/* 1735F4 80244D14 3C01800E */ lui $at, %hi(D_800DC4D0) -/* 1735F8 80244D18 AC22C4D0 */ sw $v0, %lo(D_800DC4D0)($at) -/* 1735FC 80244D1C 0C016AFE */ jal get_map_IDs_by_name -/* 173600 80244D20 27A60012 */ addiu $a2, $sp, 0x12 -/* 173604 80244D24 3C028007 */ lui $v0, %hi(gGameStatusPtr) -/* 173608 80244D28 8C42419C */ lw $v0, %lo(gGameStatusPtr)($v0) -/* 17360C 80244D2C 97A30010 */ lhu $v1, 0x10($sp) -/* 173610 80244D30 97A50012 */ lhu $a1, 0x12($sp) -/* 173614 80244D34 24040006 */ addiu $a0, $zero, 6 -/* 173618 80244D38 A4430086 */ sh $v1, 0x86($v0) -/* 17361C 80244D3C A445008C */ sh $a1, 0x8c($v0) -/* 173620 80244D40 0809135B */ j .L80244D6C -/* 173624 80244D44 A440008E */ sh $zero, 0x8e($v0) -.L80244D48: -/* 173628 80244D48 0C090464 */ jal btl_set_state -/* 17362C 80244D4C 0000202D */ daddu $a0, $zero, $zero -/* 173630 80244D50 3C02800E */ lui $v0, %hi(gBattleState) -/* 173634 80244D54 8C42C068 */ lw $v0, %lo(gBattleState)($v0) -/* 173638 80244D58 3C01800E */ lui $at, %hi(D_800DC4D0) -/* 17363C 80244D5C AC22C4D0 */ sw $v0, %lo(D_800DC4D0)($at) -/* 173640 80244D60 0C00F945 */ jal func_8003E514 -/* 173644 80244D64 24040001 */ addiu $a0, $zero, 1 -/* 173648 80244D68 24040009 */ addiu $a0, $zero, 9 -.L80244D6C: -/* 17364C 80244D6C 0C00CD3C */ jal set_game_mode -/* 173650 80244D70 00000000 */ nop -.L80244D74: -/* 173654 80244D74 8FBF0028 */ lw $ra, 0x28($sp) -/* 173658 80244D78 8FB30024 */ lw $s3, 0x24($sp) -/* 17365C 80244D7C 8FB20020 */ lw $s2, 0x20($sp) -/* 173660 80244D80 8FB1001C */ lw $s1, 0x1c($sp) -/* 173664 80244D84 8FB00018 */ lw $s0, 0x18($sp) -/* 173668 80244D88 03E00008 */ jr $ra -/* 17366C 80244D8C 27BD0030 */ addiu $sp, $sp, 0x30 diff --git a/ver/us/asm/nonmatchings/16F740/btl_state_update_partner_striking_first.s b/ver/us/asm/nonmatchings/16F740/btl_state_update_partner_striking_first.s deleted file mode 100644 index e5f55e3889..0000000000 --- a/ver/us/asm/nonmatchings/16F740/btl_state_update_partner_striking_first.s +++ /dev/null @@ -1,316 +0,0 @@ -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches - -glabel btl_state_update_partner_striking_first -/* 176A70 80248190 27BDFFD0 */ addiu $sp, $sp, -0x30 -/* 176A74 80248194 AFB50024 */ sw $s5, 0x24($sp) -/* 176A78 80248198 3C15800E */ lui $s5, %hi(gBattleStatus) -/* 176A7C 8024819C 26B5C070 */ addiu $s5, $s5, %lo(gBattleStatus) -/* 176A80 802481A0 AFB20018 */ sw $s2, 0x18($sp) -/* 176A84 802481A4 3C12800E */ lui $s2, %hi(gBattleState2) -/* 176A88 802481A8 2652C4DC */ addiu $s2, $s2, %lo(gBattleState2) -/* 176A8C 802481AC AFB10014 */ sw $s1, 0x14($sp) -/* 176A90 802481B0 24110001 */ addiu $s1, $zero, 1 -/* 176A94 802481B4 AFBF0028 */ sw $ra, 0x28($sp) -/* 176A98 802481B8 AFB40020 */ sw $s4, 0x20($sp) -/* 176A9C 802481BC AFB3001C */ sw $s3, 0x1c($sp) -/* 176AA0 802481C0 AFB00010 */ sw $s0, 0x10($sp) -/* 176AA4 802481C4 8EB000D8 */ lw $s0, 0xd8($s5) -/* 176AA8 802481C8 8E430000 */ lw $v1, ($s2) -/* 176AAC 802481CC 8EB400DC */ lw $s4, 0xdc($s5) -/* 176AB0 802481D0 1071003E */ beq $v1, $s1, .L802482CC -/* 176AB4 802481D4 28620002 */ slti $v0, $v1, 2 -/* 176AB8 802481D8 50400005 */ beql $v0, $zero, .L802481F0 -/* 176ABC 802481DC 24020002 */ addiu $v0, $zero, 2 -/* 176AC0 802481E0 10600009 */ beqz $v1, .L80248208 -/* 176AC4 802481E4 24040002 */ addiu $a0, $zero, 2 -/* 176AC8 802481E8 08092176 */ j .L802485D8 -/* 176ACC 802481EC 00000000 */ nop -.L802481F0: -/* 176AD0 802481F0 10620068 */ beq $v1, $v0, .L80248394 -/* 176AD4 802481F4 24020003 */ addiu $v0, $zero, 3 -/* 176AD8 802481F8 106200E1 */ beq $v1, $v0, .L80248580 -/* 176ADC 802481FC 0000982D */ daddu $s3, $zero, $zero -/* 176AE0 80248200 08092176 */ j .L802485D8 -/* 176AE4 80248204 00000000 */ nop -.L80248208: -/* 176AE8 80248208 8E830008 */ lw $v1, 8($s4) -/* 176AEC 8024820C 3C028011 */ lui $v0, %hi(gPlayerData) -/* 176AF0 80248210 2442F290 */ addiu $v0, $v0, %lo(gPlayerData) -/* 176AF4 80248214 3C01802A */ lui $at, %hi(D_8029F254) -/* 176AF8 80248218 AC20F254 */ sw $zero, %lo(D_8029F254)($at) -/* 176AFC 8024821C 80450012 */ lb $a1, 0x12($v0) -/* 176B00 80248220 90630006 */ lbu $v1, 6($v1) -/* 176B04 80248224 10A40005 */ beq $a1, $a0, .L8024823C -/* 176B08 80248228 24020003 */ addiu $v0, $zero, 3 -/* 176B0C 8024822C 10A20006 */ beq $a1, $v0, .L80248248 -/* 176B10 80248230 24020005 */ addiu $v0, $zero, 5 -/* 176B14 80248234 0809209D */ j .L80248274 -/* 176B18 80248238 00000000 */ nop -.L8024823C: -/* 176B1C 8024823C 24020005 */ addiu $v0, $zero, 5 -/* 176B20 80248240 08092093 */ j .L8024824C -/* 176B24 80248244 24630089 */ addiu $v1, $v1, 0x89 -.L80248248: -/* 176B28 80248248 2463008F */ addiu $v1, $v1, 0x8f -.L8024824C: -/* 176B2C 8024824C A2A20178 */ sb $v0, 0x178($s5) -/* 176B30 80248250 00031080 */ sll $v0, $v1, 2 -/* 176B34 80248254 00431021 */ addu $v0, $v0, $v1 -/* 176B38 80248258 00021080 */ sll $v0, $v0, 2 -/* 176B3C 8024825C A6A0017A */ sh $zero, 0x17a($s5) -/* 176B40 80248260 A6A3017C */ sh $v1, 0x17c($s5) -/* 176B44 80248264 3C018009 */ lui $at, %hi(gMoveTable + 0x4) -/* 176B48 80248268 00220821 */ addu $at, $at, $v0 -/* 176B4C 8024826C 8C22F064 */ lw $v0, %lo(gMoveTable + 0x4)($at) -/* 176B50 80248270 AEA20184 */ sw $v0, 0x184($s5) -.L80248274: -/* 176B54 80248274 0C09A75B */ jal get_actor -/* 176B58 80248278 24040200 */ addiu $a0, $zero, 0x200 -/* 176B5C 8024827C 0040802D */ daddu $s0, $v0, $zero -/* 176B60 80248280 8E0201C8 */ lw $v0, 0x1c8($s0) -/* 176B64 80248284 1040000C */ beqz $v0, .L802482B8 -/* 176B68 80248288 2405000A */ addiu $a1, $zero, 0xa -/* 176B6C 8024828C 24060020 */ addiu $a2, $zero, 0x20 -/* 176B70 80248290 0040202D */ daddu $a0, $v0, $zero -/* 176B74 80248294 24020038 */ addiu $v0, $zero, 0x38 -/* 176B78 80248298 0C0B0CF8 */ jal start_script -/* 176B7C 8024829C A20201F0 */ sb $v0, 0x1f0($s0) -/* 176B80 802482A0 0040202D */ daddu $a0, $v0, $zero -/* 176B84 802482A4 AE0401D8 */ sw $a0, 0x1d8($s0) -/* 176B88 802482A8 8C820144 */ lw $v0, 0x144($a0) -/* 176B8C 802482AC 86030192 */ lh $v1, 0x192($s0) -/* 176B90 802482B0 AE0201E8 */ sw $v0, 0x1e8($s0) -/* 176B94 802482B4 AC830148 */ sw $v1, 0x148($a0) -.L802482B8: -/* 176B98 802482B8 24020001 */ addiu $v0, $zero, 1 -/* 176B9C 802482BC 3C01800E */ lui $at, %hi(gBattleState2) -/* 176BA0 802482C0 AC22C4DC */ sw $v0, %lo(gBattleState2)($at) -/* 176BA4 802482C4 08092176 */ j .L802485D8 -/* 176BA8 802482C8 00000000 */ nop -.L802482CC: -/* 176BAC 802482CC 0C098C0B */ jal player_create_target_list -/* 176BB0 802482D0 0280202D */ daddu $a0, $s4, $zero -/* 176BB4 802482D4 8283040D */ lb $v1, 0x40d($s4) -/* 176BB8 802482D8 00031080 */ sll $v0, $v1, 2 -/* 176BBC 802482DC 00431021 */ addu $v0, $v0, $v1 -/* 176BC0 802482E0 00021080 */ sll $v0, $v0, 2 -/* 176BC4 802482E4 2442022C */ addiu $v0, $v0, 0x22c -/* 176BC8 802482E8 02821021 */ addu $v0, $s4, $v0 -/* 176BCC 802482EC 94430000 */ lhu $v1, ($v0) -/* 176BD0 802482F0 A6830428 */ sh $v1, 0x428($s4) -/* 176BD4 802482F4 90420003 */ lbu $v0, 3($v0) -/* 176BD8 802482F8 A2820426 */ sb $v0, 0x426($s4) -/* 176BDC 802482FC 8EA40000 */ lw $a0, ($s5) -/* 176BE0 80248300 2402FFFD */ addiu $v0, $zero, -3 -/* 176BE4 80248304 00822024 */ and $a0, $a0, $v0 -/* 176BE8 80248308 8EA20004 */ lw $v0, 4($s5) -/* 176BEC 8024830C 3C030100 */ lui $v1, 0x100 -/* 176BF0 80248310 A2A0008C */ sb $zero, 0x8c($s5) -/* 176BF4 80248314 A6A00180 */ sh $zero, 0x180($s5) -/* 176BF8 80248318 A2A0019A */ sb $zero, 0x19a($s5) -/* 176BFC 8024831C AEA40000 */ sw $a0, ($s5) -/* 176C00 80248320 00431025 */ or $v0, $v0, $v1 -/* 176C04 80248324 AEA20004 */ sw $v0, 4($s5) -/* 176C08 80248328 3C020008 */ lui $v0, 8 -/* 176C0C 8024832C 00822025 */ or $a0, $a0, $v0 -/* 176C10 80248330 0C03A6D5 */ jal increment_status_menu_disabled -/* 176C14 80248334 AEA40000 */ sw $a0, ($s5) -/* 176C18 80248338 0C093903 */ jal btl_cam_use_preset -/* 176C1C 8024833C 2404000A */ addiu $a0, $zero, 0xa -/* 176C20 80248340 0C09390F */ jal btl_cam_target_actor -/* 176C24 80248344 24040100 */ addiu $a0, $zero, 0x100 -/* 176C28 80248348 0C098F18 */ jal reset_actor_turn_info -/* 176C2C 8024834C 00000000 */ nop -/* 176C30 80248350 2405000A */ addiu $a1, $zero, 0xa -/* 176C34 80248354 A2B101A7 */ sb $s1, 0x1a7($s5) -/* 176C38 80248358 8E8401C4 */ lw $a0, 0x1c4($s4) -/* 176C3C 8024835C 0C0B0CF8 */ jal start_script -/* 176C40 80248360 0000302D */ daddu $a2, $zero, $zero -/* 176C44 80248364 0040202D */ daddu $a0, $v0, $zero -/* 176C48 80248368 AE8401D4 */ sw $a0, 0x1d4($s4) -/* 176C4C 8024836C 8C830144 */ lw $v1, 0x144($a0) -/* 176C50 80248370 24020003 */ addiu $v0, $zero, 3 -/* 176C54 80248374 3C01802A */ lui $at, %hi(D_8029F248) -/* 176C58 80248378 AC22F248 */ sw $v0, %lo(D_8029F248)($at) -/* 176C5C 8024837C 24020002 */ addiu $v0, $zero, 2 -/* 176C60 80248380 AE420000 */ sw $v0, ($s2) -/* 176C64 80248384 24020100 */ addiu $v0, $zero, 0x100 -/* 176C68 80248388 AE8301E4 */ sw $v1, 0x1e4($s4) -/* 176C6C 8024838C 08092176 */ j .L802485D8 -/* 176C70 80248390 AC820148 */ sw $v0, 0x148($a0) -.L80248394: -/* 176C74 80248394 3C03802A */ lui $v1, %hi(D_8029F248) -/* 176C78 80248398 2463F248 */ addiu $v1, $v1, %lo(D_8029F248) -/* 176C7C 8024839C 8C620000 */ lw $v0, ($v1) -/* 176C80 802483A0 10400003 */ beqz $v0, .L802483B0 -/* 176C84 802483A4 2442FFFF */ addiu $v0, $v0, -1 -/* 176C88 802483A8 080920EE */ j .L802483B8 -/* 176C8C 802483AC AC620000 */ sw $v0, ($v1) -.L802483B0: -/* 176C90 802483B0 3C01802A */ lui $at, %hi(D_8029F254) -/* 176C94 802483B4 AC31F254 */ sw $s1, %lo(D_8029F254)($at) -.L802483B8: -/* 176C98 802483B8 8E8201D4 */ lw $v0, 0x1d4($s4) -/* 176C9C 802483BC 10400005 */ beqz $v0, .L802483D4 -/* 176CA0 802483C0 00000000 */ nop -/* 176CA4 802483C4 0C0B1059 */ jal does_script_exist -/* 176CA8 802483C8 8E8401E4 */ lw $a0, 0x1e4($s4) -/* 176CAC 802483CC 14400082 */ bnez $v0, .L802485D8 -/* 176CB0 802483D0 00000000 */ nop -.L802483D4: -/* 176CB4 802483D4 8E8201D8 */ lw $v0, 0x1d8($s4) -/* 176CB8 802483D8 10400006 */ beqz $v0, .L802483F4 -/* 176CBC 802483DC AE8001D4 */ sw $zero, 0x1d4($s4) -/* 176CC0 802483E0 8E8401E8 */ lw $a0, 0x1e8($s4) -/* 176CC4 802483E4 0C0B1059 */ jal does_script_exist -/* 176CC8 802483E8 00000000 */ nop -/* 176CCC 802483EC 1440007A */ bnez $v0, .L802485D8 -/* 176CD0 802483F0 00000000 */ nop -.L802483F4: -/* 176CD4 802483F4 AE8001D8 */ sw $zero, 0x1d8($s4) -/* 176CD8 802483F8 8E0201D8 */ lw $v0, 0x1d8($s0) -/* 176CDC 802483FC 50400007 */ beql $v0, $zero, .L8024841C -/* 176CE0 80248400 AE0001D8 */ sw $zero, 0x1d8($s0) -/* 176CE4 80248404 8E0401E8 */ lw $a0, 0x1e8($s0) -/* 176CE8 80248408 0C0B1059 */ jal does_script_exist -/* 176CEC 8024840C 00000000 */ nop -/* 176CF0 80248410 14400071 */ bnez $v0, .L802485D8 -/* 176CF4 80248414 00000000 */ nop -/* 176CF8 80248418 AE0001D8 */ sw $zero, 0x1d8($s0) -.L8024841C: -/* 176CFC 8024841C 0000982D */ daddu $s3, $zero, $zero -/* 176D00 80248420 0260882D */ daddu $s1, $s3, $zero -/* 176D04 80248424 02A0902D */ daddu $s2, $s5, $zero -.L80248428: -/* 176D08 80248428 8E5000E0 */ lw $s0, 0xe0($s2) -/* 176D0C 8024842C 5200000B */ beql $s0, $zero, .L8024845C -/* 176D10 80248430 26310001 */ addiu $s1, $s1, 1 -/* 176D14 80248434 8E0201D4 */ lw $v0, 0x1d4($s0) -/* 176D18 80248438 50400008 */ beql $v0, $zero, .L8024845C -/* 176D1C 8024843C 26310001 */ addiu $s1, $s1, 1 -/* 176D20 80248440 8E0401E4 */ lw $a0, 0x1e4($s0) -/* 176D24 80248444 0C0B1059 */ jal does_script_exist -/* 176D28 80248448 00000000 */ nop -/* 176D2C 8024844C 50400002 */ beql $v0, $zero, .L80248458 -/* 176D30 80248450 AE0001D4 */ sw $zero, 0x1d4($s0) -/* 176D34 80248454 24130001 */ addiu $s3, $zero, 1 -.L80248458: -/* 176D38 80248458 26310001 */ addiu $s1, $s1, 1 -.L8024845C: -/* 176D3C 8024845C 2A220018 */ slti $v0, $s1, 0x18 -/* 176D40 80248460 1440FFF1 */ bnez $v0, .L80248428 -/* 176D44 80248464 26520004 */ addiu $s2, $s2, 4 -/* 176D48 80248468 1660005B */ bnez $s3, .L802485D8 -/* 176D4C 8024846C 0000882D */ daddu $s1, $zero, $zero -/* 176D50 80248470 02A0902D */ daddu $s2, $s5, $zero -.L80248474: -/* 176D54 80248474 8E5000E0 */ lw $s0, 0xe0($s2) -/* 176D58 80248478 5200000B */ beql $s0, $zero, .L802484A8 -/* 176D5C 8024847C 26310001 */ addiu $s1, $s1, 1 -/* 176D60 80248480 8E0201D8 */ lw $v0, 0x1d8($s0) -/* 176D64 80248484 50400008 */ beql $v0, $zero, .L802484A8 -/* 176D68 80248488 26310001 */ addiu $s1, $s1, 1 -/* 176D6C 8024848C 8E0401E8 */ lw $a0, 0x1e8($s0) -/* 176D70 80248490 0C0B1059 */ jal does_script_exist -/* 176D74 80248494 00000000 */ nop -/* 176D78 80248498 50400002 */ beql $v0, $zero, .L802484A4 -/* 176D7C 8024849C AE0001D8 */ sw $zero, 0x1d8($s0) -/* 176D80 802484A0 24130001 */ addiu $s3, $zero, 1 -.L802484A4: -/* 176D84 802484A4 26310001 */ addiu $s1, $s1, 1 -.L802484A8: -/* 176D88 802484A8 2A220018 */ slti $v0, $s1, 0x18 -/* 176D8C 802484AC 1440FFF1 */ bnez $v0, .L80248474 -/* 176D90 802484B0 26520004 */ addiu $s2, $s2, 4 -/* 176D94 802484B4 16600048 */ bnez $s3, .L802485D8 -/* 176D98 802484B8 0000882D */ daddu $s1, $zero, $zero -/* 176D9C 802484BC 3C04FFF7 */ lui $a0, 0xfff7 -/* 176DA0 802484C0 3484FFFF */ ori $a0, $a0, 0xffff -/* 176DA4 802484C4 02A0182D */ daddu $v1, $s5, $zero -.L802484C8: -/* 176DA8 802484C8 8C7000E0 */ lw $s0, 0xe0($v1) -/* 176DAC 802484CC 12000004 */ beqz $s0, .L802484E0 -/* 176DB0 802484D0 26310001 */ addiu $s1, $s1, 1 -/* 176DB4 802484D4 8E020000 */ lw $v0, ($s0) -/* 176DB8 802484D8 00441024 */ and $v0, $v0, $a0 -/* 176DBC 802484DC AE020000 */ sw $v0, ($s0) -.L802484E0: -/* 176DC0 802484E0 2A220018 */ slti $v0, $s1, 0x18 -/* 176DC4 802484E4 1440FFF8 */ bnez $v0, .L802484C8 -/* 176DC8 802484E8 24630004 */ addiu $v1, $v1, 4 -/* 176DCC 802484EC 82A2008C */ lb $v0, 0x8c($s5) -/* 176DD0 802484F0 14400039 */ bnez $v0, .L802485D8 -/* 176DD4 802484F4 00000000 */ nop -/* 176DD8 802484F8 0C03A6CC */ jal decrement_status_menu_disabled -/* 176DDC 802484FC 00000000 */ nop -/* 176DE0 80248500 0C098D19 */ jal btl_check_player_defeated -/* 176DE4 80248504 00000000 */ nop -/* 176DE8 80248508 14400033 */ bnez $v0, .L802485D8 -/* 176DEC 8024850C 00000000 */ nop -/* 176DF0 80248510 0C098D0D */ jal btl_check_enemies_defeated -/* 176DF4 80248514 00000000 */ nop -/* 176DF8 80248518 1440002F */ bnez $v0, .L802485D8 -/* 176DFC 8024851C 00000000 */ nop -/* 176E00 80248520 0C09A75B */ jal get_actor -/* 176E04 80248524 86840428 */ lh $a0, 0x428($s4) -/* 176E08 80248528 0040802D */ daddu $s0, $v0, $zero -/* 176E0C 8024852C 12000010 */ beqz $s0, .L80248570 -/* 176E10 80248530 24020003 */ addiu $v0, $zero, 3 -/* 176E14 80248534 8E0201C8 */ lw $v0, 0x1c8($s0) -/* 176E18 80248538 1040000C */ beqz $v0, .L8024856C -/* 176E1C 8024853C 2405000A */ addiu $a1, $zero, 0xa -/* 176E20 80248540 24060020 */ addiu $a2, $zero, 0x20 -/* 176E24 80248544 0040202D */ daddu $a0, $v0, $zero -/* 176E28 80248548 24020035 */ addiu $v0, $zero, 0x35 -/* 176E2C 8024854C 0C0B0CF8 */ jal start_script -/* 176E30 80248550 A20201F0 */ sb $v0, 0x1f0($s0) -/* 176E34 80248554 0040202D */ daddu $a0, $v0, $zero -/* 176E38 80248558 AE0401D8 */ sw $a0, 0x1d8($s0) -/* 176E3C 8024855C 8C820144 */ lw $v0, 0x144($a0) -/* 176E40 80248560 86030192 */ lh $v1, 0x192($s0) -/* 176E44 80248564 AE0201E8 */ sw $v0, 0x1e8($s0) -/* 176E48 80248568 AC830148 */ sw $v1, 0x148($a0) -.L8024856C: -/* 176E4C 8024856C 24020003 */ addiu $v0, $zero, 3 -.L80248570: -/* 176E50 80248570 3C01800E */ lui $at, %hi(gBattleState2) -/* 176E54 80248574 AC22C4DC */ sw $v0, %lo(gBattleState2)($at) -/* 176E58 80248578 08092176 */ j .L802485D8 -/* 176E5C 8024857C 00000000 */ nop -.L80248580: -/* 176E60 80248580 0260882D */ daddu $s1, $s3, $zero -/* 176E64 80248584 02A0902D */ daddu $s2, $s5, $zero -.L80248588: -/* 176E68 80248588 8E5000E0 */ lw $s0, 0xe0($s2) -/* 176E6C 8024858C 5200000B */ beql $s0, $zero, .L802485BC -/* 176E70 80248590 26310001 */ addiu $s1, $s1, 1 -/* 176E74 80248594 8E0201D8 */ lw $v0, 0x1d8($s0) -/* 176E78 80248598 50400008 */ beql $v0, $zero, .L802485BC -/* 176E7C 8024859C 26310001 */ addiu $s1, $s1, 1 -/* 176E80 802485A0 8E0401E8 */ lw $a0, 0x1e8($s0) -/* 176E84 802485A4 0C0B1059 */ jal does_script_exist -/* 176E88 802485A8 00000000 */ nop -/* 176E8C 802485AC 50400002 */ beql $v0, $zero, .L802485B8 -/* 176E90 802485B0 AE0001D8 */ sw $zero, 0x1d8($s0) -/* 176E94 802485B4 24130001 */ addiu $s3, $zero, 1 -.L802485B8: -/* 176E98 802485B8 26310001 */ addiu $s1, $s1, 1 -.L802485BC: -/* 176E9C 802485BC 2A220018 */ slti $v0, $s1, 0x18 -/* 176EA0 802485C0 1440FFF1 */ bnez $v0, .L80248588 -/* 176EA4 802485C4 26520004 */ addiu $s2, $s2, 4 -/* 176EA8 802485C8 16600003 */ bnez $s3, .L802485D8 -/* 176EAC 802485CC 00000000 */ nop -/* 176EB0 802485D0 0C090464 */ jal btl_set_state -/* 176EB4 802485D4 24040005 */ addiu $a0, $zero, 5 -.L802485D8: -/* 176EB8 802485D8 8FBF0028 */ lw $ra, 0x28($sp) -/* 176EBC 802485DC 8FB50024 */ lw $s5, 0x24($sp) -/* 176EC0 802485E0 8FB40020 */ lw $s4, 0x20($sp) -/* 176EC4 802485E4 8FB3001C */ lw $s3, 0x1c($sp) -/* 176EC8 802485E8 8FB20018 */ lw $s2, 0x18($sp) -/* 176ECC 802485EC 8FB10014 */ lw $s1, 0x14($sp) -/* 176ED0 802485F0 8FB00010 */ lw $s0, 0x10($sp) -/* 176ED4 802485F4 03E00008 */ jr $ra -/* 176ED8 802485F8 27BD0030 */ addiu $sp, $sp, 0x30 diff --git a/ver/us/asm/nonmatchings/16F740/btl_state_update_run_away.s b/ver/us/asm/nonmatchings/16F740/btl_state_update_run_away.s deleted file mode 100644 index 115445a05e..0000000000 --- a/ver/us/asm/nonmatchings/16F740/btl_state_update_run_away.s +++ /dev/null @@ -1,366 +0,0 @@ -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches - -glabel btl_state_update_run_away -/* 1737E0 80244F00 27BDFFC8 */ addiu $sp, $sp, -0x38 -/* 1737E4 80244F04 AFB1001C */ sw $s1, 0x1c($sp) -/* 1737E8 80244F08 3C11800E */ lui $s1, %hi(gBattleStatus) -/* 1737EC 80244F0C 2631C070 */ addiu $s1, $s1, %lo(gBattleStatus) -/* 1737F0 80244F10 AFB5002C */ sw $s5, 0x2c($sp) -/* 1737F4 80244F14 3C158011 */ lui $s5, %hi(gPlayerData) -/* 1737F8 80244F18 26B5F290 */ addiu $s5, $s5, %lo(gPlayerData) -/* 1737FC 80244F1C AFB40028 */ sw $s4, 0x28($sp) -/* 173800 80244F20 3C14800E */ lui $s4, %hi(gBattleState2) -/* 173804 80244F24 2694C4DC */ addiu $s4, $s4, %lo(gBattleState2) -/* 173808 80244F28 AFBF0030 */ sw $ra, 0x30($sp) -/* 17380C 80244F2C AFB30024 */ sw $s3, 0x24($sp) -/* 173810 80244F30 AFB20020 */ sw $s2, 0x20($sp) -/* 173814 80244F34 AFB00018 */ sw $s0, 0x18($sp) -/* 173818 80244F38 8E3300D8 */ lw $s3, 0xd8($s1) -/* 17381C 80244F3C 8E900000 */ lw $s0, ($s4) -/* 173820 80244F40 8E3200DC */ lw $s2, 0xdc($s1) -/* 173824 80244F44 12000005 */ beqz $s0, .L80244F5C -/* 173828 80244F48 24020002 */ addiu $v0, $zero, 2 -/* 17382C 80244F4C 12020060 */ beq $s0, $v0, .L802450D0 -/* 173830 80244F50 00000000 */ nop -/* 173834 80244F54 0809146D */ j .L802451B4 -/* 173838 80244F58 00000000 */ nop -.L80244F5C: -/* 17383C 80244F5C 3C03FFFB */ lui $v1, 0xfffb -/* 173840 80244F60 3463FFFF */ ori $v1, $v1, 0xffff -/* 173844 80244F64 24040019 */ addiu $a0, $zero, 0x19 -/* 173848 80244F68 8E220000 */ lw $v0, ($s1) -/* 17384C 80244F6C 0000802D */ daddu $s0, $zero, $zero -/* 173850 80244F70 A220008C */ sb $zero, 0x8c($s1) -/* 173854 80244F74 00431024 */ and $v0, $v0, $v1 -/* 173858 80244F78 AE220000 */ sw $v0, ($s1) -/* 17385C 80244F7C 8E220004 */ lw $v0, 4($s1) -/* 173860 80244F80 96A302A6 */ lhu $v1, 0x2a6($s5) -/* 173864 80244F84 3442001E */ ori $v0, $v0, 0x1e -/* 173868 80244F88 24630001 */ addiu $v1, $v1, 1 -/* 17386C 80244F8C AE220004 */ sw $v0, 4($s1) -/* 173870 80244F90 0C093903 */ jal btl_cam_use_preset -/* 173874 80244F94 A6A302A6 */ sh $v1, 0x2a6($s5) -/* 173878 80244F98 0C09390F */ jal btl_cam_target_actor -/* 17387C 80244F9C 0200202D */ daddu $a0, $s0, $zero -/* 173880 80244FA0 0200302D */ daddu $a2, $s0, $zero -/* 173884 80244FA4 3C070040 */ lui $a3, 0x40 -/* 173888 80244FA8 0220282D */ daddu $a1, $s1, $zero -/* 17388C 80244FAC 44801000 */ mtc1 $zero, $f2 -.L80244FB0: -/* 173890 80244FB0 8CA400E0 */ lw $a0, 0xe0($a1) -/* 173894 80244FB4 50800017 */ beql $a0, $zero, .L80245014 -/* 173898 80244FB8 24C60001 */ addiu $a2, $a2, 1 -/* 17389C 80244FBC 8C830000 */ lw $v1, ($a0) -/* 1738A0 80244FC0 30624000 */ andi $v0, $v1, 0x4000 -/* 1738A4 80244FC4 54400013 */ bnel $v0, $zero, .L80245014 -/* 1738A8 80244FC8 24C60001 */ addiu $a2, $a2, 1 -/* 1738AC 80244FCC 00671024 */ and $v0, $v1, $a3 -/* 1738B0 80244FD0 54400010 */ bnel $v0, $zero, .L80245014 -/* 1738B4 80244FD4 24C60001 */ addiu $a2, $a2, 1 -/* 1738B8 80244FD8 8C820008 */ lw $v0, 8($a0) -/* 1738BC 80244FDC 90430018 */ lbu $v1, 0x18($v0) -/* 1738C0 80244FE0 90820210 */ lbu $v0, 0x210($a0) -/* 1738C4 80244FE4 44830000 */ mtc1 $v1, $f0 -/* 1738C8 80244FE8 00000000 */ nop -/* 1738CC 80244FEC 46800020 */ cvt.s.w $f0, $f0 -/* 1738D0 80244FF0 2442FFFD */ addiu $v0, $v0, -3 -/* 1738D4 80244FF4 2C420006 */ sltiu $v0, $v0, 6 -/* 1738D8 80244FF8 10400004 */ beqz $v0, .L8024500C -/* 1738DC 80244FFC 26100001 */ addiu $s0, $s0, 1 -/* 1738E0 80245000 3C0142C8 */ lui $at, 0x42c8 -/* 1738E4 80245004 44810000 */ mtc1 $at, $f0 -/* 1738E8 80245008 00000000 */ nop -.L8024500C: -/* 1738EC 8024500C 46001080 */ add.s $f2, $f2, $f0 -/* 1738F0 80245010 24C60001 */ addiu $a2, $a2, 1 -.L80245014: -/* 1738F4 80245014 28C20018 */ slti $v0, $a2, 0x18 -/* 1738F8 80245018 1440FFE5 */ bnez $v0, .L80244FB0 -/* 1738FC 8024501C 24A50004 */ addiu $a1, $a1, 4 -/* 173900 80245020 44900000 */ mtc1 $s0, $f0 -/* 173904 80245024 00000000 */ nop -/* 173908 80245028 46800020 */ cvt.s.w $f0, $f0 -/* 17390C 8024502C 46001003 */ div.s $f0, $f2, $f0 -/* 173910 80245030 3C028007 */ lui $v0, %hi(gGameStatusPtr) -/* 173914 80245034 8C42419C */ lw $v0, %lo(gGameStatusPtr)($v0) -/* 173918 80245038 4600010D */ trunc.w.s $f4, $f0 -/* 17391C 8024503C E6640088 */ swc1 $f4, 0x88($s3) -/* 173920 80245040 80430074 */ lb $v1, 0x74($v0) -/* 173924 80245044 24020004 */ addiu $v0, $zero, 4 -/* 173928 80245048 14620002 */ bne $v1, $v0, .L80245054 -/* 17392C 8024504C 24020064 */ addiu $v0, $zero, 0x64 -/* 173930 80245050 AE620088 */ sw $v0, 0x88($s3) -.L80245054: -/* 173934 80245054 3C048028 */ lui $a0, %hi(PlayerScriptDispatcher) -/* 173938 80245058 24844EBC */ addiu $a0, $a0, %lo(PlayerScriptDispatcher) -/* 17393C 8024505C 2405000A */ addiu $a1, $zero, 0xa -/* 173940 80245060 0000302D */ daddu $a2, $zero, $zero -/* 173944 80245064 24020003 */ addiu $v0, $zero, 3 -/* 173948 80245068 0C0B0CF8 */ jal start_script -/* 17394C 8024506C A22201A7 */ sb $v0, 0x1a7($s1) -/* 173950 80245070 0040182D */ daddu $v1, $v0, $zero -/* 173954 80245074 AE6301D4 */ sw $v1, 0x1d4($s3) -/* 173958 80245078 8C620144 */ lw $v0, 0x144($v1) -/* 17395C 8024507C AE6201E4 */ sw $v0, 0x1e4($s3) -/* 173960 80245080 1240000E */ beqz $s2, .L802450BC -/* 173964 80245084 AC600148 */ sw $zero, 0x148($v1) -/* 173968 80245088 82420216 */ lb $v0, 0x216($s2) -/* 17396C 8024508C 1440000C */ bnez $v0, .L802450C0 -/* 173970 80245090 24020002 */ addiu $v0, $zero, 2 -/* 173974 80245094 2405000A */ addiu $a1, $zero, 0xa -/* 173978 80245098 8E4401C4 */ lw $a0, 0x1c4($s2) -/* 17397C 8024509C 0C0B0CF8 */ jal start_script -/* 173980 802450A0 0000302D */ daddu $a2, $zero, $zero -/* 173984 802450A4 0040182D */ daddu $v1, $v0, $zero -/* 173988 802450A8 AE4301D4 */ sw $v1, 0x1d4($s2) -/* 17398C 802450AC 8C620144 */ lw $v0, 0x144($v1) -/* 173990 802450B0 AE4201E4 */ sw $v0, 0x1e4($s2) -/* 173994 802450B4 24020100 */ addiu $v0, $zero, 0x100 -/* 173998 802450B8 AC620148 */ sw $v0, 0x148($v1) -.L802450BC: -/* 17399C 802450BC 24020002 */ addiu $v0, $zero, 2 -.L802450C0: -/* 1739A0 802450C0 3C01800E */ lui $at, %hi(gBattleState2) -/* 1739A4 802450C4 AC22C4DC */ sw $v0, %lo(gBattleState2)($at) -/* 1739A8 802450C8 0809146D */ j .L802451B4 -/* 1739AC 802450CC 00000000 */ nop -.L802450D0: -/* 1739B0 802450D0 0C0B1059 */ jal does_script_exist -/* 1739B4 802450D4 8E6401E4 */ lw $a0, 0x1e4($s3) -/* 1739B8 802450D8 14400036 */ bnez $v0, .L802451B4 -/* 1739BC 802450DC 00000000 */ nop -/* 1739C0 802450E0 8222008C */ lb $v0, 0x8c($s1) -/* 1739C4 802450E4 14400033 */ bnez $v0, .L802451B4 -/* 1739C8 802450E8 3C030004 */ lui $v1, 4 -/* 1739CC 802450EC 8E220000 */ lw $v0, ($s1) -/* 1739D0 802450F0 00431024 */ and $v0, $v0, $v1 -/* 1739D4 802450F4 14400003 */ bnez $v0, .L80245104 -/* 1739D8 802450F8 24020003 */ addiu $v0, $zero, 3 -/* 1739DC 802450FC 0809146D */ j .L802451B4 -/* 1739E0 80245100 AE820000 */ sw $v0, ($s4) -.L80245104: -/* 1739E4 80245104 3C02800B */ lui $v0, %hi(gCurrentEncounter) -/* 1739E8 80245108 24420F10 */ addiu $v0, $v0, %lo(gCurrentEncounter) -/* 1739EC 8024510C A0500009 */ sb $s0, 9($v0) -/* 1739F0 80245110 0C03A752 */ jal is_ability_active -/* 1739F4 80245114 24040017 */ addiu $a0, $zero, 0x17 -/* 1739F8 80245118 14400003 */ bnez $v0, .L80245128 -/* 1739FC 8024511C 2402000B */ addiu $v0, $zero, 0xb -/* 173A00 80245120 0809146D */ j .L802451B4 -/* 173A04 80245124 AE820000 */ sw $v0, ($s4) -.L80245128: -/* 173A08 80245128 0C03A6B9 */ jal status_menu_start_blinking_starpoints -/* 173A0C 8024512C 00000000 */ nop -/* 173A10 80245130 0C08F841 */ jal func_8023E104 -/* 173A14 80245134 00000000 */ nop -/* 173A18 80245138 82230078 */ lb $v1, 0x78($s1) -/* 173A1C 8024513C 00031040 */ sll $v0, $v1, 1 -/* 173A20 80245140 00431021 */ addu $v0, $v0, $v1 -/* 173A24 80245144 000210C0 */ sll $v0, $v0, 3 -/* 173A28 80245148 00431021 */ addu $v0, $v0, $v1 -/* 173A2C 8024514C 00021080 */ sll $v0, $v0, 2 -/* 173A30 80245150 24030014 */ addiu $v1, $zero, 0x14 -/* 173A34 80245154 14600002 */ bnez $v1, .L80245160 -/* 173A38 80245158 0043001A */ div $zero, $v0, $v1 -/* 173A3C 8024515C 0007000D */ break 7 -.L80245160: -/* 173A40 80245160 2401FFFF */ addiu $at, $zero, -1 -/* 173A44 80245164 14610004 */ bne $v1, $at, .L80245178 -/* 173A48 80245168 3C018000 */ lui $at, 0x8000 -/* 173A4C 8024516C 14410002 */ bne $v0, $at, .L80245178 -/* 173A50 80245170 00000000 */ nop -/* 173A54 80245174 0006000D */ break 6 -.L80245178: -/* 173A58 80245178 00002012 */ mflo $a0 -/* 173A5C 8024517C 3C01802A */ lui $at, %hi(D_8029F264) -/* 173A60 80245180 AC20F264 */ sw $zero, %lo(D_8029F264)($at) -/* 173A64 80245184 3C01802A */ lui $at, %hi(D_8029F24C) -/* 173A68 80245188 AC20F24C */ sw $zero, %lo(D_8029F24C)($at) -/* 173A6C 8024518C 3C018028 */ lui $at, %hi(D_80280A30) -/* 173A70 80245190 AC200A30 */ sw $zero, %lo(D_80280A30)($at) -/* 173A74 80245194 3C01802A */ lui $at, %hi(D_8029F250) -/* 173A78 80245198 AC23F250 */ sw $v1, %lo(D_8029F250)($at) -/* 173A7C 8024519C 2403000A */ addiu $v1, $zero, 0xa -/* 173A80 802451A0 AE830000 */ sw $v1, ($s4) -/* 173A84 802451A4 3C01802A */ lui $at, %hi(D_8029F25C) -/* 173A88 802451A8 AC22F25C */ sw $v0, %lo(D_8029F25C)($at) -/* 173A8C 802451AC 3C01802A */ lui $at, %hi(D_8029F260) -/* 173A90 802451B0 AC24F260 */ sw $a0, %lo(D_8029F260)($at) -.L802451B4: -/* 173A94 802451B4 3C03800E */ lui $v1, %hi(gBattleState2) -/* 173A98 802451B8 8C63C4DC */ lw $v1, %lo(gBattleState2)($v1) -/* 173A9C 802451BC 2402000A */ addiu $v0, $zero, 0xa -/* 173AA0 802451C0 14620043 */ bne $v1, $v0, .L802452D0 -/* 173AA4 802451C4 2402000B */ addiu $v0, $zero, 0xb -/* 173AA8 802451C8 82220078 */ lb $v0, 0x78($s1) -/* 173AAC 802451CC 10400027 */ beqz $v0, .L8024526C -/* 173AB0 802451D0 3C0551EB */ lui $a1, 0x51eb -/* 173AB4 802451D4 3C04802A */ lui $a0, %hi(D_8029F25C) -/* 173AB8 802451D8 2484F25C */ addiu $a0, $a0, %lo(D_8029F25C) -/* 173ABC 802451DC 8C820000 */ lw $v0, ($a0) -/* 173AC0 802451E0 3C03802A */ lui $v1, %hi(D_8029F260) -/* 173AC4 802451E4 8C63F260 */ lw $v1, %lo(D_8029F260)($v1) -/* 173AC8 802451E8 34A5851F */ ori $a1, $a1, 0x851f -/* 173ACC 802451EC 00431023 */ subu $v0, $v0, $v1 -/* 173AD0 802451F0 00450018 */ mult $v0, $a1 -/* 173AD4 802451F4 AC820000 */ sw $v0, ($a0) -/* 173AD8 802451F8 000217C3 */ sra $v0, $v0, 0x1f -/* 173ADC 802451FC 82240078 */ lb $a0, 0x78($s1) -/* 173AE0 80245200 00004010 */ mfhi $t0 -/* 173AE4 80245204 00081943 */ sra $v1, $t0, 5 -/* 173AE8 80245208 00621823 */ subu $v1, $v1, $v0 -/* 173AEC 8024520C 00031600 */ sll $v0, $v1, 0x18 -/* 173AF0 80245210 00021603 */ sra $v0, $v0, 0x18 -/* 173AF4 80245214 00828023 */ subu $s0, $a0, $v0 -/* 173AF8 80245218 1A000003 */ blez $s0, .L80245228 -/* 173AFC 8024521C A2230078 */ sb $v1, 0x78($s1) -/* 173B00 80245220 0C05272D */ jal sfx_play_sound -/* 173B04 80245224 24040211 */ addiu $a0, $zero, 0x211 -.L80245228: -/* 173B08 80245228 92A20010 */ lbu $v0, 0x10($s5) -/* 173B0C 8024522C 3C038028 */ lui $v1, %hi(D_80280A30) -/* 173B10 80245230 24630A30 */ addiu $v1, $v1, %lo(D_80280A30) -/* 173B14 80245234 00501021 */ addu $v0, $v0, $s0 -/* 173B18 80245238 A2A20010 */ sb $v0, 0x10($s5) -/* 173B1C 8024523C 8C620000 */ lw $v0, ($v1) -/* 173B20 80245240 3C04802A */ lui $a0, %hi(D_8029F250) -/* 173B24 80245244 8C84F250 */ lw $a0, %lo(D_8029F250)($a0) -/* 173B28 80245248 24420001 */ addiu $v0, $v0, 1 -/* 173B2C 8024524C 14800007 */ bnez $a0, .L8024526C -/* 173B30 80245250 AC620000 */ sw $v0, ($v1) -/* 173B34 80245254 82220078 */ lb $v0, 0x78($s1) -/* 173B38 80245258 10400004 */ beqz $v0, .L8024526C -/* 173B3C 8024525C 00000000 */ nop -/* 173B40 80245260 92A20010 */ lbu $v0, 0x10($s5) -/* 173B44 80245264 24420001 */ addiu $v0, $v0, 1 -/* 173B48 80245268 A2A20010 */ sb $v0, 0x10($s5) -.L8024526C: -/* 173B4C 8024526C 82A20010 */ lb $v0, 0x10($s5) -/* 173B50 80245270 28420063 */ slti $v0, $v0, 0x63 -/* 173B54 80245274 14400002 */ bnez $v0, .L80245280 -/* 173B58 80245278 24020063 */ addiu $v0, $zero, 0x63 -/* 173B5C 8024527C A2A20010 */ sb $v0, 0x10($s5) -.L80245280: -/* 173B60 80245280 82220078 */ lb $v0, 0x78($s1) -/* 173B64 80245284 1440000F */ bnez $v0, .L802452C4 -/* 173B68 80245288 00000000 */ nop -/* 173B6C 8024528C 3C03802A */ lui $v1, %hi(D_8029F250) -/* 173B70 80245290 2463F250 */ addiu $v1, $v1, %lo(D_8029F250) -/* 173B74 80245294 8C620000 */ lw $v0, ($v1) -/* 173B78 80245298 10400003 */ beqz $v0, .L802452A8 -/* 173B7C 8024529C 2442FFFF */ addiu $v0, $v0, -1 -/* 173B80 802452A0 080914B1 */ j .L802452C4 -/* 173B84 802452A4 AC620000 */ sw $v0, ($v1) -.L802452A8: -/* 173B88 802452A8 0C03A6C3 */ jal status_menu_stop_blinking_starpoints -/* 173B8C 802452AC 00000000 */ nop -/* 173B90 802452B0 0C08F847 */ jal func_8023E11C -/* 173B94 802452B4 00000000 */ nop -/* 173B98 802452B8 2402000B */ addiu $v0, $zero, 0xb -/* 173B9C 802452BC 3C01800E */ lui $at, %hi(gBattleState2) -/* 173BA0 802452C0 AC22C4DC */ sw $v0, %lo(gBattleState2)($at) -.L802452C4: -/* 173BA4 802452C4 3C03800E */ lui $v1, %hi(gBattleState2) -/* 173BA8 802452C8 8C63C4DC */ lw $v1, %lo(gBattleState2)($v1) -/* 173BAC 802452CC 2402000B */ addiu $v0, $zero, 0xb -.L802452D0: -/* 173BB0 802452D0 14620011 */ bne $v1, $v0, .L80245318 -/* 173BB4 802452D4 3C030200 */ lui $v1, 0x200 -/* 173BB8 802452D8 96A202A8 */ lhu $v0, 0x2a8($s5) -/* 173BBC 802452DC 24420001 */ addiu $v0, $v0, 1 -/* 173BC0 802452E0 A6A202A8 */ sh $v0, 0x2a8($s5) -/* 173BC4 802452E4 3C02800E */ lui $v0, %hi(gBattleStatus+0x4) -/* 173BC8 802452E8 8C42C074 */ lw $v0, %lo(gBattleStatus+0x4)($v0) -/* 173BCC 802452EC 00431024 */ and $v0, $v0, $v1 -/* 173BD0 802452F0 14400007 */ bnez $v0, .L80245310 -/* 173BD4 802452F4 24020008 */ addiu $v0, $zero, 8 -/* 173BD8 802452F8 AFA20010 */ sw $v0, 0x10($sp) -/* 173BDC 802452FC 0000202D */ daddu $a0, $zero, $zero -/* 173BE0 80245300 2405FFFF */ addiu $a1, $zero, -1 -/* 173BE4 80245304 0080302D */ daddu $a2, $a0, $zero -/* 173BE8 80245308 0C052A46 */ jal bgm_set_song -/* 173BEC 8024530C 240705DC */ addiu $a3, $zero, 0x5dc -.L80245310: -/* 173BF0 80245310 0C090464 */ jal btl_set_state -/* 173BF4 80245314 24040020 */ addiu $a0, $zero, 0x20 -.L80245318: -/* 173BF8 80245318 3C03800E */ lui $v1, %hi(gBattleState2) -/* 173BFC 8024531C 8C63C4DC */ lw $v1, %lo(gBattleState2)($v1) -/* 173C00 80245320 24020003 */ addiu $v0, $zero, 3 -/* 173C04 80245324 10620005 */ beq $v1, $v0, .L8024533C -/* 173C08 80245328 24020004 */ addiu $v0, $zero, 4 -/* 173C0C 8024532C 10620022 */ beq $v1, $v0, .L802453B8 -/* 173C10 80245330 00000000 */ nop -/* 173C14 80245334 08091505 */ j .L80245414 -/* 173C18 80245338 00000000 */ nop -.L8024533C: -/* 173C1C 8024533C 3C048028 */ lui $a0, %hi(PlayerScriptDispatcher) -/* 173C20 80245340 24844EBC */ addiu $a0, $a0, %lo(PlayerScriptDispatcher) -/* 173C24 80245344 2405000A */ addiu $a1, $zero, 0xa -/* 173C28 80245348 0000302D */ daddu $a2, $zero, $zero -/* 173C2C 8024534C 24020007 */ addiu $v0, $zero, 7 -/* 173C30 80245350 0C0B0CF8 */ jal start_script -/* 173C34 80245354 A22201A7 */ sb $v0, 0x1a7($s1) -/* 173C38 80245358 0040182D */ daddu $v1, $v0, $zero -/* 173C3C 8024535C AE6301D4 */ sw $v1, 0x1d4($s3) -/* 173C40 80245360 8C620144 */ lw $v0, 0x144($v1) -/* 173C44 80245364 AE6201E4 */ sw $v0, 0x1e4($s3) -/* 173C48 80245368 1240000E */ beqz $s2, .L802453A4 -/* 173C4C 8024536C AC600148 */ sw $zero, 0x148($v1) -/* 173C50 80245370 82420216 */ lb $v0, 0x216($s2) -/* 173C54 80245374 1440000C */ bnez $v0, .L802453A8 -/* 173C58 80245378 24020004 */ addiu $v0, $zero, 4 -/* 173C5C 8024537C 2405000A */ addiu $a1, $zero, 0xa -/* 173C60 80245380 8E4401C4 */ lw $a0, 0x1c4($s2) -/* 173C64 80245384 0C0B0CF8 */ jal start_script -/* 173C68 80245388 0000302D */ daddu $a2, $zero, $zero -/* 173C6C 8024538C 0040182D */ daddu $v1, $v0, $zero -/* 173C70 80245390 AE4301D4 */ sw $v1, 0x1d4($s2) -/* 173C74 80245394 8C620144 */ lw $v0, 0x144($v1) -/* 173C78 80245398 AE4201E4 */ sw $v0, 0x1e4($s2) -/* 173C7C 8024539C 24020100 */ addiu $v0, $zero, 0x100 -/* 173C80 802453A0 AC620148 */ sw $v0, 0x148($v1) -.L802453A4: -/* 173C84 802453A4 24020004 */ addiu $v0, $zero, 4 -.L802453A8: -/* 173C88 802453A8 3C01800E */ lui $at, %hi(gBattleState2) -/* 173C8C 802453AC AC22C4DC */ sw $v0, %lo(gBattleState2)($at) -/* 173C90 802453B0 08091505 */ j .L80245414 -/* 173C94 802453B4 00000000 */ nop -.L802453B8: -/* 173C98 802453B8 3C03802A */ lui $v1, %hi(D_8029F248) -/* 173C9C 802453BC 2463F248 */ addiu $v1, $v1, %lo(D_8029F248) -/* 173CA0 802453C0 8C620000 */ lw $v0, ($v1) -/* 173CA4 802453C4 10400003 */ beqz $v0, .L802453D4 -/* 173CA8 802453C8 2442FFFF */ addiu $v0, $v0, -1 -/* 173CAC 802453CC 08091505 */ j .L80245414 -/* 173CB0 802453D0 AC620000 */ sw $v0, ($v1) -.L802453D4: -/* 173CB4 802453D4 8E6401E4 */ lw $a0, 0x1e4($s3) -/* 173CB8 802453D8 0C0B1059 */ jal does_script_exist -/* 173CBC 802453DC 00000000 */ nop -/* 173CC0 802453E0 1440000C */ bnez $v0, .L80245414 -/* 173CC4 802453E4 00000000 */ nop -/* 173CC8 802453E8 12400005 */ beqz $s2, .L80245400 -/* 173CCC 802453EC 00000000 */ nop -/* 173CD0 802453F0 0C0B1059 */ jal does_script_exist -/* 173CD4 802453F4 8E4401E4 */ lw $a0, 0x1e4($s2) -/* 173CD8 802453F8 14400006 */ bnez $v0, .L80245414 -/* 173CDC 802453FC 00000000 */ nop -.L80245400: -/* 173CE0 80245400 8222008C */ lb $v0, 0x8c($s1) -/* 173CE4 80245404 14400003 */ bnez $v0, .L80245414 -/* 173CE8 80245408 00000000 */ nop -/* 173CEC 8024540C 0C090464 */ jal btl_set_state -/* 173CF0 80245410 24040009 */ addiu $a0, $zero, 9 -.L80245414: -/* 173CF4 80245414 8FBF0030 */ lw $ra, 0x30($sp) -/* 173CF8 80245418 8FB5002C */ lw $s5, 0x2c($sp) -/* 173CFC 8024541C 8FB40028 */ lw $s4, 0x28($sp) -/* 173D00 80245420 8FB30024 */ lw $s3, 0x24($sp) -/* 173D04 80245424 8FB20020 */ lw $s2, 0x20($sp) -/* 173D08 80245428 8FB1001C */ lw $s1, 0x1c($sp) -/* 173D0C 8024542C 8FB00018 */ lw $s0, 0x18($sp) -/* 173D10 80245430 03E00008 */ jr $ra -/* 173D14 80245434 27BD0038 */ addiu $sp, $sp, 0x38 diff --git a/ver/us/asm/nonmatchings/battle/action_cmd/body_slam/func_802A92D4_4285B4.s b/ver/us/asm/nonmatchings/battle/action_cmd/body_slam/func_802A92D4_4285B4.s deleted file mode 100644 index 352d784584..0000000000 --- a/ver/us/asm/nonmatchings/battle/action_cmd/body_slam/func_802A92D4_4285B4.s +++ /dev/null @@ -1,258 +0,0 @@ -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches - -.section .rodata - -dlabel jtbl_802A9750_428A30 -.word .L802A9318_4285F8, .L802A93BC_42869C, .L802A9650_428930, .L802A9650_428930, .L802A9650_428930, .L802A9650_428930, .L802A9650_428930, .L802A9650_428930, .L802A9650_428930, .L802A9650_428930, .L802A9444_428724, .L802A94A8_428788, .L802A9630_428910, 0, 0, 0 - -.section .text - -glabel func_802A92D4_4285B4 -/* 4285B4 802A92D4 27BDFFE0 */ addiu $sp, $sp, -0x20 -/* 4285B8 802A92D8 AFB10014 */ sw $s1, 0x14($sp) -/* 4285BC 802A92DC 3C11802A */ lui $s1, %hi(gActionCommandStatus) -/* 4285C0 802A92E0 2631FBE0 */ addiu $s1, $s1, %lo(gActionCommandStatus) -/* 4285C4 802A92E4 AFBF0018 */ sw $ra, 0x18($sp) -/* 4285C8 802A92E8 AFB00010 */ sw $s0, 0x10($sp) -/* 4285CC 802A92EC 8623004C */ lh $v1, 0x4c($s1) -/* 4285D0 802A92F0 3C10800E */ lui $s0, %hi(gBattleStatus) -/* 4285D4 802A92F4 2610C070 */ addiu $s0, $s0, %lo(gBattleStatus) -/* 4285D8 802A92F8 2C62000D */ sltiu $v0, $v1, 0xd -/* 4285DC 802A92FC 104000D4 */ beqz $v0, .L802A9650_428930 -/* 4285E0 802A9300 00031080 */ sll $v0, $v1, 2 -/* 4285E4 802A9304 3C01802B */ lui $at, %hi(jtbl_802A9750_428A30) -/* 4285E8 802A9308 00220821 */ addu $at, $at, $v0 -/* 4285EC 802A930C 8C229750 */ lw $v0, %lo(jtbl_802A9750_428A30)($at) -/* 4285F0 802A9310 00400008 */ jr $v0 -/* 4285F4 802A9314 00000000 */ nop -.L802A9318_4285F8: -/* 4285F8 802A9318 0C093EB1 */ jal btl_set_popup_duration -/* 4285FC 802A931C 24040063 */ addiu $a0, $zero, 0x63 -/* 428600 802A9320 8E300004 */ lw $s0, 4($s1) -/* 428604 802A9324 240500FF */ addiu $a1, $zero, 0xff -/* 428608 802A9328 0C0513AC */ jal hud_element_set_alpha -/* 42860C 802A932C 0200202D */ daddu $a0, $s0, $zero -/* 428610 802A9330 82220061 */ lb $v0, 0x61($s1) -/* 428614 802A9334 10400003 */ beqz $v0, .L802A9344 -/* 428618 802A9338 0200202D */ daddu $a0, $s0, $zero -/* 42861C 802A933C 0C05128B */ jal hud_element_clear_flags -/* 428620 802A9340 24050002 */ addiu $a1, $zero, 2 -.L802A9344: -/* 428624 802A9344 8E300008 */ lw $s0, 8($s1) -/* 428628 802A9348 240500FF */ addiu $a1, $zero, 0xff -/* 42862C 802A934C 0C0513AC */ jal hud_element_set_alpha -/* 428630 802A9350 0200202D */ daddu $a0, $s0, $zero -/* 428634 802A9354 82220061 */ lb $v0, 0x61($s1) -/* 428638 802A9358 10400003 */ beqz $v0, .L802A9368 -/* 42863C 802A935C 0200202D */ daddu $a0, $s0, $zero -/* 428640 802A9360 0C05128B */ jal hud_element_clear_flags -/* 428644 802A9364 24050002 */ addiu $a1, $zero, 2 -.L802A9368: -/* 428648 802A9368 8E30000C */ lw $s0, 0xc($s1) -/* 42864C 802A936C 240500FF */ addiu $a1, $zero, 0xff -/* 428650 802A9370 0C0513AC */ jal hud_element_set_alpha -/* 428654 802A9374 0200202D */ daddu $a0, $s0, $zero -/* 428658 802A9378 82220061 */ lb $v0, 0x61($s1) -/* 42865C 802A937C 10400003 */ beqz $v0, .L802A938C -/* 428660 802A9380 0200202D */ daddu $a0, $s0, $zero -/* 428664 802A9384 0C05128B */ jal hud_element_clear_flags -/* 428668 802A9388 24050002 */ addiu $a1, $zero, 2 -.L802A938C: -/* 42866C 802A938C 8E300010 */ lw $s0, 0x10($s1) -/* 428670 802A9390 240500FF */ addiu $a1, $zero, 0xff -/* 428674 802A9394 0C0513AC */ jal hud_element_set_alpha -/* 428678 802A9398 0200202D */ daddu $a0, $s0, $zero -/* 42867C 802A939C 82220061 */ lb $v0, 0x61($s1) -/* 428680 802A93A0 10400003 */ beqz $v0, .L802A93B0 -/* 428684 802A93A4 0200202D */ daddu $a0, $s0, $zero -/* 428688 802A93A8 0C05128B */ jal hud_element_clear_flags -/* 42868C 802A93AC 24050002 */ addiu $a1, $zero, 2 -.L802A93B0: -/* 428690 802A93B0 24020001 */ addiu $v0, $zero, 1 -/* 428694 802A93B4 080AA594 */ j .L802A9650_428930 -/* 428698 802A93B8 A622004C */ sh $v0, 0x4c($s1) -.L802A93BC_42869C: -/* 42869C 802A93BC 0C093EB1 */ jal btl_set_popup_duration -/* 4286A0 802A93C0 24040063 */ addiu $a0, $zero, 0x63 -/* 4286A4 802A93C4 96220056 */ lhu $v0, 0x56($s1) -/* 4286A8 802A93C8 24420014 */ addiu $v0, $v0, 0x14 -/* 4286AC 802A93CC A6220056 */ sh $v0, 0x56($s1) -/* 4286B0 802A93D0 00021400 */ sll $v0, $v0, 0x10 -/* 4286B4 802A93D4 00021403 */ sra $v0, $v0, 0x10 -/* 4286B8 802A93D8 28420033 */ slti $v0, $v0, 0x33 -/* 4286BC 802A93DC 14400002 */ bnez $v0, .L802A93E8 -/* 4286C0 802A93E0 24020032 */ addiu $v0, $zero, 0x32 -/* 4286C4 802A93E4 A6220056 */ sh $v0, 0x56($s1) -.L802A93E8: -/* 4286C8 802A93E8 8E240004 */ lw $a0, 4($s1) -/* 4286CC 802A93EC 86250056 */ lh $a1, 0x56($s1) -/* 4286D0 802A93F0 0C051261 */ jal hud_element_set_render_pos -/* 4286D4 802A93F4 86260058 */ lh $a2, 0x58($s1) -/* 4286D8 802A93F8 8E240008 */ lw $a0, 8($s1) -/* 4286DC 802A93FC 86260058 */ lh $a2, 0x58($s1) -/* 4286E0 802A9400 86250056 */ lh $a1, 0x56($s1) -/* 4286E4 802A9404 0C051261 */ jal hud_element_set_render_pos -/* 4286E8 802A9408 24C6001C */ addiu $a2, $a2, 0x1c -/* 4286EC 802A940C 8E24000C */ lw $a0, 0xc($s1) -/* 4286F0 802A9410 86250056 */ lh $a1, 0x56($s1) -/* 4286F4 802A9414 86260058 */ lh $a2, 0x58($s1) -/* 4286F8 802A9418 24A50029 */ addiu $a1, $a1, 0x29 -/* 4286FC 802A941C 0C051261 */ jal hud_element_set_render_pos -/* 428700 802A9420 24C60016 */ addiu $a2, $a2, 0x16 -/* 428704 802A9424 8E240010 */ lw $a0, 0x10($s1) -/* 428708 802A9428 86250056 */ lh $a1, 0x56($s1) -/* 42870C 802A942C 86260058 */ lh $a2, 0x58($s1) -/* 428710 802A9430 24A5002A */ addiu $a1, $a1, 0x2a -/* 428714 802A9434 0C051261 */ jal hud_element_set_render_pos -/* 428718 802A9438 24C60018 */ addiu $a2, $a2, 0x18 -/* 42871C 802A943C 080AA594 */ j .L802A9650_428930 -/* 428720 802A9440 00000000 */ nop -.L802A9444_428724: -/* 428724 802A9444 0C093EB1 */ jal btl_set_popup_duration -/* 428728 802A9448 24040063 */ addiu $a0, $zero, 0x63 -/* 42872C 802A944C 8622004E */ lh $v0, 0x4e($s1) -/* 428730 802A9450 9623004E */ lhu $v1, 0x4e($s1) -/* 428734 802A9454 10400003 */ beqz $v0, .L802A9464 -/* 428738 802A9458 2462FFFF */ addiu $v0, $v1, -1 -/* 42873C 802A945C 080AA594 */ j .L802A9650_428930 -/* 428740 802A9460 A622004E */ sh $v0, 0x4e($s1) -.L802A9464: -/* 428744 802A9464 8E240004 */ lw $a0, 4($s1) -/* 428748 802A9468 3C058011 */ lui $a1, %hi(HudScript_AButtonDown) -/* 42874C 802A946C 24A58B54 */ addiu $a1, $a1, %lo(HudScript_AButtonDown) -/* 428750 802A9470 0C0511FF */ jal hud_element_set_script -/* 428754 802A9474 00000000 */ nop -/* 428758 802A9478 3C048000 */ lui $a0, 0x8000 -/* 42875C 802A947C 34840041 */ ori $a0, $a0, 0x41 -/* 428760 802A9480 0000282D */ daddu $a1, $zero, $zero -/* 428764 802A9484 00A0302D */ daddu $a2, $a1, $zero -/* 428768 802A9488 96220052 */ lhu $v0, 0x52($s1) -/* 42876C 802A948C 00A0382D */ daddu $a3, $a1, $zero -/* 428770 802A9490 A6200044 */ sh $zero, 0x44($s1) -/* 428774 802A9494 A6200046 */ sh $zero, 0x46($s1) -/* 428778 802A9498 0C0526AE */ jal sfx_play_sound_with_params -/* 42877C 802A949C A6220054 */ sh $v0, 0x54($s1) -/* 428780 802A94A0 2402000B */ addiu $v0, $zero, 0xb -/* 428784 802A94A4 A622004C */ sh $v0, 0x4c($s1) -.L802A94A8_428788: -/* 428788 802A94A8 0C093EB1 */ jal btl_set_popup_duration -/* 42878C 802A94AC 24040063 */ addiu $a0, $zero, 0x63 -/* 428790 802A94B0 8E020210 */ lw $v0, 0x210($s0) -/* 428794 802A94B4 30428000 */ andi $v0, $v0, 0x8000 -/* 428798 802A94B8 50400007 */ beql $v0, $zero, .L802A94D8 -/* 42879C 802A94BC A6200054 */ sh $zero, 0x54($s1) -/* 4287A0 802A94C0 96220044 */ lhu $v0, 0x44($s1) -/* 4287A4 802A94C4 96230046 */ lhu $v1, 0x46($s1) -/* 4287A8 802A94C8 2442009A */ addiu $v0, $v0, 0x9a -/* 4287AC 802A94CC 2463009A */ addiu $v1, $v1, 0x9a -/* 4287B0 802A94D0 A6220044 */ sh $v0, 0x44($s1) -/* 4287B4 802A94D4 A6230046 */ sh $v1, 0x46($s1) -.L802A94D8: -/* 4287B8 802A94D8 86220044 */ lh $v0, 0x44($s1) -/* 4287BC 802A94DC 28422710 */ slti $v0, $v0, 0x2710 -/* 4287C0 802A94E0 14400014 */ bnez $v0, .L802A9534 -/* 4287C4 802A94E4 3C0451EB */ lui $a0, 0x51eb -/* 4287C8 802A94E8 3C058029 */ lui $a1, %hi(HudScript_TimingReady) -/* 4287CC 802A94EC 24A52788 */ addiu $a1, $a1, %lo(HudScript_TimingReady) -/* 4287D0 802A94F0 8E24000C */ lw $a0, 0xc($s1) -/* 4287D4 802A94F4 24022710 */ addiu $v0, $zero, 0x2710 -/* 4287D8 802A94F8 0C0511FF */ jal hud_element_set_script -/* 4287DC 802A94FC A6220044 */ sh $v0, 0x44($s1) -/* 4287E0 802A9500 8E240004 */ lw $a0, 4($s1) -/* 4287E4 802A9504 3C058011 */ lui $a1, %hi(HudScript_AButton) -/* 4287E8 802A9508 24A58B28 */ addiu $a1, $a1, %lo(HudScript_AButton) -/* 4287EC 802A950C 0C0511FF */ jal hud_element_set_script -/* 4287F0 802A9510 00000000 */ nop -/* 4287F4 802A9514 86220068 */ lh $v0, 0x68($s1) -/* 4287F8 802A9518 14400006 */ bnez $v0, .L802A9534 -/* 4287FC 802A951C 3C0451EB */ lui $a0, 0x51eb -/* 428800 802A9520 0C05272D */ jal sfx_play_sound -/* 428804 802A9524 24040234 */ addiu $a0, $zero, 0x234 -/* 428808 802A9528 24020001 */ addiu $v0, $zero, 1 -/* 42880C 802A952C A6220068 */ sh $v0, 0x68($s1) -/* 428810 802A9530 3C0451EB */ lui $a0, 0x51eb -.L802A9534: -/* 428814 802A9534 3484851F */ ori $a0, $a0, 0x851f -/* 428818 802A9538 96230044 */ lhu $v1, 0x44($s1) -/* 42881C 802A953C 0000282D */ daddu $a1, $zero, $zero -/* 428820 802A9540 00031C00 */ sll $v1, $v1, 0x10 -/* 428824 802A9544 00031403 */ sra $v0, $v1, 0x10 -/* 428828 802A9548 00440018 */ mult $v0, $a0 -/* 42882C 802A954C 00A0302D */ daddu $a2, $a1, $zero -/* 428830 802A9550 3C048000 */ lui $a0, 0x8000 -/* 428834 802A9554 34840041 */ ori $a0, $a0, 0x41 -/* 428838 802A9558 00031FC3 */ sra $v1, $v1, 0x1f -/* 42883C 802A955C 00004810 */ mfhi $t1 -/* 428840 802A9560 00094143 */ sra $t0, $t1, 5 -/* 428844 802A9564 01034023 */ subu $t0, $t0, $v1 -/* 428848 802A9568 00081600 */ sll $v0, $t0, 0x18 -/* 42884C 802A956C 00021603 */ sra $v0, $v0, 0x18 -/* 428850 802A9570 00023840 */ sll $a3, $v0, 1 -/* 428854 802A9574 00E23821 */ addu $a3, $a3, $v0 -/* 428858 802A9578 00073880 */ sll $a3, $a3, 2 -/* 42885C 802A957C 0C0526F9 */ jal sfx_adjust_env_sound_params -/* 428860 802A9580 A2080084 */ sb $t0, 0x84($s0) -/* 428864 802A9584 86220054 */ lh $v0, 0x54($s1) -/* 428868 802A9588 96230054 */ lhu $v1, 0x54($s1) -/* 42886C 802A958C 10400005 */ beqz $v0, .L802A95A4 -/* 428870 802A9590 2462FFFF */ addiu $v0, $v1, -1 -/* 428874 802A9594 080AA594 */ j .L802A9650_428930 -/* 428878 802A9598 A6220054 */ sh $v0, 0x54($s1) -.L802A959C: -/* 42887C 802A959C 080AA57B */ j .L802A95EC -/* 428880 802A95A0 2402FFFF */ addiu $v0, $zero, -1 -.L802A95A4: -/* 428884 802A95A4 86250046 */ lh $a1, 0x46($s1) -/* 428888 802A95A8 28A22710 */ slti $v0, $a1, 0x2710 -/* 42888C 802A95AC 1440000F */ bnez $v0, .L802A95EC -/* 428890 802A95B0 2402FFFF */ addiu $v0, $zero, -1 -/* 428894 802A95B4 86220050 */ lh $v0, 0x50($s1) -/* 428898 802A95B8 8E030434 */ lw $v1, 0x434($s0) -/* 42889C 802A95BC 00021080 */ sll $v0, $v0, 2 -/* 4288A0 802A95C0 00431021 */ addu $v0, $v0, $v1 -/* 4288A4 802A95C4 8C440000 */ lw $a0, ($v0) -/* 4288A8 802A95C8 000410C0 */ sll $v0, $a0, 3 -/* 4288AC 802A95CC 00441021 */ addu $v0, $v0, $a0 -/* 4288B0 802A95D0 00021900 */ sll $v1, $v0, 4 -/* 4288B4 802A95D4 00431021 */ addu $v0, $v0, $v1 -/* 4288B8 802A95D8 00441021 */ addu $v0, $v0, $a0 -/* 4288BC 802A95DC 00A21023 */ subu $v0, $a1, $v0 -/* 4288C0 802A95E0 28422845 */ slti $v0, $v0, 0x2845 -/* 4288C4 802A95E4 1040FFED */ beqz $v0, .L802A959C -/* 4288C8 802A95E8 24020001 */ addiu $v0, $zero, 1 -.L802A95EC: -/* 4288CC 802A95EC A2020081 */ sb $v0, 0x81($s0) -/* 4288D0 802A95F0 82030081 */ lb $v1, 0x81($s0) -/* 4288D4 802A95F4 24020001 */ addiu $v0, $zero, 1 -/* 4288D8 802A95F8 14620003 */ bne $v1, $v0, .L802A9608 -/* 4288DC 802A95FC A2000086 */ sb $zero, 0x86($s0) -/* 4288E0 802A9600 0C09A458 */ jal func_80269160 -/* 4288E4 802A9604 00000000 */ nop -.L802A9608: -/* 4288E8 802A9608 0C093EB1 */ jal btl_set_popup_duration -/* 4288EC 802A960C 0000202D */ daddu $a0, $zero, $zero -/* 4288F0 802A9610 3C048000 */ lui $a0, 0x8000 -/* 4288F4 802A9614 0C05271B */ jal sfx_stop_sound -/* 4288F8 802A9618 34840041 */ ori $a0, $a0, 0x41 -/* 4288FC 802A961C 24020005 */ addiu $v0, $zero, 5 -/* 428900 802A9620 A6220054 */ sh $v0, 0x54($s1) -/* 428904 802A9624 2402000C */ addiu $v0, $zero, 0xc -/* 428908 802A9628 080AA594 */ j .L802A9650_428930 -/* 42890C 802A962C A622004C */ sh $v0, 0x4c($s1) -.L802A9630_428910: -/* 428910 802A9630 86220054 */ lh $v0, 0x54($s1) -/* 428914 802A9634 96230054 */ lhu $v1, 0x54($s1) -/* 428918 802A9638 10400003 */ beqz $v0, .L802A9648 -/* 42891C 802A963C 2462FFFF */ addiu $v0, $v1, -1 -/* 428920 802A9640 080AA594 */ j .L802A9650_428930 -/* 428924 802A9644 A6220054 */ sh $v0, 0x54($s1) -.L802A9648: -/* 428928 802A9648 0C09A327 */ jal func_80268C9C -/* 42892C 802A964C 00000000 */ nop -.L802A9650_428930: -/* 428930 802A9650 8FBF0018 */ lw $ra, 0x18($sp) -/* 428934 802A9654 8FB10014 */ lw $s1, 0x14($sp) -/* 428938 802A9658 8FB00010 */ lw $s0, 0x10($sp) -/* 42893C 802A965C 03E00008 */ jr $ra -/* 428940 802A9660 27BD0020 */ addiu $sp, $sp, 0x20 diff --git a/ver/us/asm/nonmatchings/battle/action_cmd/break_free/func_802A92DC_4236CC.s b/ver/us/asm/nonmatchings/battle/action_cmd/break_free/func_802A92DC_4236CC.s deleted file mode 100644 index 3c5ae7ef37..0000000000 --- a/ver/us/asm/nonmatchings/battle/action_cmd/break_free/func_802A92DC_4236CC.s +++ /dev/null @@ -1,278 +0,0 @@ -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches - -glabel func_802A92DC_4236CC -/* 4236CC 802A92DC 27BDFFE0 */ addiu $sp, $sp, -0x20 -/* 4236D0 802A92E0 AFB10014 */ sw $s1, 0x14($sp) -/* 4236D4 802A92E4 3C11802A */ lui $s1, %hi(gActionCommandStatus) -/* 4236D8 802A92E8 2631FBE0 */ addiu $s1, $s1, %lo(gActionCommandStatus) -/* 4236DC 802A92EC AFBF0018 */ sw $ra, 0x18($sp) -/* 4236E0 802A92F0 AFB00010 */ sw $s0, 0x10($sp) -/* 4236E4 802A92F4 8623004C */ lh $v1, 0x4c($s1) -/* 4236E8 802A92F8 3C10800E */ lui $s0, %hi(gBattleStatus) -/* 4236EC 802A92FC 2610C070 */ addiu $s0, $s0, %lo(gBattleStatus) -/* 4236F0 802A9300 2C62000D */ sltiu $v0, $v1, 0xd -/* 4236F4 802A9304 104000E7 */ beqz $v0, L802A96A4_423A94 -/* 4236F8 802A9308 00031080 */ sll $v0, $v1, 2 -/* 4236FC 802A930C 3C01802B */ lui $at, %hi(jtbl_802A9840_423C30) -/* 423700 802A9310 00220821 */ addu $at, $at, $v0 -/* 423704 802A9314 8C229840 */ lw $v0, %lo(jtbl_802A9840_423C30)($at) -/* 423708 802A9318 00400008 */ jr $v0 -/* 42370C 802A931C 00000000 */ nop -dlabel L802A9320_423710 -/* 423710 802A9320 0C093EB1 */ jal btl_set_popup_duration -/* 423714 802A9324 24040063 */ addiu $a0, $zero, 0x63 -/* 423718 802A9328 8E300004 */ lw $s0, 4($s1) -/* 42371C 802A932C 240500FF */ addiu $a1, $zero, 0xff -/* 423720 802A9330 0C0513AC */ jal hud_element_set_alpha -/* 423724 802A9334 0200202D */ daddu $a0, $s0, $zero -/* 423728 802A9338 82220061 */ lb $v0, 0x61($s1) -/* 42372C 802A933C 10400003 */ beqz $v0, .L802A934C -/* 423730 802A9340 0200202D */ daddu $a0, $s0, $zero -/* 423734 802A9344 0C05128B */ jal hud_element_clear_flags -/* 423738 802A9348 24050002 */ addiu $a1, $zero, 2 -.L802A934C: -/* 42373C 802A934C 8E300008 */ lw $s0, 8($s1) -/* 423740 802A9350 240500FF */ addiu $a1, $zero, 0xff -/* 423744 802A9354 0C0513AC */ jal hud_element_set_alpha -/* 423748 802A9358 0200202D */ daddu $a0, $s0, $zero -/* 42374C 802A935C 82220061 */ lb $v0, 0x61($s1) -/* 423750 802A9360 10400003 */ beqz $v0, .L802A9370 -/* 423754 802A9364 0200202D */ daddu $a0, $s0, $zero -/* 423758 802A9368 0C05128B */ jal hud_element_clear_flags -/* 42375C 802A936C 24050002 */ addiu $a1, $zero, 2 -.L802A9370: -/* 423760 802A9370 8E30000C */ lw $s0, 0xc($s1) -/* 423764 802A9374 240500FF */ addiu $a1, $zero, 0xff -/* 423768 802A9378 0C0513AC */ jal hud_element_set_alpha -/* 42376C 802A937C 0200202D */ daddu $a0, $s0, $zero -/* 423770 802A9380 82220061 */ lb $v0, 0x61($s1) -/* 423774 802A9384 10400003 */ beqz $v0, .L802A9394 -/* 423778 802A9388 0200202D */ daddu $a0, $s0, $zero -/* 42377C 802A938C 0C05128B */ jal hud_element_clear_flags -/* 423780 802A9390 24050002 */ addiu $a1, $zero, 2 -.L802A9394: -/* 423784 802A9394 8E300010 */ lw $s0, 0x10($s1) -/* 423788 802A9398 240500FF */ addiu $a1, $zero, 0xff -/* 42378C 802A939C 0C0513AC */ jal hud_element_set_alpha -/* 423790 802A93A0 0200202D */ daddu $a0, $s0, $zero -/* 423794 802A93A4 82220061 */ lb $v0, 0x61($s1) -/* 423798 802A93A8 10400003 */ beqz $v0, .L802A93B8 -/* 42379C 802A93AC 0200202D */ daddu $a0, $s0, $zero -/* 4237A0 802A93B0 0C05128B */ jal hud_element_clear_flags -/* 4237A4 802A93B4 24050002 */ addiu $a1, $zero, 2 -.L802A93B8: -/* 4237A8 802A93B8 24020001 */ addiu $v0, $zero, 1 -/* 4237AC 802A93BC 080AA5A9 */ j L802A96A4_423A94 -/* 4237B0 802A93C0 A622004C */ sh $v0, 0x4c($s1) -dlabel L802A93C4_4237B4 -/* 4237B4 802A93C4 0C093EB1 */ jal btl_set_popup_duration -/* 4237B8 802A93C8 24040063 */ addiu $a0, $zero, 0x63 -/* 4237BC 802A93CC 96220056 */ lhu $v0, 0x56($s1) -/* 4237C0 802A93D0 24420014 */ addiu $v0, $v0, 0x14 -/* 4237C4 802A93D4 A6220056 */ sh $v0, 0x56($s1) -/* 4237C8 802A93D8 00021400 */ sll $v0, $v0, 0x10 -/* 4237CC 802A93DC 00021403 */ sra $v0, $v0, 0x10 -/* 4237D0 802A93E0 28420033 */ slti $v0, $v0, 0x33 -/* 4237D4 802A93E4 14400002 */ bnez $v0, .L802A93F0 -/* 4237D8 802A93E8 24020032 */ addiu $v0, $zero, 0x32 -/* 4237DC 802A93EC A6220056 */ sh $v0, 0x56($s1) -.L802A93F0: -/* 4237E0 802A93F0 8E240004 */ lw $a0, 4($s1) -/* 4237E4 802A93F4 86250056 */ lh $a1, 0x56($s1) -/* 4237E8 802A93F8 0C051261 */ jal hud_element_set_render_pos -/* 4237EC 802A93FC 86260058 */ lh $a2, 0x58($s1) -/* 4237F0 802A9400 8E240008 */ lw $a0, 8($s1) -/* 4237F4 802A9404 86260058 */ lh $a2, 0x58($s1) -/* 4237F8 802A9408 86250056 */ lh $a1, 0x56($s1) -/* 4237FC 802A940C 0C051261 */ jal hud_element_set_render_pos -/* 423800 802A9410 24C6001C */ addiu $a2, $a2, 0x1c -/* 423804 802A9414 8E24000C */ lw $a0, 0xc($s1) -/* 423808 802A9418 86250056 */ lh $a1, 0x56($s1) -/* 42380C 802A941C 86260058 */ lh $a2, 0x58($s1) -/* 423810 802A9420 24A5001F */ addiu $a1, $a1, 0x1f -/* 423814 802A9424 0C051261 */ jal hud_element_set_render_pos -/* 423818 802A9428 24C6FFFF */ addiu $a2, $a2, -1 -/* 42381C 802A942C 8E240010 */ lw $a0, 0x10($s1) -/* 423820 802A9430 86250056 */ lh $a1, 0x56($s1) -/* 423824 802A9434 86260058 */ lh $a2, 0x58($s1) -/* 423828 802A9438 24A5001F */ addiu $a1, $a1, 0x1f -/* 42382C 802A943C 0C051261 */ jal hud_element_set_render_pos -/* 423830 802A9440 24C60011 */ addiu $a2, $a2, 0x11 -/* 423834 802A9444 080AA5A9 */ j L802A96A4_423A94 -/* 423838 802A9448 00000000 */ nop -dlabel L802A944C_42383C -/* 42383C 802A944C 0C093EB1 */ jal btl_set_popup_duration -/* 423840 802A9450 24040063 */ addiu $a0, $zero, 0x63 -/* 423844 802A9454 8622004E */ lh $v0, 0x4e($s1) -/* 423848 802A9458 9623004E */ lhu $v1, 0x4e($s1) -/* 42384C 802A945C 10400003 */ beqz $v0, .L802A946C -/* 423850 802A9460 2462FFFF */ addiu $v0, $v1, -1 -/* 423854 802A9464 080AA5A9 */ j L802A96A4_423A94 -/* 423858 802A9468 A622004E */ sh $v0, 0x4e($s1) -.L802A946C: -/* 42385C 802A946C 8E240004 */ lw $a0, 4($s1) -/* 423860 802A9470 3C058011 */ lui $a1, %hi(HudScript_MashAButton) -/* 423864 802A9474 24A58B80 */ addiu $a1, $a1, %lo(HudScript_MashAButton) -/* 423868 802A9478 0C0511FF */ jal hud_element_set_script -/* 42386C 802A947C 00000000 */ nop -/* 423870 802A9480 96230052 */ lhu $v1, 0x52($s1) -/* 423874 802A9484 2402000B */ addiu $v0, $zero, 0xb -/* 423878 802A9488 A622004C */ sh $v0, 0x4c($s1) -/* 42387C 802A948C A6230054 */ sh $v1, 0x54($s1) -dlabel L802A9490_423880 -/* 423880 802A9490 0C093EB1 */ jal btl_set_popup_duration -/* 423884 802A9494 24040063 */ addiu $a0, $zero, 0x63 -/* 423888 802A9498 8222005C */ lb $v0, 0x5c($s1) -/* 42388C 802A949C 1440000E */ bnez $v0, .L802A94D8 -/* 423890 802A94A0 00000000 */ nop -/* 423894 802A94A4 96220046 */ lhu $v0, 0x46($s1) -/* 423898 802A94A8 8623005A */ lh $v1, 0x5a($s1) -/* 42389C 802A94AC 24420001 */ addiu $v0, $v0, 1 -/* 4238A0 802A94B0 A6220046 */ sh $v0, 0x46($s1) -/* 4238A4 802A94B4 00021400 */ sll $v0, $v0, 0x10 -/* 4238A8 802A94B8 00021403 */ sra $v0, $v0, 0x10 -/* 4238AC 802A94BC 0043102A */ slt $v0, $v0, $v1 -/* 4238B0 802A94C0 9623005A */ lhu $v1, 0x5a($s1) -/* 4238B4 802A94C4 1440000C */ bnez $v0, .L802A94F8 -/* 4238B8 802A94C8 24020001 */ addiu $v0, $zero, 1 -/* 4238BC 802A94CC A6230046 */ sh $v1, 0x46($s1) -/* 4238C0 802A94D0 080AA53E */ j .L802A94F8 -/* 4238C4 802A94D4 A222005C */ sb $v0, 0x5c($s1) -.L802A94D8: -/* 4238C8 802A94D8 96220046 */ lhu $v0, 0x46($s1) -/* 4238CC 802A94DC 2442FFFF */ addiu $v0, $v0, -1 -/* 4238D0 802A94E0 A6220046 */ sh $v0, 0x46($s1) -/* 4238D4 802A94E4 00021400 */ sll $v0, $v0, 0x10 -/* 4238D8 802A94E8 1C400003 */ bgtz $v0, .L802A94F8 -/* 4238DC 802A94EC 00000000 */ nop -/* 4238E0 802A94F0 A6200046 */ sh $zero, 0x46($s1) -/* 4238E4 802A94F4 A220005C */ sb $zero, 0x5c($s1) -.L802A94F8: -/* 4238E8 802A94F8 8622006A */ lh $v0, 0x6a($s1) -/* 4238EC 802A94FC 14400021 */ bnez $v0, .L802A9584 -/* 4238F0 802A9500 00000000 */ nop -/* 4238F4 802A9504 82040431 */ lb $a0, 0x431($s0) -/* 4238F8 802A9508 86230052 */ lh $v1, 0x52($s1) -/* 4238FC 802A950C 86220054 */ lh $v0, 0x54($s1) -/* 423900 802A9510 00623023 */ subu $a2, $v1, $v0 -/* 423904 802A9514 00862023 */ subu $a0, $a0, $a2 -/* 423908 802A9518 04810002 */ bgez $a0, .L802A9524 -/* 42390C 802A951C A6200044 */ sh $zero, 0x44($s1) -/* 423910 802A9520 24840040 */ addiu $a0, $a0, 0x40 -.L802A9524: -/* 423914 802A9524 18C0002E */ blez $a2, .L802A95E0 -/* 423918 802A9528 0000282D */ daddu $a1, $zero, $zero -.L802A952C: -/* 42391C 802A952C 28820040 */ slti $v0, $a0, 0x40 -/* 423920 802A9530 50400001 */ beql $v0, $zero, .L802A9538 -/* 423924 802A9534 2484FFC0 */ addiu $a0, $a0, -0x40 -.L802A9538: -/* 423928 802A9538 00041080 */ sll $v0, $a0, 2 -/* 42392C 802A953C 02021021 */ addu $v0, $s0, $v0 -/* 423930 802A9540 8C420330 */ lw $v0, 0x330($v0) -/* 423934 802A9544 30428000 */ andi $v0, $v0, 0x8000 -/* 423938 802A9548 10400009 */ beqz $v0, .L802A9570 -/* 42393C 802A954C 24A50001 */ addiu $a1, $a1, 1 -/* 423940 802A9550 86230050 */ lh $v1, 0x50($s1) -/* 423944 802A9554 8E020434 */ lw $v0, 0x434($s0) -/* 423948 802A9558 00031880 */ sll $v1, $v1, 2 -/* 42394C 802A955C 00621821 */ addu $v1, $v1, $v0 -/* 423950 802A9560 96220044 */ lhu $v0, 0x44($s1) -/* 423954 802A9564 94630002 */ lhu $v1, 2($v1) -/* 423958 802A9568 00431021 */ addu $v0, $v0, $v1 -/* 42395C 802A956C A6220044 */ sh $v0, 0x44($s1) -.L802A9570: -/* 423960 802A9570 00A6102A */ slt $v0, $a1, $a2 -/* 423964 802A9574 1440FFED */ bnez $v0, .L802A952C -/* 423968 802A9578 24840001 */ addiu $a0, $a0, 1 -/* 42396C 802A957C 080AA579 */ j .L802A95E4 -/* 423970 802A9580 3C0451EB */ lui $a0, 0x51eb -.L802A9584: -/* 423974 802A9584 86220050 */ lh $v0, 0x50($s1) -/* 423978 802A9588 8E030434 */ lw $v1, 0x434($s0) -/* 42397C 802A958C 00021080 */ sll $v0, $v0, 2 -/* 423980 802A9590 00431021 */ addu $v0, $v0, $v1 -/* 423984 802A9594 8C430000 */ lw $v1, ($v0) -/* 423988 802A9598 04620001 */ bltzl $v1, .L802A95A0 -/* 42398C 802A959C 24630003 */ addiu $v1, $v1, 3 -.L802A95A0: -/* 423990 802A95A0 96220044 */ lhu $v0, 0x44($s1) -/* 423994 802A95A4 00031883 */ sra $v1, $v1, 2 -/* 423998 802A95A8 00431021 */ addu $v0, $v0, $v1 -/* 42399C 802A95AC A6220044 */ sh $v0, 0x44($s1) -/* 4239A0 802A95B0 86220050 */ lh $v0, 0x50($s1) -/* 4239A4 802A95B4 8E030434 */ lw $v1, 0x434($s0) -/* 4239A8 802A95B8 00021080 */ sll $v0, $v0, 2 -/* 4239AC 802A95BC 00431021 */ addu $v0, $v0, $v1 -/* 4239B0 802A95C0 8C420000 */ lw $v0, ($v0) -/* 4239B4 802A95C4 04420001 */ bltzl $v0, .L802A95CC -/* 4239B8 802A95C8 24420003 */ addiu $v0, $v0, 3 -.L802A95CC: -/* 4239BC 802A95CC 0C00A67F */ jal rand_int -/* 4239C0 802A95D0 00022083 */ sra $a0, $v0, 2 -/* 4239C4 802A95D4 96230044 */ lhu $v1, 0x44($s1) -/* 4239C8 802A95D8 00621821 */ addu $v1, $v1, $v0 -/* 4239CC 802A95DC A6230044 */ sh $v1, 0x44($s1) -.L802A95E0: -/* 4239D0 802A95E0 3C0451EB */ lui $a0, 0x51eb -.L802A95E4: -/* 4239D4 802A95E4 96230044 */ lhu $v1, 0x44($s1) -/* 4239D8 802A95E8 3484851F */ ori $a0, $a0, 0x851f -/* 4239DC 802A95EC 00031C00 */ sll $v1, $v1, 0x10 -/* 4239E0 802A95F0 00031403 */ sra $v0, $v1, 0x10 -/* 4239E4 802A95F4 00440018 */ mult $v0, $a0 -/* 4239E8 802A95F8 00031FC3 */ sra $v1, $v1, 0x1f -/* 4239EC 802A95FC 00003810 */ mfhi $a3 -/* 4239F0 802A9600 00071143 */ sra $v0, $a3, 5 -/* 4239F4 802A9604 00431823 */ subu $v1, $v0, $v1 -/* 4239F8 802A9608 A2030081 */ sb $v1, 0x81($s0) -/* 4239FC 802A960C 86220054 */ lh $v0, 0x54($s1) -/* 423A00 802A9610 96240054 */ lhu $a0, 0x54($s1) -/* 423A04 802A9614 10400003 */ beqz $v0, .L802A9624 -/* 423A08 802A9618 2482FFFF */ addiu $v0, $a0, -1 -/* 423A0C 802A961C 080AA5A9 */ j L802A96A4_423A94 -/* 423A10 802A9620 A6220054 */ sh $v0, 0x54($s1) -.L802A9624: -/* 423A14 802A9624 00031E00 */ sll $v1, $v1, 0x18 -/* 423A18 802A9628 82220080 */ lb $v0, 0x80($s1) -/* 423A1C 802A962C 86240046 */ lh $a0, 0x46($s1) -/* 423A20 802A9630 00021040 */ sll $v0, $v0, 1 -/* 423A24 802A9634 02221021 */ addu $v0, $s1, $v0 -/* 423A28 802A9638 84420074 */ lh $v0, 0x74($v0) -/* 423A2C 802A963C 00031E03 */ sra $v1, $v1, 0x18 -/* 423A30 802A9640 00441023 */ subu $v0, $v0, $a0 -/* 423A34 802A9644 0062182A */ slt $v1, $v1, $v0 -/* 423A38 802A9648 14600004 */ bnez $v1, .L802A965C -/* 423A3C 802A964C 2402FFFE */ addiu $v0, $zero, -2 -/* 423A40 802A9650 24020001 */ addiu $v0, $zero, 1 -/* 423A44 802A9654 080AA599 */ j .L802A9664 -/* 423A48 802A9658 A2020086 */ sb $v0, 0x86($s0) -.L802A965C: -/* 423A4C 802A965C A2020086 */ sb $v0, 0x86($s0) -/* 423A50 802A9660 2402FFFF */ addiu $v0, $zero, -1 -.L802A9664: -/* 423A54 802A9664 A2020081 */ sb $v0, 0x81($s0) -/* 423A58 802A9668 0C093EB1 */ jal btl_set_popup_duration -/* 423A5C 802A966C 0000202D */ daddu $a0, $zero, $zero -/* 423A60 802A9670 24020014 */ addiu $v0, $zero, 0x14 -/* 423A64 802A9674 A6220054 */ sh $v0, 0x54($s1) -/* 423A68 802A9678 2402000C */ addiu $v0, $zero, 0xc -/* 423A6C 802A967C 080AA5A9 */ j L802A96A4_423A94 -/* 423A70 802A9680 A622004C */ sh $v0, 0x4c($s1) -dlabel L802A9684_423A74 -/* 423A74 802A9684 86220054 */ lh $v0, 0x54($s1) -/* 423A78 802A9688 96230054 */ lhu $v1, 0x54($s1) -/* 423A7C 802A968C 10400003 */ beqz $v0, .L802A969C -/* 423A80 802A9690 2462FFFF */ addiu $v0, $v1, -1 -/* 423A84 802A9694 080AA5A9 */ j L802A96A4_423A94 -/* 423A88 802A9698 A6220054 */ sh $v0, 0x54($s1) -.L802A969C: -/* 423A8C 802A969C 0C09A327 */ jal func_80268C9C -/* 423A90 802A96A0 00000000 */ nop -dlabel L802A96A4_423A94 -/* 423A94 802A96A4 8FBF0018 */ lw $ra, 0x18($sp) -/* 423A98 802A96A8 8FB10014 */ lw $s1, 0x14($sp) -/* 423A9C 802A96AC 8FB00010 */ lw $s0, 0x10($sp) -/* 423AA0 802A96B0 03E00008 */ jr $ra -/* 423AA4 802A96B4 27BD0020 */ addiu $sp, $sp, 0x20 diff --git a/ver/us/asm/nonmatchings/battle/action_cmd/dizzy_shell/func_802A928C_4263FC.s b/ver/us/asm/nonmatchings/battle/action_cmd/dizzy_shell/func_802A928C_4263FC.s deleted file mode 100644 index 6a3d38673a..0000000000 --- a/ver/us/asm/nonmatchings/battle/action_cmd/dizzy_shell/func_802A928C_4263FC.s +++ /dev/null @@ -1,307 +0,0 @@ -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches - -glabel func_802A928C_4263FC -/* 4263FC 802A928C 27BDFFE0 */ addiu $sp, $sp, -0x20 -/* 426400 802A9290 AFB10014 */ sw $s1, 0x14($sp) -/* 426404 802A9294 3C11802A */ lui $s1, %hi(gActionCommandStatus) -/* 426408 802A9298 2631FBE0 */ addiu $s1, $s1, %lo(gActionCommandStatus) -/* 42640C 802A929C AFBF001C */ sw $ra, 0x1c($sp) -/* 426410 802A92A0 AFB20018 */ sw $s2, 0x18($sp) -/* 426414 802A92A4 AFB00010 */ sw $s0, 0x10($sp) -/* 426418 802A92A8 8623004C */ lh $v1, 0x4c($s1) -/* 42641C 802A92AC 3C12800E */ lui $s2, %hi(gBattleStatus) -/* 426420 802A92B0 2652C070 */ addiu $s2, $s2, %lo(gBattleStatus) -/* 426424 802A92B4 2C62000D */ sltiu $v0, $v1, 0xd -/* 426428 802A92B8 10400102 */ beqz $v0, L802A96C4_426834 -/* 42642C 802A92BC 00031080 */ sll $v0, $v1, 2 -/* 426430 802A92C0 3C01802B */ lui $at, %hi(jtbl_802A9820_426990) -/* 426434 802A92C4 00220821 */ addu $at, $at, $v0 -/* 426438 802A92C8 8C229820 */ lw $v0, %lo(jtbl_802A9820_426990)($at) -/* 42643C 802A92CC 00400008 */ jr $v0 -/* 426440 802A92D0 00000000 */ nop -dlabel L802A92D4_426444 -/* 426444 802A92D4 0C093EB1 */ jal btl_set_popup_duration -/* 426448 802A92D8 24040063 */ addiu $a0, $zero, 0x63 -/* 42644C 802A92DC 8E300004 */ lw $s0, 4($s1) -/* 426450 802A92E0 240500FF */ addiu $a1, $zero, 0xff -/* 426454 802A92E4 0C0513AC */ jal hud_element_set_alpha -/* 426458 802A92E8 0200202D */ daddu $a0, $s0, $zero -/* 42645C 802A92EC 82220061 */ lb $v0, 0x61($s1) -/* 426460 802A92F0 10400003 */ beqz $v0, .L802A9300 -/* 426464 802A92F4 0200202D */ daddu $a0, $s0, $zero -/* 426468 802A92F8 0C05128B */ jal hud_element_clear_flags -/* 42646C 802A92FC 24050002 */ addiu $a1, $zero, 2 -.L802A9300: -/* 426470 802A9300 8E300008 */ lw $s0, 8($s1) -/* 426474 802A9304 240500FF */ addiu $a1, $zero, 0xff -/* 426478 802A9308 0C0513AC */ jal hud_element_set_alpha -/* 42647C 802A930C 0200202D */ daddu $a0, $s0, $zero -/* 426480 802A9310 82220061 */ lb $v0, 0x61($s1) -/* 426484 802A9314 10400003 */ beqz $v0, .L802A9324 -/* 426488 802A9318 0200202D */ daddu $a0, $s0, $zero -/* 42648C 802A931C 0C05128B */ jal hud_element_clear_flags -/* 426490 802A9320 24050002 */ addiu $a1, $zero, 2 -.L802A9324: -/* 426494 802A9324 24020001 */ addiu $v0, $zero, 1 -/* 426498 802A9328 080AA5B1 */ j L802A96C4_426834 -/* 42649C 802A932C A622004C */ sh $v0, 0x4c($s1) -dlabel L802A9330_4264A0 -/* 4264A0 802A9330 0C093EB1 */ jal btl_set_popup_duration -/* 4264A4 802A9334 24040063 */ addiu $a0, $zero, 0x63 -/* 4264A8 802A9338 96220056 */ lhu $v0, 0x56($s1) -/* 4264AC 802A933C 24420014 */ addiu $v0, $v0, 0x14 -/* 4264B0 802A9340 A6220056 */ sh $v0, 0x56($s1) -/* 4264B4 802A9344 00021400 */ sll $v0, $v0, 0x10 -/* 4264B8 802A9348 00021403 */ sra $v0, $v0, 0x10 -/* 4264BC 802A934C 28420033 */ slti $v0, $v0, 0x33 -/* 4264C0 802A9350 14400002 */ bnez $v0, .L802A935C -/* 4264C4 802A9354 24020032 */ addiu $v0, $zero, 0x32 -/* 4264C8 802A9358 A6220056 */ sh $v0, 0x56($s1) -.L802A935C: -/* 4264CC 802A935C 8E240004 */ lw $a0, 4($s1) -/* 4264D0 802A9360 86250056 */ lh $a1, 0x56($s1) -/* 4264D4 802A9364 0C051261 */ jal hud_element_set_render_pos -/* 4264D8 802A9368 86260058 */ lh $a2, 0x58($s1) -/* 4264DC 802A936C 8E240008 */ lw $a0, 8($s1) -/* 4264E0 802A9370 86260058 */ lh $a2, 0x58($s1) -/* 4264E4 802A9374 86250056 */ lh $a1, 0x56($s1) -/* 4264E8 802A9378 0C051261 */ jal hud_element_set_render_pos -/* 4264EC 802A937C 24C6001C */ addiu $a2, $a2, 0x1c -/* 4264F0 802A9380 080AA5B1 */ j L802A96C4_426834 -/* 4264F4 802A9384 00000000 */ nop -dlabel L802A9388_4264F8 -/* 4264F8 802A9388 0C093EB1 */ jal btl_set_popup_duration -/* 4264FC 802A938C 24040063 */ addiu $a0, $zero, 0x63 -/* 426500 802A9390 8622004E */ lh $v0, 0x4e($s1) -/* 426504 802A9394 9623004E */ lhu $v1, 0x4e($s1) -/* 426508 802A9398 10400003 */ beqz $v0, .L802A93A8 -/* 42650C 802A939C 2462FFFF */ addiu $v0, $v1, -1 -/* 426510 802A93A0 080AA5B1 */ j L802A96C4_426834 -/* 426514 802A93A4 A622004E */ sh $v0, 0x4e($s1) -.L802A93A8: -/* 426518 802A93A8 8E240004 */ lw $a0, 4($s1) -/* 42651C 802A93AC 3C058011 */ lui $a1, %hi(HudScript_MashAButton) -/* 426520 802A93B0 24A58B80 */ addiu $a1, $a1, %lo(HudScript_MashAButton) -/* 426524 802A93B4 0C0511FF */ jal hud_element_set_script -/* 426528 802A93B8 00000000 */ nop -/* 42652C 802A93BC 3C048000 */ lui $a0, 0x8000 -/* 426530 802A93C0 34840041 */ ori $a0, $a0, 0x41 -/* 426534 802A93C4 0000282D */ daddu $a1, $zero, $zero -/* 426538 802A93C8 00A0302D */ daddu $a2, $a1, $zero -/* 42653C 802A93CC 96220052 */ lhu $v0, 0x52($s1) -/* 426540 802A93D0 00A0382D */ daddu $a3, $a1, $zero -/* 426544 802A93D4 A6200044 */ sh $zero, 0x44($s1) -/* 426548 802A93D8 0C0526AE */ jal sfx_play_sound_with_params -/* 42654C 802A93DC A6220054 */ sh $v0, 0x54($s1) -/* 426550 802A93E0 2402000B */ addiu $v0, $zero, 0xb -/* 426554 802A93E4 A622004C */ sh $v0, 0x4c($s1) -dlabel L802A93E8_426558 -/* 426558 802A93E8 0C093EB1 */ jal btl_set_popup_duration -/* 42655C 802A93EC 24040063 */ addiu $a0, $zero, 0x63 -/* 426560 802A93F0 86220068 */ lh $v0, 0x68($s1) -/* 426564 802A93F4 14400027 */ bnez $v0, .L802A9494 -/* 426568 802A93F8 00000000 */ nop -/* 42656C 802A93FC 86220064 */ lh $v0, 0x64($s1) -/* 426570 802A9400 1040001E */ beqz $v0, .L802A947C -/* 426574 802A9404 00000000 */ nop -/* 426578 802A9408 82220080 */ lb $v0, 0x80($s1) -/* 42657C 802A940C 00021040 */ sll $v0, $v0, 1 -/* 426580 802A9410 02221021 */ addu $v0, $s1, $v0 -/* 426584 802A9414 84430074 */ lh $v1, 0x74($v0) -/* 426588 802A9418 86220044 */ lh $v0, 0x44($s1) -/* 42658C 802A941C 14600002 */ bnez $v1, .L802A9428 -/* 426590 802A9420 0043001A */ div $zero, $v0, $v1 -/* 426594 802A9424 0007000D */ break 7 -.L802A9428: -/* 426598 802A9428 2401FFFF */ addiu $at, $zero, -1 -/* 42659C 802A942C 14610004 */ bne $v1, $at, .L802A9440 -/* 4265A0 802A9430 3C018000 */ lui $at, 0x8000 -/* 4265A4 802A9434 14410002 */ bne $v0, $at, .L802A9440 -/* 4265A8 802A9438 00000000 */ nop -/* 4265AC 802A943C 0006000D */ break 6 -.L802A9440: -/* 4265B0 802A9440 00001012 */ mflo $v0 -/* 4265B4 802A9444 3C036666 */ lui $v1, 0x6666 -/* 4265B8 802A9448 34636667 */ ori $v1, $v1, 0x6667 -/* 4265BC 802A944C 00430018 */ mult $v0, $v1 -/* 4265C0 802A9450 000217C3 */ sra $v0, $v0, 0x1f -/* 4265C4 802A9454 00001810 */ mfhi $v1 -/* 4265C8 802A9458 000318C3 */ sra $v1, $v1, 3 -/* 4265CC 802A945C 00621823 */ subu $v1, $v1, $v0 -/* 4265D0 802A9460 00031880 */ sll $v1, $v1, 2 -/* 4265D4 802A9464 96220044 */ lhu $v0, 0x44($s1) -/* 4265D8 802A9468 3C01802B */ lui $at, %hi(D_802A9802_426972) -/* 4265DC 802A946C 00230821 */ addu $at, $at, $v1 -/* 4265E0 802A9470 94239802 */ lhu $v1, %lo(D_802A9802_426972)($at) -/* 4265E4 802A9474 080AA521 */ j .L802A9484 -/* 4265E8 802A9478 00431023 */ subu $v0, $v0, $v1 -.L802A947C: -/* 4265EC 802A947C 96220044 */ lhu $v0, 0x44($s1) -/* 4265F0 802A9480 2442FFF6 */ addiu $v0, $v0, -0xa -.L802A9484: -/* 4265F4 802A9484 A6220044 */ sh $v0, 0x44($s1) -/* 4265F8 802A9488 00021400 */ sll $v0, $v0, 0x10 -/* 4265FC 802A948C 04420001 */ bltzl $v0, .L802A9494 -/* 426600 802A9490 A6200044 */ sh $zero, 0x44($s1) -.L802A9494: -/* 426604 802A9494 8E420214 */ lw $v0, 0x214($s2) -/* 426608 802A9498 30428000 */ andi $v0, $v0, 0x8000 -/* 42660C 802A949C 10400025 */ beqz $v0, .L802A9534 -/* 426610 802A94A0 00000000 */ nop -/* 426614 802A94A4 86240050 */ lh $a0, 0x50($s1) -/* 426618 802A94A8 8E420434 */ lw $v0, 0x434($s2) -/* 42661C 802A94AC 86230064 */ lh $v1, 0x64($s1) -/* 426620 802A94B0 00042080 */ sll $a0, $a0, 2 -/* 426624 802A94B4 00822021 */ addu $a0, $a0, $v0 -/* 426628 802A94B8 00031040 */ sll $v0, $v1, 1 -/* 42662C 802A94BC 00431021 */ addu $v0, $v0, $v1 -/* 426630 802A94C0 000210C0 */ sll $v0, $v0, 3 -/* 426634 802A94C4 00431021 */ addu $v0, $v0, $v1 -/* 426638 802A94C8 00021900 */ sll $v1, $v0, 4 -/* 42663C 802A94CC 00431021 */ addu $v0, $v0, $v1 -/* 426640 802A94D0 8C830000 */ lw $v1, ($a0) -/* 426644 802A94D4 00021040 */ sll $v0, $v0, 1 -/* 426648 802A94D8 00620018 */ mult $v1, $v0 -/* 42664C 802A94DC 00001812 */ mflo $v1 -/* 426650 802A94E0 3C0268DB */ lui $v0, 0x68db -/* 426654 802A94E4 34428BAD */ ori $v0, $v0, 0x8bad -/* 426658 802A94E8 00620018 */ mult $v1, $v0 -/* 42665C 802A94EC 00031FC3 */ sra $v1, $v1, 0x1f -/* 426660 802A94F0 00001010 */ mfhi $v0 -/* 426664 802A94F4 00021303 */ sra $v0, $v0, 0xc -/* 426668 802A94F8 00431823 */ subu $v1, $v0, $v1 -/* 42666C 802A94FC 10600004 */ beqz $v1, .L802A9510 -/* 426670 802A9500 00000000 */ nop -/* 426674 802A9504 96220044 */ lhu $v0, 0x44($s1) -/* 426678 802A9508 080AA54C */ j .L802A9530 -/* 42667C 802A950C 00431021 */ addu $v0, $v0, $v1 -.L802A9510: -/* 426680 802A9510 96220044 */ lhu $v0, 0x44($s1) -/* 426684 802A9514 24420064 */ addiu $v0, $v0, 0x64 -/* 426688 802A9518 A6220044 */ sh $v0, 0x44($s1) -/* 42668C 802A951C 00021400 */ sll $v0, $v0, 0x10 -/* 426690 802A9520 00021403 */ sra $v0, $v0, 0x10 -/* 426694 802A9524 284201F4 */ slti $v0, $v0, 0x1f4 -/* 426698 802A9528 14400002 */ bnez $v0, .L802A9534 -/* 42669C 802A952C 240201F4 */ addiu $v0, $zero, 0x1f4 -.L802A9530: -/* 4266A0 802A9530 A6220044 */ sh $v0, 0x44($s1) -.L802A9534: -/* 4266A4 802A9534 86220044 */ lh $v0, 0x44($s1) -/* 4266A8 802A9538 28422710 */ slti $v0, $v0, 0x2710 -/* 4266AC 802A953C 14400010 */ bnez $v0, .L802A9580 -/* 4266B0 802A9540 3C1051EB */ lui $s0, 0x51eb -/* 4266B4 802A9544 8E30000C */ lw $s0, 0xc($s1) -/* 4266B8 802A9548 86250056 */ lh $a1, 0x56($s1) -/* 4266BC 802A954C 86260058 */ lh $a2, 0x58($s1) -/* 4266C0 802A9550 24022710 */ addiu $v0, $zero, 0x2710 -/* 4266C4 802A9554 A6220044 */ sh $v0, 0x44($s1) -/* 4266C8 802A9558 24020001 */ addiu $v0, $zero, 1 -/* 4266CC 802A955C A6220068 */ sh $v0, 0x68($s1) -/* 4266D0 802A9560 0200202D */ daddu $a0, $s0, $zero -/* 4266D4 802A9564 24A50032 */ addiu $a1, $a1, 0x32 -/* 4266D8 802A9568 0C051261 */ jal hud_element_set_render_pos -/* 4266DC 802A956C 24C6001C */ addiu $a2, $a2, 0x1c -/* 4266E0 802A9570 0200202D */ daddu $a0, $s0, $zero -/* 4266E4 802A9574 0C05128B */ jal hud_element_clear_flags -/* 4266E8 802A9578 24050002 */ addiu $a1, $zero, 2 -/* 4266EC 802A957C 3C1051EB */ lui $s0, 0x51eb -.L802A9580: -/* 4266F0 802A9580 3610851F */ ori $s0, $s0, 0x851f -/* 4266F4 802A9584 96230044 */ lhu $v1, 0x44($s1) -/* 4266F8 802A9588 3C048000 */ lui $a0, 0x8000 -/* 4266FC 802A958C 00031C00 */ sll $v1, $v1, 0x10 -/* 426700 802A9590 00031403 */ sra $v0, $v1, 0x10 -/* 426704 802A9594 00500018 */ mult $v0, $s0 -/* 426708 802A9598 34840041 */ ori $a0, $a0, 0x41 -/* 42670C 802A959C 0000282D */ daddu $a1, $zero, $zero -/* 426710 802A95A0 00A0302D */ daddu $a2, $a1, $zero -/* 426714 802A95A4 00031FC3 */ sra $v1, $v1, 0x1f -/* 426718 802A95A8 00004810 */ mfhi $t1 -/* 42671C 802A95AC 00094143 */ sra $t0, $t1, 5 -/* 426720 802A95B0 01034023 */ subu $t0, $t0, $v1 -/* 426724 802A95B4 00081600 */ sll $v0, $t0, 0x18 -/* 426728 802A95B8 00021603 */ sra $v0, $v0, 0x18 -/* 42672C 802A95BC 00023840 */ sll $a3, $v0, 1 -/* 426730 802A95C0 00E23821 */ addu $a3, $a3, $v0 -/* 426734 802A95C4 00073880 */ sll $a3, $a3, 2 -/* 426738 802A95C8 0C0526F9 */ jal sfx_adjust_env_sound_params -/* 42673C 802A95CC A2480084 */ sb $t0, 0x84($s2) -/* 426740 802A95D0 86220054 */ lh $v0, 0x54($s1) -/* 426744 802A95D4 96230054 */ lhu $v1, 0x54($s1) -/* 426748 802A95D8 14400036 */ bnez $v0, .L802A96B4 -/* 42674C 802A95DC 2462FFFF */ addiu $v0, $v1, -1 -/* 426750 802A95E0 86220064 */ lh $v0, 0x64($s1) -/* 426754 802A95E4 86230044 */ lh $v1, 0x44($s1) -/* 426758 802A95E8 50400001 */ beql $v0, $zero, .L802A95F0 -/* 42675C 802A95EC 0000182D */ daddu $v1, $zero, $zero -.L802A95F0: -/* 426760 802A95F0 14600003 */ bnez $v1, .L802A9600 -/* 426764 802A95F4 00700018 */ mult $v1, $s0 -/* 426768 802A95F8 080AA584 */ j .L802A9610 -/* 42676C 802A95FC 2402FFFF */ addiu $v0, $zero, -1 -.L802A9600: -/* 426770 802A9600 00031FC3 */ sra $v1, $v1, 0x1f -/* 426774 802A9604 00004810 */ mfhi $t1 -/* 426778 802A9608 00091143 */ sra $v0, $t1, 5 -/* 42677C 802A960C 00431023 */ subu $v0, $v0, $v1 -.L802A9610: -/* 426780 802A9610 A2420081 */ sb $v0, 0x81($s2) -/* 426784 802A9614 82220080 */ lb $v0, 0x80($s1) -/* 426788 802A9618 2442FFFF */ addiu $v0, $v0, -1 -/* 42678C 802A961C 00021040 */ sll $v0, $v0, 1 -/* 426790 802A9620 02221021 */ addu $v0, $s1, $v0 -/* 426794 802A9624 84430074 */ lh $v1, 0x74($v0) -/* 426798 802A9628 82420081 */ lb $v0, 0x81($s2) -/* 42679C 802A962C 0043102A */ slt $v0, $v0, $v1 -/* 4267A0 802A9630 14400002 */ bnez $v0, .L802A963C -/* 4267A4 802A9634 2402FFFE */ addiu $v0, $zero, -2 -/* 4267A8 802A9638 24020001 */ addiu $v0, $zero, 1 -.L802A963C: -/* 4267AC 802A963C A2420086 */ sb $v0, 0x86($s2) -/* 4267B0 802A9640 82430081 */ lb $v1, 0x81($s2) -/* 4267B4 802A9644 24020064 */ addiu $v0, $zero, 0x64 -/* 4267B8 802A9648 14620004 */ bne $v1, $v0, .L802A965C -/* 4267BC 802A964C 3C048000 */ lui $a0, 0x8000 -/* 4267C0 802A9650 0C09A458 */ jal func_80269160 -/* 4267C4 802A9654 00000000 */ nop -/* 4267C8 802A9658 3C048000 */ lui $a0, 0x8000 -.L802A965C: -/* 4267CC 802A965C 0C05271B */ jal sfx_stop_sound -/* 4267D0 802A9660 34840041 */ ori $a0, $a0, 0x41 -/* 4267D4 802A9664 0C093EB1 */ jal btl_set_popup_duration -/* 4267D8 802A9668 0000202D */ daddu $a0, $zero, $zero -/* 4267DC 802A966C 24020005 */ addiu $v0, $zero, 5 -/* 4267E0 802A9670 A6220054 */ sh $v0, 0x54($s1) -/* 4267E4 802A9674 2402000C */ addiu $v0, $zero, 0xc -/* 4267E8 802A9678 080AA5B1 */ j L802A96C4_426834 -/* 4267EC 802A967C A622004C */ sh $v0, 0x4c($s1) -dlabel L802A9680_4267F0 -/* 4267F0 802A9680 86220064 */ lh $v0, 0x64($s1) -/* 4267F4 802A9684 14400007 */ bnez $v0, .L802A96A4 -/* 4267F8 802A9688 00000000 */ nop -/* 4267FC 802A968C 96220044 */ lhu $v0, 0x44($s1) -/* 426800 802A9690 2442FF9C */ addiu $v0, $v0, -0x64 -/* 426804 802A9694 A6220044 */ sh $v0, 0x44($s1) -/* 426808 802A9698 00021400 */ sll $v0, $v0, 0x10 -/* 42680C 802A969C 04420001 */ bltzl $v0, .L802A96A4 -/* 426810 802A96A0 A6200044 */ sh $zero, 0x44($s1) -.L802A96A4: -/* 426814 802A96A4 86220054 */ lh $v0, 0x54($s1) -/* 426818 802A96A8 96230054 */ lhu $v1, 0x54($s1) -/* 42681C 802A96AC 10400003 */ beqz $v0, .L802A96BC -/* 426820 802A96B0 2462FFFF */ addiu $v0, $v1, -1 -.L802A96B4: -/* 426824 802A96B4 080AA5B1 */ j L802A96C4_426834 -/* 426828 802A96B8 A6220054 */ sh $v0, 0x54($s1) -.L802A96BC: -/* 42682C 802A96BC 0C09A327 */ jal func_80268C9C -/* 426830 802A96C0 00000000 */ nop -dlabel L802A96C4_426834 -/* 426834 802A96C4 8FBF001C */ lw $ra, 0x1c($sp) -/* 426838 802A96C8 8FB20018 */ lw $s2, 0x18($sp) -/* 42683C 802A96CC 8FB10014 */ lw $s1, 0x14($sp) -/* 426840 802A96D0 8FB00010 */ lw $s0, 0x10($sp) -/* 426844 802A96D4 03E00008 */ jr $ra -/* 426848 802A96D8 27BD0020 */ addiu $sp, $sp, 0x20 diff --git a/ver/us/asm/nonmatchings/battle/action_cmd/fire_shell/func_802A9294_426C64.s b/ver/us/asm/nonmatchings/battle/action_cmd/fire_shell/func_802A9294_426C64.s deleted file mode 100644 index a3d3e3abe5..0000000000 --- a/ver/us/asm/nonmatchings/battle/action_cmd/fire_shell/func_802A9294_426C64.s +++ /dev/null @@ -1,394 +0,0 @@ -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches - -glabel func_802A9294_426C64 -/* 426C64 802A9294 27BDFFD8 */ addiu $sp, $sp, -0x28 -/* 426C68 802A9298 AFB10014 */ sw $s1, 0x14($sp) -/* 426C6C 802A929C 3C11802A */ lui $s1, %hi(gActionCommandStatus) -/* 426C70 802A92A0 2631FBE0 */ addiu $s1, $s1, %lo(gActionCommandStatus) -/* 426C74 802A92A4 AFB20018 */ sw $s2, 0x18($sp) -/* 426C78 802A92A8 3C12800E */ lui $s2, %hi(gBattleStatus) -/* 426C7C 802A92AC 2652C070 */ addiu $s2, $s2, %lo(gBattleStatus) -/* 426C80 802A92B0 AFBF0020 */ sw $ra, 0x20($sp) -/* 426C84 802A92B4 AFB3001C */ sw $s3, 0x1c($sp) -/* 426C88 802A92B8 AFB00010 */ sw $s0, 0x10($sp) -/* 426C8C 802A92BC 8623004C */ lh $v1, 0x4c($s1) -/* 426C90 802A92C0 8E5300DC */ lw $s3, 0xdc($s2) -/* 426C94 802A92C4 2C62000D */ sltiu $v0, $v1, 0xd -/* 426C98 802A92C8 10400153 */ beqz $v0, L802A9818_4271E8 -/* 426C9C 802A92CC 00031080 */ sll $v0, $v1, 2 -/* 426CA0 802A92D0 3C01802B */ lui $at, %hi(jtbl_802A99A0_427370) -/* 426CA4 802A92D4 00220821 */ addu $at, $at, $v0 -/* 426CA8 802A92D8 8C2299A0 */ lw $v0, %lo(jtbl_802A99A0_427370)($at) -/* 426CAC 802A92DC 00400008 */ jr $v0 -/* 426CB0 802A92E0 00000000 */ nop -dlabel L802A92E4_426CB4 -/* 426CB4 802A92E4 0C093EB1 */ jal btl_set_popup_duration -/* 426CB8 802A92E8 24040063 */ addiu $a0, $zero, 0x63 -/* 426CBC 802A92EC 8E300004 */ lw $s0, 4($s1) -/* 426CC0 802A92F0 240500FF */ addiu $a1, $zero, 0xff -/* 426CC4 802A92F4 0C0513AC */ jal hud_element_set_alpha -/* 426CC8 802A92F8 0200202D */ daddu $a0, $s0, $zero -/* 426CCC 802A92FC 82220061 */ lb $v0, 0x61($s1) -/* 426CD0 802A9300 10400003 */ beqz $v0, .L802A9310 -/* 426CD4 802A9304 0200202D */ daddu $a0, $s0, $zero -/* 426CD8 802A9308 0C05128B */ jal hud_element_clear_flags -/* 426CDC 802A930C 24050002 */ addiu $a1, $zero, 2 -.L802A9310: -/* 426CE0 802A9310 8E300008 */ lw $s0, 8($s1) -/* 426CE4 802A9314 240500FF */ addiu $a1, $zero, 0xff -/* 426CE8 802A9318 0C0513AC */ jal hud_element_set_alpha -/* 426CEC 802A931C 0200202D */ daddu $a0, $s0, $zero -/* 426CF0 802A9320 82220061 */ lb $v0, 0x61($s1) -/* 426CF4 802A9324 10400003 */ beqz $v0, .L802A9334 -/* 426CF8 802A9328 0200202D */ daddu $a0, $s0, $zero -/* 426CFC 802A932C 0C05128B */ jal hud_element_clear_flags -/* 426D00 802A9330 24050002 */ addiu $a1, $zero, 2 -.L802A9334: -/* 426D04 802A9334 24020001 */ addiu $v0, $zero, 1 -/* 426D08 802A9338 080AA606 */ j L802A9818_4271E8 -/* 426D0C 802A933C A622004C */ sh $v0, 0x4c($s1) -dlabel L802A9340_426D10 -/* 426D10 802A9340 0C093EB1 */ jal btl_set_popup_duration -/* 426D14 802A9344 24040063 */ addiu $a0, $zero, 0x63 -/* 426D18 802A9348 96220056 */ lhu $v0, 0x56($s1) -/* 426D1C 802A934C 24420014 */ addiu $v0, $v0, 0x14 -/* 426D20 802A9350 A6220056 */ sh $v0, 0x56($s1) -/* 426D24 802A9354 00021400 */ sll $v0, $v0, 0x10 -/* 426D28 802A9358 00021403 */ sra $v0, $v0, 0x10 -/* 426D2C 802A935C 28420033 */ slti $v0, $v0, 0x33 -/* 426D30 802A9360 14400002 */ bnez $v0, .L802A936C -/* 426D34 802A9364 24020032 */ addiu $v0, $zero, 0x32 -/* 426D38 802A9368 A6220056 */ sh $v0, 0x56($s1) -.L802A936C: -/* 426D3C 802A936C 8E240004 */ lw $a0, 4($s1) -/* 426D40 802A9370 86250056 */ lh $a1, 0x56($s1) -/* 426D44 802A9374 0C051261 */ jal hud_element_set_render_pos -/* 426D48 802A9378 86260058 */ lh $a2, 0x58($s1) -/* 426D4C 802A937C 8E240008 */ lw $a0, 8($s1) -/* 426D50 802A9380 86260058 */ lh $a2, 0x58($s1) -/* 426D54 802A9384 86250056 */ lh $a1, 0x56($s1) -/* 426D58 802A9388 0C051261 */ jal hud_element_set_render_pos -/* 426D5C 802A938C 24C6001C */ addiu $a2, $a2, 0x1c -/* 426D60 802A9390 080AA606 */ j L802A9818_4271E8 -/* 426D64 802A9394 00000000 */ nop -dlabel L802A9398_426D68 -/* 426D68 802A9398 0C093EB1 */ jal btl_set_popup_duration -/* 426D6C 802A939C 24040063 */ addiu $a0, $zero, 0x63 -/* 426D70 802A93A0 8622004E */ lh $v0, 0x4e($s1) -/* 426D74 802A93A4 9623004E */ lhu $v1, 0x4e($s1) -/* 426D78 802A93A8 10400003 */ beqz $v0, .L802A93B8 -/* 426D7C 802A93AC 2462FFFF */ addiu $v0, $v1, -1 -/* 426D80 802A93B0 080AA606 */ j L802A9818_4271E8 -/* 426D84 802A93B4 A622004E */ sh $v0, 0x4e($s1) -.L802A93B8: -/* 426D88 802A93B8 8E240004 */ lw $a0, 4($s1) -/* 426D8C 802A93BC 3C058011 */ lui $a1, %hi(HudScript_StickMashLeft) -/* 426D90 802A93C0 24A58F30 */ addiu $a1, $a1, %lo(HudScript_StickMashLeft) -/* 426D94 802A93C4 0C0511FF */ jal hud_element_set_script -/* 426D98 802A93C8 00000000 */ nop -/* 426D9C 802A93CC 3C048000 */ lui $a0, 0x8000 -/* 426DA0 802A93D0 34840041 */ ori $a0, $a0, 0x41 -/* 426DA4 802A93D4 0000282D */ daddu $a1, $zero, $zero -/* 426DA8 802A93D8 00A0302D */ daddu $a2, $a1, $zero -/* 426DAC 802A93DC 96220052 */ lhu $v0, 0x52($s1) -/* 426DB0 802A93E0 00A0382D */ daddu $a3, $a1, $zero -/* 426DB4 802A93E4 A6200044 */ sh $zero, 0x44($s1) -/* 426DB8 802A93E8 A2400085 */ sb $zero, 0x85($s2) -/* 426DBC 802A93EC A220005C */ sb $zero, 0x5c($s1) -/* 426DC0 802A93F0 0C0526AE */ jal sfx_play_sound_with_params -/* 426DC4 802A93F4 A6220054 */ sh $v0, 0x54($s1) -/* 426DC8 802A93F8 2402000B */ addiu $v0, $zero, 0xb -/* 426DCC 802A93FC A622004C */ sh $v0, 0x4c($s1) -dlabel L802A9400_426DD0 -/* 426DD0 802A9400 0C093EB1 */ jal btl_set_popup_duration -/* 426DD4 802A9404 24040063 */ addiu $a0, $zero, 0x63 -/* 426DD8 802A9408 86220068 */ lh $v0, 0x68($s1) -/* 426DDC 802A940C 1440005F */ bnez $v0, .L802A958C -/* 426DE0 802A9410 00000000 */ nop -/* 426DE4 802A9414 82220080 */ lb $v0, 0x80($s1) -/* 426DE8 802A9418 00021040 */ sll $v0, $v0, 1 -/* 426DEC 802A941C 02221021 */ addu $v0, $s1, $v0 -/* 426DF0 802A9420 84430074 */ lh $v1, 0x74($v0) -/* 426DF4 802A9424 86220044 */ lh $v0, 0x44($s1) -/* 426DF8 802A9428 14600002 */ bnez $v1, .L802A9434 -/* 426DFC 802A942C 0043001A */ div $zero, $v0, $v1 -/* 426E00 802A9430 0007000D */ break 7 -.L802A9434: -/* 426E04 802A9434 2401FFFF */ addiu $at, $zero, -1 -/* 426E08 802A9438 14610004 */ bne $v1, $at, .L802A944C -/* 426E0C 802A943C 3C018000 */ lui $at, 0x8000 -/* 426E10 802A9440 14410002 */ bne $v0, $at, .L802A944C -/* 426E14 802A9444 00000000 */ nop -/* 426E18 802A9448 0006000D */ break 6 -.L802A944C: -/* 426E1C 802A944C 00001012 */ mflo $v0 -/* 426E20 802A9450 3C036666 */ lui $v1, 0x6666 -/* 426E24 802A9454 34636667 */ ori $v1, $v1, 0x6667 -/* 426E28 802A9458 00430018 */ mult $v0, $v1 -/* 426E2C 802A945C 000217C3 */ sra $v0, $v0, 0x1f -/* 426E30 802A9460 00001810 */ mfhi $v1 -/* 426E34 802A9464 000318C3 */ sra $v1, $v1, 3 -/* 426E38 802A9468 00621823 */ subu $v1, $v1, $v0 -/* 426E3C 802A946C 00031880 */ sll $v1, $v1, 2 -/* 426E40 802A9470 96220044 */ lhu $v0, 0x44($s1) -/* 426E44 802A9474 3C01802B */ lui $at, %hi(D_802A9952_427322) -/* 426E48 802A9478 00230821 */ addu $at, $at, $v1 -/* 426E4C 802A947C 94239952 */ lhu $v1, %lo(D_802A9952_427322)($at) -/* 426E50 802A9480 00431023 */ subu $v0, $v0, $v1 -/* 426E54 802A9484 A6220044 */ sh $v0, 0x44($s1) -/* 426E58 802A9488 00021400 */ sll $v0, $v0, 0x10 -/* 426E5C 802A948C 04420001 */ bltzl $v0, .L802A9494 -/* 426E60 802A9490 A6200044 */ sh $zero, 0x44($s1) -.L802A9494: -/* 426E64 802A9494 86220068 */ lh $v0, 0x68($s1) -/* 426E68 802A9498 1440003C */ bnez $v0, .L802A958C -/* 426E6C 802A949C 3C040004 */ lui $a0, 4 -/* 426E70 802A94A0 8E420210 */ lw $v0, 0x210($s2) -/* 426E74 802A94A4 00441024 */ and $v0, $v0, $a0 -/* 426E78 802A94A8 10400005 */ beqz $v0, .L802A94C0 -/* 426E7C 802A94AC 24030001 */ addiu $v1, $zero, 1 -/* 426E80 802A94B0 8E420210 */ lw $v0, 0x210($s2) -/* 426E84 802A94B4 00441024 */ and $v0, $v0, $a0 -/* 426E88 802A94B8 1440001A */ bnez $v0, .L802A9524 -/* 426E8C 802A94BC A223005C */ sb $v1, 0x5c($s1) -.L802A94C0: -/* 426E90 802A94C0 8222005C */ lb $v0, 0x5c($s1) -/* 426E94 802A94C4 10400017 */ beqz $v0, .L802A9524 -/* 426E98 802A94C8 3C0451EB */ lui $a0, 0x51eb -/* 426E9C 802A94CC 86220050 */ lh $v0, 0x50($s1) -/* 426EA0 802A94D0 8E430434 */ lw $v1, 0x434($s2) -/* 426EA4 802A94D4 00021080 */ sll $v0, $v0, 2 -/* 426EA8 802A94D8 00431021 */ addu $v0, $v0, $v1 -/* 426EAC 802A94DC 8C430000 */ lw $v1, ($v0) -/* 426EB0 802A94E0 3484851F */ ori $a0, $a0, 0x851f -/* 426EB4 802A94E4 00031100 */ sll $v0, $v1, 4 -/* 426EB8 802A94E8 00431023 */ subu $v0, $v0, $v1 -/* 426EBC 802A94EC 000210C0 */ sll $v0, $v0, 3 -/* 426EC0 802A94F0 00431023 */ subu $v0, $v0, $v1 -/* 426EC4 802A94F4 00021080 */ sll $v0, $v0, 2 -/* 426EC8 802A94F8 00431023 */ subu $v0, $v0, $v1 -/* 426ECC 802A94FC 00021040 */ sll $v0, $v0, 1 -/* 426ED0 802A9500 00440018 */ mult $v0, $a0 -/* 426ED4 802A9504 A220005C */ sb $zero, 0x5c($s1) -/* 426ED8 802A9508 000217C3 */ sra $v0, $v0, 0x1f -/* 426EDC 802A950C 96230044 */ lhu $v1, 0x44($s1) -/* 426EE0 802A9510 00004810 */ mfhi $t1 -/* 426EE4 802A9514 00092143 */ sra $a0, $t1, 5 -/* 426EE8 802A9518 00822023 */ subu $a0, $a0, $v0 -/* 426EEC 802A951C 00641821 */ addu $v1, $v1, $a0 -/* 426EF0 802A9520 A6230044 */ sh $v1, 0x44($s1) -.L802A9524: -/* 426EF4 802A9524 8E420214 */ lw $v0, 0x214($s2) -/* 426EF8 802A9528 3C030008 */ lui $v1, 8 -/* 426EFC 802A952C 00431024 */ and $v0, $v0, $v1 -/* 426F00 802A9530 10400016 */ beqz $v0, .L802A958C -/* 426F04 802A9534 3C0451EB */ lui $a0, 0x51eb -/* 426F08 802A9538 86220050 */ lh $v0, 0x50($s1) -/* 426F0C 802A953C 8E430434 */ lw $v1, 0x434($s2) -/* 426F10 802A9540 00021080 */ sll $v0, $v0, 2 -/* 426F14 802A9544 00431021 */ addu $v0, $v0, $v1 -/* 426F18 802A9548 8C430000 */ lw $v1, ($v0) -/* 426F1C 802A954C 3484851F */ ori $a0, $a0, 0x851f -/* 426F20 802A9550 00031100 */ sll $v0, $v1, 4 -/* 426F24 802A9554 00431023 */ subu $v0, $v0, $v1 -/* 426F28 802A9558 000210C0 */ sll $v0, $v0, 3 -/* 426F2C 802A955C 00431023 */ subu $v0, $v0, $v1 -/* 426F30 802A9560 00021080 */ sll $v0, $v0, 2 -/* 426F34 802A9564 00431023 */ subu $v0, $v0, $v1 -/* 426F38 802A9568 00021040 */ sll $v0, $v0, 1 -/* 426F3C 802A956C 00440018 */ mult $v0, $a0 -/* 426F40 802A9570 000217C3 */ sra $v0, $v0, 0x1f -/* 426F44 802A9574 96230044 */ lhu $v1, 0x44($s1) -/* 426F48 802A9578 00004810 */ mfhi $t1 -/* 426F4C 802A957C 00092143 */ sra $a0, $t1, 5 -/* 426F50 802A9580 00822023 */ subu $a0, $a0, $v0 -/* 426F54 802A9584 00641823 */ subu $v1, $v1, $a0 -/* 426F58 802A9588 A6230044 */ sh $v1, 0x44($s1) -.L802A958C: -/* 426F5C 802A958C 86220044 */ lh $v0, 0x44($s1) -/* 426F60 802A9590 04420001 */ bltzl $v0, .L802A9598 -/* 426F64 802A9594 A6200044 */ sh $zero, 0x44($s1) -.L802A9598: -/* 426F68 802A9598 86220044 */ lh $v0, 0x44($s1) -/* 426F6C 802A959C 28422711 */ slti $v0, $v0, 0x2711 -/* 426F70 802A95A0 14400010 */ bnez $v0, .L802A95E4 -/* 426F74 802A95A4 3C0451EB */ lui $a0, 0x51eb -/* 426F78 802A95A8 8E30000C */ lw $s0, 0xc($s1) -/* 426F7C 802A95AC 86250056 */ lh $a1, 0x56($s1) -/* 426F80 802A95B0 86260058 */ lh $a2, 0x58($s1) -/* 426F84 802A95B4 24022710 */ addiu $v0, $zero, 0x2710 -/* 426F88 802A95B8 A6220044 */ sh $v0, 0x44($s1) -/* 426F8C 802A95BC 24020001 */ addiu $v0, $zero, 1 -/* 426F90 802A95C0 A6220068 */ sh $v0, 0x68($s1) -/* 426F94 802A95C4 0200202D */ daddu $a0, $s0, $zero -/* 426F98 802A95C8 24A50032 */ addiu $a1, $a1, 0x32 -/* 426F9C 802A95CC 0C051261 */ jal hud_element_set_render_pos -/* 426FA0 802A95D0 24C6001C */ addiu $a2, $a2, 0x1c -/* 426FA4 802A95D4 0200202D */ daddu $a0, $s0, $zero -/* 426FA8 802A95D8 0C05128B */ jal hud_element_clear_flags -/* 426FAC 802A95DC 24050002 */ addiu $a1, $zero, 2 -/* 426FB0 802A95E0 3C0451EB */ lui $a0, 0x51eb -.L802A95E4: -/* 426FB4 802A95E4 3484851F */ ori $a0, $a0, 0x851f -/* 426FB8 802A95E8 96230044 */ lhu $v1, 0x44($s1) -/* 426FBC 802A95EC 0000282D */ daddu $a1, $zero, $zero -/* 426FC0 802A95F0 00031C00 */ sll $v1, $v1, 0x10 -/* 426FC4 802A95F4 00031403 */ sra $v0, $v1, 0x10 -/* 426FC8 802A95F8 00440018 */ mult $v0, $a0 -/* 426FCC 802A95FC 00A0302D */ daddu $a2, $a1, $zero -/* 426FD0 802A9600 3C048000 */ lui $a0, 0x8000 -/* 426FD4 802A9604 34840041 */ ori $a0, $a0, 0x41 -/* 426FD8 802A9608 00031FC3 */ sra $v1, $v1, 0x1f -/* 426FDC 802A960C 00004810 */ mfhi $t1 -/* 426FE0 802A9610 00094143 */ sra $t0, $t1, 5 -/* 426FE4 802A9614 01034023 */ subu $t0, $t0, $v1 -/* 426FE8 802A9618 00081600 */ sll $v0, $t0, 0x18 -/* 426FEC 802A961C 00021603 */ sra $v0, $v0, 0x18 -/* 426FF0 802A9620 00023840 */ sll $a3, $v0, 1 -/* 426FF4 802A9624 00E23821 */ addu $a3, $a3, $v0 -/* 426FF8 802A9628 00073880 */ sll $a3, $a3, 2 -/* 426FFC 802A962C 0C0526F9 */ jal sfx_adjust_env_sound_params -/* 427000 802A9630 A2480084 */ sb $t0, 0x84($s2) -/* 427004 802A9634 8E620008 */ lw $v0, 8($s3) -/* 427008 802A9638 90430006 */ lbu $v1, 6($v0) -/* 42700C 802A963C 24020001 */ addiu $v0, $zero, 1 -/* 427010 802A9640 10620019 */ beq $v1, $v0, .L802A96A8 -/* 427014 802A9644 28620002 */ slti $v0, $v1, 2 -/* 427018 802A9648 10400005 */ beqz $v0, .L802A9660 -/* 42701C 802A964C 24020002 */ addiu $v0, $zero, 2 -/* 427020 802A9650 10600007 */ beqz $v1, .L802A9670 -/* 427024 802A9654 00000000 */ nop -/* 427028 802A9658 080AA5D1 */ j .L802A9744 -/* 42702C 802A965C 00000000 */ nop -.L802A9660: -/* 427030 802A9660 1062001F */ beq $v1, $v0, .L802A96E0 -/* 427034 802A9664 00000000 */ nop -/* 427038 802A9668 080AA5D1 */ j .L802A9744 -/* 42703C 802A966C 00000000 */ nop -.L802A9670: -/* 427040 802A9670 82420085 */ lb $v0, 0x85($s2) -/* 427044 802A9674 82430084 */ lb $v1, 0x84($s2) -/* 427048 802A9678 00021080 */ sll $v0, $v0, 2 -/* 42704C 802A967C 3C01802B */ lui $at, %hi(D_802A9964_427334) -/* 427050 802A9680 00220821 */ addu $at, $at, $v0 -/* 427054 802A9684 8C229964 */ lw $v0, %lo(D_802A9964_427334)($at) -/* 427058 802A9688 3C05802B */ lui $a1, %hi(D_802A9964_427334) -/* 42705C 802A968C 24A59964 */ addiu $a1, $a1, %lo(D_802A9964_427334) -/* 427060 802A9690 0062182A */ slt $v1, $v1, $v0 -/* 427064 802A9694 92420085 */ lbu $v0, 0x85($s2) -/* 427068 802A9698 1460001E */ bnez $v1, .L802A9714 -/* 42706C 802A969C 24420001 */ addiu $v0, $v0, 1 -/* 427070 802A96A0 080AA5C5 */ j .L802A9714 -/* 427074 802A96A4 A2420085 */ sb $v0, 0x85($s2) -.L802A96A8: -/* 427078 802A96A8 82420085 */ lb $v0, 0x85($s2) -/* 42707C 802A96AC 82430084 */ lb $v1, 0x84($s2) -/* 427080 802A96B0 00021080 */ sll $v0, $v0, 2 -/* 427084 802A96B4 3C01802B */ lui $at, %hi(D_802A9974_427344) -/* 427088 802A96B8 00220821 */ addu $at, $at, $v0 -/* 42708C 802A96BC 8C229974 */ lw $v0, %lo(D_802A9974_427344)($at) -/* 427090 802A96C0 3C05802B */ lui $a1, %hi(D_802A9974_427344) -/* 427094 802A96C4 24A59974 */ addiu $a1, $a1, %lo(D_802A9974_427344) -/* 427098 802A96C8 0062182A */ slt $v1, $v1, $v0 -/* 42709C 802A96CC 92420085 */ lbu $v0, 0x85($s2) -/* 4270A0 802A96D0 14600010 */ bnez $v1, .L802A9714 -/* 4270A4 802A96D4 24420001 */ addiu $v0, $v0, 1 -/* 4270A8 802A96D8 080AA5C5 */ j .L802A9714 -/* 4270AC 802A96DC A2420085 */ sb $v0, 0x85($s2) -.L802A96E0: -/* 4270B0 802A96E0 82420085 */ lb $v0, 0x85($s2) -/* 4270B4 802A96E4 82430084 */ lb $v1, 0x84($s2) -/* 4270B8 802A96E8 00021080 */ sll $v0, $v0, 2 -/* 4270BC 802A96EC 3C01802B */ lui $at, %hi(D_802A9988_427358) -/* 4270C0 802A96F0 00220821 */ addu $at, $at, $v0 -/* 4270C4 802A96F4 8C229988 */ lw $v0, %lo(D_802A9988_427358)($at) -/* 4270C8 802A96F8 3C05802B */ lui $a1, %hi(D_802A9988_427358) -/* 4270CC 802A96FC 24A59988 */ addiu $a1, $a1, %lo(D_802A9988_427358) -/* 4270D0 802A9700 0062182A */ slt $v1, $v1, $v0 -/* 4270D4 802A9704 92420085 */ lbu $v0, 0x85($s2) -/* 4270D8 802A9708 14600002 */ bnez $v1, .L802A9714 -/* 4270DC 802A970C 24420001 */ addiu $v0, $v0, 1 -/* 4270E0 802A9710 A2420085 */ sb $v0, 0x85($s2) -.L802A9714: -/* 4270E4 802A9714 82420085 */ lb $v0, 0x85($s2) -/* 4270E8 802A9718 92440085 */ lbu $a0, 0x85($s2) -/* 4270EC 802A971C 18400009 */ blez $v0, .L802A9744 -/* 4270F0 802A9720 2442FFFF */ addiu $v0, $v0, -1 -/* 4270F4 802A9724 00021080 */ sll $v0, $v0, 2 -/* 4270F8 802A9728 00451021 */ addu $v0, $v0, $a1 -/* 4270FC 802A972C 82430084 */ lb $v1, 0x84($s2) -/* 427100 802A9730 8C420000 */ lw $v0, ($v0) -/* 427104 802A9734 0062182A */ slt $v1, $v1, $v0 -/* 427108 802A9738 10600002 */ beqz $v1, .L802A9744 -/* 42710C 802A973C 2482FFFF */ addiu $v0, $a0, -1 -/* 427110 802A9740 A2420085 */ sb $v0, 0x85($s2) -.L802A9744: -/* 427114 802A9744 86220054 */ lh $v0, 0x54($s1) -/* 427118 802A9748 96230054 */ lhu $v1, 0x54($s1) -/* 42711C 802A974C 1440002E */ bnez $v0, .L802A9808 -/* 427120 802A9750 2462FFFF */ addiu $v0, $v1, -1 -/* 427124 802A9754 96220044 */ lhu $v0, 0x44($s1) -/* 427128 802A9758 00021C00 */ sll $v1, $v0, 0x10 -/* 42712C 802A975C 00032403 */ sra $a0, $v1, 0x10 -/* 427130 802A9760 14800003 */ bnez $a0, .L802A9770 -/* 427134 802A9764 3C0251EB */ lui $v0, 0x51eb -/* 427138 802A9768 080AA5E2 */ j .L802A9788 -/* 42713C 802A976C 2402FFFF */ addiu $v0, $zero, -1 -.L802A9770: -/* 427140 802A9770 3442851F */ ori $v0, $v0, 0x851f -/* 427144 802A9774 00820018 */ mult $a0, $v0 -/* 427148 802A9778 00031FC3 */ sra $v1, $v1, 0x1f -/* 42714C 802A977C 00004810 */ mfhi $t1 -/* 427150 802A9780 00091143 */ sra $v0, $t1, 5 -/* 427154 802A9784 00431023 */ subu $v0, $v0, $v1 -.L802A9788: -/* 427158 802A9788 A2420081 */ sb $v0, 0x81($s2) -/* 42715C 802A978C 82220080 */ lb $v0, 0x80($s1) -/* 427160 802A9790 2442FFFF */ addiu $v0, $v0, -1 -/* 427164 802A9794 00021040 */ sll $v0, $v0, 1 -/* 427168 802A9798 02221021 */ addu $v0, $s1, $v0 -/* 42716C 802A979C 84430074 */ lh $v1, 0x74($v0) -/* 427170 802A97A0 82420081 */ lb $v0, 0x81($s2) -/* 427174 802A97A4 0062102A */ slt $v0, $v1, $v0 -/* 427178 802A97A8 14400002 */ bnez $v0, .L802A97B4 -/* 42717C 802A97AC 24020001 */ addiu $v0, $zero, 1 -/* 427180 802A97B0 2402FFFE */ addiu $v0, $zero, -2 -.L802A97B4: -/* 427184 802A97B4 A2420086 */ sb $v0, 0x86($s2) -/* 427188 802A97B8 82430081 */ lb $v1, 0x81($s2) -/* 42718C 802A97BC 24020064 */ addiu $v0, $zero, 0x64 -/* 427190 802A97C0 14620004 */ bne $v1, $v0, .L802A97D4 -/* 427194 802A97C4 3C048000 */ lui $a0, 0x8000 -/* 427198 802A97C8 0C09A458 */ jal func_80269160 -/* 42719C 802A97CC 00000000 */ nop -/* 4271A0 802A97D0 3C048000 */ lui $a0, 0x8000 -.L802A97D4: -/* 4271A4 802A97D4 0C05271B */ jal sfx_stop_sound -/* 4271A8 802A97D8 34840041 */ ori $a0, $a0, 0x41 -/* 4271AC 802A97DC 0C093EB1 */ jal btl_set_popup_duration -/* 4271B0 802A97E0 0000202D */ daddu $a0, $zero, $zero -/* 4271B4 802A97E4 24020005 */ addiu $v0, $zero, 5 -/* 4271B8 802A97E8 A6220054 */ sh $v0, 0x54($s1) -/* 4271BC 802A97EC 2402000C */ addiu $v0, $zero, 0xc -/* 4271C0 802A97F0 080AA606 */ j L802A9818_4271E8 -/* 4271C4 802A97F4 A622004C */ sh $v0, 0x4c($s1) -dlabel L802A97F8_4271C8 -/* 4271C8 802A97F8 86220054 */ lh $v0, 0x54($s1) -/* 4271CC 802A97FC 96230054 */ lhu $v1, 0x54($s1) -/* 4271D0 802A9800 10400003 */ beqz $v0, .L802A9810 -/* 4271D4 802A9804 2462FFFF */ addiu $v0, $v1, -1 -.L802A9808: -/* 4271D8 802A9808 080AA606 */ j L802A9818_4271E8 -/* 4271DC 802A980C A6220054 */ sh $v0, 0x54($s1) -.L802A9810: -/* 4271E0 802A9810 0C09A327 */ jal func_80268C9C -/* 4271E4 802A9814 00000000 */ nop -dlabel L802A9818_4271E8 -/* 4271E8 802A9818 8FBF0020 */ lw $ra, 0x20($sp) -/* 4271EC 802A981C 8FB3001C */ lw $s3, 0x1c($sp) -/* 4271F0 802A9820 8FB20018 */ lw $s2, 0x18($sp) -/* 4271F4 802A9824 8FB10014 */ lw $s1, 0x14($sp) -/* 4271F8 802A9828 8FB00010 */ lw $s0, 0x10($sp) -/* 4271FC 802A982C 03E00008 */ jr $ra -/* 427200 802A9830 27BD0028 */ addiu $sp, $sp, 0x28 diff --git a/ver/us/asm/nonmatchings/battle/action_cmd/hammer/func_802A936C_42236C.s b/ver/us/asm/nonmatchings/battle/action_cmd/hammer/func_802A936C_42236C.s deleted file mode 100644 index 50024b3d9a..0000000000 --- a/ver/us/asm/nonmatchings/battle/action_cmd/hammer/func_802A936C_42236C.s +++ /dev/null @@ -1,451 +0,0 @@ -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches - -glabel func_802A936C_42236C -/* 42236C 802A936C 27BDFFD0 */ addiu $sp, $sp, -0x30 -/* 422370 802A9370 AFB10014 */ sw $s1, 0x14($sp) -/* 422374 802A9374 3C11802A */ lui $s1, %hi(gActionCommandStatus) -/* 422378 802A9378 2631FBE0 */ addiu $s1, $s1, %lo(gActionCommandStatus) -/* 42237C 802A937C AFBF001C */ sw $ra, 0x1c($sp) -/* 422380 802A9380 AFB20018 */ sw $s2, 0x18($sp) -/* 422384 802A9384 AFB00010 */ sw $s0, 0x10($sp) -/* 422388 802A9388 F7B60028 */ sdc1 $f22, 0x28($sp) -/* 42238C 802A938C F7B40020 */ sdc1 $f20, 0x20($sp) -/* 422390 802A9390 8623004C */ lh $v1, 0x4c($s1) -/* 422394 802A9394 3C12800E */ lui $s2, %hi(gBattleStatus) -/* 422398 802A9398 2652C070 */ addiu $s2, $s2, %lo(gBattleStatus) -/* 42239C 802A939C 2C62000D */ sltiu $v0, $v1, 0xd -/* 4223A0 802A93A0 10400184 */ beqz $v0, L802A99B4_4229B4 -/* 4223A4 802A93A4 00031080 */ sll $v0, $v1, 2 -/* 4223A8 802A93A8 3C01802B */ lui $at, %hi(jtbl_802A9A90_422A90) -/* 4223AC 802A93AC 00220821 */ addu $at, $at, $v0 -/* 4223B0 802A93B0 8C229A90 */ lw $v0, %lo(jtbl_802A9A90_422A90)($at) -/* 4223B4 802A93B4 00400008 */ jr $v0 -/* 4223B8 802A93B8 00000000 */ nop -dlabel L802A93BC_4223BC -/* 4223BC 802A93BC 0C093EB1 */ jal btl_set_popup_duration -/* 4223C0 802A93C0 24040063 */ addiu $a0, $zero, 0x63 -/* 4223C4 802A93C4 82220061 */ lb $v0, 0x61($s1) -/* 4223C8 802A93C8 8E300004 */ lw $s0, 4($s1) -/* 4223CC 802A93CC 10400003 */ beqz $v0, .L802A93DC -/* 4223D0 802A93D0 0200202D */ daddu $a0, $s0, $zero -/* 4223D4 802A93D4 0C05128B */ jal hud_element_clear_flags -/* 4223D8 802A93D8 24050002 */ addiu $a1, $zero, 2 -.L802A93DC: -/* 4223DC 802A93DC 0200202D */ daddu $a0, $s0, $zero -/* 4223E0 802A93E0 0C0513AC */ jal hud_element_set_alpha -/* 4223E4 802A93E4 240500FF */ addiu $a1, $zero, 0xff -/* 4223E8 802A93E8 82220061 */ lb $v0, 0x61($s1) -/* 4223EC 802A93EC 8E300008 */ lw $s0, 8($s1) -/* 4223F0 802A93F0 10400003 */ beqz $v0, .L802A9400 -/* 4223F4 802A93F4 0200202D */ daddu $a0, $s0, $zero -/* 4223F8 802A93F8 0C05128B */ jal hud_element_clear_flags -/* 4223FC 802A93FC 24050002 */ addiu $a1, $zero, 2 -.L802A9400: -/* 422400 802A9400 0200202D */ daddu $a0, $s0, $zero -/* 422404 802A9404 0C0513AC */ jal hud_element_set_alpha -/* 422408 802A9408 240500FF */ addiu $a1, $zero, 0xff -/* 42240C 802A940C 82220061 */ lb $v0, 0x61($s1) -/* 422410 802A9410 8E30000C */ lw $s0, 0xc($s1) -/* 422414 802A9414 10400003 */ beqz $v0, .L802A9424 -/* 422418 802A9418 0200202D */ daddu $a0, $s0, $zero -/* 42241C 802A941C 0C05128B */ jal hud_element_clear_flags -/* 422420 802A9420 24050002 */ addiu $a1, $zero, 2 -.L802A9424: -/* 422424 802A9424 0200202D */ daddu $a0, $s0, $zero -/* 422428 802A9428 0C0513AC */ jal hud_element_set_alpha -/* 42242C 802A942C 240500FF */ addiu $a1, $zero, 0xff -/* 422430 802A9430 82220061 */ lb $v0, 0x61($s1) -/* 422434 802A9434 8E300010 */ lw $s0, 0x10($s1) -/* 422438 802A9438 10400003 */ beqz $v0, .L802A9448 -/* 42243C 802A943C 0200202D */ daddu $a0, $s0, $zero -/* 422440 802A9440 0C05128B */ jal hud_element_clear_flags -/* 422444 802A9444 24050002 */ addiu $a1, $zero, 2 -.L802A9448: -/* 422448 802A9448 0200202D */ daddu $a0, $s0, $zero -/* 42244C 802A944C 0C0513AC */ jal hud_element_set_alpha -/* 422450 802A9450 240500FF */ addiu $a1, $zero, 0xff -/* 422454 802A9454 82220061 */ lb $v0, 0x61($s1) -/* 422458 802A9458 8E300014 */ lw $s0, 0x14($s1) -/* 42245C 802A945C 10400003 */ beqz $v0, .L802A946C -/* 422460 802A9460 0200202D */ daddu $a0, $s0, $zero -/* 422464 802A9464 0C05128B */ jal hud_element_clear_flags -/* 422468 802A9468 24050002 */ addiu $a1, $zero, 2 -.L802A946C: -/* 42246C 802A946C 0200202D */ daddu $a0, $s0, $zero -/* 422470 802A9470 0C0513AC */ jal hud_element_set_alpha -/* 422474 802A9474 240500FF */ addiu $a1, $zero, 0xff -/* 422478 802A9478 82220061 */ lb $v0, 0x61($s1) -/* 42247C 802A947C 8E300018 */ lw $s0, 0x18($s1) -/* 422480 802A9480 10400003 */ beqz $v0, .L802A9490 -/* 422484 802A9484 0200202D */ daddu $a0, $s0, $zero -/* 422488 802A9488 0C05128B */ jal hud_element_clear_flags -/* 42248C 802A948C 24050002 */ addiu $a1, $zero, 2 -.L802A9490: -/* 422490 802A9490 0200202D */ daddu $a0, $s0, $zero -/* 422494 802A9494 0C0513AC */ jal hud_element_set_alpha -/* 422498 802A9498 240500FF */ addiu $a1, $zero, 0xff -/* 42249C 802A949C 24020001 */ addiu $v0, $zero, 1 -/* 4224A0 802A94A0 080AA66D */ j L802A99B4_4229B4 -/* 4224A4 802A94A4 A622004C */ sh $v0, 0x4c($s1) -dlabel L802A94A8_4224A8 -/* 4224A8 802A94A8 0C093EB1 */ jal btl_set_popup_duration -/* 4224AC 802A94AC 24040063 */ addiu $a0, $zero, 0x63 -/* 4224B0 802A94B0 96220056 */ lhu $v0, 0x56($s1) -/* 4224B4 802A94B4 24420014 */ addiu $v0, $v0, 0x14 -/* 4224B8 802A94B8 A6220056 */ sh $v0, 0x56($s1) -/* 4224BC 802A94BC 00021400 */ sll $v0, $v0, 0x10 -/* 4224C0 802A94C0 00021403 */ sra $v0, $v0, 0x10 -/* 4224C4 802A94C4 28420033 */ slti $v0, $v0, 0x33 -/* 4224C8 802A94C8 14400002 */ bnez $v0, .L802A94D4 -/* 4224CC 802A94CC 24020032 */ addiu $v0, $zero, 0x32 -/* 4224D0 802A94D0 A6220056 */ sh $v0, 0x56($s1) -.L802A94D4: -/* 4224D4 802A94D4 8E240004 */ lw $a0, 4($s1) -/* 4224D8 802A94D8 86250056 */ lh $a1, 0x56($s1) -/* 4224DC 802A94DC 0C051261 */ jal hud_element_set_render_pos -/* 4224E0 802A94E0 86260058 */ lh $a2, 0x58($s1) -/* 4224E4 802A94E4 8E240008 */ lw $a0, 8($s1) -/* 4224E8 802A94E8 86250056 */ lh $a1, 0x56($s1) -/* 4224EC 802A94EC 86260058 */ lh $a2, 0x58($s1) -/* 4224F0 802A94F0 24A50015 */ addiu $a1, $a1, 0x15 -/* 4224F4 802A94F4 0C051261 */ jal hud_element_set_render_pos -/* 4224F8 802A94F8 24C6FFFD */ addiu $a2, $a2, -3 -/* 4224FC 802A94FC 8E24000C */ lw $a0, 0xc($s1) -/* 422500 802A9500 86250056 */ lh $a1, 0x56($s1) -/* 422504 802A9504 86260058 */ lh $a2, 0x58($s1) -/* 422508 802A9508 24A50005 */ addiu $a1, $a1, 5 -/* 42250C 802A950C 0C051261 */ jal hud_element_set_render_pos -/* 422510 802A9510 24C60001 */ addiu $a2, $a2, 1 -/* 422514 802A9514 8E240010 */ lw $a0, 0x10($s1) -/* 422518 802A9518 86250056 */ lh $a1, 0x56($s1) -/* 42251C 802A951C 86260058 */ lh $a2, 0x58($s1) -/* 422520 802A9520 24A5FFF9 */ addiu $a1, $a1, -7 -/* 422524 802A9524 0C051261 */ jal hud_element_set_render_pos -/* 422528 802A9528 24C60001 */ addiu $a2, $a2, 1 -/* 42252C 802A952C 8E240014 */ lw $a0, 0x14($s1) -/* 422530 802A9530 86250056 */ lh $a1, 0x56($s1) -/* 422534 802A9534 86260058 */ lh $a2, 0x58($s1) -/* 422538 802A9538 24A5FFED */ addiu $a1, $a1, -0x13 -/* 42253C 802A953C 0C051261 */ jal hud_element_set_render_pos -/* 422540 802A9540 24C60001 */ addiu $a2, $a2, 1 -/* 422544 802A9544 8E240018 */ lw $a0, 0x18($s1) -/* 422548 802A9548 86260058 */ lh $a2, 0x58($s1) -/* 42254C 802A954C 86250056 */ lh $a1, 0x56($s1) -/* 422550 802A9550 0C051261 */ jal hud_element_set_render_pos -/* 422554 802A9554 24C6FFE9 */ addiu $a2, $a2, -0x17 -/* 422558 802A9558 8222005E */ lb $v0, 0x5e($s1) -/* 42255C 802A955C 10400115 */ beqz $v0, L802A99B4_4229B4 -/* 422560 802A9560 00000000 */ nop -/* 422564 802A9564 8E30001C */ lw $s0, 0x1c($s1) -/* 422568 802A9568 86260058 */ lh $a2, 0x58($s1) -/* 42256C 802A956C 86250056 */ lh $a1, 0x56($s1) -/* 422570 802A9570 0200202D */ daddu $a0, $s0, $zero -/* 422574 802A9574 0C051261 */ jal hud_element_set_render_pos -/* 422578 802A9578 24A50032 */ addiu $a1, $a1, 0x32 -/* 42257C 802A957C 82220061 */ lb $v0, 0x61($s1) -/* 422580 802A9580 1040010C */ beqz $v0, L802A99B4_4229B4 -/* 422584 802A9584 0200202D */ daddu $a0, $s0, $zero -/* 422588 802A9588 0C05128B */ jal hud_element_clear_flags -/* 42258C 802A958C 24050002 */ addiu $a1, $zero, 2 -/* 422590 802A9590 080AA66D */ j L802A99B4_4229B4 -/* 422594 802A9594 00000000 */ nop -dlabel L802A9598_422598 -/* 422598 802A9598 0C093EB1 */ jal btl_set_popup_duration -/* 42259C 802A959C 24040063 */ addiu $a0, $zero, 0x63 -/* 4225A0 802A95A0 8622004E */ lh $v0, 0x4e($s1) -/* 4225A4 802A95A4 2842000F */ slti $v0, $v0, 0xf -/* 4225A8 802A95A8 10400013 */ beqz $v0, .L802A95F8 -/* 4225AC 802A95AC 00000000 */ nop -/* 4225B0 802A95B0 8E240004 */ lw $a0, 4($s1) -/* 4225B4 802A95B4 0C0513AC */ jal hud_element_set_alpha -/* 4225B8 802A95B8 240500FF */ addiu $a1, $zero, 0xff -/* 4225BC 802A95BC 8E240008 */ lw $a0, 8($s1) -/* 4225C0 802A95C0 0C0513AC */ jal hud_element_set_alpha -/* 4225C4 802A95C4 240500FF */ addiu $a1, $zero, 0xff -/* 4225C8 802A95C8 8E24000C */ lw $a0, 0xc($s1) -/* 4225CC 802A95CC 0C0513AC */ jal hud_element_set_alpha -/* 4225D0 802A95D0 240500FF */ addiu $a1, $zero, 0xff -/* 4225D4 802A95D4 8E240010 */ lw $a0, 0x10($s1) -/* 4225D8 802A95D8 0C0513AC */ jal hud_element_set_alpha -/* 4225DC 802A95DC 240500FF */ addiu $a1, $zero, 0xff -/* 4225E0 802A95E0 8E240014 */ lw $a0, 0x14($s1) -/* 4225E4 802A95E4 0C0513AC */ jal hud_element_set_alpha -/* 4225E8 802A95E8 240500FF */ addiu $a1, $zero, 0xff -/* 4225EC 802A95EC 8E240018 */ lw $a0, 0x18($s1) -/* 4225F0 802A95F0 0C0513AC */ jal hud_element_set_alpha -/* 4225F4 802A95F4 240500FF */ addiu $a1, $zero, 0xff -.L802A95F8: -/* 4225F8 802A95F8 8622004E */ lh $v0, 0x4e($s1) -/* 4225FC 802A95FC 9623004E */ lhu $v1, 0x4e($s1) -/* 422600 802A9600 10400003 */ beqz $v0, .L802A9610 -/* 422604 802A9604 2462FFFF */ addiu $v0, $v1, -1 -/* 422608 802A9608 080AA66D */ j L802A99B4_4229B4 -/* 42260C 802A960C A622004E */ sh $v0, 0x4e($s1) -.L802A9610: -/* 422610 802A9610 A6200054 */ sh $zero, 0x54($s1) -/* 422614 802A9614 8E420210 */ lw $v0, 0x210($s2) -/* 422618 802A9618 3C030004 */ lui $v1, 4 -/* 42261C 802A961C 00431024 */ and $v0, $v0, $v1 -/* 422620 802A9620 14400007 */ bnez $v0, .L802A9640 -/* 422624 802A9624 2402000B */ addiu $v0, $zero, 0xb -/* 422628 802A9628 82420083 */ lb $v0, 0x83($s2) -/* 42262C 802A962C 28420002 */ slti $v0, $v0, 2 -/* 422630 802A9630 10400002 */ beqz $v0, .L802A963C -/* 422634 802A9634 24020001 */ addiu $v0, $zero, 1 -/* 422638 802A9638 A222005F */ sb $v0, 0x5f($s1) -.L802A963C: -/* 42263C 802A963C 2402000B */ addiu $v0, $zero, 0xb -.L802A9640: -/* 422640 802A9640 A622004C */ sh $v0, 0x4c($s1) -dlabel L802A9644_422644 -/* 422644 802A9644 0C093EB1 */ jal btl_set_popup_duration -/* 422648 802A9648 24040063 */ addiu $a0, $zero, 0x63 -/* 42264C 802A964C 82420083 */ lb $v0, 0x83($s2) -/* 422650 802A9650 044000D8 */ bltz $v0, L802A99B4_4229B4 -/* 422654 802A9654 3C045555 */ lui $a0, 0x5555 -/* 422658 802A9658 34845556 */ ori $a0, $a0, 0x5556 -/* 42265C 802A965C 86220050 */ lh $v0, 0x50($s1) -/* 422660 802A9660 8E430434 */ lw $v1, 0x434($s2) -/* 422664 802A9664 00021080 */ sll $v0, $v0, 2 -/* 422668 802A9668 00431021 */ addu $v0, $v0, $v1 -/* 42266C 802A966C 8C500000 */ lw $s0, ($v0) -/* 422670 802A9670 86220052 */ lh $v0, 0x52($s1) -/* 422674 802A9674 26030002 */ addiu $v1, $s0, 2 -/* 422678 802A9678 00431023 */ subu $v0, $v0, $v1 -/* 42267C 802A967C 00440018 */ mult $v0, $a0 -/* 422680 802A9680 86230054 */ lh $v1, 0x54($s1) -/* 422684 802A9684 000217C3 */ sra $v0, $v0, 0x1f -/* 422688 802A9688 44831000 */ mtc1 $v1, $f2 -/* 42268C 802A968C 00000000 */ nop -/* 422690 802A9690 468010A0 */ cvt.s.w $f2, $f2 -/* 422694 802A9694 00004010 */ mfhi $t0 -/* 422698 802A9698 01021023 */ subu $v0, $t0, $v0 -/* 42269C 802A969C 4482A000 */ mtc1 $v0, $f20 -/* 4226A0 802A96A0 00000000 */ nop -/* 4226A4 802A96A4 4680A520 */ cvt.s.w $f20, $f20 -/* 4226A8 802A96A8 4614103C */ c.lt.s $f2, $f20 -/* 4226AC 802A96AC 00000000 */ nop -/* 4226B0 802A96B0 4502000B */ bc1fl .L802A96E0 -/* 4226B4 802A96B4 4614A580 */ add.s $f22, $f20, $f20 -/* 4226B8 802A96B8 8E240014 */ lw $a0, 0x14($s1) -/* 4226BC 802A96BC 3C058029 */ lui $a1, %hi(HudScript_TimingCharge3) -/* 4226C0 802A96C0 24A528CC */ addiu $a1, $a1, %lo(HudScript_TimingCharge3) -/* 4226C4 802A96C4 0C0511FF */ jal hud_element_set_script -/* 4226C8 802A96C8 00000000 */ nop -/* 4226CC 802A96CC 86220054 */ lh $v0, 0x54($s1) -/* 4226D0 802A96D0 14400031 */ bnez $v0, .L802A9798 -/* 4226D4 802A96D4 A2400084 */ sb $zero, 0x84($s2) -/* 4226D8 802A96D8 080AA5E1 */ j .L802A9784 -/* 4226DC 802A96DC 00000000 */ nop -.L802A96E0: -/* 4226E0 802A96E0 4616103C */ c.lt.s $f2, $f22 -/* 4226E4 802A96E4 00000000 */ nop -/* 4226E8 802A96E8 4500000E */ bc1f .L802A9724 -/* 4226EC 802A96EC 00000000 */ nop -/* 4226F0 802A96F0 8E240010 */ lw $a0, 0x10($s1) -/* 4226F4 802A96F4 3C058029 */ lui $a1, %hi(HudScript_TimingCharge2) -/* 4226F8 802A96F8 24A52874 */ addiu $a1, $a1, %lo(HudScript_TimingCharge2) -/* 4226FC 802A96FC 0C0511FF */ jal hud_element_set_script -/* 422700 802A9700 00000000 */ nop -/* 422704 802A9704 86220054 */ lh $v0, 0x54($s1) -/* 422708 802A9708 24030001 */ addiu $v1, $zero, 1 -/* 42270C 802A970C 44820000 */ mtc1 $v0, $f0 -/* 422710 802A9710 00000000 */ nop -/* 422714 802A9714 46800020 */ cvt.s.w $f0, $f0 -/* 422718 802A9718 46140032 */ c.eq.s $f0, $f20 -/* 42271C 802A971C 080AA5DF */ j .L802A977C -/* 422720 802A9720 A2430084 */ sb $v1, 0x84($s2) -.L802A9724: -/* 422724 802A9724 3C014040 */ lui $at, 0x4040 -/* 422728 802A9728 44810000 */ mtc1 $at, $f0 -/* 42272C 802A972C 00000000 */ nop -/* 422730 802A9730 4600A002 */ mul.s $f0, $f20, $f0 -/* 422734 802A9734 00000000 */ nop -/* 422738 802A9738 4600103C */ c.lt.s $f2, $f0 -/* 42273C 802A973C 00000000 */ nop -/* 422740 802A9740 45000016 */ bc1f .L802A979C -/* 422744 802A9744 00101027 */ nor $v0, $zero, $s0 -/* 422748 802A9748 8E24000C */ lw $a0, 0xc($s1) -/* 42274C 802A974C 3C058029 */ lui $a1, %hi(HudScript_TimingCharge1) -/* 422750 802A9750 24A5281C */ addiu $a1, $a1, %lo(HudScript_TimingCharge1) -/* 422754 802A9754 0C0511FF */ jal hud_element_set_script -/* 422758 802A9758 00000000 */ nop -/* 42275C 802A975C 86220054 */ lh $v0, 0x54($s1) -/* 422760 802A9760 24030002 */ addiu $v1, $zero, 2 -/* 422764 802A9764 A2430084 */ sb $v1, 0x84($s2) -/* 422768 802A9768 44820000 */ mtc1 $v0, $f0 -/* 42276C 802A976C 00000000 */ nop -/* 422770 802A9770 46800020 */ cvt.s.w $f0, $f0 -/* 422774 802A9774 46160032 */ c.eq.s $f0, $f22 -/* 422778 802A9778 00000000 */ nop -.L802A977C: -/* 42277C 802A977C 45000007 */ bc1f .L802A979C -/* 422780 802A9780 00101027 */ nor $v0, $zero, $s0 -.L802A9784: -/* 422784 802A9784 82220062 */ lb $v0, 0x62($s1) -/* 422788 802A9788 10400004 */ beqz $v0, .L802A979C -/* 42278C 802A978C 00101027 */ nor $v0, $zero, $s0 -/* 422790 802A9790 0C05272D */ jal sfx_play_sound -/* 422794 802A9794 24040233 */ addiu $a0, $zero, 0x233 -.L802A9798: -/* 422798 802A9798 00101027 */ nor $v0, $zero, $s0 -.L802A979C: -/* 42279C 802A979C 86230052 */ lh $v1, 0x52($s1) -/* 4227A0 802A97A0 86240054 */ lh $a0, 0x54($s1) -/* 4227A4 802A97A4 00431021 */ addu $v0, $v0, $v1 -/* 4227A8 802A97A8 14820019 */ bne $a0, $v0, .L802A9810 -/* 4227AC 802A97AC 24020003 */ addiu $v0, $zero, 3 -/* 4227B0 802A97B0 3C058029 */ lui $a1, %hi(HudScript_TimingReady) -/* 4227B4 802A97B4 24A52788 */ addiu $a1, $a1, %lo(HudScript_TimingReady) -/* 4227B8 802A97B8 8E240008 */ lw $a0, 8($s1) -/* 4227BC 802A97BC 0C0511FF */ jal hud_element_set_script -/* 4227C0 802A97C0 A2420084 */ sb $v0, 0x84($s2) -/* 4227C4 802A97C4 8E240018 */ lw $a0, 0x18($s1) -/* 4227C8 802A97C8 3C058011 */ lui $a1, %hi(HudScript_StickTapNeutral) -/* 4227CC 802A97CC 24A58FF0 */ addiu $a1, $a1, %lo(HudScript_StickTapNeutral) -/* 4227D0 802A97D0 0C0511FF */ jal hud_element_set_script -/* 4227D4 802A97D4 00000000 */ nop -/* 4227D8 802A97D8 82220062 */ lb $v0, 0x62($s1) -/* 4227DC 802A97DC 10400003 */ beqz $v0, .L802A97EC -/* 4227E0 802A97E0 00000000 */ nop -/* 4227E4 802A97E4 0C05272D */ jal sfx_play_sound -/* 4227E8 802A97E8 24040234 */ addiu $a0, $zero, 0x234 -.L802A97EC: -/* 4227EC 802A97EC 8222005E */ lb $v0, 0x5e($s1) -/* 4227F0 802A97F0 10400007 */ beqz $v0, .L802A9810 -/* 4227F4 802A97F4 24030002 */ addiu $v1, $zero, 2 -/* 4227F8 802A97F8 10430005 */ beq $v0, $v1, .L802A9810 -/* 4227FC 802A97FC 00000000 */ nop -/* 422800 802A9800 96220052 */ lhu $v0, 0x52($s1) -/* 422804 802A9804 A223005E */ sb $v1, 0x5e($s1) -/* 422808 802A9808 2442FFFC */ addiu $v0, $v0, -4 -/* 42280C 802A980C A6220054 */ sh $v0, 0x54($s1) -.L802A9810: -/* 422810 802A9810 86220050 */ lh $v0, 0x50($s1) -/* 422814 802A9814 8E430434 */ lw $v1, 0x434($s2) -/* 422818 802A9818 86240054 */ lh $a0, 0x54($s1) -/* 42281C 802A981C 00021080 */ sll $v0, $v0, 2 -/* 422820 802A9820 00431021 */ addu $v0, $v0, $v1 -/* 422824 802A9824 86230052 */ lh $v1, 0x52($s1) -/* 422828 802A9828 8C420000 */ lw $v0, ($v0) -/* 42282C 802A982C 00641823 */ subu $v1, $v1, $a0 -/* 422830 802A9830 00431023 */ subu $v0, $v0, $v1 -/* 422834 802A9834 24500003 */ addiu $s0, $v0, 3 -/* 422838 802A9838 06020001 */ bltzl $s0, .L802A9840 -/* 42283C 802A983C 0000802D */ daddu $s0, $zero, $zero -.L802A9840: -/* 422840 802A9840 8E420210 */ lw $v0, 0x210($s2) -/* 422844 802A9844 3C030004 */ lui $v1, 4 -/* 422848 802A9848 00431024 */ and $v0, $v0, $v1 -/* 42284C 802A984C 1440000D */ bnez $v0, .L802A9884 -/* 422850 802A9850 00000000 */ nop -/* 422854 802A9854 1600000B */ bnez $s0, .L802A9884 -/* 422858 802A9858 00000000 */ nop -/* 42285C 802A985C 8222005E */ lb $v0, 0x5e($s1) -/* 422860 802A9860 14400008 */ bnez $v0, .L802A9884 -/* 422864 802A9864 00000000 */ nop -/* 422868 802A9868 82420083 */ lb $v0, 0x83($s2) -/* 42286C 802A986C 28420002 */ slti $v0, $v0, 2 -/* 422870 802A9870 10400004 */ beqz $v0, .L802A9884 -/* 422874 802A9874 2402FFFF */ addiu $v0, $zero, -1 -/* 422878 802A9878 A2420081 */ sb $v0, 0x81($s2) -/* 42287C 802A987C 080AA66B */ j .L802A99AC -/* 422880 802A9880 A2420086 */ sb $v0, 0x86($s2) -.L802A9884: -/* 422884 802A9884 82430431 */ lb $v1, 0x431($s2) -/* 422888 802A9888 00701823 */ subu $v1, $v1, $s0 -/* 42288C 802A988C 04620001 */ bltzl $v1, .L802A9894 -/* 422890 802A9890 24630040 */ addiu $v1, $v1, 0x40 -.L802A9894: -/* 422894 802A9894 82420081 */ lb $v0, 0x81($s2) -/* 422898 802A9898 1440001C */ bnez $v0, .L802A990C -/* 42289C 802A989C 00000000 */ nop -/* 4228A0 802A98A0 1A00001A */ blez $s0, .L802A990C -/* 4228A4 802A98A4 0000202D */ daddu $a0, $zero, $zero -/* 4228A8 802A98A8 3C070004 */ lui $a3, 4 -/* 4228AC 802A98AC 24060001 */ addiu $a2, $zero, 1 -/* 4228B0 802A98B0 3C05800E */ lui $a1, %hi(gBattleStatus) -/* 4228B4 802A98B4 24A5C070 */ addiu $a1, $a1, %lo(gBattleStatus) -.L802A98B8: -/* 4228B8 802A98B8 28620040 */ slti $v0, $v1, 0x40 -/* 4228BC 802A98BC 50400001 */ beql $v0, $zero, .L802A98C4 -/* 4228C0 802A98C0 2463FFC0 */ addiu $v1, $v1, -0x40 -.L802A98C4: -/* 4228C4 802A98C4 00031080 */ sll $v0, $v1, 2 -/* 4228C8 802A98C8 02421021 */ addu $v0, $s2, $v0 -/* 4228CC 802A98CC 8C420230 */ lw $v0, 0x230($v0) -/* 4228D0 802A98D0 00471024 */ and $v0, $v0, $a3 -/* 4228D4 802A98D4 10400004 */ beqz $v0, .L802A98E8 -/* 4228D8 802A98D8 00000000 */ nop -/* 4228DC 802A98DC 8222005E */ lb $v0, 0x5e($s1) -/* 4228E0 802A98E0 50400007 */ beql $v0, $zero, .L802A9900 -/* 4228E4 802A98E4 24840001 */ addiu $a0, $a0, 1 -.L802A98E8: -/* 4228E8 802A98E8 8CA20000 */ lw $v0, ($a1) -/* 4228EC 802A98EC A2460081 */ sb $a2, 0x81($s2) -/* 4228F0 802A98F0 A2460086 */ sb $a2, 0x86($s2) -/* 4228F4 802A98F4 34422000 */ ori $v0, $v0, 0x2000 -/* 4228F8 802A98F8 ACA20000 */ sw $v0, ($a1) -/* 4228FC 802A98FC 24840001 */ addiu $a0, $a0, 1 -.L802A9900: -/* 422900 802A9900 0090102A */ slt $v0, $a0, $s0 -/* 422904 802A9904 1440FFEC */ bnez $v0, .L802A98B8 -/* 422908 802A9908 24630001 */ addiu $v1, $v1, 1 -.L802A990C: -/* 42290C 802A990C 82420083 */ lb $v0, 0x83($s2) -/* 422910 802A9910 28420002 */ slti $v0, $v0, 2 -/* 422914 802A9914 14400005 */ bnez $v0, .L802A992C -/* 422918 802A9918 00000000 */ nop -/* 42291C 802A991C 86230054 */ lh $v1, 0x54($s1) -/* 422920 802A9920 86220052 */ lh $v0, 0x52($s1) -/* 422924 802A9924 10620023 */ beq $v1, $v0, L802A99B4_4229B4 -/* 422928 802A9928 00000000 */ nop -.L802A992C: -/* 42292C 802A992C 96220054 */ lhu $v0, 0x54($s1) -/* 422930 802A9930 86230052 */ lh $v1, 0x52($s1) -/* 422934 802A9934 24420001 */ addiu $v0, $v0, 1 -/* 422938 802A9938 A6220054 */ sh $v0, 0x54($s1) -/* 42293C 802A993C 00021400 */ sll $v0, $v0, 0x10 -/* 422940 802A9940 00021403 */ sra $v0, $v0, 0x10 -/* 422944 802A9944 0062182A */ slt $v1, $v1, $v0 -/* 422948 802A9948 1060001A */ beqz $v1, L802A99B4_4229B4 -/* 42294C 802A994C 00000000 */ nop -/* 422950 802A9950 82420081 */ lb $v0, 0x81($s2) -/* 422954 802A9954 14400002 */ bnez $v0, .L802A9960 -/* 422958 802A9958 2402FFFF */ addiu $v0, $zero, -1 -/* 42295C 802A995C A2420081 */ sb $v0, 0x81($s2) -.L802A9960: -/* 422960 802A9960 82430081 */ lb $v1, 0x81($s2) -/* 422964 802A9964 24020001 */ addiu $v0, $zero, 1 -/* 422968 802A9968 14620003 */ bne $v1, $v0, .L802A9978 -/* 42296C 802A996C 00000000 */ nop -/* 422970 802A9970 0C09A458 */ jal func_80269160 -/* 422974 802A9974 00000000 */ nop -.L802A9978: -/* 422978 802A9978 0C093EB1 */ jal btl_set_popup_duration -/* 42297C 802A997C 0000202D */ daddu $a0, $zero, $zero -/* 422980 802A9980 24020005 */ addiu $v0, $zero, 5 -/* 422984 802A9984 A6220054 */ sh $v0, 0x54($s1) -/* 422988 802A9988 2402000C */ addiu $v0, $zero, 0xc -/* 42298C 802A998C 080AA66D */ j L802A99B4_4229B4 -/* 422990 802A9990 A622004C */ sh $v0, 0x4c($s1) -dlabel L802A9994_422994 -/* 422994 802A9994 86220054 */ lh $v0, 0x54($s1) -/* 422998 802A9998 96230054 */ lhu $v1, 0x54($s1) -/* 42299C 802A999C 10400003 */ beqz $v0, .L802A99AC -/* 4229A0 802A99A0 2462FFFF */ addiu $v0, $v1, -1 -/* 4229A4 802A99A4 080AA66D */ j L802A99B4_4229B4 -/* 4229A8 802A99A8 A6220054 */ sh $v0, 0x54($s1) -.L802A99AC: -/* 4229AC 802A99AC 0C09A327 */ jal func_80268C9C -/* 4229B0 802A99B0 00000000 */ nop -dlabel L802A99B4_4229B4 -/* 4229B4 802A99B4 8FBF001C */ lw $ra, 0x1c($sp) -/* 4229B8 802A99B8 8FB20018 */ lw $s2, 0x18($sp) -/* 4229BC 802A99BC 8FB10014 */ lw $s1, 0x14($sp) -/* 4229C0 802A99C0 8FB00010 */ lw $s0, 0x10($sp) -/* 4229C4 802A99C4 D7B60028 */ ldc1 $f22, 0x28($sp) -/* 4229C8 802A99C8 D7B40020 */ ldc1 $f20, 0x20($sp) -/* 4229CC 802A99CC 03E00008 */ jr $ra -/* 4229D0 802A99D0 27BD0030 */ addiu $sp, $sp, 0x30 diff --git a/ver/us/asm/nonmatchings/battle/action_cmd/hurricane/func_802A92A0_42F980.s b/ver/us/asm/nonmatchings/battle/action_cmd/hurricane/func_802A92A0_42F980.s deleted file mode 100644 index 60db7f34de..0000000000 --- a/ver/us/asm/nonmatchings/battle/action_cmd/hurricane/func_802A92A0_42F980.s +++ /dev/null @@ -1,363 +0,0 @@ -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches - -glabel func_802A92A0_42F980 -/* 42F980 802A92A0 27BDFFE0 */ addiu $sp, $sp, -0x20 -/* 42F984 802A92A4 AFB10014 */ sw $s1, 0x14($sp) -/* 42F988 802A92A8 3C11802A */ lui $s1, %hi(gActionCommandStatus) -/* 42F98C 802A92AC 2631FBE0 */ addiu $s1, $s1, %lo(gActionCommandStatus) -/* 42F990 802A92B0 AFBF001C */ sw $ra, 0x1c($sp) -/* 42F994 802A92B4 AFB20018 */ sw $s2, 0x18($sp) -/* 42F998 802A92B8 AFB00010 */ sw $s0, 0x10($sp) -/* 42F99C 802A92BC 8623004C */ lh $v1, 0x4c($s1) -/* 42F9A0 802A92C0 3C12800E */ lui $s2, %hi(gBattleStatus) -/* 42F9A4 802A92C4 2652C070 */ addiu $s2, $s2, %lo(gBattleStatus) -/* 42F9A8 802A92C8 2C62000D */ sltiu $v0, $v1, 0xd -/* 42F9AC 802A92CC 10400131 */ beqz $v0, L802A9794_42FE74 -/* 42F9B0 802A92D0 00031080 */ sll $v0, $v1, 2 -/* 42F9B4 802A92D4 3C01802B */ lui $at, %hi(jtbl_802A9900_42FFE0) -/* 42F9B8 802A92D8 00220821 */ addu $at, $at, $v0 -/* 42F9BC 802A92DC 8C229900 */ lw $v0, %lo(jtbl_802A9900_42FFE0)($at) -/* 42F9C0 802A92E0 00400008 */ jr $v0 -/* 42F9C4 802A92E4 00000000 */ nop -dlabel L802A92E8_42F9C8 -/* 42F9C8 802A92E8 0C093EB1 */ jal btl_set_popup_duration -/* 42F9CC 802A92EC 24040063 */ addiu $a0, $zero, 0x63 -/* 42F9D0 802A92F0 82220061 */ lb $v0, 0x61($s1) -/* 42F9D4 802A92F4 8E300004 */ lw $s0, 4($s1) -/* 42F9D8 802A92F8 10400003 */ beqz $v0, .L802A9308 -/* 42F9DC 802A92FC 0200202D */ daddu $a0, $s0, $zero -/* 42F9E0 802A9300 0C05128B */ jal hud_element_clear_flags -/* 42F9E4 802A9304 24050002 */ addiu $a1, $zero, 2 -.L802A9308: -/* 42F9E8 802A9308 0200202D */ daddu $a0, $s0, $zero -/* 42F9EC 802A930C 0C0513AC */ jal hud_element_set_alpha -/* 42F9F0 802A9310 240500FF */ addiu $a1, $zero, 0xff -/* 42F9F4 802A9314 82220061 */ lb $v0, 0x61($s1) -/* 42F9F8 802A9318 8E30000C */ lw $s0, 0xc($s1) -/* 42F9FC 802A931C 10400004 */ beqz $v0, .L802A9330 -/* 42FA00 802A9320 0200202D */ daddu $a0, $s0, $zero -/* 42FA04 802A9324 0C05128B */ jal hud_element_clear_flags -/* 42FA08 802A9328 24050002 */ addiu $a1, $zero, 2 -/* 42FA0C 802A932C 0200202D */ daddu $a0, $s0, $zero -.L802A9330: -/* 42FA10 802A9330 0C0513AC */ jal hud_element_set_alpha -/* 42FA14 802A9334 240500FF */ addiu $a1, $zero, 0xff -/* 42FA18 802A9338 8E300008 */ lw $s0, 8($s1) -/* 42FA1C 802A933C 240500FF */ addiu $a1, $zero, 0xff -/* 42FA20 802A9340 0C0513AC */ jal hud_element_set_alpha -/* 42FA24 802A9344 0200202D */ daddu $a0, $s0, $zero -/* 42FA28 802A9348 82220061 */ lb $v0, 0x61($s1) -/* 42FA2C 802A934C 10400003 */ beqz $v0, .L802A935C -/* 42FA30 802A9350 0200202D */ daddu $a0, $s0, $zero -/* 42FA34 802A9354 0C05128B */ jal hud_element_clear_flags -/* 42FA38 802A9358 24050002 */ addiu $a1, $zero, 2 -.L802A935C: -/* 42FA3C 802A935C 24020001 */ addiu $v0, $zero, 1 -/* 42FA40 802A9360 080AA5E5 */ j L802A9794_42FE74 -/* 42FA44 802A9364 A622004C */ sh $v0, 0x4c($s1) -dlabel L802A9368_42FA48 -/* 42FA48 802A9368 0C093EB1 */ jal btl_set_popup_duration -/* 42FA4C 802A936C 24040063 */ addiu $a0, $zero, 0x63 -/* 42FA50 802A9370 8622006C */ lh $v0, 0x6c($s1) -/* 42FA54 802A9374 9623006C */ lhu $v1, 0x6c($s1) -/* 42FA58 802A9378 10400003 */ beqz $v0, .L802A9388 -/* 42FA5C 802A937C 2462FFFF */ addiu $v0, $v1, -1 -/* 42FA60 802A9380 080AA5E5 */ j L802A9794_42FE74 -/* 42FA64 802A9384 A622006C */ sh $v0, 0x6c($s1) -.L802A9388: -/* 42FA68 802A9388 96220056 */ lhu $v0, 0x56($s1) -/* 42FA6C 802A938C 24420014 */ addiu $v0, $v0, 0x14 -/* 42FA70 802A9390 A6220056 */ sh $v0, 0x56($s1) -/* 42FA74 802A9394 00021400 */ sll $v0, $v0, 0x10 -/* 42FA78 802A9398 00021403 */ sra $v0, $v0, 0x10 -/* 42FA7C 802A939C 28420033 */ slti $v0, $v0, 0x33 -/* 42FA80 802A93A0 14400002 */ bnez $v0, .L802A93AC -/* 42FA84 802A93A4 24020032 */ addiu $v0, $zero, 0x32 -/* 42FA88 802A93A8 A6220056 */ sh $v0, 0x56($s1) -.L802A93AC: -/* 42FA8C 802A93AC 8E240004 */ lw $a0, 4($s1) -/* 42FA90 802A93B0 86250056 */ lh $a1, 0x56($s1) -/* 42FA94 802A93B4 86260058 */ lh $a2, 0x58($s1) -/* 42FA98 802A93B8 0C051261 */ jal hud_element_set_render_pos -/* 42FA9C 802A93BC 24A5FFEF */ addiu $a1, $a1, -0x11 -/* 42FAA0 802A93C0 8E24000C */ lw $a0, 0xc($s1) -/* 42FAA4 802A93C4 86250056 */ lh $a1, 0x56($s1) -/* 42FAA8 802A93C8 86260058 */ lh $a2, 0x58($s1) -/* 42FAAC 802A93CC 0C051261 */ jal hud_element_set_render_pos -/* 42FAB0 802A93D0 24A50017 */ addiu $a1, $a1, 0x17 -/* 42FAB4 802A93D4 8E240008 */ lw $a0, 8($s1) -/* 42FAB8 802A93D8 86260058 */ lh $a2, 0x58($s1) -/* 42FABC 802A93DC 86250056 */ lh $a1, 0x56($s1) -/* 42FAC0 802A93E0 0C051261 */ jal hud_element_set_render_pos -/* 42FAC4 802A93E4 24C6001C */ addiu $a2, $a2, 0x1c -/* 42FAC8 802A93E8 080AA5E5 */ j L802A9794_42FE74 -/* 42FACC 802A93EC 00000000 */ nop -dlabel L802A93F0_42FAD0 -/* 42FAD0 802A93F0 0C093EB1 */ jal btl_set_popup_duration -/* 42FAD4 802A93F4 24040063 */ addiu $a0, $zero, 0x63 -/* 42FAD8 802A93F8 8622004E */ lh $v0, 0x4e($s1) -/* 42FADC 802A93FC 9623004E */ lhu $v1, 0x4e($s1) -/* 42FAE0 802A9400 10400003 */ beqz $v0, .L802A9410 -/* 42FAE4 802A9404 2462FFFF */ addiu $v0, $v1, -1 -/* 42FAE8 802A9408 080AA5E5 */ j L802A9794_42FE74 -/* 42FAEC 802A940C A622004E */ sh $v0, 0x4e($s1) -.L802A9410: -/* 42FAF0 802A9410 8E240004 */ lw $a0, 4($s1) -/* 42FAF4 802A9414 3C058011 */ lui $a1, %hi(HudScript_MashAButton) -/* 42FAF8 802A9418 24A58B80 */ addiu $a1, $a1, %lo(HudScript_MashAButton) -/* 42FAFC 802A941C 0C0511FF */ jal hud_element_set_script -/* 42FB00 802A9420 00000000 */ nop -/* 42FB04 802A9424 8E24000C */ lw $a0, 0xc($s1) -/* 42FB08 802A9428 3C058029 */ lui $a1, %hi(HudScript_MashBButton1) -/* 42FB0C 802A942C 24A52374 */ addiu $a1, $a1, %lo(HudScript_MashBButton1) -/* 42FB10 802A9430 0C0511FF */ jal hud_element_set_script -/* 42FB14 802A9434 00000000 */ nop -/* 42FB18 802A9438 96230052 */ lhu $v1, 0x52($s1) -/* 42FB1C 802A943C 2402000B */ addiu $v0, $zero, 0xb -/* 42FB20 802A9440 A6200044 */ sh $zero, 0x44($s1) -/* 42FB24 802A9444 A220005C */ sb $zero, 0x5c($s1) -/* 42FB28 802A9448 A622004C */ sh $v0, 0x4c($s1) -/* 42FB2C 802A944C A6230054 */ sh $v1, 0x54($s1) -dlabel L802A9450_42FB30 -/* 42FB30 802A9450 0C093EB1 */ jal btl_set_popup_duration -/* 42FB34 802A9454 24040063 */ addiu $a0, $zero, 0x63 -/* 42FB38 802A9458 86220068 */ lh $v0, 0x68($s1) -/* 42FB3C 802A945C 14400027 */ bnez $v0, .L802A94FC -/* 42FB40 802A9460 00000000 */ nop -/* 42FB44 802A9464 86220064 */ lh $v0, 0x64($s1) -/* 42FB48 802A9468 1040001E */ beqz $v0, .L802A94E4 -/* 42FB4C 802A946C 00000000 */ nop -/* 42FB50 802A9470 82220080 */ lb $v0, 0x80($s1) -/* 42FB54 802A9474 00021040 */ sll $v0, $v0, 1 -/* 42FB58 802A9478 02221021 */ addu $v0, $s1, $v0 -/* 42FB5C 802A947C 84430074 */ lh $v1, 0x74($v0) -/* 42FB60 802A9480 86220044 */ lh $v0, 0x44($s1) -/* 42FB64 802A9484 14600002 */ bnez $v1, .L802A9490 -/* 42FB68 802A9488 0043001A */ div $zero, $v0, $v1 -/* 42FB6C 802A948C 0007000D */ break 7 -.L802A9490: -/* 42FB70 802A9490 2401FFFF */ addiu $at, $zero, -1 -/* 42FB74 802A9494 14610004 */ bne $v1, $at, .L802A94A8 -/* 42FB78 802A9498 3C018000 */ lui $at, 0x8000 -/* 42FB7C 802A949C 14410002 */ bne $v0, $at, .L802A94A8 -/* 42FB80 802A94A0 00000000 */ nop -/* 42FB84 802A94A4 0006000D */ break 6 -.L802A94A8: -/* 42FB88 802A94A8 00001012 */ mflo $v0 -/* 42FB8C 802A94AC 3C036666 */ lui $v1, 0x6666 -/* 42FB90 802A94B0 34636667 */ ori $v1, $v1, 0x6667 -/* 42FB94 802A94B4 00430018 */ mult $v0, $v1 -/* 42FB98 802A94B8 000217C3 */ sra $v0, $v0, 0x1f -/* 42FB9C 802A94BC 00001810 */ mfhi $v1 -/* 42FBA0 802A94C0 000318C3 */ sra $v1, $v1, 3 -/* 42FBA4 802A94C4 00621823 */ subu $v1, $v1, $v0 -/* 42FBA8 802A94C8 00031880 */ sll $v1, $v1, 2 -/* 42FBAC 802A94CC 96220044 */ lhu $v0, 0x44($s1) -/* 42FBB0 802A94D0 3C01802B */ lui $at, %hi(D_802A98E2_42FFC2) -/* 42FBB4 802A94D4 00230821 */ addu $at, $at, $v1 -/* 42FBB8 802A94D8 942398E2 */ lhu $v1, %lo(D_802A98E2_42FFC2)($at) -/* 42FBBC 802A94DC 080AA53B */ j .L802A94EC -/* 42FBC0 802A94E0 00431023 */ subu $v0, $v0, $v1 -.L802A94E4: -/* 42FBC4 802A94E4 96220044 */ lhu $v0, 0x44($s1) -/* 42FBC8 802A94E8 2442FFF6 */ addiu $v0, $v0, -0xa -.L802A94EC: -/* 42FBCC 802A94EC A6220044 */ sh $v0, 0x44($s1) -/* 42FBD0 802A94F0 00021400 */ sll $v0, $v0, 0x10 -/* 42FBD4 802A94F4 04420001 */ bltzl $v0, .L802A94FC -/* 42FBD8 802A94F8 A6200044 */ sh $zero, 0x44($s1) -.L802A94FC: -/* 42FBDC 802A94FC 82430431 */ lb $v1, 0x431($s2) -/* 42FBE0 802A9500 2463FFFE */ addiu $v1, $v1, -2 -/* 42FBE4 802A9504 04620001 */ bltzl $v1, .L802A950C -/* 42FBE8 802A9508 24630040 */ addiu $v1, $v1, 0x40 -.L802A950C: -/* 42FBEC 802A950C 0000282D */ daddu $a1, $zero, $zero -/* 42FBF0 802A9510 24040001 */ addiu $a0, $zero, 1 -.L802A9514: -/* 42FBF4 802A9514 28620040 */ slti $v0, $v1, 0x40 -/* 42FBF8 802A9518 50400001 */ beql $v0, $zero, .L802A9520 -/* 42FBFC 802A951C 2463FFC0 */ addiu $v1, $v1, -0x40 -.L802A9520: -/* 42FC00 802A9520 00031080 */ sll $v0, $v1, 2 -/* 42FC04 802A9524 24630001 */ addiu $v1, $v1, 1 -/* 42FC08 802A9528 02421021 */ addu $v0, $s2, $v0 -/* 42FC0C 802A952C 8C420330 */ lw $v0, 0x330($v0) -/* 42FC10 802A9530 2484FFFF */ addiu $a0, $a0, -1 -/* 42FC14 802A9534 0481FFF7 */ bgez $a0, .L802A9514 -/* 42FC18 802A9538 00A22825 */ or $a1, $a1, $v0 -/* 42FC1C 802A953C 3403C000 */ ori $v1, $zero, 0xc000 -/* 42FC20 802A9540 00A31024 */ and $v0, $a1, $v1 -/* 42FC24 802A9544 14430037 */ bne $v0, $v1, .L802A9624 -/* 42FC28 802A9548 00000000 */ nop -/* 42FC2C 802A954C 86220064 */ lh $v0, 0x64($s1) -/* 42FC30 802A9550 1040001D */ beqz $v0, .L802A95C8 -/* 42FC34 802A9554 3C0651EB */ lui $a2, 0x51eb -/* 42FC38 802A9558 34C6851F */ ori $a2, $a2, 0x851f -/* 42FC3C 802A955C 00021880 */ sll $v1, $v0, 2 -/* 42FC40 802A9560 00621821 */ addu $v1, $v1, $v0 -/* 42FC44 802A9564 00031180 */ sll $v0, $v1, 6 -/* 42FC48 802A9568 00621821 */ addu $v1, $v1, $v0 -/* 42FC4C 802A956C 00031840 */ sll $v1, $v1, 1 -/* 42FC50 802A9570 00660018 */ mult $v1, $a2 -/* 42FC54 802A9574 00031FC3 */ sra $v1, $v1, 0x1f -/* 42FC58 802A9578 00001010 */ mfhi $v0 -/* 42FC5C 802A957C 00022143 */ sra $a0, $v0, 5 -/* 42FC60 802A9580 86220050 */ lh $v0, 0x50($s1) -/* 42FC64 802A9584 8E450434 */ lw $a1, 0x434($s2) -/* 42FC68 802A9588 00021080 */ sll $v0, $v0, 2 -/* 42FC6C 802A958C 00451021 */ addu $v0, $v0, $a1 -/* 42FC70 802A9590 8C420000 */ lw $v0, ($v0) -/* 42FC74 802A9594 00832023 */ subu $a0, $a0, $v1 -/* 42FC78 802A9598 00820018 */ mult $a0, $v0 -/* 42FC7C 802A959C 00002012 */ mflo $a0 -/* 42FC80 802A95A0 00000000 */ nop -/* 42FC84 802A95A4 00000000 */ nop -/* 42FC88 802A95A8 00860018 */ mult $a0, $a2 -/* 42FC8C 802A95AC 000427C3 */ sra $a0, $a0, 0x1f -/* 42FC90 802A95B0 00001010 */ mfhi $v0 -/* 42FC94 802A95B4 00021943 */ sra $v1, $v0, 5 -/* 42FC98 802A95B8 96220044 */ lhu $v0, 0x44($s1) -/* 42FC9C 802A95BC 00642823 */ subu $a1, $v1, $a0 -/* 42FCA0 802A95C0 080AA57A */ j .L802A95E8 -/* 42FCA4 802A95C4 00451021 */ addu $v0, $v0, $a1 -.L802A95C8: -/* 42FCA8 802A95C8 96220044 */ lhu $v0, 0x44($s1) -/* 42FCAC 802A95CC 24420064 */ addiu $v0, $v0, 0x64 -/* 42FCB0 802A95D0 A6220044 */ sh $v0, 0x44($s1) -/* 42FCB4 802A95D4 00021400 */ sll $v0, $v0, 0x10 -/* 42FCB8 802A95D8 00021403 */ sra $v0, $v0, 0x10 -/* 42FCBC 802A95DC 284201F4 */ slti $v0, $v0, 0x1f4 -/* 42FCC0 802A95E0 14400002 */ bnez $v0, .L802A95EC -/* 42FCC4 802A95E4 240201F4 */ addiu $v0, $zero, 0x1f4 -.L802A95E8: -/* 42FCC8 802A95E8 A6220044 */ sh $v0, 0x44($s1) -.L802A95EC: -/* 42FCCC 802A95EC 82430431 */ lb $v1, 0x431($s2) -/* 42FCD0 802A95F0 2463FFFE */ addiu $v1, $v1, -2 -/* 42FCD4 802A95F4 04620001 */ bltzl $v1, .L802A95FC -/* 42FCD8 802A95F8 24630040 */ addiu $v1, $v1, 0x40 -.L802A95FC: -/* 42FCDC 802A95FC 24040001 */ addiu $a0, $zero, 1 -.L802A9600: -/* 42FCE0 802A9600 28620040 */ slti $v0, $v1, 0x40 -/* 42FCE4 802A9604 50400001 */ beql $v0, $zero, .L802A960C -/* 42FCE8 802A9608 2463FFC0 */ addiu $v1, $v1, -0x40 -.L802A960C: -/* 42FCEC 802A960C 00031080 */ sll $v0, $v1, 2 -/* 42FCF0 802A9610 02421021 */ addu $v0, $s2, $v0 -/* 42FCF4 802A9614 AC400330 */ sw $zero, 0x330($v0) -/* 42FCF8 802A9618 2484FFFF */ addiu $a0, $a0, -1 -/* 42FCFC 802A961C 0481FFF8 */ bgez $a0, .L802A9600 -/* 42FD00 802A9620 24630001 */ addiu $v1, $v1, 1 -.L802A9624: -/* 42FD04 802A9624 86220044 */ lh $v0, 0x44($s1) -/* 42FD08 802A9628 28422711 */ slti $v0, $v0, 0x2711 -/* 42FD0C 802A962C 14400010 */ bnez $v0, .L802A9670 -/* 42FD10 802A9630 3C0451EB */ lui $a0, 0x51eb -/* 42FD14 802A9634 8E300014 */ lw $s0, 0x14($s1) -/* 42FD18 802A9638 86250056 */ lh $a1, 0x56($s1) -/* 42FD1C 802A963C 86260058 */ lh $a2, 0x58($s1) -/* 42FD20 802A9640 24022710 */ addiu $v0, $zero, 0x2710 -/* 42FD24 802A9644 A6220044 */ sh $v0, 0x44($s1) -/* 42FD28 802A9648 24020001 */ addiu $v0, $zero, 1 -/* 42FD2C 802A964C A6220068 */ sh $v0, 0x68($s1) -/* 42FD30 802A9650 0200202D */ daddu $a0, $s0, $zero -/* 42FD34 802A9654 24A50032 */ addiu $a1, $a1, 0x32 -/* 42FD38 802A9658 0C051261 */ jal hud_element_set_render_pos -/* 42FD3C 802A965C 24C6001C */ addiu $a2, $a2, 0x1c -/* 42FD40 802A9660 0200202D */ daddu $a0, $s0, $zero -/* 42FD44 802A9664 0C05128B */ jal hud_element_clear_flags -/* 42FD48 802A9668 24050002 */ addiu $a1, $zero, 2 -/* 42FD4C 802A966C 3C0451EB */ lui $a0, 0x51eb -.L802A9670: -/* 42FD50 802A9670 96230044 */ lhu $v1, 0x44($s1) -/* 42FD54 802A9674 3484851F */ ori $a0, $a0, 0x851f -/* 42FD58 802A9678 00031C00 */ sll $v1, $v1, 0x10 -/* 42FD5C 802A967C 00031403 */ sra $v0, $v1, 0x10 -/* 42FD60 802A9680 00440018 */ mult $v0, $a0 -/* 42FD64 802A9684 00031FC3 */ sra $v1, $v1, 0x1f -/* 42FD68 802A9688 00003810 */ mfhi $a3 -/* 42FD6C 802A968C 00071143 */ sra $v0, $a3, 5 -/* 42FD70 802A9690 00431023 */ subu $v0, $v0, $v1 -/* 42FD74 802A9694 A2420084 */ sb $v0, 0x84($s2) -/* 42FD78 802A9698 86220054 */ lh $v0, 0x54($s1) -/* 42FD7C 802A969C 96230054 */ lhu $v1, 0x54($s1) -/* 42FD80 802A96A0 14400038 */ bnez $v0, .L802A9784 -/* 42FD84 802A96A4 2462FFFF */ addiu $v0, $v1, -1 -/* 42FD88 802A96A8 86220064 */ lh $v0, 0x64($s1) -/* 42FD8C 802A96AC 86250044 */ lh $a1, 0x44($s1) -/* 42FD90 802A96B0 50400001 */ beql $v0, $zero, .L802A96B8 -/* 42FD94 802A96B4 0000282D */ daddu $a1, $zero, $zero -.L802A96B8: -/* 42FD98 802A96B8 14A00003 */ bnez $a1, .L802A96C8 -/* 42FD9C 802A96BC 00A40018 */ mult $a1, $a0 -/* 42FDA0 802A96C0 080AA5B6 */ j .L802A96D8 -/* 42FDA4 802A96C4 2402FFFF */ addiu $v0, $zero, -1 -.L802A96C8: -/* 42FDA8 802A96C8 00051FC3 */ sra $v1, $a1, 0x1f -/* 42FDAC 802A96CC 00003810 */ mfhi $a3 -/* 42FDB0 802A96D0 00071143 */ sra $v0, $a3, 5 -/* 42FDB4 802A96D4 00431023 */ subu $v0, $v0, $v1 -.L802A96D8: -/* 42FDB8 802A96D8 A2420081 */ sb $v0, 0x81($s2) -/* 42FDBC 802A96DC 82220080 */ lb $v0, 0x80($s1) -/* 42FDC0 802A96E0 2442FFFF */ addiu $v0, $v0, -1 -/* 42FDC4 802A96E4 00021040 */ sll $v0, $v0, 1 -/* 42FDC8 802A96E8 02221021 */ addu $v0, $s1, $v0 -/* 42FDCC 802A96EC 94420074 */ lhu $v0, 0x74($v0) -/* 42FDD0 802A96F0 00021400 */ sll $v0, $v0, 0x10 -/* 42FDD4 802A96F4 00021C03 */ sra $v1, $v0, 0x10 -/* 42FDD8 802A96F8 000217C2 */ srl $v0, $v0, 0x1f -/* 42FDDC 802A96FC 00621021 */ addu $v0, $v1, $v0 -/* 42FDE0 802A9700 82430084 */ lb $v1, 0x84($s2) -/* 42FDE4 802A9704 00021043 */ sra $v0, $v0, 1 -/* 42FDE8 802A9708 0043102A */ slt $v0, $v0, $v1 -/* 42FDEC 802A970C 14400002 */ bnez $v0, .L802A9718 -/* 42FDF0 802A9710 24020001 */ addiu $v0, $zero, 1 -/* 42FDF4 802A9714 2402FFFC */ addiu $v0, $zero, -4 -.L802A9718: -/* 42FDF8 802A9718 A2420086 */ sb $v0, 0x86($s2) -/* 42FDFC 802A971C 82430081 */ lb $v1, 0x81($s2) -/* 42FE00 802A9720 24020064 */ addiu $v0, $zero, 0x64 -/* 42FE04 802A9724 14620003 */ bne $v1, $v0, .L802A9734 -/* 42FE08 802A9728 00000000 */ nop -/* 42FE0C 802A972C 0C09A458 */ jal func_80269160 -/* 42FE10 802A9730 00000000 */ nop -.L802A9734: -/* 42FE14 802A9734 0C093EB1 */ jal btl_set_popup_duration -/* 42FE18 802A9738 0000202D */ daddu $a0, $zero, $zero -/* 42FE1C 802A973C 24020005 */ addiu $v0, $zero, 5 -/* 42FE20 802A9740 A6220054 */ sh $v0, 0x54($s1) -/* 42FE24 802A9744 2402000C */ addiu $v0, $zero, 0xc -/* 42FE28 802A9748 080AA5E5 */ j L802A9794_42FE74 -/* 42FE2C 802A974C A622004C */ sh $v0, 0x4c($s1) -dlabel L802A9750_42FE30 -/* 42FE30 802A9750 86220064 */ lh $v0, 0x64($s1) -/* 42FE34 802A9754 14400007 */ bnez $v0, .L802A9774 -/* 42FE38 802A9758 00000000 */ nop -/* 42FE3C 802A975C 96220044 */ lhu $v0, 0x44($s1) -/* 42FE40 802A9760 2442FF9C */ addiu $v0, $v0, -0x64 -/* 42FE44 802A9764 A6220044 */ sh $v0, 0x44($s1) -/* 42FE48 802A9768 00021400 */ sll $v0, $v0, 0x10 -/* 42FE4C 802A976C 04420001 */ bltzl $v0, .L802A9774 -/* 42FE50 802A9770 A6200044 */ sh $zero, 0x44($s1) -.L802A9774: -/* 42FE54 802A9774 86220054 */ lh $v0, 0x54($s1) -/* 42FE58 802A9778 96230054 */ lhu $v1, 0x54($s1) -/* 42FE5C 802A977C 10400003 */ beqz $v0, .L802A978C -/* 42FE60 802A9780 2462FFFF */ addiu $v0, $v1, -1 -.L802A9784: -/* 42FE64 802A9784 080AA5E5 */ j L802A9794_42FE74 -/* 42FE68 802A9788 A6220054 */ sh $v0, 0x54($s1) -.L802A978C: -/* 42FE6C 802A978C 0C09A327 */ jal func_80268C9C -/* 42FE70 802A9790 00000000 */ nop -dlabel L802A9794_42FE74 -/* 42FE74 802A9794 8FBF001C */ lw $ra, 0x1c($sp) -/* 42FE78 802A9798 8FB20018 */ lw $s2, 0x18($sp) -/* 42FE7C 802A979C 8FB10014 */ lw $s1, 0x14($sp) -/* 42FE80 802A97A0 8FB00010 */ lw $s0, 0x10($sp) -/* 42FE84 802A97A4 03E00008 */ jr $ra -/* 42FE88 802A97A8 27BD0020 */ addiu $sp, $sp, 0x20 diff --git a/ver/us/asm/nonmatchings/battle/action_cmd/power_shock/func_802A9310_42D220.s b/ver/us/asm/nonmatchings/battle/action_cmd/power_shock/func_802A9310_42D220.s index ac82a6f59e..49fae592dc 100644 --- a/ver/us/asm/nonmatchings/battle/action_cmd/power_shock/func_802A9310_42D220.s +++ b/ver/us/asm/nonmatchings/battle/action_cmd/power_shock/func_802A9310_42D220.s @@ -180,9 +180,9 @@ glabel func_802A9310_42D220 /* 42D490 802A9580 00621823 */ subu $v1, $v1, $v0 /* 42D494 802A9584 00031880 */ sll $v1, $v1, 2 /* 42D498 802A9588 96220044 */ lhu $v0, 0x44($s1) -/* 42D49C 802A958C 3C01802B */ lui $at, %hi(D_802A9AA2_42D9B2) +/* 42D49C 802A958C 3C01802B */ lui $at, %hi(D_802A9AA0_42D9B0 + 0x2) /* 42D4A0 802A9590 00230821 */ addu $at, $at, $v1 -/* 42D4A4 802A9594 94239AA2 */ lhu $v1, %lo(D_802A9AA2_42D9B2)($at) +/* 42D4A4 802A9594 94239AA2 */ lhu $v1, %lo(D_802A9AA0_42D9B0 + 0x2)($at) /* 42D4A8 802A9598 080AA56A */ j .L802A95A8 /* 42D4AC 802A959C 00431023 */ subu $v0, $v0, $v1 .L802A95A0: diff --git a/ver/us/asm/nonmatchings/battle/action_cmd/spiny_surge/func_802A9254_42F074.s b/ver/us/asm/nonmatchings/battle/action_cmd/spiny_surge/func_802A9254_42F074.s deleted file mode 100644 index 61b208c9ba..0000000000 --- a/ver/us/asm/nonmatchings/battle/action_cmd/spiny_surge/func_802A9254_42F074.s +++ /dev/null @@ -1,345 +0,0 @@ -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches - -glabel func_802A9254_42F074 -/* 42F074 802A9254 27BDFFE0 */ addiu $sp, $sp, -0x20 -/* 42F078 802A9258 AFB10014 */ sw $s1, 0x14($sp) -/* 42F07C 802A925C 3C11802A */ lui $s1, %hi(gActionCommandStatus) -/* 42F080 802A9260 2631FBE0 */ addiu $s1, $s1, %lo(gActionCommandStatus) -/* 42F084 802A9264 AFBF001C */ sw $ra, 0x1c($sp) -/* 42F088 802A9268 AFB20018 */ sw $s2, 0x18($sp) -/* 42F08C 802A926C AFB00010 */ sw $s0, 0x10($sp) -/* 42F090 802A9270 8623004C */ lh $v1, 0x4c($s1) -/* 42F094 802A9274 3C12800E */ lui $s2, %hi(gBattleStatus) -/* 42F098 802A9278 2652C070 */ addiu $s2, $s2, %lo(gBattleStatus) -/* 42F09C 802A927C 2C62000D */ sltiu $v0, $v1, 0xd -/* 42F0A0 802A9280 10400128 */ beqz $v0, L802A9724_42F544 -/* 42F0A4 802A9284 00031080 */ sll $v0, $v1, 2 -/* 42F0A8 802A9288 3C01802B */ lui $at, %hi(jtbl_802A9880_42F6A0) -/* 42F0AC 802A928C 00220821 */ addu $at, $at, $v0 -/* 42F0B0 802A9290 8C229880 */ lw $v0, %lo(jtbl_802A9880_42F6A0)($at) -/* 42F0B4 802A9294 00400008 */ jr $v0 -/* 42F0B8 802A9298 00000000 */ nop -dlabel L802A929C_42F0BC -/* 42F0BC 802A929C 0C093EB1 */ jal btl_set_popup_duration -/* 42F0C0 802A92A0 24040063 */ addiu $a0, $zero, 0x63 -/* 42F0C4 802A92A4 8E300004 */ lw $s0, 4($s1) -/* 42F0C8 802A92A8 240500FF */ addiu $a1, $zero, 0xff -/* 42F0CC 802A92AC 0C0513AC */ jal hud_element_set_alpha -/* 42F0D0 802A92B0 0200202D */ daddu $a0, $s0, $zero -/* 42F0D4 802A92B4 82220061 */ lb $v0, 0x61($s1) -/* 42F0D8 802A92B8 10400003 */ beqz $v0, .L802A92C8 -/* 42F0DC 802A92BC 0200202D */ daddu $a0, $s0, $zero -/* 42F0E0 802A92C0 0C05128B */ jal hud_element_clear_flags -/* 42F0E4 802A92C4 24050002 */ addiu $a1, $zero, 2 -.L802A92C8: -/* 42F0E8 802A92C8 8E300008 */ lw $s0, 8($s1) -/* 42F0EC 802A92CC 240500FF */ addiu $a1, $zero, 0xff -/* 42F0F0 802A92D0 0C0513AC */ jal hud_element_set_alpha -/* 42F0F4 802A92D4 0200202D */ daddu $a0, $s0, $zero -/* 42F0F8 802A92D8 82220061 */ lb $v0, 0x61($s1) -/* 42F0FC 802A92DC 10400003 */ beqz $v0, .L802A92EC -/* 42F100 802A92E0 0200202D */ daddu $a0, $s0, $zero -/* 42F104 802A92E4 0C05128B */ jal hud_element_clear_flags -/* 42F108 802A92E8 24050002 */ addiu $a1, $zero, 2 -.L802A92EC: -/* 42F10C 802A92EC 24020001 */ addiu $v0, $zero, 1 -/* 42F110 802A92F0 080AA5C9 */ j L802A9724_42F544 -/* 42F114 802A92F4 A622004C */ sh $v0, 0x4c($s1) -dlabel L802A92F8_42F118 -/* 42F118 802A92F8 0C093EB1 */ jal btl_set_popup_duration -/* 42F11C 802A92FC 24040063 */ addiu $a0, $zero, 0x63 -/* 42F120 802A9300 8622006C */ lh $v0, 0x6c($s1) -/* 42F124 802A9304 9623006C */ lhu $v1, 0x6c($s1) -/* 42F128 802A9308 10400003 */ beqz $v0, .L802A9318 -/* 42F12C 802A930C 2462FFFF */ addiu $v0, $v1, -1 -/* 42F130 802A9310 080AA5C9 */ j L802A9724_42F544 -/* 42F134 802A9314 A622006C */ sh $v0, 0x6c($s1) -.L802A9318: -/* 42F138 802A9318 96220056 */ lhu $v0, 0x56($s1) -/* 42F13C 802A931C 24420014 */ addiu $v0, $v0, 0x14 -/* 42F140 802A9320 A6220056 */ sh $v0, 0x56($s1) -/* 42F144 802A9324 00021400 */ sll $v0, $v0, 0x10 -/* 42F148 802A9328 00021403 */ sra $v0, $v0, 0x10 -/* 42F14C 802A932C 28420033 */ slti $v0, $v0, 0x33 -/* 42F150 802A9330 14400002 */ bnez $v0, .L802A933C -/* 42F154 802A9334 24020032 */ addiu $v0, $zero, 0x32 -/* 42F158 802A9338 A6220056 */ sh $v0, 0x56($s1) -.L802A933C: -/* 42F15C 802A933C 8E240004 */ lw $a0, 4($s1) -/* 42F160 802A9340 86250056 */ lh $a1, 0x56($s1) -/* 42F164 802A9344 0C051261 */ jal hud_element_set_render_pos -/* 42F168 802A9348 86260058 */ lh $a2, 0x58($s1) -/* 42F16C 802A934C 8E240008 */ lw $a0, 8($s1) -/* 42F170 802A9350 86260058 */ lh $a2, 0x58($s1) -/* 42F174 802A9354 86250056 */ lh $a1, 0x56($s1) -/* 42F178 802A9358 0C051261 */ jal hud_element_set_render_pos -/* 42F17C 802A935C 24C6001C */ addiu $a2, $a2, 0x1c -/* 42F180 802A9360 080AA5C9 */ j L802A9724_42F544 -/* 42F184 802A9364 00000000 */ nop -dlabel L802A9368_42F188 -/* 42F188 802A9368 0C093EB1 */ jal btl_set_popup_duration -/* 42F18C 802A936C 24040063 */ addiu $a0, $zero, 0x63 -/* 42F190 802A9370 8622004E */ lh $v0, 0x4e($s1) -/* 42F194 802A9374 9623004E */ lhu $v1, 0x4e($s1) -/* 42F198 802A9378 10400003 */ beqz $v0, .L802A9388 -/* 42F19C 802A937C 2462FFFF */ addiu $v0, $v1, -1 -/* 42F1A0 802A9380 080AA5C9 */ j L802A9724_42F544 -/* 42F1A4 802A9384 A622004E */ sh $v0, 0x4e($s1) -.L802A9388: -/* 42F1A8 802A9388 8E240004 */ lw $a0, 4($s1) -/* 42F1AC 802A938C 3C058011 */ lui $a1, %hi(HudScript_StickMashLeft) -/* 42F1B0 802A9390 24A58F30 */ addiu $a1, $a1, %lo(HudScript_StickMashLeft) -/* 42F1B4 802A9394 0C0511FF */ jal hud_element_set_script -/* 42F1B8 802A9398 00000000 */ nop -/* 42F1BC 802A939C 3C048000 */ lui $a0, 0x8000 -/* 42F1C0 802A93A0 34840041 */ ori $a0, $a0, 0x41 -/* 42F1C4 802A93A4 0000282D */ daddu $a1, $zero, $zero -/* 42F1C8 802A93A8 00A0302D */ daddu $a2, $a1, $zero -/* 42F1CC 802A93AC 96220052 */ lhu $v0, 0x52($s1) -/* 42F1D0 802A93B0 00A0382D */ daddu $a3, $a1, $zero -/* 42F1D4 802A93B4 A220005C */ sb $zero, 0x5c($s1) -/* 42F1D8 802A93B8 3C01802B */ lui $at, %hi(D_802A98C0) -/* 42F1DC 802A93BC AC2098C0 */ sw $zero, %lo(D_802A98C0)($at) -/* 42F1E0 802A93C0 0C0526AE */ jal sfx_play_sound_with_params -/* 42F1E4 802A93C4 A6220054 */ sh $v0, 0x54($s1) -/* 42F1E8 802A93C8 2402000B */ addiu $v0, $zero, 0xb -/* 42F1EC 802A93CC A622004C */ sh $v0, 0x4c($s1) -dlabel L802A93D0_42F1F0 -/* 42F1F0 802A93D0 0C093EB1 */ jal btl_set_popup_duration -/* 42F1F4 802A93D4 24040063 */ addiu $a0, $zero, 0x63 -/* 42F1F8 802A93D8 86220068 */ lh $v0, 0x68($s1) -/* 42F1FC 802A93DC 14400057 */ bnez $v0, .L802A953C -/* 42F200 802A93E0 00000000 */ nop -/* 42F204 802A93E4 82220080 */ lb $v0, 0x80($s1) -/* 42F208 802A93E8 00021040 */ sll $v0, $v0, 1 -/* 42F20C 802A93EC 02221021 */ addu $v0, $s1, $v0 -/* 42F210 802A93F0 84430074 */ lh $v1, 0x74($v0) -/* 42F214 802A93F4 86220044 */ lh $v0, 0x44($s1) -/* 42F218 802A93F8 14600002 */ bnez $v1, .L802A9404 -/* 42F21C 802A93FC 0043001A */ div $zero, $v0, $v1 -/* 42F220 802A9400 0007000D */ break 7 -.L802A9404: -/* 42F224 802A9404 2401FFFF */ addiu $at, $zero, -1 -/* 42F228 802A9408 14610004 */ bne $v1, $at, .L802A941C -/* 42F22C 802A940C 3C018000 */ lui $at, 0x8000 -/* 42F230 802A9410 14410002 */ bne $v0, $at, .L802A941C -/* 42F234 802A9414 00000000 */ nop -/* 42F238 802A9418 0006000D */ break 6 -.L802A941C: -/* 42F23C 802A941C 00001012 */ mflo $v0 -/* 42F240 802A9420 3C036666 */ lui $v1, 0x6666 -/* 42F244 802A9424 34636667 */ ori $v1, $v1, 0x6667 -/* 42F248 802A9428 00430018 */ mult $v0, $v1 -/* 42F24C 802A942C 000217C3 */ sra $v0, $v0, 0x1f -/* 42F250 802A9430 00001810 */ mfhi $v1 -/* 42F254 802A9434 000318C3 */ sra $v1, $v1, 3 -/* 42F258 802A9438 00621823 */ subu $v1, $v1, $v0 -/* 42F25C 802A943C 00031880 */ sll $v1, $v1, 2 -/* 42F260 802A9440 96220044 */ lhu $v0, 0x44($s1) -/* 42F264 802A9444 3C01802B */ lui $at, %hi(D_802A9862_42F682) -/* 42F268 802A9448 00230821 */ addu $at, $at, $v1 -/* 42F26C 802A944C 94239862 */ lhu $v1, %lo(D_802A9862_42F682)($at) -/* 42F270 802A9450 00431023 */ subu $v0, $v0, $v1 -/* 42F274 802A9454 A6220044 */ sh $v0, 0x44($s1) -/* 42F278 802A9458 00021400 */ sll $v0, $v0, 0x10 -/* 42F27C 802A945C 04420001 */ bltzl $v0, .L802A9464 -/* 42F280 802A9460 A6200044 */ sh $zero, 0x44($s1) -.L802A9464: -/* 42F284 802A9464 86220068 */ lh $v0, 0x68($s1) -/* 42F288 802A9468 14400034 */ bnez $v0, .L802A953C -/* 42F28C 802A946C 3C030004 */ lui $v1, 4 -/* 42F290 802A9470 8E420214 */ lw $v0, 0x214($s2) -/* 42F294 802A9474 00431024 */ and $v0, $v0, $v1 -/* 42F298 802A9478 10400016 */ beqz $v0, .L802A94D4 -/* 42F29C 802A947C 3C0451EB */ lui $a0, 0x51eb -/* 42F2A0 802A9480 86220050 */ lh $v0, 0x50($s1) -/* 42F2A4 802A9484 8E430434 */ lw $v1, 0x434($s2) -/* 42F2A8 802A9488 00021080 */ sll $v0, $v0, 2 -/* 42F2AC 802A948C 00431021 */ addu $v0, $v0, $v1 -/* 42F2B0 802A9490 8C430000 */ lw $v1, ($v0) -/* 42F2B4 802A9494 3484851F */ ori $a0, $a0, 0x851f -/* 42F2B8 802A9498 00031080 */ sll $v0, $v1, 2 -/* 42F2BC 802A949C 00431021 */ addu $v0, $v0, $v1 -/* 42F2C0 802A94A0 000210C0 */ sll $v0, $v0, 3 -/* 42F2C4 802A94A4 00431023 */ subu $v0, $v0, $v1 -/* 42F2C8 802A94A8 00021100 */ sll $v0, $v0, 4 -/* 42F2CC 802A94AC 00431021 */ addu $v0, $v0, $v1 -/* 42F2D0 802A94B0 00021040 */ sll $v0, $v0, 1 -/* 42F2D4 802A94B4 00440018 */ mult $v0, $a0 -/* 42F2D8 802A94B8 000217C3 */ sra $v0, $v0, 0x1f -/* 42F2DC 802A94BC 96230044 */ lhu $v1, 0x44($s1) -/* 42F2E0 802A94C0 00004010 */ mfhi $t0 -/* 42F2E4 802A94C4 00082143 */ sra $a0, $t0, 5 -/* 42F2E8 802A94C8 00822023 */ subu $a0, $a0, $v0 -/* 42F2EC 802A94CC 00641821 */ addu $v1, $v1, $a0 -/* 42F2F0 802A94D0 A6230044 */ sh $v1, 0x44($s1) -.L802A94D4: -/* 42F2F4 802A94D4 8E420214 */ lw $v0, 0x214($s2) -/* 42F2F8 802A94D8 3C030008 */ lui $v1, 8 -/* 42F2FC 802A94DC 00431024 */ and $v0, $v0, $v1 -/* 42F300 802A94E0 10400016 */ beqz $v0, .L802A953C -/* 42F304 802A94E4 3C0451EB */ lui $a0, 0x51eb -/* 42F308 802A94E8 86220050 */ lh $v0, 0x50($s1) -/* 42F30C 802A94EC 8E430434 */ lw $v1, 0x434($s2) -/* 42F310 802A94F0 00021080 */ sll $v0, $v0, 2 -/* 42F314 802A94F4 00431021 */ addu $v0, $v0, $v1 -/* 42F318 802A94F8 8C430000 */ lw $v1, ($v0) -/* 42F31C 802A94FC 3484851F */ ori $a0, $a0, 0x851f -/* 42F320 802A9500 00031080 */ sll $v0, $v1, 2 -/* 42F324 802A9504 00431021 */ addu $v0, $v0, $v1 -/* 42F328 802A9508 000210C0 */ sll $v0, $v0, 3 -/* 42F32C 802A950C 00431023 */ subu $v0, $v0, $v1 -/* 42F330 802A9510 00021100 */ sll $v0, $v0, 4 -/* 42F334 802A9514 00431021 */ addu $v0, $v0, $v1 -/* 42F338 802A9518 00021040 */ sll $v0, $v0, 1 -/* 42F33C 802A951C 00440018 */ mult $v0, $a0 -/* 42F340 802A9520 000217C3 */ sra $v0, $v0, 0x1f -/* 42F344 802A9524 96230044 */ lhu $v1, 0x44($s1) -/* 42F348 802A9528 00004010 */ mfhi $t0 -/* 42F34C 802A952C 00082143 */ sra $a0, $t0, 5 -/* 42F350 802A9530 00822023 */ subu $a0, $a0, $v0 -/* 42F354 802A9534 00641823 */ subu $v1, $v1, $a0 -/* 42F358 802A9538 A6230044 */ sh $v1, 0x44($s1) -.L802A953C: -/* 42F35C 802A953C 86220044 */ lh $v0, 0x44($s1) -/* 42F360 802A9540 04420001 */ bltzl $v0, .L802A9548 -/* 42F364 802A9544 A6200044 */ sh $zero, 0x44($s1) -.L802A9548: -/* 42F368 802A9548 86220044 */ lh $v0, 0x44($s1) -/* 42F36C 802A954C 28422711 */ slti $v0, $v0, 0x2711 -/* 42F370 802A9550 1440000E */ bnez $v0, .L802A958C -/* 42F374 802A9554 24022710 */ addiu $v0, $zero, 0x2710 -/* 42F378 802A9558 8E30000C */ lw $s0, 0xc($s1) -/* 42F37C 802A955C 86250056 */ lh $a1, 0x56($s1) -/* 42F380 802A9560 86260058 */ lh $a2, 0x58($s1) -/* 42F384 802A9564 A6220044 */ sh $v0, 0x44($s1) -/* 42F388 802A9568 24020001 */ addiu $v0, $zero, 1 -/* 42F38C 802A956C A6220068 */ sh $v0, 0x68($s1) -/* 42F390 802A9570 0200202D */ daddu $a0, $s0, $zero -/* 42F394 802A9574 24A50032 */ addiu $a1, $a1, 0x32 -/* 42F398 802A9578 0C051261 */ jal hud_element_set_render_pos -/* 42F39C 802A957C 24C6001C */ addiu $a2, $a2, 0x1c -/* 42F3A0 802A9580 0200202D */ daddu $a0, $s0, $zero -/* 42F3A4 802A9584 0C05128B */ jal hud_element_clear_flags -/* 42F3A8 802A9588 24050002 */ addiu $a1, $zero, 2 -.L802A958C: -/* 42F3AC 802A958C 3C03802B */ lui $v1, %hi(D_802A98C0) -/* 42F3B0 802A9590 246398C0 */ addiu $v1, $v1, %lo(D_802A98C0) -/* 42F3B4 802A9594 8C620000 */ lw $v0, ($v1) -/* 42F3B8 802A9598 3C050004 */ lui $a1, 4 -/* 42F3BC 802A959C 00451024 */ and $v0, $v0, $a1 -/* 42F3C0 802A95A0 10400002 */ beqz $v0, .L802A95AC -/* 42F3C4 802A95A4 24020001 */ addiu $v0, $zero, 1 -/* 42F3C8 802A95A8 A222005C */ sb $v0, 0x5c($s1) -.L802A95AC: -/* 42F3CC 802A95AC 8C620000 */ lw $v0, ($v1) -/* 42F3D0 802A95B0 3C040008 */ lui $a0, 8 -/* 42F3D4 802A95B4 00441024 */ and $v0, $v0, $a0 -/* 42F3D8 802A95B8 10400002 */ beqz $v0, .L802A95C4 -/* 42F3DC 802A95BC 2402FFFF */ addiu $v0, $zero, -1 -/* 42F3E0 802A95C0 A222005C */ sb $v0, 0x5c($s1) -.L802A95C4: -/* 42F3E4 802A95C4 8C620000 */ lw $v0, ($v1) -/* 42F3E8 802A95C8 00451024 */ and $v0, $v0, $a1 -/* 42F3EC 802A95CC 1440000A */ bnez $v0, .L802A95F8 -/* 42F3F0 802A95D0 3C1051EB */ lui $s0, 0x51eb -/* 42F3F4 802A95D4 8E420210 */ lw $v0, 0x210($s2) -/* 42F3F8 802A95D8 00441024 */ and $v0, $v0, $a0 -/* 42F3FC 802A95DC 14400006 */ bnez $v0, .L802A95F8 -/* 42F400 802A95E0 24020001 */ addiu $v0, $zero, 1 -/* 42F404 802A95E4 8223005C */ lb $v1, 0x5c($s1) -/* 42F408 802A95E8 14620003 */ bne $v1, $v0, .L802A95F8 -/* 42F40C 802A95EC 24020002 */ addiu $v0, $zero, 2 -/* 42F410 802A95F0 A222005C */ sb $v0, 0x5c($s1) -/* 42F414 802A95F4 3C1051EB */ lui $s0, 0x51eb -.L802A95F8: -/* 42F418 802A95F8 96230044 */ lhu $v1, 0x44($s1) -/* 42F41C 802A95FC 3610851F */ ori $s0, $s0, 0x851f -/* 42F420 802A9600 00031C00 */ sll $v1, $v1, 0x10 -/* 42F424 802A9604 00031403 */ sra $v0, $v1, 0x10 -/* 42F428 802A9608 00500018 */ mult $v0, $s0 -/* 42F42C 802A960C 3C048000 */ lui $a0, 0x8000 -/* 42F430 802A9610 34840041 */ ori $a0, $a0, 0x41 -/* 42F434 802A9614 00031FC3 */ sra $v1, $v1, 0x1f -/* 42F438 802A9618 00004010 */ mfhi $t0 -/* 42F43C 802A961C 00081143 */ sra $v0, $t0, 5 -/* 42F440 802A9620 00431023 */ subu $v0, $v0, $v1 -/* 42F444 802A9624 8E430210 */ lw $v1, 0x210($s2) -/* 42F448 802A9628 0000282D */ daddu $a1, $zero, $zero -/* 42F44C 802A962C A2420081 */ sb $v0, 0x81($s2) -/* 42F450 802A9630 9227005C */ lbu $a3, 0x5c($s1) -/* 42F454 802A9634 82420081 */ lb $v0, 0x81($s2) -/* 42F458 802A9638 00A0302D */ daddu $a2, $a1, $zero -/* 42F45C 802A963C 3C01802B */ lui $at, %hi(D_802A98C0) -/* 42F460 802A9640 AC2398C0 */ sw $v1, %lo(D_802A98C0)($at) -/* 42F464 802A9644 A2470084 */ sb $a3, 0x84($s2) -/* 42F468 802A9648 00023840 */ sll $a3, $v0, 1 -/* 42F46C 802A964C 00E23821 */ addu $a3, $a3, $v0 -/* 42F470 802A9650 0C0526F9 */ jal sfx_adjust_env_sound_params -/* 42F474 802A9654 00073880 */ sll $a3, $a3, 2 -/* 42F478 802A9658 86220054 */ lh $v0, 0x54($s1) -/* 42F47C 802A965C 96230054 */ lhu $v1, 0x54($s1) -/* 42F480 802A9660 1440002C */ bnez $v0, .L802A9714 -/* 42F484 802A9664 2462FFFF */ addiu $v0, $v1, -1 -/* 42F488 802A9668 96220044 */ lhu $v0, 0x44($s1) -/* 42F48C 802A966C 00021C00 */ sll $v1, $v0, 0x10 -/* 42F490 802A9670 00031403 */ sra $v0, $v1, 0x10 -/* 42F494 802A9674 14400003 */ bnez $v0, .L802A9684 -/* 42F498 802A9678 00500018 */ mult $v0, $s0 -/* 42F49C 802A967C 080AA5A5 */ j .L802A9694 -/* 42F4A0 802A9680 2402FFFF */ addiu $v0, $zero, -1 -.L802A9684: -/* 42F4A4 802A9684 00031FC3 */ sra $v1, $v1, 0x1f -/* 42F4A8 802A9688 00004010 */ mfhi $t0 -/* 42F4AC 802A968C 00081143 */ sra $v0, $t0, 5 -/* 42F4B0 802A9690 00431023 */ subu $v0, $v0, $v1 -.L802A9694: -/* 42F4B4 802A9694 A2420081 */ sb $v0, 0x81($s2) -/* 42F4B8 802A9698 82220080 */ lb $v0, 0x80($s1) -/* 42F4BC 802A969C 2442FFFF */ addiu $v0, $v0, -1 -/* 42F4C0 802A96A0 00021040 */ sll $v0, $v0, 1 -/* 42F4C4 802A96A4 02221021 */ addu $v0, $s1, $v0 -/* 42F4C8 802A96A8 84430074 */ lh $v1, 0x74($v0) -/* 42F4CC 802A96AC 82420081 */ lb $v0, 0x81($s2) -/* 42F4D0 802A96B0 0062102A */ slt $v0, $v1, $v0 -/* 42F4D4 802A96B4 14400002 */ bnez $v0, .L802A96C0 -/* 42F4D8 802A96B8 24020001 */ addiu $v0, $zero, 1 -/* 42F4DC 802A96BC 2402FFFE */ addiu $v0, $zero, -2 -.L802A96C0: -/* 42F4E0 802A96C0 A2420086 */ sb $v0, 0x86($s2) -/* 42F4E4 802A96C4 82430081 */ lb $v1, 0x81($s2) -/* 42F4E8 802A96C8 24020064 */ addiu $v0, $zero, 0x64 -/* 42F4EC 802A96CC 14620003 */ bne $v1, $v0, .L802A96DC -/* 42F4F0 802A96D0 00000000 */ nop -/* 42F4F4 802A96D4 0C09A458 */ jal func_80269160 -/* 42F4F8 802A96D8 00000000 */ nop -.L802A96DC: -/* 42F4FC 802A96DC 0C093EB1 */ jal btl_set_popup_duration -/* 42F500 802A96E0 0000202D */ daddu $a0, $zero, $zero -/* 42F504 802A96E4 3C048000 */ lui $a0, 0x8000 -/* 42F508 802A96E8 0C05271B */ jal sfx_stop_sound -/* 42F50C 802A96EC 34840041 */ ori $a0, $a0, 0x41 -/* 42F510 802A96F0 24020005 */ addiu $v0, $zero, 5 -/* 42F514 802A96F4 A6220054 */ sh $v0, 0x54($s1) -/* 42F518 802A96F8 2402000C */ addiu $v0, $zero, 0xc -/* 42F51C 802A96FC 080AA5C9 */ j L802A9724_42F544 -/* 42F520 802A9700 A622004C */ sh $v0, 0x4c($s1) -dlabel L802A9704_42F524 -/* 42F524 802A9704 86220054 */ lh $v0, 0x54($s1) -/* 42F528 802A9708 96230054 */ lhu $v1, 0x54($s1) -/* 42F52C 802A970C 10400003 */ beqz $v0, .L802A971C -/* 42F530 802A9710 2462FFFF */ addiu $v0, $v1, -1 -.L802A9714: -/* 42F534 802A9714 080AA5C9 */ j L802A9724_42F544 -/* 42F538 802A9718 A6220054 */ sh $v0, 0x54($s1) -.L802A971C: -/* 42F53C 802A971C 0C09A327 */ jal func_80268C9C -/* 42F540 802A9720 00000000 */ nop -dlabel L802A9724_42F544 -/* 42F544 802A9724 8FBF001C */ lw $ra, 0x1c($sp) -/* 42F548 802A9728 8FB20018 */ lw $s2, 0x18($sp) -/* 42F54C 802A972C 8FB10014 */ lw $s1, 0x14($sp) -/* 42F550 802A9730 8FB00010 */ lw $s0, 0x10($sp) -/* 42F554 802A9734 03E00008 */ jr $ra -/* 42F558 802A9738 27BD0020 */ addiu $sp, $sp, 0x20 diff --git a/ver/us/asm/nonmatchings/battle/action_cmd/spook/func_802A9298_4302B8.s b/ver/us/asm/nonmatchings/battle/action_cmd/spook/func_802A9298_4302B8.s deleted file mode 100644 index 0bcc77fdc8..0000000000 --- a/ver/us/asm/nonmatchings/battle/action_cmd/spook/func_802A9298_4302B8.s +++ /dev/null @@ -1,381 +0,0 @@ -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches - -glabel func_802A9298_4302B8 -/* 4302B8 802A9298 27BDFFE0 */ addiu $sp, $sp, -0x20 -/* 4302BC 802A929C AFB10014 */ sw $s1, 0x14($sp) -/* 4302C0 802A92A0 3C11802A */ lui $s1, %hi(gActionCommandStatus) -/* 4302C4 802A92A4 2631FBE0 */ addiu $s1, $s1, %lo(gActionCommandStatus) -/* 4302C8 802A92A8 AFBF001C */ sw $ra, 0x1c($sp) -/* 4302CC 802A92AC AFB20018 */ sw $s2, 0x18($sp) -/* 4302D0 802A92B0 AFB00010 */ sw $s0, 0x10($sp) -/* 4302D4 802A92B4 8623004C */ lh $v1, 0x4c($s1) -/* 4302D8 802A92B8 3C12800E */ lui $s2, %hi(gBattleStatus) -/* 4302DC 802A92BC 2652C070 */ addiu $s2, $s2, %lo(gBattleStatus) -/* 4302E0 802A92C0 2C62000D */ sltiu $v0, $v1, 0xd -/* 4302E4 802A92C4 10400147 */ beqz $v0, L802A97E4_430804 -/* 4302E8 802A92C8 00031080 */ sll $v0, $v1, 2 -/* 4302EC 802A92CC 3C01802B */ lui $at, %hi(jtbl_802A9940_430960) -/* 4302F0 802A92D0 00220821 */ addu $at, $at, $v0 -/* 4302F4 802A92D4 8C229940 */ lw $v0, %lo(jtbl_802A9940_430960)($at) -/* 4302F8 802A92D8 00400008 */ jr $v0 -/* 4302FC 802A92DC 00000000 */ nop -dlabel L802A92E0_430300 -/* 430300 802A92E0 0C093EB1 */ jal btl_set_popup_duration -/* 430304 802A92E4 24040063 */ addiu $a0, $zero, 0x63 -/* 430308 802A92E8 8E300004 */ lw $s0, 4($s1) -/* 43030C 802A92EC 240500FF */ addiu $a1, $zero, 0xff -/* 430310 802A92F0 0C0513AC */ jal hud_element_set_alpha -/* 430314 802A92F4 0200202D */ daddu $a0, $s0, $zero -/* 430318 802A92F8 82220061 */ lb $v0, 0x61($s1) -/* 43031C 802A92FC 10400003 */ beqz $v0, .L802A930C -/* 430320 802A9300 0200202D */ daddu $a0, $s0, $zero -/* 430324 802A9304 0C05128B */ jal hud_element_clear_flags -/* 430328 802A9308 24050002 */ addiu $a1, $zero, 2 -.L802A930C: -/* 43032C 802A930C 8E300008 */ lw $s0, 8($s1) -/* 430330 802A9310 240500FF */ addiu $a1, $zero, 0xff -/* 430334 802A9314 0C0513AC */ jal hud_element_set_alpha -/* 430338 802A9318 0200202D */ daddu $a0, $s0, $zero -/* 43033C 802A931C 82220061 */ lb $v0, 0x61($s1) -/* 430340 802A9320 10400003 */ beqz $v0, .L802A9330 -/* 430344 802A9324 0200202D */ daddu $a0, $s0, $zero -/* 430348 802A9328 0C05128B */ jal hud_element_clear_flags -/* 43034C 802A932C 24050002 */ addiu $a1, $zero, 2 -.L802A9330: -/* 430350 802A9330 24020001 */ addiu $v0, $zero, 1 -/* 430354 802A9334 080AA5F9 */ j L802A97E4_430804 -/* 430358 802A9338 A622004C */ sh $v0, 0x4c($s1) -dlabel L802A933C_43035C -/* 43035C 802A933C 0C093EB1 */ jal btl_set_popup_duration -/* 430360 802A9340 24040063 */ addiu $a0, $zero, 0x63 -/* 430364 802A9344 96220056 */ lhu $v0, 0x56($s1) -/* 430368 802A9348 24420014 */ addiu $v0, $v0, 0x14 -/* 43036C 802A934C A6220056 */ sh $v0, 0x56($s1) -/* 430370 802A9350 00021400 */ sll $v0, $v0, 0x10 -/* 430374 802A9354 00021403 */ sra $v0, $v0, 0x10 -/* 430378 802A9358 28420033 */ slti $v0, $v0, 0x33 -/* 43037C 802A935C 14400002 */ bnez $v0, .L802A9368 -/* 430380 802A9360 24020032 */ addiu $v0, $zero, 0x32 -/* 430384 802A9364 A6220056 */ sh $v0, 0x56($s1) -.L802A9368: -/* 430388 802A9368 8E240004 */ lw $a0, 4($s1) -/* 43038C 802A936C 86250056 */ lh $a1, 0x56($s1) -/* 430390 802A9370 0C051261 */ jal hud_element_set_render_pos -/* 430394 802A9374 86260058 */ lh $a2, 0x58($s1) -/* 430398 802A9378 8E240008 */ lw $a0, 8($s1) -/* 43039C 802A937C 86260058 */ lh $a2, 0x58($s1) -/* 4303A0 802A9380 86250056 */ lh $a1, 0x56($s1) -/* 4303A4 802A9384 0C051261 */ jal hud_element_set_render_pos -/* 4303A8 802A9388 24C6001C */ addiu $a2, $a2, 0x1c -/* 4303AC 802A938C 080AA5F9 */ j L802A97E4_430804 -/* 4303B0 802A9390 00000000 */ nop -dlabel L802A9394_4303B4 -/* 4303B4 802A9394 0C093EB1 */ jal btl_set_popup_duration -/* 4303B8 802A9398 24040063 */ addiu $a0, $zero, 0x63 -/* 4303BC 802A939C 8622004E */ lh $v0, 0x4e($s1) -/* 4303C0 802A93A0 9623004E */ lhu $v1, 0x4e($s1) -/* 4303C4 802A93A4 10400003 */ beqz $v0, .L802A93B4 -/* 4303C8 802A93A8 2462FFFF */ addiu $v0, $v1, -1 -/* 4303CC 802A93AC 080AA5F9 */ j L802A97E4_430804 -/* 4303D0 802A93B0 A622004E */ sh $v0, 0x4e($s1) -.L802A93B4: -/* 4303D4 802A93B4 8E240004 */ lw $a0, 4($s1) -/* 4303D8 802A93B8 3C058011 */ lui $a1, %hi(HudScript_StickMashLeft) -/* 4303DC 802A93BC 24A58F30 */ addiu $a1, $a1, %lo(HudScript_StickMashLeft) -/* 4303E0 802A93C0 0C0511FF */ jal hud_element_set_script -/* 4303E4 802A93C4 00000000 */ nop -/* 4303E8 802A93C8 3C048000 */ lui $a0, 0x8000 -/* 4303EC 802A93CC 34840041 */ ori $a0, $a0, 0x41 -/* 4303F0 802A93D0 0000282D */ daddu $a1, $zero, $zero -/* 4303F4 802A93D4 00A0302D */ daddu $a2, $a1, $zero -/* 4303F8 802A93D8 96220052 */ lhu $v0, 0x52($s1) -/* 4303FC 802A93DC 00A0382D */ daddu $a3, $a1, $zero -/* 430400 802A93E0 A6200044 */ sh $zero, 0x44($s1) -/* 430404 802A93E4 A2400084 */ sb $zero, 0x84($s2) -/* 430408 802A93E8 A220005C */ sb $zero, 0x5c($s1) -/* 43040C 802A93EC 0C0526AE */ jal sfx_play_sound_with_params -/* 430410 802A93F0 A6220054 */ sh $v0, 0x54($s1) -/* 430414 802A93F4 2402000B */ addiu $v0, $zero, 0xb -/* 430418 802A93F8 A622004C */ sh $v0, 0x4c($s1) -dlabel L802A93FC_43041C -/* 43041C 802A93FC 0C093EB1 */ jal btl_set_popup_duration -/* 430420 802A9400 24040063 */ addiu $a0, $zero, 0x63 -/* 430424 802A9404 86220068 */ lh $v0, 0x68($s1) -/* 430428 802A9408 1440008F */ bnez $v0, .L802A9648 -/* 43042C 802A940C 00000000 */ nop -/* 430430 802A9410 86220064 */ lh $v0, 0x64($s1) -/* 430434 802A9414 1040001E */ beqz $v0, .L802A9490 -/* 430438 802A9418 00000000 */ nop -/* 43043C 802A941C 82220080 */ lb $v0, 0x80($s1) -/* 430440 802A9420 00021040 */ sll $v0, $v0, 1 -/* 430444 802A9424 02221021 */ addu $v0, $s1, $v0 -/* 430448 802A9428 84430074 */ lh $v1, 0x74($v0) -/* 43044C 802A942C 86220044 */ lh $v0, 0x44($s1) -/* 430450 802A9430 14600002 */ bnez $v1, .L802A943C -/* 430454 802A9434 0043001A */ div $zero, $v0, $v1 -/* 430458 802A9438 0007000D */ break 7 -.L802A943C: -/* 43045C 802A943C 2401FFFF */ addiu $at, $zero, -1 -/* 430460 802A9440 14610004 */ bne $v1, $at, .L802A9454 -/* 430464 802A9444 3C018000 */ lui $at, 0x8000 -/* 430468 802A9448 14410002 */ bne $v0, $at, .L802A9454 -/* 43046C 802A944C 00000000 */ nop -/* 430470 802A9450 0006000D */ break 6 -.L802A9454: -/* 430474 802A9454 00001012 */ mflo $v0 -/* 430478 802A9458 3C036666 */ lui $v1, 0x6666 -/* 43047C 802A945C 34636667 */ ori $v1, $v1, 0x6667 -/* 430480 802A9460 00430018 */ mult $v0, $v1 -/* 430484 802A9464 000217C3 */ sra $v0, $v0, 0x1f -/* 430488 802A9468 00001810 */ mfhi $v1 -/* 43048C 802A946C 000318C3 */ sra $v1, $v1, 3 -/* 430490 802A9470 00621823 */ subu $v1, $v1, $v0 -/* 430494 802A9474 00031880 */ sll $v1, $v1, 2 -/* 430498 802A9478 96220044 */ lhu $v0, 0x44($s1) -/* 43049C 802A947C 3C01802B */ lui $at, %hi(D_802A9922_430942) -/* 4304A0 802A9480 00230821 */ addu $at, $at, $v1 -/* 4304A4 802A9484 94239922 */ lhu $v1, %lo(D_802A9922_430942)($at) -/* 4304A8 802A9488 080AA526 */ j .L802A9498 -/* 4304AC 802A948C 00431023 */ subu $v0, $v0, $v1 -.L802A9490: -/* 4304B0 802A9490 96220044 */ lhu $v0, 0x44($s1) -/* 4304B4 802A9494 2442FFF6 */ addiu $v0, $v0, -0xa -.L802A9498: -/* 4304B8 802A9498 A6220044 */ sh $v0, 0x44($s1) -/* 4304BC 802A949C 00021400 */ sll $v0, $v0, 0x10 -/* 4304C0 802A94A0 04420001 */ bltzl $v0, .L802A94A8 -/* 4304C4 802A94A4 A6200044 */ sh $zero, 0x44($s1) -.L802A94A8: -/* 4304C8 802A94A8 86220068 */ lh $v0, 0x68($s1) -/* 4304CC 802A94AC 14400066 */ bnez $v0, .L802A9648 -/* 4304D0 802A94B0 00000000 */ nop -/* 4304D4 802A94B4 86220064 */ lh $v0, 0x64($s1) -/* 4304D8 802A94B8 10400044 */ beqz $v0, .L802A95CC -/* 4304DC 802A94BC 3C040004 */ lui $a0, 4 -/* 4304E0 802A94C0 8E420210 */ lw $v0, 0x210($s2) -/* 4304E4 802A94C4 00441024 */ and $v0, $v0, $a0 -/* 4304E8 802A94C8 10400005 */ beqz $v0, .L802A94E0 -/* 4304EC 802A94CC 24030001 */ addiu $v1, $zero, 1 -/* 4304F0 802A94D0 8E420210 */ lw $v0, 0x210($s2) -/* 4304F4 802A94D4 00441024 */ and $v0, $v0, $a0 -/* 4304F8 802A94D8 1440001E */ bnez $v0, .L802A9554 -/* 4304FC 802A94DC A223005C */ sb $v1, 0x5c($s1) -.L802A94E0: -/* 430500 802A94E0 8222005C */ lb $v0, 0x5c($s1) -/* 430504 802A94E4 1040001B */ beqz $v0, .L802A9554 -/* 430508 802A94E8 00000000 */ nop -/* 43050C 802A94EC 86240050 */ lh $a0, 0x50($s1) -/* 430510 802A94F0 8E420434 */ lw $v0, 0x434($s2) -/* 430514 802A94F4 86230064 */ lh $v1, 0x64($s1) -/* 430518 802A94F8 00042080 */ sll $a0, $a0, 2 -/* 43051C 802A94FC 00822021 */ addu $a0, $a0, $v0 -/* 430520 802A9500 00031040 */ sll $v0, $v1, 1 -/* 430524 802A9504 00431021 */ addu $v0, $v0, $v1 -/* 430528 802A9508 000210C0 */ sll $v0, $v0, 3 -/* 43052C 802A950C 00431021 */ addu $v0, $v0, $v1 -/* 430530 802A9510 00021900 */ sll $v1, $v0, 4 -/* 430534 802A9514 00431021 */ addu $v0, $v0, $v1 -/* 430538 802A9518 8C840000 */ lw $a0, ($a0) -/* 43053C 802A951C 00021040 */ sll $v0, $v0, 1 -/* 430540 802A9520 00820018 */ mult $a0, $v0 -/* 430544 802A9524 00002012 */ mflo $a0 -/* 430548 802A9528 3C0268DB */ lui $v0, 0x68db -/* 43054C 802A952C 34428BAD */ ori $v0, $v0, 0x8bad -/* 430550 802A9530 00820018 */ mult $a0, $v0 -/* 430554 802A9534 A220005C */ sb $zero, 0x5c($s1) -/* 430558 802A9538 000427C3 */ sra $a0, $a0, 0x1f -/* 43055C 802A953C 00001010 */ mfhi $v0 -/* 430560 802A9540 00021B03 */ sra $v1, $v0, 0xc -/* 430564 802A9544 96220044 */ lhu $v0, 0x44($s1) -/* 430568 802A9548 00641823 */ subu $v1, $v1, $a0 -/* 43056C 802A954C 00431021 */ addu $v0, $v0, $v1 -/* 430570 802A9550 A6220044 */ sh $v0, 0x44($s1) -.L802A9554: -/* 430574 802A9554 8E420214 */ lw $v0, 0x214($s2) -/* 430578 802A9558 3C030008 */ lui $v1, 8 -/* 43057C 802A955C 00431024 */ and $v0, $v0, $v1 -/* 430580 802A9560 10400039 */ beqz $v0, .L802A9648 -/* 430584 802A9564 00000000 */ nop -/* 430588 802A9568 86240050 */ lh $a0, 0x50($s1) -/* 43058C 802A956C 8E420434 */ lw $v0, 0x434($s2) -/* 430590 802A9570 86230064 */ lh $v1, 0x64($s1) -/* 430594 802A9574 00042080 */ sll $a0, $a0, 2 -/* 430598 802A9578 00822021 */ addu $a0, $a0, $v0 -/* 43059C 802A957C 00031040 */ sll $v0, $v1, 1 -/* 4305A0 802A9580 00431021 */ addu $v0, $v0, $v1 -/* 4305A4 802A9584 000210C0 */ sll $v0, $v0, 3 -/* 4305A8 802A9588 00431021 */ addu $v0, $v0, $v1 -/* 4305AC 802A958C 00021900 */ sll $v1, $v0, 4 -/* 4305B0 802A9590 00431021 */ addu $v0, $v0, $v1 -/* 4305B4 802A9594 8C840000 */ lw $a0, ($a0) -/* 4305B8 802A9598 00021040 */ sll $v0, $v0, 1 -/* 4305BC 802A959C 00820018 */ mult $a0, $v0 -/* 4305C0 802A95A0 00002012 */ mflo $a0 -/* 4305C4 802A95A4 3C0268DB */ lui $v0, 0x68db -/* 4305C8 802A95A8 34428BAD */ ori $v0, $v0, 0x8bad -/* 4305CC 802A95AC 00820018 */ mult $a0, $v0 -/* 4305D0 802A95B0 000427C3 */ sra $a0, $a0, 0x1f -/* 4305D4 802A95B4 00001010 */ mfhi $v0 -/* 4305D8 802A95B8 00021B03 */ sra $v1, $v0, 0xc -/* 4305DC 802A95BC 96220044 */ lhu $v0, 0x44($s1) -/* 4305E0 802A95C0 00641823 */ subu $v1, $v1, $a0 -/* 4305E4 802A95C4 080AA591 */ j .L802A9644 -/* 4305E8 802A95C8 00431023 */ subu $v0, $v0, $v1 -.L802A95CC: -/* 4305EC 802A95CC 8E420210 */ lw $v0, 0x210($s2) -/* 4305F0 802A95D0 00441024 */ and $v0, $v0, $a0 -/* 4305F4 802A95D4 10400006 */ beqz $v0, .L802A95F0 -/* 4305F8 802A95D8 00000000 */ nop -/* 4305FC 802A95DC 8E420210 */ lw $v0, 0x210($s2) -/* 430600 802A95E0 24030001 */ addiu $v1, $zero, 1 -/* 430604 802A95E4 00441024 */ and $v0, $v0, $a0 -/* 430608 802A95E8 1440000F */ bnez $v0, .L802A9628 -/* 43060C 802A95EC A223005C */ sb $v1, 0x5c($s1) -.L802A95F0: -/* 430610 802A95F0 8222005C */ lb $v0, 0x5c($s1) -/* 430614 802A95F4 1040000C */ beqz $v0, .L802A9628 -/* 430618 802A95F8 00000000 */ nop -/* 43061C 802A95FC 96220044 */ lhu $v0, 0x44($s1) -/* 430620 802A9600 24420064 */ addiu $v0, $v0, 0x64 -/* 430624 802A9604 A6220044 */ sh $v0, 0x44($s1) -/* 430628 802A9608 00021400 */ sll $v0, $v0, 0x10 -/* 43062C 802A960C 00021403 */ sra $v0, $v0, 0x10 -/* 430630 802A9610 284201F4 */ slti $v0, $v0, 0x1f4 -/* 430634 802A9614 54400004 */ bnel $v0, $zero, .L802A9628 -/* 430638 802A9618 A220005C */ sb $zero, 0x5c($s1) -/* 43063C 802A961C 240201F4 */ addiu $v0, $zero, 0x1f4 -/* 430640 802A9620 A6220044 */ sh $v0, 0x44($s1) -/* 430644 802A9624 A220005C */ sb $zero, 0x5c($s1) -.L802A9628: -/* 430648 802A9628 8E420214 */ lw $v0, 0x214($s2) -/* 43064C 802A962C 3C030008 */ lui $v1, 8 -/* 430650 802A9630 00431024 */ and $v0, $v0, $v1 -/* 430654 802A9634 10400004 */ beqz $v0, .L802A9648 -/* 430658 802A9638 00000000 */ nop -/* 43065C 802A963C 96220044 */ lhu $v0, 0x44($s1) -/* 430660 802A9640 2442FF9C */ addiu $v0, $v0, -0x64 -.L802A9644: -/* 430664 802A9644 A6220044 */ sh $v0, 0x44($s1) -.L802A9648: -/* 430668 802A9648 86220044 */ lh $v0, 0x44($s1) -/* 43066C 802A964C 04420001 */ bltzl $v0, .L802A9654 -/* 430670 802A9650 A6200044 */ sh $zero, 0x44($s1) -.L802A9654: -/* 430674 802A9654 86220044 */ lh $v0, 0x44($s1) -/* 430678 802A9658 28422711 */ slti $v0, $v0, 0x2711 -/* 43067C 802A965C 14400010 */ bnez $v0, .L802A96A0 -/* 430680 802A9660 3C1051EB */ lui $s0, 0x51eb -/* 430684 802A9664 8E30000C */ lw $s0, 0xc($s1) -/* 430688 802A9668 86250056 */ lh $a1, 0x56($s1) -/* 43068C 802A966C 86260058 */ lh $a2, 0x58($s1) -/* 430690 802A9670 24022710 */ addiu $v0, $zero, 0x2710 -/* 430694 802A9674 A6220044 */ sh $v0, 0x44($s1) -/* 430698 802A9678 24020001 */ addiu $v0, $zero, 1 -/* 43069C 802A967C A6220068 */ sh $v0, 0x68($s1) -/* 4306A0 802A9680 0200202D */ daddu $a0, $s0, $zero -/* 4306A4 802A9684 24A50032 */ addiu $a1, $a1, 0x32 -/* 4306A8 802A9688 0C051261 */ jal hud_element_set_render_pos -/* 4306AC 802A968C 24C6001C */ addiu $a2, $a2, 0x1c -/* 4306B0 802A9690 0200202D */ daddu $a0, $s0, $zero -/* 4306B4 802A9694 0C05128B */ jal hud_element_clear_flags -/* 4306B8 802A9698 24050002 */ addiu $a1, $zero, 2 -/* 4306BC 802A969C 3C1051EB */ lui $s0, 0x51eb -.L802A96A0: -/* 4306C0 802A96A0 3610851F */ ori $s0, $s0, 0x851f -/* 4306C4 802A96A4 96230044 */ lhu $v1, 0x44($s1) -/* 4306C8 802A96A8 3C048000 */ lui $a0, 0x8000 -/* 4306CC 802A96AC 00031C00 */ sll $v1, $v1, 0x10 -/* 4306D0 802A96B0 00031403 */ sra $v0, $v1, 0x10 -/* 4306D4 802A96B4 00500018 */ mult $v0, $s0 -/* 4306D8 802A96B8 34840041 */ ori $a0, $a0, 0x41 -/* 4306DC 802A96BC 0000282D */ daddu $a1, $zero, $zero -/* 4306E0 802A96C0 00A0302D */ daddu $a2, $a1, $zero -/* 4306E4 802A96C4 00031FC3 */ sra $v1, $v1, 0x1f -/* 4306E8 802A96C8 00004810 */ mfhi $t1 -/* 4306EC 802A96CC 00094143 */ sra $t0, $t1, 5 -/* 4306F0 802A96D0 01034023 */ subu $t0, $t0, $v1 -/* 4306F4 802A96D4 00081600 */ sll $v0, $t0, 0x18 -/* 4306F8 802A96D8 00021603 */ sra $v0, $v0, 0x18 -/* 4306FC 802A96DC 00023840 */ sll $a3, $v0, 1 -/* 430700 802A96E0 00E23821 */ addu $a3, $a3, $v0 -/* 430704 802A96E4 00073880 */ sll $a3, $a3, 2 -/* 430708 802A96E8 0C0526F9 */ jal sfx_adjust_env_sound_params -/* 43070C 802A96EC A2480084 */ sb $t0, 0x84($s2) -/* 430710 802A96F0 86220054 */ lh $v0, 0x54($s1) -/* 430714 802A96F4 96230054 */ lhu $v1, 0x54($s1) -/* 430718 802A96F8 14400036 */ bnez $v0, .L802A97D4 -/* 43071C 802A96FC 2462FFFF */ addiu $v0, $v1, -1 -/* 430720 802A9700 86220064 */ lh $v0, 0x64($s1) -/* 430724 802A9704 86230044 */ lh $v1, 0x44($s1) -/* 430728 802A9708 50400001 */ beql $v0, $zero, .L802A9710 -/* 43072C 802A970C 0000182D */ daddu $v1, $zero, $zero -.L802A9710: -/* 430730 802A9710 14600003 */ bnez $v1, .L802A9720 -/* 430734 802A9714 00700018 */ mult $v1, $s0 -/* 430738 802A9718 080AA5CC */ j .L802A9730 -/* 43073C 802A971C 2402FFFF */ addiu $v0, $zero, -1 -.L802A9720: -/* 430740 802A9720 00031FC3 */ sra $v1, $v1, 0x1f -/* 430744 802A9724 00004810 */ mfhi $t1 -/* 430748 802A9728 00091143 */ sra $v0, $t1, 5 -/* 43074C 802A972C 00431023 */ subu $v0, $v0, $v1 -.L802A9730: -/* 430750 802A9730 A2420081 */ sb $v0, 0x81($s2) -/* 430754 802A9734 82220080 */ lb $v0, 0x80($s1) -/* 430758 802A9738 2442FFFF */ addiu $v0, $v0, -1 -/* 43075C 802A973C 00021040 */ sll $v0, $v0, 1 -/* 430760 802A9740 02221021 */ addu $v0, $s1, $v0 -/* 430764 802A9744 84430074 */ lh $v1, 0x74($v0) -/* 430768 802A9748 82420081 */ lb $v0, 0x81($s2) -/* 43076C 802A974C 0062102A */ slt $v0, $v1, $v0 -/* 430770 802A9750 14400002 */ bnez $v0, .L802A975C -/* 430774 802A9754 24020001 */ addiu $v0, $zero, 1 -/* 430778 802A9758 2402FFFE */ addiu $v0, $zero, -2 -.L802A975C: -/* 43077C 802A975C A2420086 */ sb $v0, 0x86($s2) -/* 430780 802A9760 82430081 */ lb $v1, 0x81($s2) -/* 430784 802A9764 24020064 */ addiu $v0, $zero, 0x64 -/* 430788 802A9768 14620003 */ bne $v1, $v0, .L802A9778 -/* 43078C 802A976C 00000000 */ nop -/* 430790 802A9770 0C09A458 */ jal func_80269160 -/* 430794 802A9774 00000000 */ nop -.L802A9778: -/* 430798 802A9778 0C093EB1 */ jal btl_set_popup_duration -/* 43079C 802A977C 0000202D */ daddu $a0, $zero, $zero -/* 4307A0 802A9780 3C048000 */ lui $a0, 0x8000 -/* 4307A4 802A9784 0C05271B */ jal sfx_stop_sound -/* 4307A8 802A9788 34840041 */ ori $a0, $a0, 0x41 -/* 4307AC 802A978C 24020005 */ addiu $v0, $zero, 5 -/* 4307B0 802A9790 A6220054 */ sh $v0, 0x54($s1) -/* 4307B4 802A9794 2402000C */ addiu $v0, $zero, 0xc -/* 4307B8 802A9798 080AA5F9 */ j L802A97E4_430804 -/* 4307BC 802A979C A622004C */ sh $v0, 0x4c($s1) -dlabel L802A97A0_4307C0 -/* 4307C0 802A97A0 86220064 */ lh $v0, 0x64($s1) -/* 4307C4 802A97A4 14400007 */ bnez $v0, .L802A97C4 -/* 4307C8 802A97A8 00000000 */ nop -/* 4307CC 802A97AC 96220044 */ lhu $v0, 0x44($s1) -/* 4307D0 802A97B0 2442FF9C */ addiu $v0, $v0, -0x64 -/* 4307D4 802A97B4 A6220044 */ sh $v0, 0x44($s1) -/* 4307D8 802A97B8 00021400 */ sll $v0, $v0, 0x10 -/* 4307DC 802A97BC 04420001 */ bltzl $v0, .L802A97C4 -/* 4307E0 802A97C0 A6200044 */ sh $zero, 0x44($s1) -.L802A97C4: -/* 4307E4 802A97C4 86220054 */ lh $v0, 0x54($s1) -/* 4307E8 802A97C8 96230054 */ lhu $v1, 0x54($s1) -/* 4307EC 802A97CC 10400003 */ beqz $v0, .L802A97DC -/* 4307F0 802A97D0 2462FFFF */ addiu $v0, $v1, -1 -.L802A97D4: -/* 4307F4 802A97D4 080AA5F9 */ j L802A97E4_430804 -/* 4307F8 802A97D8 A6220054 */ sh $v0, 0x54($s1) -.L802A97DC: -/* 4307FC 802A97DC 0C09A327 */ jal func_80268C9C -/* 430800 802A97E0 00000000 */ nop -dlabel L802A97E4_430804 -/* 430804 802A97E4 8FBF001C */ lw $ra, 0x1c($sp) -/* 430808 802A97E8 8FB20018 */ lw $s2, 0x18($sp) -/* 43080C 802A97EC 8FB10014 */ lw $s1, 0x14($sp) -/* 430810 802A97F0 8FB00010 */ lw $s0, 0x10($sp) -/* 430814 802A97F4 03E00008 */ jr $ra -/* 430818 802A97F8 27BD0020 */ addiu $sp, $sp, 0x20 diff --git a/ver/us/asm/nonmatchings/battle/action_cmd/squirt/func_802A9208_429F28.s b/ver/us/asm/nonmatchings/battle/action_cmd/squirt/func_802A9208_429F28.s deleted file mode 100644 index f6ab3069b6..0000000000 --- a/ver/us/asm/nonmatchings/battle/action_cmd/squirt/func_802A9208_429F28.s +++ /dev/null @@ -1,295 +0,0 @@ -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches - -glabel func_802A9208_429F28 -/* 429F28 802A9208 27BDFFD8 */ addiu $sp, $sp, -0x28 -/* 429F2C 802A920C AFB10014 */ sw $s1, 0x14($sp) -/* 429F30 802A9210 3C11802A */ lui $s1, %hi(gActionCommandStatus) -/* 429F34 802A9214 2631FBE0 */ addiu $s1, $s1, %lo(gActionCommandStatus) -/* 429F38 802A9218 AFBF0020 */ sw $ra, 0x20($sp) -/* 429F3C 802A921C AFB3001C */ sw $s3, 0x1c($sp) -/* 429F40 802A9220 AFB20018 */ sw $s2, 0x18($sp) -/* 429F44 802A9224 AFB00010 */ sw $s0, 0x10($sp) -/* 429F48 802A9228 8623004C */ lh $v1, 0x4c($s1) -/* 429F4C 802A922C 3C13800E */ lui $s3, %hi(gBattleStatus) -/* 429F50 802A9230 2673C070 */ addiu $s3, $s3, %lo(gBattleStatus) -/* 429F54 802A9234 2C62000D */ sltiu $v0, $v1, 0xd -/* 429F58 802A9238 104000F7 */ beqz $v0, L802A9618_42A338 -/* 429F5C 802A923C 00031080 */ sll $v0, $v1, 2 -/* 429F60 802A9240 3C01802B */ lui $at, %hi(jtbl_802A9790_42A4B0) -/* 429F64 802A9244 00220821 */ addu $at, $at, $v0 -/* 429F68 802A9248 8C229790 */ lw $v0, %lo(jtbl_802A9790_42A4B0)($at) -/* 429F6C 802A924C 00400008 */ jr $v0 -/* 429F70 802A9250 00000000 */ nop -dlabel L802A9254_429F74 -/* 429F74 802A9254 0C093EB1 */ jal btl_set_popup_duration -/* 429F78 802A9258 24040063 */ addiu $a0, $zero, 0x63 -/* 429F7C 802A925C 82220061 */ lb $v0, 0x61($s1) -/* 429F80 802A9260 8E300004 */ lw $s0, 4($s1) -/* 429F84 802A9264 10400004 */ beqz $v0, .L802A9278 -/* 429F88 802A9268 0200202D */ daddu $a0, $s0, $zero -/* 429F8C 802A926C 0C05128B */ jal hud_element_clear_flags -/* 429F90 802A9270 24050002 */ addiu $a1, $zero, 2 -/* 429F94 802A9274 0200202D */ daddu $a0, $s0, $zero -.L802A9278: -/* 429F98 802A9278 0C0513AC */ jal hud_element_set_alpha -/* 429F9C 802A927C 240500FF */ addiu $a1, $zero, 0xff -/* 429FA0 802A9280 8E300008 */ lw $s0, 8($s1) -/* 429FA4 802A9284 240500FF */ addiu $a1, $zero, 0xff -/* 429FA8 802A9288 0C0513AC */ jal hud_element_set_alpha -/* 429FAC 802A928C 0200202D */ daddu $a0, $s0, $zero -/* 429FB0 802A9290 82220061 */ lb $v0, 0x61($s1) -/* 429FB4 802A9294 10400003 */ beqz $v0, .L802A92A4 -/* 429FB8 802A9298 0200202D */ daddu $a0, $s0, $zero -/* 429FBC 802A929C 0C05128B */ jal hud_element_clear_flags -/* 429FC0 802A92A0 24050002 */ addiu $a1, $zero, 2 -.L802A92A4: -/* 429FC4 802A92A4 24020001 */ addiu $v0, $zero, 1 -/* 429FC8 802A92A8 080AA586 */ j L802A9618_42A338 -/* 429FCC 802A92AC A622004C */ sh $v0, 0x4c($s1) -dlabel L802A92B0_429FD0 -/* 429FD0 802A92B0 0C093EB1 */ jal btl_set_popup_duration -/* 429FD4 802A92B4 24040063 */ addiu $a0, $zero, 0x63 -/* 429FD8 802A92B8 96220056 */ lhu $v0, 0x56($s1) -/* 429FDC 802A92BC 24420014 */ addiu $v0, $v0, 0x14 -/* 429FE0 802A92C0 A6220056 */ sh $v0, 0x56($s1) -/* 429FE4 802A92C4 00021400 */ sll $v0, $v0, 0x10 -/* 429FE8 802A92C8 00021403 */ sra $v0, $v0, 0x10 -/* 429FEC 802A92CC 28420033 */ slti $v0, $v0, 0x33 -/* 429FF0 802A92D0 14400002 */ bnez $v0, .L802A92DC -/* 429FF4 802A92D4 24020032 */ addiu $v0, $zero, 0x32 -/* 429FF8 802A92D8 A6220056 */ sh $v0, 0x56($s1) -.L802A92DC: -/* 429FFC 802A92DC 8E240004 */ lw $a0, 4($s1) -/* 42A000 802A92E0 86250056 */ lh $a1, 0x56($s1) -/* 42A004 802A92E4 0C051261 */ jal hud_element_set_render_pos -/* 42A008 802A92E8 86260058 */ lh $a2, 0x58($s1) -/* 42A00C 802A92EC 8E240008 */ lw $a0, 8($s1) -/* 42A010 802A92F0 86260058 */ lh $a2, 0x58($s1) -/* 42A014 802A92F4 86250056 */ lh $a1, 0x56($s1) -/* 42A018 802A92F8 0C051261 */ jal hud_element_set_render_pos -/* 42A01C 802A92FC 24C6001C */ addiu $a2, $a2, 0x1c -/* 42A020 802A9300 080AA586 */ j L802A9618_42A338 -/* 42A024 802A9304 00000000 */ nop -dlabel L802A9308_42A028 -/* 42A028 802A9308 0C093EB1 */ jal btl_set_popup_duration -/* 42A02C 802A930C 24040063 */ addiu $a0, $zero, 0x63 -/* 42A030 802A9310 8622004E */ lh $v0, 0x4e($s1) -/* 42A034 802A9314 9623004E */ lhu $v1, 0x4e($s1) -/* 42A038 802A9318 10400003 */ beqz $v0, .L802A9328 -/* 42A03C 802A931C 2462FFFF */ addiu $v0, $v1, -1 -/* 42A040 802A9320 080AA586 */ j L802A9618_42A338 -/* 42A044 802A9324 A622004E */ sh $v0, 0x4e($s1) -.L802A9328: -/* 42A048 802A9328 8E240004 */ lw $a0, 4($s1) -/* 42A04C 802A932C 3C058011 */ lui $a1, %hi(HudScript_AButtonDown) -/* 42A050 802A9330 24A58B54 */ addiu $a1, $a1, %lo(HudScript_AButtonDown) -/* 42A054 802A9334 0C0511FF */ jal hud_element_set_script -/* 42A058 802A9338 00000000 */ nop -/* 42A05C 802A933C 3C048000 */ lui $a0, 0x8000 -/* 42A060 802A9340 34840041 */ ori $a0, $a0, 0x41 -/* 42A064 802A9344 0000282D */ daddu $a1, $zero, $zero -/* 42A068 802A9348 00A0302D */ daddu $a2, $a1, $zero -/* 42A06C 802A934C 96220052 */ lhu $v0, 0x52($s1) -/* 42A070 802A9350 00A0382D */ daddu $a3, $a1, $zero -/* 42A074 802A9354 A6200044 */ sh $zero, 0x44($s1) -/* 42A078 802A9358 A220005C */ sb $zero, 0x5c($s1) -/* 42A07C 802A935C 0C0526AE */ jal sfx_play_sound_with_params -/* 42A080 802A9360 A6220054 */ sh $v0, 0x54($s1) -/* 42A084 802A9364 2402000B */ addiu $v0, $zero, 0xb -/* 42A088 802A9368 A622004C */ sh $v0, 0x4c($s1) -dlabel L802A936C_42A08C -/* 42A08C 802A936C 0C093EB1 */ jal btl_set_popup_duration -/* 42A090 802A9370 24040063 */ addiu $a0, $zero, 0x63 -/* 42A094 802A9374 82220080 */ lb $v0, 0x80($s1) -/* 42A098 802A9378 00021040 */ sll $v0, $v0, 1 -/* 42A09C 802A937C 02221021 */ addu $v0, $s1, $v0 -/* 42A0A0 802A9380 84430074 */ lh $v1, 0x74($v0) -/* 42A0A4 802A9384 86220044 */ lh $v0, 0x44($s1) -/* 42A0A8 802A9388 14600002 */ bnez $v1, .L802A9394 -/* 42A0AC 802A938C 0043001A */ div $zero, $v0, $v1 -/* 42A0B0 802A9390 0007000D */ break 7 -.L802A9394: -/* 42A0B4 802A9394 2401FFFF */ addiu $at, $zero, -1 -/* 42A0B8 802A9398 14610004 */ bne $v1, $at, .L802A93AC -/* 42A0BC 802A939C 3C018000 */ lui $at, 0x8000 -/* 42A0C0 802A93A0 14410002 */ bne $v0, $at, .L802A93AC -/* 42A0C4 802A93A4 00000000 */ nop -/* 42A0C8 802A93A8 0006000D */ break 6 -.L802A93AC: -/* 42A0CC 802A93AC 00009012 */ mflo $s2 -/* 42A0D0 802A93B0 8222005C */ lb $v0, 0x5c($s1) -/* 42A0D4 802A93B4 96250044 */ lhu $a1, 0x44($s1) -/* 42A0D8 802A93B8 1440003A */ bnez $v0, .L802A94A4 -/* 42A0DC 802A93BC 24A2FF06 */ addiu $v0, $a1, -0xfa -/* 42A0E0 802A93C0 8E620210 */ lw $v0, 0x210($s3) -/* 42A0E4 802A93C4 30428000 */ andi $v0, $v0, 0x8000 -/* 42A0E8 802A93C8 14400012 */ bnez $v0, .L802A9414 -/* 42A0EC 802A93CC 3C026666 */ lui $v0, 0x6666 -/* 42A0F0 802A93D0 34426667 */ ori $v0, $v0, 0x6667 -/* 42A0F4 802A93D4 02420018 */ mult $s2, $v0 -/* 42A0F8 802A93D8 00121FC3 */ sra $v1, $s2, 0x1f -/* 42A0FC 802A93DC 00004810 */ mfhi $t1 -/* 42A100 802A93E0 000910C3 */ sra $v0, $t1, 3 -/* 42A104 802A93E4 00431023 */ subu $v0, $v0, $v1 -/* 42A108 802A93E8 00021080 */ sll $v0, $v0, 2 -/* 42A10C 802A93EC 3C01802B */ lui $at, %hi(D_802A9762_42A482) -/* 42A110 802A93F0 00220821 */ addu $at, $at, $v0 -/* 42A114 802A93F4 94229762 */ lhu $v0, %lo(D_802A9762_42A482)($at) -/* 42A118 802A93F8 00A21023 */ subu $v0, $a1, $v0 -/* 42A11C 802A93FC A6220044 */ sh $v0, 0x44($s1) -/* 42A120 802A9400 00021400 */ sll $v0, $v0, 0x10 -/* 42A124 802A9404 0442002D */ bltzl $v0, .L802A94BC -/* 42A128 802A9408 A6200044 */ sh $zero, 0x44($s1) -/* 42A12C 802A940C 080AA530 */ j .L802A94C0 -/* 42A130 802A9410 3C0451EB */ lui $a0, 0x51eb -.L802A9414: -/* 42A134 802A9414 34426667 */ ori $v0, $v0, 0x6667 -/* 42A138 802A9418 02420018 */ mult $s2, $v0 -/* 42A13C 802A941C 001217C3 */ sra $v0, $s2, 0x1f -/* 42A140 802A9420 8E640434 */ lw $a0, 0x434($s3) -/* 42A144 802A9424 00001810 */ mfhi $v1 -/* 42A148 802A9428 000318C3 */ sra $v1, $v1, 3 -/* 42A14C 802A942C 00621823 */ subu $v1, $v1, $v0 -/* 42A150 802A9430 00031880 */ sll $v1, $v1, 2 -/* 42A154 802A9434 86220050 */ lh $v0, 0x50($s1) -/* 42A158 802A9438 3C01802B */ lui $at, %hi(D_802A9778_42A498) -/* 42A15C 802A943C 00230821 */ addu $at, $at, $v1 -/* 42A160 802A9440 8C239778 */ lw $v1, %lo(D_802A9778_42A498)($at) -/* 42A164 802A9444 00021080 */ sll $v0, $v0, 2 -/* 42A168 802A9448 00441021 */ addu $v0, $v0, $a0 -/* 42A16C 802A944C 8C420000 */ lw $v0, ($v0) -/* 42A170 802A9450 00620018 */ mult $v1, $v0 -/* 42A174 802A9454 00001812 */ mflo $v1 -/* 42A178 802A9458 3C0251EB */ lui $v0, 0x51eb -/* 42A17C 802A945C 3442851F */ ori $v0, $v0, 0x851f -/* 42A180 802A9460 00620018 */ mult $v1, $v0 -/* 42A184 802A9464 00031FC3 */ sra $v1, $v1, 0x1f -/* 42A188 802A9468 00004010 */ mfhi $t0 -/* 42A18C 802A946C 00081143 */ sra $v0, $t0, 5 -/* 42A190 802A9470 00431023 */ subu $v0, $v0, $v1 -/* 42A194 802A9474 00A21021 */ addu $v0, $a1, $v0 -/* 42A198 802A9478 A6220044 */ sh $v0, 0x44($s1) -/* 42A19C 802A947C 00021400 */ sll $v0, $v0, 0x10 -/* 42A1A0 802A9480 00021403 */ sra $v0, $v0, 0x10 -/* 42A1A4 802A9484 28422711 */ slti $v0, $v0, 0x2711 -/* 42A1A8 802A9488 1440000D */ bnez $v0, .L802A94C0 -/* 42A1AC 802A948C 3C0451EB */ lui $a0, 0x51eb -/* 42A1B0 802A9490 24022710 */ addiu $v0, $zero, 0x2710 -/* 42A1B4 802A9494 A6220044 */ sh $v0, 0x44($s1) -/* 42A1B8 802A9498 24020001 */ addiu $v0, $zero, 1 -/* 42A1BC 802A949C 080AA530 */ j .L802A94C0 -/* 42A1C0 802A94A0 A222005C */ sb $v0, 0x5c($s1) -.L802A94A4: -/* 42A1C4 802A94A4 A6220044 */ sh $v0, 0x44($s1) -/* 42A1C8 802A94A8 00021400 */ sll $v0, $v0, 0x10 -/* 42A1CC 802A94AC 1C400004 */ bgtz $v0, .L802A94C0 -/* 42A1D0 802A94B0 3C0451EB */ lui $a0, 0x51eb -/* 42A1D4 802A94B4 A6200044 */ sh $zero, 0x44($s1) -/* 42A1D8 802A94B8 A220005C */ sb $zero, 0x5c($s1) -.L802A94BC: -/* 42A1DC 802A94BC 3C0451EB */ lui $a0, 0x51eb -.L802A94C0: -/* 42A1E0 802A94C0 3484851F */ ori $a0, $a0, 0x851f -/* 42A1E4 802A94C4 96230044 */ lhu $v1, 0x44($s1) -/* 42A1E8 802A94C8 0000282D */ daddu $a1, $zero, $zero -/* 42A1EC 802A94CC 00031C00 */ sll $v1, $v1, 0x10 -/* 42A1F0 802A94D0 00031403 */ sra $v0, $v1, 0x10 -/* 42A1F4 802A94D4 00440018 */ mult $v0, $a0 -/* 42A1F8 802A94D8 00A0302D */ daddu $a2, $a1, $zero -/* 42A1FC 802A94DC 3C048000 */ lui $a0, 0x8000 -/* 42A200 802A94E0 34840041 */ ori $a0, $a0, 0x41 -/* 42A204 802A94E4 00031FC3 */ sra $v1, $v1, 0x1f -/* 42A208 802A94E8 00004810 */ mfhi $t1 -/* 42A20C 802A94EC 00094143 */ sra $t0, $t1, 5 -/* 42A210 802A94F0 01034023 */ subu $t0, $t0, $v1 -/* 42A214 802A94F4 00081600 */ sll $v0, $t0, 0x18 -/* 42A218 802A94F8 00021603 */ sra $v0, $v0, 0x18 -/* 42A21C 802A94FC 00023840 */ sll $a3, $v0, 1 -/* 42A220 802A9500 00E23821 */ addu $a3, $a3, $v0 -/* 42A224 802A9504 00073880 */ sll $a3, $a3, 2 -/* 42A228 802A9508 0C0526F9 */ jal sfx_adjust_env_sound_params -/* 42A22C 802A950C A2680084 */ sb $t0, 0x84($s3) -/* 42A230 802A9510 2A420050 */ slti $v0, $s2, 0x50 -/* 42A234 802A9514 10400007 */ beqz $v0, .L802A9534 -/* 42A238 802A9518 8E300004 */ lw $s0, 4($s1) -/* 42A23C 802A951C 0C05122C */ jal hud_element_get_script -/* 42A240 802A9520 0200202D */ daddu $a0, $s0, $zero -/* 42A244 802A9524 3C058011 */ lui $a1, %hi(HudScript_AButtonDown) -/* 42A248 802A9528 24A58B54 */ addiu $a1, $a1, %lo(HudScript_AButtonDown) -/* 42A24C 802A952C 080AA551 */ j .L802A9544 -/* 42A250 802A9530 00000000 */ nop -.L802A9534: -/* 42A254 802A9534 0C05122C */ jal hud_element_get_script -/* 42A258 802A9538 0200202D */ daddu $a0, $s0, $zero -/* 42A25C 802A953C 3C058011 */ lui $a1, %hi(HudScript_PressAButton) -/* 42A260 802A9540 24A58BBC */ addiu $a1, $a1, %lo(HudScript_PressAButton) -.L802A9544: -/* 42A264 802A9544 10450003 */ beq $v0, $a1, .L802A9554 -/* 42A268 802A9548 00000000 */ nop -/* 42A26C 802A954C 0C0511FF */ jal hud_element_set_script -/* 42A270 802A9550 0200202D */ daddu $a0, $s0, $zero -.L802A9554: -/* 42A274 802A9554 86220054 */ lh $v0, 0x54($s1) -/* 42A278 802A9558 96230054 */ lhu $v1, 0x54($s1) -/* 42A27C 802A955C 1440002A */ bnez $v0, .L802A9608 -/* 42A280 802A9560 2462FFFF */ addiu $v0, $v1, -1 -/* 42A284 802A9564 86220044 */ lh $v0, 0x44($s1) -/* 42A288 802A9568 10400002 */ beqz $v0, .L802A9574 -/* 42A28C 802A956C 2402FFFF */ addiu $v0, $zero, -1 -/* 42A290 802A9570 92620084 */ lbu $v0, 0x84($s3) -.L802A9574: -/* 42A294 802A9574 A2620081 */ sb $v0, 0x81($s3) -/* 42A298 802A9578 82220080 */ lb $v0, 0x80($s1) -/* 42A29C 802A957C 2442FFFF */ addiu $v0, $v0, -1 -/* 42A2A0 802A9580 00021040 */ sll $v0, $v0, 1 -/* 42A2A4 802A9584 02221021 */ addu $v0, $s1, $v0 -/* 42A2A8 802A9588 94420074 */ lhu $v0, 0x74($v0) -/* 42A2AC 802A958C 00021400 */ sll $v0, $v0, 0x10 -/* 42A2B0 802A9590 00021C03 */ sra $v1, $v0, 0x10 -/* 42A2B4 802A9594 000217C2 */ srl $v0, $v0, 0x1f -/* 42A2B8 802A9598 00621021 */ addu $v0, $v1, $v0 -/* 42A2BC 802A959C 82630084 */ lb $v1, 0x84($s3) -/* 42A2C0 802A95A0 00021043 */ sra $v0, $v0, 1 -/* 42A2C4 802A95A4 0043102A */ slt $v0, $v0, $v1 -/* 42A2C8 802A95A8 14400002 */ bnez $v0, .L802A95B4 -/* 42A2CC 802A95AC 24020001 */ addiu $v0, $zero, 1 -/* 42A2D0 802A95B0 2402FFFC */ addiu $v0, $zero, -4 -.L802A95B4: -/* 42A2D4 802A95B4 A2620086 */ sb $v0, 0x86($s3) -/* 42A2D8 802A95B8 82630081 */ lb $v1, 0x81($s3) -/* 42A2DC 802A95BC 24020064 */ addiu $v0, $zero, 0x64 -/* 42A2E0 802A95C0 14620003 */ bne $v1, $v0, .L802A95D0 -/* 42A2E4 802A95C4 00000000 */ nop -/* 42A2E8 802A95C8 0C09A458 */ jal func_80269160 -/* 42A2EC 802A95CC 00000000 */ nop -.L802A95D0: -/* 42A2F0 802A95D0 0C093EB1 */ jal btl_set_popup_duration -/* 42A2F4 802A95D4 0000202D */ daddu $a0, $zero, $zero -/* 42A2F8 802A95D8 3C048000 */ lui $a0, 0x8000 -/* 42A2FC 802A95DC 0C05271B */ jal sfx_stop_sound -/* 42A300 802A95E0 34840041 */ ori $a0, $a0, 0x41 -/* 42A304 802A95E4 24020005 */ addiu $v0, $zero, 5 -/* 42A308 802A95E8 A6220054 */ sh $v0, 0x54($s1) -/* 42A30C 802A95EC 2402000C */ addiu $v0, $zero, 0xc -/* 42A310 802A95F0 080AA586 */ j L802A9618_42A338 -/* 42A314 802A95F4 A622004C */ sh $v0, 0x4c($s1) -dlabel L802A95F8_42A318 -/* 42A318 802A95F8 86220054 */ lh $v0, 0x54($s1) -/* 42A31C 802A95FC 96230054 */ lhu $v1, 0x54($s1) -/* 42A320 802A9600 10400003 */ beqz $v0, .L802A9610 -/* 42A324 802A9604 2462FFFF */ addiu $v0, $v1, -1 -.L802A9608: -/* 42A328 802A9608 080AA586 */ j L802A9618_42A338 -/* 42A32C 802A960C A6220054 */ sh $v0, 0x54($s1) -.L802A9610: -/* 42A330 802A9610 0C09A327 */ jal func_80268C9C -/* 42A334 802A9614 00000000 */ nop -dlabel L802A9618_42A338 -/* 42A338 802A9618 8FBF0020 */ lw $ra, 0x20($sp) -/* 42A33C 802A961C 8FB3001C */ lw $s3, 0x1c($sp) -/* 42A340 802A9620 8FB20018 */ lw $s2, 0x18($sp) -/* 42A344 802A9624 8FB10014 */ lw $s1, 0x14($sp) -/* 42A348 802A9628 8FB00010 */ lw $s0, 0x10($sp) -/* 42A34C 802A962C 03E00008 */ jr $ra -/* 42A350 802A9630 27BD0028 */ addiu $sp, $sp, 0x28 diff --git a/ver/us/asm/nonmatchings/battle/action_cmd/water_block/func_802A9000_42A4F0.s b/ver/us/asm/nonmatchings/battle/action_cmd/water_block/func_802A9000_42A4F0.s deleted file mode 100644 index 5872192120..0000000000 --- a/ver/us/asm/nonmatchings/battle/action_cmd/water_block/func_802A9000_42A4F0.s +++ /dev/null @@ -1,242 +0,0 @@ -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches - -glabel func_802A9000_42A4F0 -/* 42A4F0 802A9000 27BDFFD8 */ addiu $sp, $sp, -0x28 -/* 42A4F4 802A9004 AFB10014 */ sw $s1, 0x14($sp) -/* 42A4F8 802A9008 0080882D */ daddu $s1, $a0, $zero -/* 42A4FC 802A900C 3C03800E */ lui $v1, %hi(gBattleStatus) -/* 42A500 802A9010 2463C070 */ addiu $v1, $v1, %lo(gBattleStatus) -/* 42A504 802A9014 AFBF0020 */ sw $ra, 0x20($sp) -/* 42A508 802A9018 AFB3001C */ sw $s3, 0x1c($sp) -/* 42A50C 802A901C AFB20018 */ sw $s2, 0x18($sp) -/* 42A510 802A9020 AFB00010 */ sw $s0, 0x10($sp) -/* 42A514 802A9024 8E30000C */ lw $s0, 0xc($s1) -/* 42A518 802A9028 24020005 */ addiu $v0, $zero, 5 -/* 42A51C 802A902C A0620082 */ sb $v0, 0x82($v1) -/* 42A520 802A9030 3C028029 */ lui $v0, %hi(D_80294460) -/* 42A524 802A9034 24424460 */ addiu $v0, $v0, %lo(D_80294460) -/* 42A528 802A9038 3C12802A */ lui $s2, %hi(gActionCommandStatus) -/* 42A52C 802A903C 2652FBE0 */ addiu $s2, $s2, %lo(gActionCommandStatus) -/* 42A530 802A9040 AC620434 */ sw $v0, 0x434($v1) -/* 42A534 802A9044 80620083 */ lb $v0, 0x83($v1) -/* 42A538 802A9048 14400003 */ bnez $v0, .L802A9058 -/* 42A53C 802A904C 0060982D */ daddu $s3, $v1, $zero -/* 42A540 802A9050 080AA4DE */ j .L802A9378 -/* 42A544 802A9054 A0600081 */ sb $zero, 0x81($v1) -.L802A9058: -/* 42A548 802A9058 0C09A216 */ jal func_80268858 -/* 42A54C 802A905C 00000000 */ nop -/* 42A550 802A9060 24020016 */ addiu $v0, $zero, 0x16 -/* 42A554 802A9064 A642004A */ sh $v0, 0x4a($s2) -/* 42A558 802A9068 A640004C */ sh $zero, 0x4c($s2) -/* 42A55C 802A906C A2400060 */ sb $zero, 0x60($s2) -/* 42A560 802A9070 A6400044 */ sh $zero, 0x44($s2) -/* 42A564 802A9074 A6400048 */ sh $zero, 0x48($s2) -/* 42A568 802A9078 8E050000 */ lw $a1, ($s0) -/* 42A56C 802A907C 0C0B1EAF */ jal evt_get_variable -/* 42A570 802A9080 0220202D */ daddu $a0, $s1, $zero -/* 42A574 802A9084 3C048011 */ lui $a0, %hi(HudScript_AButton) -/* 42A578 802A9088 24848B28 */ addiu $a0, $a0, %lo(HudScript_AButton) -/* 42A57C 802A908C A6420064 */ sh $v0, 0x64($s2) -/* 42A580 802A9090 24020001 */ addiu $v0, $zero, 1 -/* 42A584 802A9094 A2620084 */ sb $v0, 0x84($s3) -/* 42A588 802A9098 2402001E */ addiu $v0, $zero, 0x1e -/* 42A58C 802A909C A642006C */ sh $v0, 0x6c($s2) -/* 42A590 802A90A0 2402FFD0 */ addiu $v0, $zero, -0x30 -/* 42A594 802A90A4 A6420056 */ sh $v0, 0x56($s2) -/* 42A598 802A90A8 24020050 */ addiu $v0, $zero, 0x50 -/* 42A59C 802A90AC 0C050529 */ jal hud_element_create -/* 42A5A0 802A90B0 A6420058 */ sh $v0, 0x58($s2) -/* 42A5A4 802A90B4 0040882D */ daddu $s1, $v0, $zero -/* 42A5A8 802A90B8 0220202D */ daddu $a0, $s1, $zero -/* 42A5AC 802A90BC 24050082 */ addiu $a1, $zero, 0x82 -/* 42A5B0 802A90C0 0C051280 */ jal hud_element_set_flags -/* 42A5B4 802A90C4 AE510004 */ sw $s1, 4($s2) -/* 42A5B8 802A90C8 86450056 */ lh $a1, 0x56($s2) -/* 42A5BC 802A90CC 86460058 */ lh $a2, 0x58($s2) -/* 42A5C0 802A90D0 0C051261 */ jal hud_element_set_render_pos -/* 42A5C4 802A90D4 0220202D */ daddu $a0, $s1, $zero -/* 42A5C8 802A90D8 0220202D */ daddu $a0, $s1, $zero -/* 42A5CC 802A90DC 0C051277 */ jal hud_element_set_render_depth -/* 42A5D0 802A90E0 0000282D */ daddu $a1, $zero, $zero -/* 42A5D4 802A90E4 3C048029 */ lui $a0, %hi(HudScript_TimingBar3Chances) -/* 42A5D8 802A90E8 24842AFC */ addiu $a0, $a0, %lo(HudScript_TimingBar3Chances) -/* 42A5DC 802A90EC 0C050529 */ jal hud_element_create -/* 42A5E0 802A90F0 00000000 */ nop -/* 42A5E4 802A90F4 0040882D */ daddu $s1, $v0, $zero -/* 42A5E8 802A90F8 86450056 */ lh $a1, 0x56($s2) -/* 42A5EC 802A90FC 86460058 */ lh $a2, 0x58($s2) -/* 42A5F0 802A9100 0220202D */ daddu $a0, $s1, $zero -/* 42A5F4 802A9104 AE510008 */ sw $s1, 8($s2) -/* 42A5F8 802A9108 0C051261 */ jal hud_element_set_render_pos -/* 42A5FC 802A910C 24C6001C */ addiu $a2, $a2, 0x1c -/* 42A600 802A9110 0220202D */ daddu $a0, $s1, $zero -/* 42A604 802A9114 0C051277 */ jal hud_element_set_render_depth -/* 42A608 802A9118 0000282D */ daddu $a1, $zero, $zero -/* 42A60C 802A911C 0220202D */ daddu $a0, $s1, $zero -/* 42A610 802A9120 0C051280 */ jal hud_element_set_flags -/* 42A614 802A9124 24050082 */ addiu $a1, $zero, 0x82 -/* 42A618 802A9128 3C108029 */ lui $s0, %hi(HudScript_TimingWait) -/* 42A61C 802A912C 2610275C */ addiu $s0, $s0, %lo(HudScript_TimingWait) -/* 42A620 802A9130 0C050529 */ jal hud_element_create -/* 42A624 802A9134 0200202D */ daddu $a0, $s0, $zero -/* 42A628 802A9138 0040882D */ daddu $s1, $v0, $zero -/* 42A62C 802A913C 86450056 */ lh $a1, 0x56($s2) -/* 42A630 802A9140 86460058 */ lh $a2, 0x58($s2) -/* 42A634 802A9144 0220202D */ daddu $a0, $s1, $zero -/* 42A638 802A9148 AE51000C */ sw $s1, 0xc($s2) -/* 42A63C 802A914C 0C051261 */ jal hud_element_set_render_pos -/* 42A640 802A9150 24C6001C */ addiu $a2, $a2, 0x1c -/* 42A644 802A9154 0220202D */ daddu $a0, $s1, $zero -/* 42A648 802A9158 0C051277 */ jal hud_element_set_render_depth -/* 42A64C 802A915C 0000282D */ daddu $a1, $zero, $zero -/* 42A650 802A9160 0220202D */ daddu $a0, $s1, $zero -/* 42A654 802A9164 0C051280 */ jal hud_element_set_flags -/* 42A658 802A9168 24050082 */ addiu $a1, $zero, 0x82 -/* 42A65C 802A916C 0C050529 */ jal hud_element_create -/* 42A660 802A9170 0200202D */ daddu $a0, $s0, $zero -/* 42A664 802A9174 0040882D */ daddu $s1, $v0, $zero -/* 42A668 802A9178 86450056 */ lh $a1, 0x56($s2) -/* 42A66C 802A917C 86460058 */ lh $a2, 0x58($s2) -/* 42A670 802A9180 0220202D */ daddu $a0, $s1, $zero -/* 42A674 802A9184 AE510010 */ sw $s1, 0x10($s2) -/* 42A678 802A9188 0C051261 */ jal hud_element_set_render_pos -/* 42A67C 802A918C 24C6001C */ addiu $a2, $a2, 0x1c -/* 42A680 802A9190 0220202D */ daddu $a0, $s1, $zero -/* 42A684 802A9194 0C051277 */ jal hud_element_set_render_depth -/* 42A688 802A9198 0000282D */ daddu $a1, $zero, $zero -/* 42A68C 802A919C 0220202D */ daddu $a0, $s1, $zero -/* 42A690 802A91A0 0C051280 */ jal hud_element_set_flags -/* 42A694 802A91A4 24050082 */ addiu $a1, $zero, 0x82 -/* 42A698 802A91A8 0C050529 */ jal hud_element_create -/* 42A69C 802A91AC 0200202D */ daddu $a0, $s0, $zero -/* 42A6A0 802A91B0 0040882D */ daddu $s1, $v0, $zero -/* 42A6A4 802A91B4 86450056 */ lh $a1, 0x56($s2) -/* 42A6A8 802A91B8 86460058 */ lh $a2, 0x58($s2) -/* 42A6AC 802A91BC 0220202D */ daddu $a0, $s1, $zero -/* 42A6B0 802A91C0 AE510014 */ sw $s1, 0x14($s2) -/* 42A6B4 802A91C4 0C051261 */ jal hud_element_set_render_pos -/* 42A6B8 802A91C8 24C6001C */ addiu $a2, $a2, 0x1c -/* 42A6BC 802A91CC 0220202D */ daddu $a0, $s1, $zero -/* 42A6C0 802A91D0 0C051277 */ jal hud_element_set_render_depth -/* 42A6C4 802A91D4 0000282D */ daddu $a1, $zero, $zero -/* 42A6C8 802A91D8 0220202D */ daddu $a0, $s1, $zero -/* 42A6CC 802A91DC 0C051280 */ jal hud_element_set_flags -/* 42A6D0 802A91E0 24050082 */ addiu $a1, $zero, 0x82 -/* 42A6D4 802A91E4 3C108029 */ lui $s0, %hi(HudScript_TimingOK) -/* 42A6D8 802A91E8 26102B54 */ addiu $s0, $s0, %lo(HudScript_TimingOK) -/* 42A6DC 802A91EC 0C050529 */ jal hud_element_create -/* 42A6E0 802A91F0 0200202D */ daddu $a0, $s0, $zero -/* 42A6E4 802A91F4 0040882D */ daddu $s1, $v0, $zero -/* 42A6E8 802A91F8 86450056 */ lh $a1, 0x56($s2) -/* 42A6EC 802A91FC 86460058 */ lh $a2, 0x58($s2) -/* 42A6F0 802A9200 0220202D */ daddu $a0, $s1, $zero -/* 42A6F4 802A9204 0C051261 */ jal hud_element_set_render_pos -/* 42A6F8 802A9208 AE51001C */ sw $s1, 0x1c($s2) -/* 42A6FC 802A920C 0220202D */ daddu $a0, $s1, $zero -/* 42A700 802A9210 0C051277 */ jal hud_element_set_render_depth -/* 42A704 802A9214 0000282D */ daddu $a1, $zero, $zero -/* 42A708 802A9218 0220202D */ daddu $a0, $s1, $zero -/* 42A70C 802A921C 0C051280 */ jal hud_element_set_flags -/* 42A710 802A9220 24050082 */ addiu $a1, $zero, 0x82 -/* 42A714 802A9224 0C050529 */ jal hud_element_create -/* 42A718 802A9228 0200202D */ daddu $a0, $s0, $zero -/* 42A71C 802A922C 0040882D */ daddu $s1, $v0, $zero -/* 42A720 802A9230 86450056 */ lh $a1, 0x56($s2) -/* 42A724 802A9234 86460058 */ lh $a2, 0x58($s2) -/* 42A728 802A9238 0220202D */ daddu $a0, $s1, $zero -/* 42A72C 802A923C 0C051261 */ jal hud_element_set_render_pos -/* 42A730 802A9240 AE510020 */ sw $s1, 0x20($s2) -/* 42A734 802A9244 0220202D */ daddu $a0, $s1, $zero -/* 42A738 802A9248 0C051277 */ jal hud_element_set_render_depth -/* 42A73C 802A924C 0000282D */ daddu $a1, $zero, $zero -/* 42A740 802A9250 0220202D */ daddu $a0, $s1, $zero -/* 42A744 802A9254 0C051280 */ jal hud_element_set_flags -/* 42A748 802A9258 24050082 */ addiu $a1, $zero, 0x82 -/* 42A74C 802A925C 0C050529 */ jal hud_element_create -/* 42A750 802A9260 0200202D */ daddu $a0, $s0, $zero -/* 42A754 802A9264 0040882D */ daddu $s1, $v0, $zero -/* 42A758 802A9268 86450056 */ lh $a1, 0x56($s2) -/* 42A75C 802A926C 86460058 */ lh $a2, 0x58($s2) -/* 42A760 802A9270 0220202D */ daddu $a0, $s1, $zero -/* 42A764 802A9274 0C051261 */ jal hud_element_set_render_pos -/* 42A768 802A9278 AE510024 */ sw $s1, 0x24($s2) -/* 42A76C 802A927C 0220202D */ daddu $a0, $s1, $zero -/* 42A770 802A9280 0C051277 */ jal hud_element_set_render_depth -/* 42A774 802A9284 0000282D */ daddu $a1, $zero, $zero -/* 42A778 802A9288 0220202D */ daddu $a0, $s1, $zero -/* 42A77C 802A928C 0C051280 */ jal hud_element_set_flags -/* 42A780 802A9290 24050082 */ addiu $a1, $zero, 0x82 -/* 42A784 802A9294 3C04802B */ lui $a0, %hi(D_802AB184_42C674) -/* 42A788 802A9298 0C050529 */ jal hud_element_create -/* 42A78C 802A929C 8C84B184 */ lw $a0, %lo(D_802AB184_42C674)($a0) -/* 42A790 802A92A0 86450056 */ lh $a1, 0x56($s2) -/* 42A794 802A92A4 86460058 */ lh $a2, 0x58($s2) -/* 42A798 802A92A8 0040202D */ daddu $a0, $v0, $zero -/* 42A79C 802A92AC 0C051261 */ jal hud_element_set_render_pos -/* 42A7A0 802A92B0 AE44002C */ sw $a0, 0x2c($s2) -/* 42A7A4 802A92B4 3C048029 */ lui $a0, %hi(HudScript_TimingCharge4c) -/* 42A7A8 802A92B8 248428A0 */ addiu $a0, $a0, %lo(HudScript_TimingCharge4c) -/* 42A7AC 802A92BC 0C050529 */ jal hud_element_create -/* 42A7B0 802A92C0 00000000 */ nop -/* 42A7B4 802A92C4 86450056 */ lh $a1, 0x56($s2) -/* 42A7B8 802A92C8 86460058 */ lh $a2, 0x58($s2) -/* 42A7BC 802A92CC 0040202D */ daddu $a0, $v0, $zero -/* 42A7C0 802A92D0 0C051261 */ jal hud_element_set_render_pos -/* 42A7C4 802A92D4 AE440030 */ sw $a0, 0x30($s2) -/* 42A7C8 802A92D8 3C048029 */ lui $a0, %hi(HudScript_TimingCharge4b) -/* 42A7CC 802A92DC 24842848 */ addiu $a0, $a0, %lo(HudScript_TimingCharge4b) -/* 42A7D0 802A92E0 0C050529 */ jal hud_element_create -/* 42A7D4 802A92E4 00000000 */ nop -/* 42A7D8 802A92E8 0040882D */ daddu $s1, $v0, $zero -/* 42A7DC 802A92EC 86450056 */ lh $a1, 0x56($s2) -/* 42A7E0 802A92F0 86460058 */ lh $a2, 0x58($s2) -/* 42A7E4 802A92F4 0220202D */ daddu $a0, $s1, $zero -/* 42A7E8 802A92F8 0C051261 */ jal hud_element_set_render_pos -/* 42A7EC 802A92FC AE510034 */ sw $s1, 0x34($s2) -/* 42A7F0 802A9300 86430064 */ lh $v1, 0x64($s2) -/* 42A7F4 802A9304 24020001 */ addiu $v0, $zero, 1 -/* 42A7F8 802A9308 1062000E */ beq $v1, $v0, .L802A9344 -/* 42A7FC 802A930C 28620002 */ slti $v0, $v1, 2 -/* 42A800 802A9310 10400005 */ beqz $v0, .L802A9328 -/* 42A804 802A9314 24020002 */ addiu $v0, $zero, 2 -/* 42A808 802A9318 10600007 */ beqz $v1, .L802A9338 -/* 42A80C 802A931C 00000000 */ nop -/* 42A810 802A9320 080AA4DA */ j .L802A9368 -/* 42A814 802A9324 00000000 */ nop -.L802A9328: -/* 42A818 802A9328 10620009 */ beq $v1, $v0, .L802A9350 -/* 42A81C 802A932C 00000000 */ nop -/* 42A820 802A9330 080AA4DA */ j .L802A9368 -/* 42A824 802A9334 00000000 */ nop -.L802A9338: -/* 42A828 802A9338 3C04802B */ lui $a0, %hi(D_802AB108_42C5F8) -/* 42A82C 802A933C 080AA4D6 */ j .L802A9358 -/* 42A830 802A9340 2484B108 */ addiu $a0, $a0, %lo(D_802AB108_42C5F8) -.L802A9344: -/* 42A834 802A9344 3C04802B */ lui $a0, %hi(D_802AB130_42C620) -/* 42A838 802A9348 080AA4D6 */ j .L802A9358 -/* 42A83C 802A934C 2484B130 */ addiu $a0, $a0, %lo(D_802AB130_42C620) -.L802A9350: -/* 42A840 802A9350 3C04802B */ lui $a0, %hi(D_802AB158_42C648) -/* 42A844 802A9354 2484B158 */ addiu $a0, $a0, %lo(D_802AB158_42C648) -.L802A9358: -/* 42A848 802A9358 0C050529 */ jal hud_element_create -/* 42A84C 802A935C 00000000 */ nop -/* 42A850 802A9360 AE420038 */ sw $v0, 0x38($s2) -/* 42A854 802A9364 0040882D */ daddu $s1, $v0, $zero -.L802A9368: -/* 42A858 802A9368 86450056 */ lh $a1, 0x56($s2) -/* 42A85C 802A936C 86460058 */ lh $a2, 0x58($s2) -/* 42A860 802A9370 0C051261 */ jal hud_element_set_render_pos -/* 42A864 802A9374 0220202D */ daddu $a0, $s1, $zero -.L802A9378: -/* 42A868 802A9378 24020002 */ addiu $v0, $zero, 2 -/* 42A86C 802A937C 8FBF0020 */ lw $ra, 0x20($sp) -/* 42A870 802A9380 8FB3001C */ lw $s3, 0x1c($sp) -/* 42A874 802A9384 8FB20018 */ lw $s2, 0x18($sp) -/* 42A878 802A9388 8FB10014 */ lw $s1, 0x14($sp) -/* 42A87C 802A938C 8FB00010 */ lw $s0, 0x10($sp) -/* 42A880 802A9390 03E00008 */ jr $ra -/* 42A884 802A9394 27BD0028 */ addiu $sp, $sp, 0x28 diff --git a/ver/us/asm/nonmatchings/battle/action_cmd/water_block/func_802A948C_42A97C.s b/ver/us/asm/nonmatchings/battle/action_cmd/water_block/func_802A948C_42A97C.s deleted file mode 100644 index 9a71e73291..0000000000 --- a/ver/us/asm/nonmatchings/battle/action_cmd/water_block/func_802A948C_42A97C.s +++ /dev/null @@ -1,830 +0,0 @@ -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches - -glabel func_802A948C_42A97C -/* 42A97C 802A948C 27BDFFE0 */ addiu $sp, $sp, -0x20 -/* 42A980 802A9490 AFB10014 */ sw $s1, 0x14($sp) -/* 42A984 802A9494 3C11802A */ lui $s1, %hi(gActionCommandStatus) -/* 42A988 802A9498 2631FBE0 */ addiu $s1, $s1, %lo(gActionCommandStatus) -/* 42A98C 802A949C AFBF0018 */ sw $ra, 0x18($sp) -/* 42A990 802A94A0 AFB00010 */ sw $s0, 0x10($sp) -/* 42A994 802A94A4 8623004C */ lh $v1, 0x4c($s1) -/* 42A998 802A94A8 3C10800E */ lui $s0, %hi(gBattleStatus) -/* 42A99C 802A94AC 2610C070 */ addiu $s0, $s0, %lo(gBattleStatus) -/* 42A9A0 802A94B0 2C620012 */ sltiu $v0, $v1, 0x12 -/* 42A9A4 802A94B4 104002D2 */ beqz $v0, L802AA000_42B4F0 -/* 42A9A8 802A94B8 00031080 */ sll $v0, $v1, 2 -/* 42A9AC 802A94BC 3C01802B */ lui $at, %hi(jtbl_802AB1B0_42C6A0) -/* 42A9B0 802A94C0 00220821 */ addu $at, $at, $v0 -/* 42A9B4 802A94C4 8C22B1B0 */ lw $v0, %lo(jtbl_802AB1B0_42C6A0)($at) -/* 42A9B8 802A94C8 00400008 */ jr $v0 -/* 42A9BC 802A94CC 00000000 */ nop -dlabel L802A94D0_42A9C0 -/* 42A9C0 802A94D0 0C093EB1 */ jal btl_set_popup_duration -/* 42A9C4 802A94D4 24040063 */ addiu $a0, $zero, 0x63 -/* 42A9C8 802A94D8 82220061 */ lb $v0, 0x61($s1) -/* 42A9CC 802A94DC 8E300004 */ lw $s0, 4($s1) -/* 42A9D0 802A94E0 10400004 */ beqz $v0, .L802A94F4 -/* 42A9D4 802A94E4 0200202D */ daddu $a0, $s0, $zero -/* 42A9D8 802A94E8 0C05128B */ jal hud_element_clear_flags -/* 42A9DC 802A94EC 24050002 */ addiu $a1, $zero, 2 -/* 42A9E0 802A94F0 0200202D */ daddu $a0, $s0, $zero -.L802A94F4: -/* 42A9E4 802A94F4 0C0513AC */ jal hud_element_set_alpha -/* 42A9E8 802A94F8 240500FF */ addiu $a1, $zero, 0xff -/* 42A9EC 802A94FC 8E300008 */ lw $s0, 8($s1) -/* 42A9F0 802A9500 240500FF */ addiu $a1, $zero, 0xff -/* 42A9F4 802A9504 0C0513AC */ jal hud_element_set_alpha -/* 42A9F8 802A9508 0200202D */ daddu $a0, $s0, $zero -/* 42A9FC 802A950C 82220061 */ lb $v0, 0x61($s1) -/* 42AA00 802A9510 10400003 */ beqz $v0, .L802A9520 -/* 42AA04 802A9514 0200202D */ daddu $a0, $s0, $zero -/* 42AA08 802A9518 0C05128B */ jal hud_element_clear_flags -/* 42AA0C 802A951C 24050002 */ addiu $a1, $zero, 2 -.L802A9520: -/* 42AA10 802A9520 8E30000C */ lw $s0, 0xc($s1) -/* 42AA14 802A9524 240500FF */ addiu $a1, $zero, 0xff -/* 42AA18 802A9528 0C0513AC */ jal hud_element_set_alpha -/* 42AA1C 802A952C 0200202D */ daddu $a0, $s0, $zero -/* 42AA20 802A9530 82220061 */ lb $v0, 0x61($s1) -/* 42AA24 802A9534 10400003 */ beqz $v0, .L802A9544 -/* 42AA28 802A9538 0200202D */ daddu $a0, $s0, $zero -/* 42AA2C 802A953C 0C05128B */ jal hud_element_clear_flags -/* 42AA30 802A9540 24050002 */ addiu $a1, $zero, 2 -.L802A9544: -/* 42AA34 802A9544 8E300010 */ lw $s0, 0x10($s1) -/* 42AA38 802A9548 240500FF */ addiu $a1, $zero, 0xff -/* 42AA3C 802A954C 0C0513AC */ jal hud_element_set_alpha -/* 42AA40 802A9550 0200202D */ daddu $a0, $s0, $zero -/* 42AA44 802A9554 82220061 */ lb $v0, 0x61($s1) -/* 42AA48 802A9558 10400003 */ beqz $v0, .L802A9568 -/* 42AA4C 802A955C 0200202D */ daddu $a0, $s0, $zero -/* 42AA50 802A9560 0C05128B */ jal hud_element_clear_flags -/* 42AA54 802A9564 24050002 */ addiu $a1, $zero, 2 -.L802A9568: -/* 42AA58 802A9568 8E300014 */ lw $s0, 0x14($s1) -/* 42AA5C 802A956C 240500FF */ addiu $a1, $zero, 0xff -/* 42AA60 802A9570 0C0513AC */ jal hud_element_set_alpha -/* 42AA64 802A9574 0200202D */ daddu $a0, $s0, $zero -/* 42AA68 802A9578 82220061 */ lb $v0, 0x61($s1) -/* 42AA6C 802A957C 10400003 */ beqz $v0, .L802A958C -/* 42AA70 802A9580 0200202D */ daddu $a0, $s0, $zero -/* 42AA74 802A9584 0C05128B */ jal hud_element_clear_flags -/* 42AA78 802A9588 24050002 */ addiu $a1, $zero, 2 -.L802A958C: -/* 42AA7C 802A958C 8E30002C */ lw $s0, 0x2c($s1) -/* 42AA80 802A9590 240500FF */ addiu $a1, $zero, 0xff -/* 42AA84 802A9594 0C0513AC */ jal hud_element_set_alpha -/* 42AA88 802A9598 0200202D */ daddu $a0, $s0, $zero -/* 42AA8C 802A959C 82220061 */ lb $v0, 0x61($s1) -/* 42AA90 802A95A0 10400003 */ beqz $v0, .L802A95B0 -/* 42AA94 802A95A4 0200202D */ daddu $a0, $s0, $zero -/* 42AA98 802A95A8 0C05128B */ jal hud_element_clear_flags -/* 42AA9C 802A95AC 24050002 */ addiu $a1, $zero, 2 -.L802A95B0: -/* 42AAA0 802A95B0 8E300030 */ lw $s0, 0x30($s1) -/* 42AAA4 802A95B4 240500FF */ addiu $a1, $zero, 0xff -/* 42AAA8 802A95B8 0C0513AC */ jal hud_element_set_alpha -/* 42AAAC 802A95BC 0200202D */ daddu $a0, $s0, $zero -/* 42AAB0 802A95C0 82220061 */ lb $v0, 0x61($s1) -/* 42AAB4 802A95C4 10400003 */ beqz $v0, .L802A95D4 -/* 42AAB8 802A95C8 0200202D */ daddu $a0, $s0, $zero -/* 42AABC 802A95CC 0C05128B */ jal hud_element_clear_flags -/* 42AAC0 802A95D0 24050002 */ addiu $a1, $zero, 2 -.L802A95D4: -/* 42AAC4 802A95D4 8E300034 */ lw $s0, 0x34($s1) -/* 42AAC8 802A95D8 240500FF */ addiu $a1, $zero, 0xff -/* 42AACC 802A95DC 0C0513AC */ jal hud_element_set_alpha -/* 42AAD0 802A95E0 0200202D */ daddu $a0, $s0, $zero -/* 42AAD4 802A95E4 82220061 */ lb $v0, 0x61($s1) -/* 42AAD8 802A95E8 10400003 */ beqz $v0, .L802A95F8 -/* 42AADC 802A95EC 0200202D */ daddu $a0, $s0, $zero -/* 42AAE0 802A95F0 0C05128B */ jal hud_element_clear_flags -/* 42AAE4 802A95F4 24050002 */ addiu $a1, $zero, 2 -.L802A95F8: -/* 42AAE8 802A95F8 8E300038 */ lw $s0, 0x38($s1) -/* 42AAEC 802A95FC 240500FF */ addiu $a1, $zero, 0xff -/* 42AAF0 802A9600 0C0513AC */ jal hud_element_set_alpha -/* 42AAF4 802A9604 0200202D */ daddu $a0, $s0, $zero -/* 42AAF8 802A9608 82220061 */ lb $v0, 0x61($s1) -/* 42AAFC 802A960C 10400003 */ beqz $v0, .L802A961C -/* 42AB00 802A9610 0200202D */ daddu $a0, $s0, $zero -/* 42AB04 802A9614 0C05128B */ jal hud_element_clear_flags -/* 42AB08 802A9618 24050002 */ addiu $a1, $zero, 2 -.L802A961C: -/* 42AB0C 802A961C 24020001 */ addiu $v0, $zero, 1 -/* 42AB10 802A9620 080AA800 */ j L802AA000_42B4F0 -/* 42AB14 802A9624 A622004C */ sh $v0, 0x4c($s1) -dlabel L802A9628_42AB18 -/* 42AB18 802A9628 0C093EB1 */ jal btl_set_popup_duration -/* 42AB1C 802A962C 24040063 */ addiu $a0, $zero, 0x63 -/* 42AB20 802A9630 8622006C */ lh $v0, 0x6c($s1) -/* 42AB24 802A9634 9623006C */ lhu $v1, 0x6c($s1) -/* 42AB28 802A9638 10400003 */ beqz $v0, .L802A9648 -/* 42AB2C 802A963C 2462FFFF */ addiu $v0, $v1, -1 -/* 42AB30 802A9640 080AA800 */ j L802AA000_42B4F0 -/* 42AB34 802A9644 A622006C */ sh $v0, 0x6c($s1) -.L802A9648: -/* 42AB38 802A9648 96220056 */ lhu $v0, 0x56($s1) -/* 42AB3C 802A964C 24420014 */ addiu $v0, $v0, 0x14 -/* 42AB40 802A9650 A6220056 */ sh $v0, 0x56($s1) -/* 42AB44 802A9654 00021400 */ sll $v0, $v0, 0x10 -/* 42AB48 802A9658 00021403 */ sra $v0, $v0, 0x10 -/* 42AB4C 802A965C 28420033 */ slti $v0, $v0, 0x33 -/* 42AB50 802A9660 14400002 */ bnez $v0, .L802A966C -/* 42AB54 802A9664 24020032 */ addiu $v0, $zero, 0x32 -/* 42AB58 802A9668 A6220056 */ sh $v0, 0x56($s1) -.L802A966C: -/* 42AB5C 802A966C 8E240004 */ lw $a0, 4($s1) -/* 42AB60 802A9670 86250056 */ lh $a1, 0x56($s1) -/* 42AB64 802A9674 0C051261 */ jal hud_element_set_render_pos -/* 42AB68 802A9678 86260058 */ lh $a2, 0x58($s1) -/* 42AB6C 802A967C 8E240008 */ lw $a0, 8($s1) -/* 42AB70 802A9680 86250056 */ lh $a1, 0x56($s1) -/* 42AB74 802A9684 86260058 */ lh $a2, 0x58($s1) -/* 42AB78 802A9688 24A5001C */ addiu $a1, $a1, 0x1c -/* 42AB7C 802A968C 0C051261 */ jal hud_element_set_render_pos -/* 42AB80 802A9690 24C6001C */ addiu $a2, $a2, 0x1c -/* 42AB84 802A9694 8E24000C */ lw $a0, 0xc($s1) -/* 42AB88 802A9698 86250056 */ lh $a1, 0x56($s1) -/* 42AB8C 802A969C 86260058 */ lh $a2, 0x58($s1) -/* 42AB90 802A96A0 24A50015 */ addiu $a1, $a1, 0x15 -/* 42AB94 802A96A4 0C051261 */ jal hud_element_set_render_pos -/* 42AB98 802A96A8 24C60018 */ addiu $a2, $a2, 0x18 -/* 42AB9C 802A96AC 8E240010 */ lw $a0, 0x10($s1) -/* 42ABA0 802A96B0 86250056 */ lh $a1, 0x56($s1) -/* 42ABA4 802A96B4 86260058 */ lh $a2, 0x58($s1) -/* 42ABA8 802A96B8 24A50029 */ addiu $a1, $a1, 0x29 -/* 42ABAC 802A96BC 0C051261 */ jal hud_element_set_render_pos -/* 42ABB0 802A96C0 24C60018 */ addiu $a2, $a2, 0x18 -/* 42ABB4 802A96C4 8E240014 */ lw $a0, 0x14($s1) -/* 42ABB8 802A96C8 86250056 */ lh $a1, 0x56($s1) -/* 42ABBC 802A96CC 86260058 */ lh $a2, 0x58($s1) -/* 42ABC0 802A96D0 24A5003D */ addiu $a1, $a1, 0x3d -/* 42ABC4 802A96D4 0C051261 */ jal hud_element_set_render_pos -/* 42ABC8 802A96D8 24C60018 */ addiu $a2, $a2, 0x18 -/* 42ABCC 802A96DC 24020001 */ addiu $v0, $zero, 1 -/* 42ABD0 802A96E0 86230064 */ lh $v1, 0x64($s1) -/* 42ABD4 802A96E4 8E30002C */ lw $s0, 0x2c($s1) -/* 42ABD8 802A96E8 10620010 */ beq $v1, $v0, .L802A972C -/* 42ABDC 802A96EC 28620002 */ slti $v0, $v1, 2 -/* 42ABE0 802A96F0 10400005 */ beqz $v0, .L802A9708 -/* 42ABE4 802A96F4 24020002 */ addiu $v0, $zero, 2 -/* 42ABE8 802A96F8 10600007 */ beqz $v1, .L802A9718 -/* 42ABEC 802A96FC 0200202D */ daddu $a0, $s0, $zero -/* 42ABF0 802A9700 080AA5D2 */ j .L802A9748 -/* 42ABF4 802A9704 00000000 */ nop -.L802A9708: -/* 42ABF8 802A9708 10620009 */ beq $v1, $v0, .L802A9730 -/* 42ABFC 802A970C 0200202D */ daddu $a0, $s0, $zero -/* 42AC00 802A9710 080AA5D2 */ j .L802A9748 -/* 42AC04 802A9714 00000000 */ nop -.L802A9718: -/* 42AC08 802A9718 86250056 */ lh $a1, 0x56($s1) -/* 42AC0C 802A971C 86260058 */ lh $a2, 0x58($s1) -/* 42AC10 802A9720 24A5005B */ addiu $a1, $a1, 0x5b -/* 42AC14 802A9724 080AA5D0 */ j .L802A9740 -/* 42AC18 802A9728 24C60007 */ addiu $a2, $a2, 7 -.L802A972C: -/* 42AC1C 802A972C 0200202D */ daddu $a0, $s0, $zero -.L802A9730: -/* 42AC20 802A9730 86250056 */ lh $a1, 0x56($s1) -/* 42AC24 802A9734 86260058 */ lh $a2, 0x58($s1) -/* 42AC28 802A9738 24A5005B */ addiu $a1, $a1, 0x5b -/* 42AC2C 802A973C 24C6000D */ addiu $a2, $a2, 0xd -.L802A9740: -/* 42AC30 802A9740 0C051261 */ jal hud_element_set_render_pos -/* 42AC34 802A9744 00000000 */ nop -.L802A9748: -/* 42AC38 802A9748 8E240030 */ lw $a0, 0x30($s1) -/* 42AC3C 802A974C 86250056 */ lh $a1, 0x56($s1) -/* 42AC40 802A9750 86260058 */ lh $a2, 0x58($s1) -/* 42AC44 802A9754 24A5FFFB */ addiu $a1, $a1, -5 -/* 42AC48 802A9758 0C051261 */ jal hud_element_set_render_pos -/* 42AC4C 802A975C 24C6001D */ addiu $a2, $a2, 0x1d -/* 42AC50 802A9760 8E240034 */ lw $a0, 0x34($s1) -/* 42AC54 802A9764 86250056 */ lh $a1, 0x56($s1) -/* 42AC58 802A9768 86260058 */ lh $a2, 0x58($s1) -/* 42AC5C 802A976C 24A50007 */ addiu $a1, $a1, 7 -/* 42AC60 802A9770 0C051261 */ jal hud_element_set_render_pos -/* 42AC64 802A9774 24C6001D */ addiu $a2, $a2, 0x1d -/* 42AC68 802A9778 8E240038 */ lw $a0, 0x38($s1) -/* 42AC6C 802A977C 86250056 */ lh $a1, 0x56($s1) -/* 42AC70 802A9780 86260058 */ lh $a2, 0x58($s1) -/* 42AC74 802A9784 24A5005C */ addiu $a1, $a1, 0x5c -/* 42AC78 802A9788 0C051261 */ jal hud_element_set_render_pos -/* 42AC7C 802A978C 24C60017 */ addiu $a2, $a2, 0x17 -/* 42AC80 802A9790 080AA800 */ j L802AA000_42B4F0 -/* 42AC84 802A9794 00000000 */ nop -dlabel L802A9798_42AC88 -/* 42AC88 802A9798 0C093EB1 */ jal btl_set_popup_duration -/* 42AC8C 802A979C 24040063 */ addiu $a0, $zero, 0x63 -/* 42AC90 802A97A0 8622004E */ lh $v0, 0x4e($s1) -/* 42AC94 802A97A4 9623004E */ lhu $v1, 0x4e($s1) -/* 42AC98 802A97A8 10400003 */ beqz $v0, .L802A97B8 -/* 42AC9C 802A97AC 2462FFFF */ addiu $v0, $v1, -1 -/* 42ACA0 802A97B0 080AA800 */ j L802AA000_42B4F0 -/* 42ACA4 802A97B4 A622004E */ sh $v0, 0x4e($s1) -.L802A97B8: -/* 42ACA8 802A97B8 96220052 */ lhu $v0, 0x52($s1) -/* 42ACAC 802A97BC 2442FFC4 */ addiu $v0, $v0, -0x3c -/* 42ACB0 802A97C0 A6220054 */ sh $v0, 0x54($s1) -/* 42ACB4 802A97C4 00021400 */ sll $v0, $v0, 0x10 -/* 42ACB8 802A97C8 00021403 */ sra $v0, $v0, 0x10 -/* 42ACBC 802A97CC 2842002A */ slti $v0, $v0, 0x2a -/* 42ACC0 802A97D0 10400002 */ beqz $v0, .L802A97DC -/* 42ACC4 802A97D4 2402002A */ addiu $v0, $zero, 0x2a -/* 42ACC8 802A97D8 A6220054 */ sh $v0, 0x54($s1) -.L802A97DC: -/* 42ACCC 802A97DC 2402000B */ addiu $v0, $zero, 0xb -/* 42ACD0 802A97E0 A622004C */ sh $v0, 0x4c($s1) -dlabel L802A97E4_42ACD4 -/* 42ACD4 802A97E4 0C093EB1 */ jal btl_set_popup_duration -/* 42ACD8 802A97E8 24040063 */ addiu $a0, $zero, 0x63 -/* 42ACDC 802A97EC 86230054 */ lh $v1, 0x54($s1) -/* 42ACE0 802A97F0 2402002A */ addiu $v0, $zero, 0x2a -/* 42ACE4 802A97F4 1462000A */ bne $v1, $v0, .L802A9820 -/* 42ACE8 802A97F8 24020016 */ addiu $v0, $zero, 0x16 -/* 42ACEC 802A97FC 8E240030 */ lw $a0, 0x30($s1) -/* 42ACF0 802A9800 3C058029 */ lui $a1, %hi(HudScript_TimingCharge3) -/* 42ACF4 802A9804 24A528CC */ addiu $a1, $a1, %lo(HudScript_TimingCharge3) -/* 42ACF8 802A9808 0C0511FF */ jal hud_element_set_script -/* 42ACFC 802A980C 00000000 */ nop -/* 42AD00 802A9810 0C05272D */ jal sfx_play_sound -/* 42AD04 802A9814 24040233 */ addiu $a0, $zero, 0x233 -/* 42AD08 802A9818 86230054 */ lh $v1, 0x54($s1) -/* 42AD0C 802A981C 24020016 */ addiu $v0, $zero, 0x16 -.L802A9820: -/* 42AD10 802A9820 14620008 */ bne $v1, $v0, .L802A9844 -/* 42AD14 802A9824 00000000 */ nop -/* 42AD18 802A9828 8E240034 */ lw $a0, 0x34($s1) -/* 42AD1C 802A982C 3C058029 */ lui $a1, %hi(HudScript_TimingCharge2) -/* 42AD20 802A9830 24A52874 */ addiu $a1, $a1, %lo(HudScript_TimingCharge2) -/* 42AD24 802A9834 0C0511FF */ jal hud_element_set_script -/* 42AD28 802A9838 00000000 */ nop -/* 42AD2C 802A983C 0C05272D */ jal sfx_play_sound -/* 42AD30 802A9840 24040233 */ addiu $a0, $zero, 0x233 -.L802A9844: -/* 42AD34 802A9844 86230054 */ lh $v1, 0x54($s1) -/* 42AD38 802A9848 24020002 */ addiu $v0, $zero, 2 -/* 42AD3C 802A984C 1462000D */ bne $v1, $v0, .L802A9884 -/* 42AD40 802A9850 00000000 */ nop -/* 42AD44 802A9854 8E24000C */ lw $a0, 0xc($s1) -/* 42AD48 802A9858 3C058029 */ lui $a1, %hi(HudScript_TimingReady) -/* 42AD4C 802A985C 24A52788 */ addiu $a1, $a1, %lo(HudScript_TimingReady) -/* 42AD50 802A9860 0C0511FF */ jal hud_element_set_script -/* 42AD54 802A9864 00000000 */ nop -/* 42AD58 802A9868 8E240004 */ lw $a0, 4($s1) -/* 42AD5C 802A986C 3C058011 */ lui $a1, %hi(HudScript_AButtonDown) -/* 42AD60 802A9870 24A58B54 */ addiu $a1, $a1, %lo(HudScript_AButtonDown) -/* 42AD64 802A9874 0C0511FF */ jal hud_element_set_script -/* 42AD68 802A9878 00000000 */ nop -/* 42AD6C 802A987C 0C05272D */ jal sfx_play_sound -/* 42AD70 802A9880 24040234 */ addiu $a0, $zero, 0x234 -.L802A9884: -/* 42AD74 802A9884 96220054 */ lhu $v0, 0x54($s1) -/* 42AD78 802A9888 2442FFFF */ addiu $v0, $v0, -1 -/* 42AD7C 802A988C A6220054 */ sh $v0, 0x54($s1) -/* 42AD80 802A9890 00021400 */ sll $v0, $v0, 0x10 -/* 42AD84 802A9894 144001DA */ bnez $v0, L802AA000_42B4F0 -/* 42AD88 802A9898 24020014 */ addiu $v0, $zero, 0x14 -/* 42AD8C 802A989C A6220054 */ sh $v0, 0x54($s1) -/* 42AD90 802A98A0 080AA75A */ j .L802A9D68 -/* 42AD94 802A98A4 2402000C */ addiu $v0, $zero, 0xc -dlabel L802A98A8_42AD98 -/* 42AD98 802A98A8 0C093EB1 */ jal btl_set_popup_duration -/* 42AD9C 802A98AC 24040063 */ addiu $a0, $zero, 0x63 -/* 42ADA0 802A98B0 82220060 */ lb $v0, 0x60($s1) -/* 42ADA4 802A98B4 1440003A */ bnez $v0, .L802A99A0 -/* 42ADA8 802A98B8 00000000 */ nop -/* 42ADAC 802A98BC 8222005C */ lb $v0, 0x5c($s1) -/* 42ADB0 802A98C0 14400037 */ bnez $v0, .L802A99A0 -/* 42ADB4 802A98C4 00000000 */ nop -/* 42ADB8 802A98C8 8222005D */ lb $v0, 0x5d($s1) -/* 42ADBC 802A98CC 2842FFFB */ slti $v0, $v0, -5 -/* 42ADC0 802A98D0 14400033 */ bnez $v0, .L802A99A0 -/* 42ADC4 802A98D4 00000000 */ nop -/* 42ADC8 802A98D8 86220050 */ lh $v0, 0x50($s1) -/* 42ADCC 802A98DC 8E030434 */ lw $v1, 0x434($s0) -/* 42ADD0 802A98E0 000210C0 */ sll $v0, $v0, 3 -/* 42ADD4 802A98E4 00431021 */ addu $v0, $v0, $v1 -/* 42ADD8 802A98E8 8C430000 */ lw $v1, ($v0) -/* 42ADDC 802A98EC 8C420004 */ lw $v0, 4($v0) -/* 42ADE0 802A98F0 82040431 */ lb $a0, 0x431($s0) -/* 42ADE4 802A98F4 00621821 */ addu $v1, $v1, $v0 -/* 42ADE8 802A98F8 24630005 */ addiu $v1, $v1, 5 -/* 42ADEC 802A98FC 00832023 */ subu $a0, $a0, $v1 -/* 42ADF0 802A9900 04820001 */ bltzl $a0, .L802A9908 -/* 42ADF4 802A9904 24840040 */ addiu $a0, $a0, 0x40 -.L802A9908: -/* 42ADF8 802A9908 50600001 */ beql $v1, $zero, .L802A9910 -/* 42ADFC 802A990C 24030001 */ addiu $v1, $zero, 1 -.L802A9910: -/* 42AE00 802A9910 18600023 */ blez $v1, .L802A99A0 -/* 42AE04 802A9914 0000302D */ daddu $a2, $zero, $zero -/* 42AE08 802A9918 24070001 */ addiu $a3, $zero, 1 -/* 42AE0C 802A991C 00041080 */ sll $v0, $a0, 2 -/* 42AE10 802A9920 00502821 */ addu $a1, $v0, $s0 -.L802A9924: -/* 42AE14 802A9924 28820040 */ slti $v0, $a0, 0x40 -/* 42AE18 802A9928 14400003 */ bnez $v0, .L802A9938 -/* 42AE1C 802A992C 28C20005 */ slti $v0, $a2, 5 -/* 42AE20 802A9930 24A5FF00 */ addiu $a1, $a1, -0x100 -/* 42AE24 802A9934 2484FFC0 */ addiu $a0, $a0, -0x40 -.L802A9938: -/* 42AE28 802A9938 10400006 */ beqz $v0, .L802A9954 -/* 42AE2C 802A993C 00000000 */ nop -/* 42AE30 802A9940 8CA20330 */ lw $v0, 0x330($a1) -/* 42AE34 802A9944 30428000 */ andi $v0, $v0, 0x8000 -/* 42AE38 802A9948 10400009 */ beqz $v0, .L802A9970 -/* 42AE3C 802A994C 00000000 */ nop -/* 42AE40 802A9950 A2270060 */ sb $a3, 0x60($s1) -.L802A9954: -/* 42AE44 802A9954 8CA20330 */ lw $v0, 0x330($a1) -/* 42AE48 802A9958 30428000 */ andi $v0, $v0, 0x8000 -/* 42AE4C 802A995C 10400004 */ beqz $v0, .L802A9970 -/* 42AE50 802A9960 00000000 */ nop -/* 42AE54 802A9964 82220060 */ lb $v0, 0x60($s1) -/* 42AE58 802A9968 10400004 */ beqz $v0, .L802A997C -/* 42AE5C 802A996C 00000000 */ nop -.L802A9970: -/* 42AE60 802A9970 8222005E */ lb $v0, 0x5e($s1) -/* 42AE64 802A9974 50400006 */ beql $v0, $zero, .L802A9990 -/* 42AE68 802A9978 24A50004 */ addiu $a1, $a1, 4 -.L802A997C: -/* 42AE6C 802A997C 92020084 */ lbu $v0, 0x84($s0) -/* 42AE70 802A9980 A227005C */ sb $a3, 0x5c($s1) -/* 42AE74 802A9984 24420001 */ addiu $v0, $v0, 1 -/* 42AE78 802A9988 080AA668 */ j .L802A99A0 -/* 42AE7C 802A998C A2020084 */ sb $v0, 0x84($s0) -.L802A9990: -/* 42AE80 802A9990 24C60001 */ addiu $a2, $a2, 1 -/* 42AE84 802A9994 00C3102A */ slt $v0, $a2, $v1 -/* 42AE88 802A9998 1440FFE2 */ bnez $v0, .L802A9924 -/* 42AE8C 802A999C 24840001 */ addiu $a0, $a0, 1 -.L802A99A0: -/* 42AE90 802A99A0 8222005D */ lb $v0, 0x5d($s1) -/* 42AE94 802A99A4 2842FFFC */ slti $v0, $v0, -4 -/* 42AE98 802A99A8 1440001C */ bnez $v0, .L802A9A1C -/* 42AE9C 802A99AC 00000000 */ nop -/* 42AEA0 802A99B0 82220060 */ lb $v0, 0x60($s1) -/* 42AEA4 802A99B4 14400004 */ bnez $v0, .L802A99C8 -/* 42AEA8 802A99B8 00000000 */ nop -/* 42AEAC 802A99BC 8222005C */ lb $v0, 0x5c($s1) -/* 42AEB0 802A99C0 10400016 */ beqz $v0, .L802A9A1C -/* 42AEB4 802A99C4 00000000 */ nop -.L802A99C8: -/* 42AEB8 802A99C8 8222005C */ lb $v0, 0x5c($s1) -/* 42AEBC 802A99CC 8E30001C */ lw $s0, 0x1c($s1) -/* 42AEC0 802A99D0 10400005 */ beqz $v0, .L802A99E8 -/* 42AEC4 802A99D4 0200202D */ daddu $a0, $s0, $zero -/* 42AEC8 802A99D8 3C058029 */ lui $a1, %hi(HudScript_TimingOK) -/* 42AECC 802A99DC 24A52B54 */ addiu $a1, $a1, %lo(HudScript_TimingOK) -/* 42AED0 802A99E0 080AA67C */ j .L802A99F0 -/* 42AED4 802A99E4 00000000 */ nop -.L802A99E8: -/* 42AED8 802A99E8 3C058029 */ lui $a1, %hi(HudScript_TimingMiss) -/* 42AEDC 802A99EC 24A52B80 */ addiu $a1, $a1, %lo(HudScript_TimingMiss) -.L802A99F0: -/* 42AEE0 802A99F0 0C0511FF */ jal hud_element_set_script -/* 42AEE4 802A99F4 00000000 */ nop -/* 42AEE8 802A99F8 0200202D */ daddu $a0, $s0, $zero -/* 42AEEC 802A99FC 86250056 */ lh $a1, 0x56($s1) -/* 42AEF0 802A9A00 86260058 */ lh $a2, 0x58($s1) -/* 42AEF4 802A9A04 24A5001C */ addiu $a1, $a1, 0x1c -/* 42AEF8 802A9A08 0C051261 */ jal hud_element_set_render_pos -/* 42AEFC 802A9A0C 24C60026 */ addiu $a2, $a2, 0x26 -/* 42AF00 802A9A10 0200202D */ daddu $a0, $s0, $zero -/* 42AF04 802A9A14 0C05128B */ jal hud_element_clear_flags -/* 42AF08 802A9A18 24050002 */ addiu $a1, $zero, 2 -.L802A9A1C: -/* 42AF0C 802A9A1C 8223005D */ lb $v1, 0x5d($s1) -/* 42AF10 802A9A20 2402FFFB */ addiu $v0, $zero, -5 -/* 42AF14 802A9A24 1462001B */ bne $v1, $v0, .L802A9A94 -/* 42AF18 802A9A28 00000000 */ nop -/* 42AF1C 802A9A2C 8222005C */ lb $v0, 0x5c($s1) -/* 42AF20 802A9A30 8E30001C */ lw $s0, 0x1c($s1) -/* 42AF24 802A9A34 10400005 */ beqz $v0, .L802A9A4C -/* 42AF28 802A9A38 0200202D */ daddu $a0, $s0, $zero -/* 42AF2C 802A9A3C 3C058029 */ lui $a1, %hi(HudScript_TimingOK) -/* 42AF30 802A9A40 24A52B54 */ addiu $a1, $a1, %lo(HudScript_TimingOK) -/* 42AF34 802A9A44 080AA695 */ j .L802A9A54 -/* 42AF38 802A9A48 00000000 */ nop -.L802A9A4C: -/* 42AF3C 802A9A4C 3C058029 */ lui $a1, %hi(HudScript_TimingMiss) -/* 42AF40 802A9A50 24A52B80 */ addiu $a1, $a1, %lo(HudScript_TimingMiss) -.L802A9A54: -/* 42AF44 802A9A54 0C0511FF */ jal hud_element_set_script -/* 42AF48 802A9A58 00000000 */ nop -/* 42AF4C 802A9A5C 0200202D */ daddu $a0, $s0, $zero -/* 42AF50 802A9A60 86250056 */ lh $a1, 0x56($s1) -/* 42AF54 802A9A64 86260058 */ lh $a2, 0x58($s1) -/* 42AF58 802A9A68 24A5001C */ addiu $a1, $a1, 0x1c -/* 42AF5C 802A9A6C 0C051261 */ jal hud_element_set_render_pos -/* 42AF60 802A9A70 24C60026 */ addiu $a2, $a2, 0x26 -/* 42AF64 802A9A74 0200202D */ daddu $a0, $s0, $zero -/* 42AF68 802A9A78 0C05128B */ jal hud_element_clear_flags -/* 42AF6C 802A9A7C 24050002 */ addiu $a1, $zero, 2 -/* 42AF70 802A9A80 8E240004 */ lw $a0, 4($s1) -/* 42AF74 802A9A84 3C058011 */ lui $a1, %hi(HudScript_AButton) -/* 42AF78 802A9A88 24A58B28 */ addiu $a1, $a1, %lo(HudScript_AButton) -/* 42AF7C 802A9A8C 0C0511FF */ jal hud_element_set_script -/* 42AF80 802A9A90 00000000 */ nop -.L802A9A94: -/* 42AF84 802A9A94 9222005D */ lbu $v0, 0x5d($s1) -/* 42AF88 802A9A98 86230054 */ lh $v1, 0x54($s1) -/* 42AF8C 802A9A9C 2442FFFF */ addiu $v0, $v0, -1 -/* 42AF90 802A9AA0 A222005D */ sb $v0, 0x5d($s1) -/* 42AF94 802A9AA4 24020002 */ addiu $v0, $zero, 2 -/* 42AF98 802A9AA8 1462000D */ bne $v1, $v0, .L802A9AE0 -/* 42AF9C 802A9AAC 00000000 */ nop -/* 42AFA0 802A9AB0 8E240010 */ lw $a0, 0x10($s1) -/* 42AFA4 802A9AB4 3C058029 */ lui $a1, %hi(HudScript_TimingReady) -/* 42AFA8 802A9AB8 24A52788 */ addiu $a1, $a1, %lo(HudScript_TimingReady) -/* 42AFAC 802A9ABC 0C0511FF */ jal hud_element_set_script -/* 42AFB0 802A9AC0 00000000 */ nop -/* 42AFB4 802A9AC4 8E240004 */ lw $a0, 4($s1) -/* 42AFB8 802A9AC8 3C058011 */ lui $a1, %hi(HudScript_AButtonDown) -/* 42AFBC 802A9ACC 24A58B54 */ addiu $a1, $a1, %lo(HudScript_AButtonDown) -/* 42AFC0 802A9AD0 0C0511FF */ jal hud_element_set_script -/* 42AFC4 802A9AD4 00000000 */ nop -/* 42AFC8 802A9AD8 0C05272D */ jal sfx_play_sound -/* 42AFCC 802A9ADC 24040234 */ addiu $a0, $zero, 0x234 -.L802A9AE0: -/* 42AFD0 802A9AE0 96220054 */ lhu $v0, 0x54($s1) -/* 42AFD4 802A9AE4 2442FFFF */ addiu $v0, $v0, -1 -/* 42AFD8 802A9AE8 A6220054 */ sh $v0, 0x54($s1) -/* 42AFDC 802A9AEC 00021400 */ sll $v0, $v0, 0x10 -/* 42AFE0 802A9AF0 14400143 */ bnez $v0, L802AA000_42B4F0 -/* 42AFE4 802A9AF4 24020014 */ addiu $v0, $zero, 0x14 -/* 42AFE8 802A9AF8 A6220054 */ sh $v0, 0x54($s1) -/* 42AFEC 802A9AFC 080AA75A */ j .L802A9D68 -/* 42AFF0 802A9B00 2402000D */ addiu $v0, $zero, 0xd -dlabel L802A9B04_42AFF4 -/* 42AFF4 802A9B04 0C093EB1 */ jal btl_set_popup_duration -/* 42AFF8 802A9B08 24040063 */ addiu $a0, $zero, 0x63 -/* 42AFFC 802A9B0C 82220060 */ lb $v0, 0x60($s1) -/* 42B000 802A9B10 1440003D */ bnez $v0, .L802A9C08 -/* 42B004 802A9B14 00000000 */ nop -/* 42B008 802A9B18 8222005C */ lb $v0, 0x5c($s1) -/* 42B00C 802A9B1C 1440003A */ bnez $v0, .L802A9C08 -/* 42B010 802A9B20 00000000 */ nop -/* 42B014 802A9B24 8222005D */ lb $v0, 0x5d($s1) -/* 42B018 802A9B28 2842FFFB */ slti $v0, $v0, -5 -/* 42B01C 802A9B2C 14400036 */ bnez $v0, .L802A9C08 -/* 42B020 802A9B30 00000000 */ nop -/* 42B024 802A9B34 86220050 */ lh $v0, 0x50($s1) -/* 42B028 802A9B38 8E030434 */ lw $v1, 0x434($s0) -/* 42B02C 802A9B3C 000210C0 */ sll $v0, $v0, 3 -/* 42B030 802A9B40 00431021 */ addu $v0, $v0, $v1 -/* 42B034 802A9B44 8C430000 */ lw $v1, ($v0) -/* 42B038 802A9B48 8C420004 */ lw $v0, 4($v0) -/* 42B03C 802A9B4C 00621821 */ addu $v1, $v1, $v0 -/* 42B040 802A9B50 24630004 */ addiu $v1, $v1, 4 -/* 42B044 802A9B54 28620006 */ slti $v0, $v1, 6 -/* 42B048 802A9B58 54400001 */ bnel $v0, $zero, .L802A9B60 -/* 42B04C 802A9B5C 24030006 */ addiu $v1, $zero, 6 -.L802A9B60: -/* 42B050 802A9B60 82040431 */ lb $a0, 0x431($s0) -/* 42B054 802A9B64 00832023 */ subu $a0, $a0, $v1 -/* 42B058 802A9B68 04820001 */ bltzl $a0, .L802A9B70 -/* 42B05C 802A9B6C 24840040 */ addiu $a0, $a0, 0x40 -.L802A9B70: -/* 42B060 802A9B70 50600001 */ beql $v1, $zero, .L802A9B78 -/* 42B064 802A9B74 24030001 */ addiu $v1, $zero, 1 -.L802A9B78: -/* 42B068 802A9B78 18600023 */ blez $v1, .L802A9C08 -/* 42B06C 802A9B7C 0000302D */ daddu $a2, $zero, $zero -/* 42B070 802A9B80 24070001 */ addiu $a3, $zero, 1 -/* 42B074 802A9B84 00041080 */ sll $v0, $a0, 2 -/* 42B078 802A9B88 00502821 */ addu $a1, $v0, $s0 -.L802A9B8C: -/* 42B07C 802A9B8C 28820040 */ slti $v0, $a0, 0x40 -/* 42B080 802A9B90 14400003 */ bnez $v0, .L802A9BA0 -/* 42B084 802A9B94 28C20005 */ slti $v0, $a2, 5 -/* 42B088 802A9B98 24A5FF00 */ addiu $a1, $a1, -0x100 -/* 42B08C 802A9B9C 2484FFC0 */ addiu $a0, $a0, -0x40 -.L802A9BA0: -/* 42B090 802A9BA0 10400006 */ beqz $v0, .L802A9BBC -/* 42B094 802A9BA4 00000000 */ nop -/* 42B098 802A9BA8 8CA20330 */ lw $v0, 0x330($a1) -/* 42B09C 802A9BAC 30428000 */ andi $v0, $v0, 0x8000 -/* 42B0A0 802A9BB0 10400009 */ beqz $v0, .L802A9BD8 -/* 42B0A4 802A9BB4 00000000 */ nop -/* 42B0A8 802A9BB8 A2270060 */ sb $a3, 0x60($s1) -.L802A9BBC: -/* 42B0AC 802A9BBC 8CA20330 */ lw $v0, 0x330($a1) -/* 42B0B0 802A9BC0 30428000 */ andi $v0, $v0, 0x8000 -/* 42B0B4 802A9BC4 10400004 */ beqz $v0, .L802A9BD8 -/* 42B0B8 802A9BC8 00000000 */ nop -/* 42B0BC 802A9BCC 82220060 */ lb $v0, 0x60($s1) -/* 42B0C0 802A9BD0 10400004 */ beqz $v0, .L802A9BE4 -/* 42B0C4 802A9BD4 00000000 */ nop -.L802A9BD8: -/* 42B0C8 802A9BD8 8222005E */ lb $v0, 0x5e($s1) -/* 42B0CC 802A9BDC 50400006 */ beql $v0, $zero, .L802A9BF8 -/* 42B0D0 802A9BE0 24A50004 */ addiu $a1, $a1, 4 -.L802A9BE4: -/* 42B0D4 802A9BE4 92020084 */ lbu $v0, 0x84($s0) -/* 42B0D8 802A9BE8 A227005C */ sb $a3, 0x5c($s1) -/* 42B0DC 802A9BEC 24420001 */ addiu $v0, $v0, 1 -/* 42B0E0 802A9BF0 080AA702 */ j .L802A9C08 -/* 42B0E4 802A9BF4 A2020084 */ sb $v0, 0x84($s0) -.L802A9BF8: -/* 42B0E8 802A9BF8 24C60001 */ addiu $a2, $a2, 1 -/* 42B0EC 802A9BFC 00C3102A */ slt $v0, $a2, $v1 -/* 42B0F0 802A9C00 1440FFE2 */ bnez $v0, .L802A9B8C -/* 42B0F4 802A9C04 24840001 */ addiu $a0, $a0, 1 -.L802A9C08: -/* 42B0F8 802A9C08 8222005D */ lb $v0, 0x5d($s1) -/* 42B0FC 802A9C0C 2842FFFC */ slti $v0, $v0, -4 -/* 42B100 802A9C10 1440001C */ bnez $v0, .L802A9C84 -/* 42B104 802A9C14 00000000 */ nop -/* 42B108 802A9C18 82220060 */ lb $v0, 0x60($s1) -/* 42B10C 802A9C1C 14400004 */ bnez $v0, .L802A9C30 -/* 42B110 802A9C20 00000000 */ nop -/* 42B114 802A9C24 8222005C */ lb $v0, 0x5c($s1) -/* 42B118 802A9C28 10400016 */ beqz $v0, .L802A9C84 -/* 42B11C 802A9C2C 00000000 */ nop -.L802A9C30: -/* 42B120 802A9C30 8222005C */ lb $v0, 0x5c($s1) -/* 42B124 802A9C34 8E300020 */ lw $s0, 0x20($s1) -/* 42B128 802A9C38 10400005 */ beqz $v0, .L802A9C50 -/* 42B12C 802A9C3C 0200202D */ daddu $a0, $s0, $zero -/* 42B130 802A9C40 3C058029 */ lui $a1, %hi(HudScript_TimingOK) -/* 42B134 802A9C44 24A52B54 */ addiu $a1, $a1, %lo(HudScript_TimingOK) -/* 42B138 802A9C48 080AA716 */ j .L802A9C58 -/* 42B13C 802A9C4C 00000000 */ nop -.L802A9C50: -/* 42B140 802A9C50 3C058029 */ lui $a1, %hi(HudScript_TimingMiss) -/* 42B144 802A9C54 24A52B80 */ addiu $a1, $a1, %lo(HudScript_TimingMiss) -.L802A9C58: -/* 42B148 802A9C58 0C0511FF */ jal hud_element_set_script -/* 42B14C 802A9C5C 00000000 */ nop -/* 42B150 802A9C60 0200202D */ daddu $a0, $s0, $zero -/* 42B154 802A9C64 86250056 */ lh $a1, 0x56($s1) -/* 42B158 802A9C68 86260058 */ lh $a2, 0x58($s1) -/* 42B15C 802A9C6C 24A50030 */ addiu $a1, $a1, 0x30 -/* 42B160 802A9C70 0C051261 */ jal hud_element_set_render_pos -/* 42B164 802A9C74 24C60026 */ addiu $a2, $a2, 0x26 -/* 42B168 802A9C78 0200202D */ daddu $a0, $s0, $zero -/* 42B16C 802A9C7C 0C05128B */ jal hud_element_clear_flags -/* 42B170 802A9C80 24050002 */ addiu $a1, $zero, 2 -.L802A9C84: -/* 42B174 802A9C84 8223005D */ lb $v1, 0x5d($s1) -/* 42B178 802A9C88 2402FFFB */ addiu $v0, $zero, -5 -/* 42B17C 802A9C8C 1462001B */ bne $v1, $v0, .L802A9CFC -/* 42B180 802A9C90 00000000 */ nop -/* 42B184 802A9C94 8222005C */ lb $v0, 0x5c($s1) -/* 42B188 802A9C98 8E300020 */ lw $s0, 0x20($s1) -/* 42B18C 802A9C9C 10400005 */ beqz $v0, .L802A9CB4 -/* 42B190 802A9CA0 0200202D */ daddu $a0, $s0, $zero -/* 42B194 802A9CA4 3C058029 */ lui $a1, %hi(HudScript_TimingOK) -/* 42B198 802A9CA8 24A52B54 */ addiu $a1, $a1, %lo(HudScript_TimingOK) -/* 42B19C 802A9CAC 080AA72F */ j .L802A9CBC -/* 42B1A0 802A9CB0 00000000 */ nop -.L802A9CB4: -/* 42B1A4 802A9CB4 3C058029 */ lui $a1, %hi(HudScript_TimingMiss) -/* 42B1A8 802A9CB8 24A52B80 */ addiu $a1, $a1, %lo(HudScript_TimingMiss) -.L802A9CBC: -/* 42B1AC 802A9CBC 0C0511FF */ jal hud_element_set_script -/* 42B1B0 802A9CC0 00000000 */ nop -/* 42B1B4 802A9CC4 0200202D */ daddu $a0, $s0, $zero -/* 42B1B8 802A9CC8 86250056 */ lh $a1, 0x56($s1) -/* 42B1BC 802A9CCC 86260058 */ lh $a2, 0x58($s1) -/* 42B1C0 802A9CD0 24A50030 */ addiu $a1, $a1, 0x30 -/* 42B1C4 802A9CD4 0C051261 */ jal hud_element_set_render_pos -/* 42B1C8 802A9CD8 24C60026 */ addiu $a2, $a2, 0x26 -/* 42B1CC 802A9CDC 0200202D */ daddu $a0, $s0, $zero -/* 42B1D0 802A9CE0 0C05128B */ jal hud_element_clear_flags -/* 42B1D4 802A9CE4 24050002 */ addiu $a1, $zero, 2 -/* 42B1D8 802A9CE8 8E240004 */ lw $a0, 4($s1) -/* 42B1DC 802A9CEC 3C058011 */ lui $a1, %hi(HudScript_AButton) -/* 42B1E0 802A9CF0 24A58B28 */ addiu $a1, $a1, %lo(HudScript_AButton) -/* 42B1E4 802A9CF4 0C0511FF */ jal hud_element_set_script -/* 42B1E8 802A9CF8 00000000 */ nop -.L802A9CFC: -/* 42B1EC 802A9CFC 9222005D */ lbu $v0, 0x5d($s1) -/* 42B1F0 802A9D00 86230054 */ lh $v1, 0x54($s1) -/* 42B1F4 802A9D04 2442FFFF */ addiu $v0, $v0, -1 -/* 42B1F8 802A9D08 A222005D */ sb $v0, 0x5d($s1) -/* 42B1FC 802A9D0C 24020002 */ addiu $v0, $zero, 2 -/* 42B200 802A9D10 1462000D */ bne $v1, $v0, .L802A9D48 -/* 42B204 802A9D14 00000000 */ nop -/* 42B208 802A9D18 8E240014 */ lw $a0, 0x14($s1) -/* 42B20C 802A9D1C 3C058029 */ lui $a1, %hi(HudScript_TimingReady) -/* 42B210 802A9D20 24A52788 */ addiu $a1, $a1, %lo(HudScript_TimingReady) -/* 42B214 802A9D24 0C0511FF */ jal hud_element_set_script -/* 42B218 802A9D28 00000000 */ nop -/* 42B21C 802A9D2C 8E240004 */ lw $a0, 4($s1) -/* 42B220 802A9D30 3C058011 */ lui $a1, %hi(HudScript_AButtonDown) -/* 42B224 802A9D34 24A58B54 */ addiu $a1, $a1, %lo(HudScript_AButtonDown) -/* 42B228 802A9D38 0C0511FF */ jal hud_element_set_script -/* 42B22C 802A9D3C 00000000 */ nop -/* 42B230 802A9D40 0C05272D */ jal sfx_play_sound -/* 42B234 802A9D44 24040234 */ addiu $a0, $zero, 0x234 -.L802A9D48: -/* 42B238 802A9D48 96220054 */ lhu $v0, 0x54($s1) -/* 42B23C 802A9D4C 2442FFFF */ addiu $v0, $v0, -1 -/* 42B240 802A9D50 A6220054 */ sh $v0, 0x54($s1) -/* 42B244 802A9D54 00021400 */ sll $v0, $v0, 0x10 -/* 42B248 802A9D58 144000A9 */ bnez $v0, L802AA000_42B4F0 -/* 42B24C 802A9D5C 24020014 */ addiu $v0, $zero, 0x14 -/* 42B250 802A9D60 A6220054 */ sh $v0, 0x54($s1) -/* 42B254 802A9D64 2402000E */ addiu $v0, $zero, 0xe -.L802A9D68: -/* 42B258 802A9D68 A220005D */ sb $zero, 0x5d($s1) -/* 42B25C 802A9D6C A622004C */ sh $v0, 0x4c($s1) -/* 42B260 802A9D70 A220005C */ sb $zero, 0x5c($s1) -/* 42B264 802A9D74 080AA800 */ j L802AA000_42B4F0 -/* 42B268 802A9D78 A2200060 */ sb $zero, 0x60($s1) -dlabel L802A9D7C_42B26C -/* 42B26C 802A9D7C 0C093EB1 */ jal btl_set_popup_duration -/* 42B270 802A9D80 24040063 */ addiu $a0, $zero, 0x63 -/* 42B274 802A9D84 82220060 */ lb $v0, 0x60($s1) -/* 42B278 802A9D88 1440003D */ bnez $v0, .L802A9E80 -/* 42B27C 802A9D8C 00000000 */ nop -/* 42B280 802A9D90 8222005C */ lb $v0, 0x5c($s1) -/* 42B284 802A9D94 1440003A */ bnez $v0, .L802A9E80 -/* 42B288 802A9D98 00000000 */ nop -/* 42B28C 802A9D9C 8222005D */ lb $v0, 0x5d($s1) -/* 42B290 802A9DA0 2842FFFB */ slti $v0, $v0, -5 -/* 42B294 802A9DA4 14400036 */ bnez $v0, .L802A9E80 -/* 42B298 802A9DA8 00000000 */ nop -/* 42B29C 802A9DAC 86220050 */ lh $v0, 0x50($s1) -/* 42B2A0 802A9DB0 8E030434 */ lw $v1, 0x434($s0) -/* 42B2A4 802A9DB4 000210C0 */ sll $v0, $v0, 3 -/* 42B2A8 802A9DB8 00431021 */ addu $v0, $v0, $v1 -/* 42B2AC 802A9DBC 8C430000 */ lw $v1, ($v0) -/* 42B2B0 802A9DC0 8C420004 */ lw $v0, 4($v0) -/* 42B2B4 802A9DC4 00621821 */ addu $v1, $v1, $v0 -/* 42B2B8 802A9DC8 24630003 */ addiu $v1, $v1, 3 -/* 42B2BC 802A9DCC 28620006 */ slti $v0, $v1, 6 -/* 42B2C0 802A9DD0 54400001 */ bnel $v0, $zero, .L802A9DD8 -/* 42B2C4 802A9DD4 24030006 */ addiu $v1, $zero, 6 -.L802A9DD8: -/* 42B2C8 802A9DD8 82040431 */ lb $a0, 0x431($s0) -/* 42B2CC 802A9DDC 00832023 */ subu $a0, $a0, $v1 -/* 42B2D0 802A9DE0 04820001 */ bltzl $a0, .L802A9DE8 -/* 42B2D4 802A9DE4 24840040 */ addiu $a0, $a0, 0x40 -.L802A9DE8: -/* 42B2D8 802A9DE8 50600001 */ beql $v1, $zero, .L802A9DF0 -/* 42B2DC 802A9DEC 24030001 */ addiu $v1, $zero, 1 -.L802A9DF0: -/* 42B2E0 802A9DF0 18600023 */ blez $v1, .L802A9E80 -/* 42B2E4 802A9DF4 0000302D */ daddu $a2, $zero, $zero -/* 42B2E8 802A9DF8 24070001 */ addiu $a3, $zero, 1 -/* 42B2EC 802A9DFC 00041080 */ sll $v0, $a0, 2 -/* 42B2F0 802A9E00 00502821 */ addu $a1, $v0, $s0 -.L802A9E04: -/* 42B2F4 802A9E04 28820040 */ slti $v0, $a0, 0x40 -/* 42B2F8 802A9E08 14400003 */ bnez $v0, .L802A9E18 -/* 42B2FC 802A9E0C 28C20005 */ slti $v0, $a2, 5 -/* 42B300 802A9E10 24A5FF00 */ addiu $a1, $a1, -0x100 -/* 42B304 802A9E14 2484FFC0 */ addiu $a0, $a0, -0x40 -.L802A9E18: -/* 42B308 802A9E18 10400006 */ beqz $v0, .L802A9E34 -/* 42B30C 802A9E1C 00000000 */ nop -/* 42B310 802A9E20 8CA20330 */ lw $v0, 0x330($a1) -/* 42B314 802A9E24 30428000 */ andi $v0, $v0, 0x8000 -/* 42B318 802A9E28 10400009 */ beqz $v0, .L802A9E50 -/* 42B31C 802A9E2C 00000000 */ nop -/* 42B320 802A9E30 A2270060 */ sb $a3, 0x60($s1) -.L802A9E34: -/* 42B324 802A9E34 8CA20330 */ lw $v0, 0x330($a1) -/* 42B328 802A9E38 30428000 */ andi $v0, $v0, 0x8000 -/* 42B32C 802A9E3C 10400004 */ beqz $v0, .L802A9E50 -/* 42B330 802A9E40 00000000 */ nop -/* 42B334 802A9E44 82220060 */ lb $v0, 0x60($s1) -/* 42B338 802A9E48 10400004 */ beqz $v0, .L802A9E5C -/* 42B33C 802A9E4C 00000000 */ nop -.L802A9E50: -/* 42B340 802A9E50 8222005E */ lb $v0, 0x5e($s1) -/* 42B344 802A9E54 50400006 */ beql $v0, $zero, .L802A9E70 -/* 42B348 802A9E58 24A50004 */ addiu $a1, $a1, 4 -.L802A9E5C: -/* 42B34C 802A9E5C 92020084 */ lbu $v0, 0x84($s0) -/* 42B350 802A9E60 A227005C */ sb $a3, 0x5c($s1) -/* 42B354 802A9E64 24420001 */ addiu $v0, $v0, 1 -/* 42B358 802A9E68 080AA7A0 */ j .L802A9E80 -/* 42B35C 802A9E6C A2020084 */ sb $v0, 0x84($s0) -.L802A9E70: -/* 42B360 802A9E70 24C60001 */ addiu $a2, $a2, 1 -/* 42B364 802A9E74 00C3102A */ slt $v0, $a2, $v1 -/* 42B368 802A9E78 1440FFE2 */ bnez $v0, .L802A9E04 -/* 42B36C 802A9E7C 24840001 */ addiu $a0, $a0, 1 -.L802A9E80: -/* 42B370 802A9E80 8222005D */ lb $v0, 0x5d($s1) -/* 42B374 802A9E84 2842FFFC */ slti $v0, $v0, -4 -/* 42B378 802A9E88 5440001D */ bnel $v0, $zero, .L802A9F00 -/* 42B37C 802A9E8C 2403FFFB */ addiu $v1, $zero, -5 -/* 42B380 802A9E90 82220060 */ lb $v0, 0x60($s1) -/* 42B384 802A9E94 14400004 */ bnez $v0, .L802A9EA8 -/* 42B388 802A9E98 00000000 */ nop -/* 42B38C 802A9E9C 8222005C */ lb $v0, 0x5c($s1) -/* 42B390 802A9EA0 10400017 */ beqz $v0, .L802A9F00 -/* 42B394 802A9EA4 2403FFFB */ addiu $v1, $zero, -5 -.L802A9EA8: -/* 42B398 802A9EA8 8222005C */ lb $v0, 0x5c($s1) -/* 42B39C 802A9EAC 8E300024 */ lw $s0, 0x24($s1) -/* 42B3A0 802A9EB0 10400005 */ beqz $v0, .L802A9EC8 -/* 42B3A4 802A9EB4 0200202D */ daddu $a0, $s0, $zero -/* 42B3A8 802A9EB8 3C058029 */ lui $a1, %hi(HudScript_TimingOK) -/* 42B3AC 802A9EBC 24A52B54 */ addiu $a1, $a1, %lo(HudScript_TimingOK) -/* 42B3B0 802A9EC0 080AA7B4 */ j .L802A9ED0 -/* 42B3B4 802A9EC4 00000000 */ nop -.L802A9EC8: -/* 42B3B8 802A9EC8 3C058029 */ lui $a1, %hi(HudScript_TimingMiss) -/* 42B3BC 802A9ECC 24A52B80 */ addiu $a1, $a1, %lo(HudScript_TimingMiss) -.L802A9ED0: -/* 42B3C0 802A9ED0 0C0511FF */ jal hud_element_set_script -/* 42B3C4 802A9ED4 00000000 */ nop -/* 42B3C8 802A9ED8 0200202D */ daddu $a0, $s0, $zero -/* 42B3CC 802A9EDC 86250056 */ lh $a1, 0x56($s1) -/* 42B3D0 802A9EE0 86260058 */ lh $a2, 0x58($s1) -/* 42B3D4 802A9EE4 24A50044 */ addiu $a1, $a1, 0x44 -/* 42B3D8 802A9EE8 0C051261 */ jal hud_element_set_render_pos -/* 42B3DC 802A9EEC 24C60026 */ addiu $a2, $a2, 0x26 -/* 42B3E0 802A9EF0 0200202D */ daddu $a0, $s0, $zero -/* 42B3E4 802A9EF4 0C05128B */ jal hud_element_clear_flags -/* 42B3E8 802A9EF8 24050002 */ addiu $a1, $zero, 2 -/* 42B3EC 802A9EFC 2403FFFB */ addiu $v1, $zero, -5 -.L802A9F00: -/* 42B3F0 802A9F00 8222005D */ lb $v0, 0x5d($s1) -/* 42B3F4 802A9F04 9224005D */ lbu $a0, 0x5d($s1) -/* 42B3F8 802A9F08 1443001E */ bne $v0, $v1, .L802A9F84 -/* 42B3FC 802A9F0C 2482FFFF */ addiu $v0, $a0, -1 -/* 42B400 802A9F10 8222005C */ lb $v0, 0x5c($s1) -/* 42B404 802A9F14 8E300024 */ lw $s0, 0x24($s1) -/* 42B408 802A9F18 10400005 */ beqz $v0, .L802A9F30 -/* 42B40C 802A9F1C 0200202D */ daddu $a0, $s0, $zero -/* 42B410 802A9F20 3C058029 */ lui $a1, %hi(HudScript_TimingOK) -/* 42B414 802A9F24 24A52B54 */ addiu $a1, $a1, %lo(HudScript_TimingOK) -/* 42B418 802A9F28 080AA7CE */ j .L802A9F38 -/* 42B41C 802A9F2C 00000000 */ nop -.L802A9F30: -/* 42B420 802A9F30 3C058029 */ lui $a1, %hi(HudScript_TimingMiss) -/* 42B424 802A9F34 24A52B80 */ addiu $a1, $a1, %lo(HudScript_TimingMiss) -.L802A9F38: -/* 42B428 802A9F38 0C0511FF */ jal hud_element_set_script -/* 42B42C 802A9F3C 00000000 */ nop -/* 42B430 802A9F40 0200202D */ daddu $a0, $s0, $zero -/* 42B434 802A9F44 86250056 */ lh $a1, 0x56($s1) -/* 42B438 802A9F48 86260058 */ lh $a2, 0x58($s1) -/* 42B43C 802A9F4C 24A50044 */ addiu $a1, $a1, 0x44 -/* 42B440 802A9F50 0C051261 */ jal hud_element_set_render_pos -/* 42B444 802A9F54 24C60026 */ addiu $a2, $a2, 0x26 -/* 42B448 802A9F58 0200202D */ daddu $a0, $s0, $zero -/* 42B44C 802A9F5C 0C05128B */ jal hud_element_clear_flags -/* 42B450 802A9F60 24050002 */ addiu $a1, $zero, 2 -/* 42B454 802A9F64 8E240004 */ lw $a0, 4($s1) -/* 42B458 802A9F68 3C058011 */ lui $a1, %hi(HudScript_AButton) -/* 42B45C 802A9F6C 24A58B28 */ addiu $a1, $a1, %lo(HudScript_AButton) -/* 42B460 802A9F70 0C0511FF */ jal hud_element_set_script -/* 42B464 802A9F74 00000000 */ nop -/* 42B468 802A9F78 24020010 */ addiu $v0, $zero, 0x10 -/* 42B46C 802A9F7C 080AA800 */ j L802AA000_42B4F0 -/* 42B470 802A9F80 A622004C */ sh $v0, 0x4c($s1) -.L802A9F84: -/* 42B474 802A9F84 080AA800 */ j L802AA000_42B4F0 -/* 42B478 802A9F88 A222005D */ sb $v0, 0x5d($s1) -dlabel L802A9F8C_42B47C -/* 42B47C 802A9F8C 82020084 */ lb $v0, 0x84($s0) -/* 42B480 802A9F90 92030084 */ lbu $v1, 0x84($s0) -/* 42B484 802A9F94 54400003 */ bnel $v0, $zero, .L802A9FA4 -/* 42B488 802A9F98 A2030081 */ sb $v1, 0x81($s0) -/* 42B48C 802A9F9C 2402FFFF */ addiu $v0, $zero, -1 -/* 42B490 802A9FA0 A2020081 */ sb $v0, 0x81($s0) -.L802A9FA4: -/* 42B494 802A9FA4 82030081 */ lb $v1, 0x81($s0) -/* 42B498 802A9FA8 24020001 */ addiu $v0, $zero, 1 -/* 42B49C 802A9FAC A2020086 */ sb $v0, 0x86($s0) -/* 42B4A0 802A9FB0 24020003 */ addiu $v0, $zero, 3 -/* 42B4A4 802A9FB4 14620003 */ bne $v1, $v0, .L802A9FC4 -/* 42B4A8 802A9FB8 00000000 */ nop -/* 42B4AC 802A9FBC 0C09A458 */ jal func_80269160 -/* 42B4B0 802A9FC0 00000000 */ nop -.L802A9FC4: -/* 42B4B4 802A9FC4 0C093EB1 */ jal btl_set_popup_duration -/* 42B4B8 802A9FC8 0000202D */ daddu $a0, $zero, $zero -/* 42B4BC 802A9FCC 24020005 */ addiu $v0, $zero, 5 -/* 42B4C0 802A9FD0 A6220054 */ sh $v0, 0x54($s1) -/* 42B4C4 802A9FD4 24020011 */ addiu $v0, $zero, 0x11 -/* 42B4C8 802A9FD8 080AA800 */ j L802AA000_42B4F0 -/* 42B4CC 802A9FDC A622004C */ sh $v0, 0x4c($s1) -dlabel L802A9FE0_42B4D0 -/* 42B4D0 802A9FE0 86220054 */ lh $v0, 0x54($s1) -/* 42B4D4 802A9FE4 96230054 */ lhu $v1, 0x54($s1) -/* 42B4D8 802A9FE8 10400003 */ beqz $v0, .L802A9FF8 -/* 42B4DC 802A9FEC 2462FFFF */ addiu $v0, $v1, -1 -/* 42B4E0 802A9FF0 080AA800 */ j L802AA000_42B4F0 -/* 42B4E4 802A9FF4 A6220054 */ sh $v0, 0x54($s1) -.L802A9FF8: -/* 42B4E8 802A9FF8 0C09A327 */ jal func_80268C9C -/* 42B4EC 802A9FFC 00000000 */ nop -dlabel L802AA000_42B4F0 -/* 42B4F0 802AA000 8FBF0018 */ lw $ra, 0x18($sp) -/* 42B4F4 802AA004 8FB10014 */ lw $s1, 0x14($sp) -/* 42B4F8 802AA008 8FB00010 */ lw $s0, 0x10($sp) -/* 42B4FC 802AA00C 03E00008 */ jr $ra -/* 42B500 802AA010 27BD0020 */ addiu $sp, $sp, 0x20 diff --git a/ver/us/asm/nonmatchings/battle/action_cmd/whirlwind/func_802A9000_423C70.s b/ver/us/asm/nonmatchings/battle/action_cmd/whirlwind/func_802A9000_423C70.s deleted file mode 100644 index d77a3222f1..0000000000 --- a/ver/us/asm/nonmatchings/battle/action_cmd/whirlwind/func_802A9000_423C70.s +++ /dev/null @@ -1,128 +0,0 @@ -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches - -glabel func_802A9000_423C70 -/* 423C70 802A9000 27BDFFD8 */ addiu $sp, $sp, -0x28 -/* 423C74 802A9004 AFB3001C */ sw $s3, 0x1c($sp) -/* 423C78 802A9008 0080982D */ daddu $s3, $a0, $zero -/* 423C7C 802A900C AFB00010 */ sw $s0, 0x10($sp) -/* 423C80 802A9010 3C10800E */ lui $s0, %hi(gBattleStatus) -/* 423C84 802A9014 2610C070 */ addiu $s0, $s0, %lo(gBattleStatus) -/* 423C88 802A9018 AFBF0024 */ sw $ra, 0x24($sp) -/* 423C8C 802A901C AFB40020 */ sw $s4, 0x20($sp) -/* 423C90 802A9020 AFB20018 */ sw $s2, 0x18($sp) -/* 423C94 802A9024 AFB10014 */ sw $s1, 0x14($sp) -/* 423C98 802A9028 8E72000C */ lw $s2, 0xc($s3) -/* 423C9C 802A902C 24020005 */ addiu $v0, $zero, 5 -/* 423CA0 802A9030 A2020082 */ sb $v0, 0x82($s0) -/* 423CA4 802A9034 3C028029 */ lui $v0, %hi(D_80294240) -/* 423CA8 802A9038 24424240 */ addiu $v0, $v0, %lo(D_80294240) -/* 423CAC 802A903C 3C11802A */ lui $s1, %hi(gActionCommandStatus) -/* 423CB0 802A9040 2631FBE0 */ addiu $s1, $s1, %lo(gActionCommandStatus) -/* 423CB4 802A9044 AE020434 */ sw $v0, 0x434($s0) -/* 423CB8 802A9048 82020083 */ lb $v0, 0x83($s0) -/* 423CBC 802A904C 14400003 */ bnez $v0, .L802A905C -/* 423CC0 802A9050 0200A02D */ daddu $s4, $s0, $zero -/* 423CC4 802A9054 080AA46F */ j .L802A91BC -/* 423CC8 802A9058 A2000081 */ sb $zero, 0x81($s0) -.L802A905C: -/* 423CCC 802A905C 0C09A216 */ jal func_80268858 -/* 423CD0 802A9060 00000000 */ nop -/* 423CD4 802A9064 8E450000 */ lw $a1, ($s2) -/* 423CD8 802A9068 0C0B1EAF */ jal evt_get_variable -/* 423CDC 802A906C 0260202D */ daddu $a0, $s3, $zero -/* 423CE0 802A9070 24030005 */ addiu $v1, $zero, 5 -/* 423CE4 802A9074 A6220064 */ sh $v0, 0x64($s1) -/* 423CE8 802A9078 00021400 */ sll $v0, $v0, 0x10 -/* 423CEC 802A907C A623004A */ sh $v1, 0x4a($s1) -/* 423CF0 802A9080 A620004C */ sh $zero, 0x4c($s1) -/* 423CF4 802A9084 A2200060 */ sb $zero, 0x60($s1) -/* 423CF8 802A9088 A6200044 */ sh $zero, 0x44($s1) -/* 423CFC 802A908C 14400003 */ bnez $v0, .L802A909C -/* 423D00 802A9090 A6200048 */ sh $zero, 0x48($s1) -/* 423D04 802A9094 080AA429 */ j .L802A90A4 -/* 423D08 802A9098 A2000084 */ sb $zero, 0x84($s0) -.L802A909C: -/* 423D0C 802A909C 24020003 */ addiu $v0, $zero, 3 -/* 423D10 802A90A0 A2820084 */ sb $v0, 0x84($s4) -.L802A90A4: -/* 423D14 802A90A4 3C048011 */ lui $a0, %hi(HudScript_AButton) -/* 423D18 802A90A8 24848B28 */ addiu $a0, $a0, %lo(HudScript_AButton) -/* 423D1C 802A90AC 2402FFD0 */ addiu $v0, $zero, -0x30 -/* 423D20 802A90B0 A6220056 */ sh $v0, 0x56($s1) -/* 423D24 802A90B4 24020050 */ addiu $v0, $zero, 0x50 -/* 423D28 802A90B8 0C050529 */ jal hud_element_create -/* 423D2C 802A90BC A6220058 */ sh $v0, 0x58($s1) -/* 423D30 802A90C0 0040802D */ daddu $s0, $v0, $zero -/* 423D34 802A90C4 0200202D */ daddu $a0, $s0, $zero -/* 423D38 802A90C8 24050082 */ addiu $a1, $zero, 0x82 -/* 423D3C 802A90CC 0C051280 */ jal hud_element_set_flags -/* 423D40 802A90D0 AE300004 */ sw $s0, 4($s1) -/* 423D44 802A90D4 86250056 */ lh $a1, 0x56($s1) -/* 423D48 802A90D8 86260058 */ lh $a2, 0x58($s1) -/* 423D4C 802A90DC 0C051261 */ jal hud_element_set_render_pos -/* 423D50 802A90E0 0200202D */ daddu $a0, $s0, $zero -/* 423D54 802A90E4 0200202D */ daddu $a0, $s0, $zero -/* 423D58 802A90E8 0C051277 */ jal hud_element_set_render_depth -/* 423D5C 802A90EC 0000282D */ daddu $a1, $zero, $zero -/* 423D60 802A90F0 3C048011 */ lui $a0, %hi(HudScript_BlueMeter) -/* 423D64 802A90F4 24848AFC */ addiu $a0, $a0, %lo(HudScript_BlueMeter) -/* 423D68 802A90F8 0C050529 */ jal hud_element_create -/* 423D6C 802A90FC 00000000 */ nop -/* 423D70 802A9100 0040802D */ daddu $s0, $v0, $zero -/* 423D74 802A9104 86250056 */ lh $a1, 0x56($s1) -/* 423D78 802A9108 86260058 */ lh $a2, 0x58($s1) -/* 423D7C 802A910C 0200202D */ daddu $a0, $s0, $zero -/* 423D80 802A9110 AE300008 */ sw $s0, 8($s1) -/* 423D84 802A9114 0C051261 */ jal hud_element_set_render_pos -/* 423D88 802A9118 24C6001C */ addiu $a2, $a2, 0x1c -/* 423D8C 802A911C 0200202D */ daddu $a0, $s0, $zero -/* 423D90 802A9120 0C051277 */ jal hud_element_set_render_depth -/* 423D94 802A9124 0000282D */ daddu $a1, $zero, $zero -/* 423D98 802A9128 0200202D */ daddu $a0, $s0, $zero -/* 423D9C 802A912C 0C051280 */ jal hud_element_set_flags -/* 423DA0 802A9130 24050082 */ addiu $a1, $zero, 0x82 -/* 423DA4 802A9134 3C04802B */ lui $a0, %hi(D_802AA7F0_425460) -/* 423DA8 802A9138 0C050529 */ jal hud_element_create -/* 423DAC 802A913C 2484A7F0 */ addiu $a0, $a0, %lo(D_802AA7F0_425460) -/* 423DB0 802A9140 0040802D */ daddu $s0, $v0, $zero -/* 423DB4 802A9144 86250056 */ lh $a1, 0x56($s1) -/* 423DB8 802A9148 86260058 */ lh $a2, 0x58($s1) -/* 423DBC 802A914C 0200202D */ daddu $a0, $s0, $zero -/* 423DC0 802A9150 AE30000C */ sw $s0, 0xc($s1) -/* 423DC4 802A9154 24A50036 */ addiu $a1, $a1, 0x36 -/* 423DC8 802A9158 0C051261 */ jal hud_element_set_render_pos -/* 423DCC 802A915C 24C6001C */ addiu $a2, $a2, 0x1c -/* 423DD0 802A9160 0200202D */ daddu $a0, $s0, $zero -/* 423DD4 802A9164 0C051277 */ jal hud_element_set_render_depth -/* 423DD8 802A9168 0000282D */ daddu $a1, $zero, $zero -/* 423DDC 802A916C 0200202D */ daddu $a0, $s0, $zero -/* 423DE0 802A9170 0C051280 */ jal hud_element_set_flags -/* 423DE4 802A9174 24050082 */ addiu $a1, $zero, 0x82 -/* 423DE8 802A9178 3C04802B */ lui $a0, %hi(D_802AA818_425488) -/* 423DEC 802A917C 0C050529 */ jal hud_element_create -/* 423DF0 802A9180 2484A818 */ addiu $a0, $a0, %lo(D_802AA818_425488) -/* 423DF4 802A9184 0040802D */ daddu $s0, $v0, $zero -/* 423DF8 802A9188 86250056 */ lh $a1, 0x56($s1) -/* 423DFC 802A918C 86260058 */ lh $a2, 0x58($s1) -/* 423E00 802A9190 0200202D */ daddu $a0, $s0, $zero -/* 423E04 802A9194 AE300010 */ sw $s0, 0x10($s1) -/* 423E08 802A9198 24A5003C */ addiu $a1, $a1, 0x3c -/* 423E0C 802A919C 0C051261 */ jal hud_element_set_render_pos -/* 423E10 802A91A0 24C6001C */ addiu $a2, $a2, 0x1c -/* 423E14 802A91A4 0200202D */ daddu $a0, $s0, $zero -/* 423E18 802A91A8 0C051277 */ jal hud_element_set_render_depth -/* 423E1C 802A91AC 0000282D */ daddu $a1, $zero, $zero -/* 423E20 802A91B0 0200202D */ daddu $a0, $s0, $zero -/* 423E24 802A91B4 0C051280 */ jal hud_element_set_flags -/* 423E28 802A91B8 24050082 */ addiu $a1, $zero, 0x82 -.L802A91BC: -/* 423E2C 802A91BC 24020002 */ addiu $v0, $zero, 2 -/* 423E30 802A91C0 8FBF0024 */ lw $ra, 0x24($sp) -/* 423E34 802A91C4 8FB40020 */ lw $s4, 0x20($sp) -/* 423E38 802A91C8 8FB3001C */ lw $s3, 0x1c($sp) -/* 423E3C 802A91CC 8FB20018 */ lw $s2, 0x18($sp) -/* 423E40 802A91D0 8FB10014 */ lw $s1, 0x14($sp) -/* 423E44 802A91D4 8FB00010 */ lw $s0, 0x10($sp) -/* 423E48 802A91D8 03E00008 */ jr $ra -/* 423E4C 802A91DC 27BD0028 */ addiu $sp, $sp, 0x28 diff --git a/ver/us/asm/nonmatchings/battle/action_cmd/whirlwind/func_802A91E0_423E50.s b/ver/us/asm/nonmatchings/battle/action_cmd/whirlwind/func_802A91E0_423E50.s deleted file mode 100644 index b8ff9f7275..0000000000 --- a/ver/us/asm/nonmatchings/battle/action_cmd/whirlwind/func_802A91E0_423E50.s +++ /dev/null @@ -1,76 +0,0 @@ -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches - -glabel func_802A91E0_423E50 -/* 423E50 802A91E0 27BDFFD8 */ addiu $sp, $sp, -0x28 -/* 423E54 802A91E4 AFB20018 */ sw $s2, 0x18($sp) -/* 423E58 802A91E8 0080902D */ daddu $s2, $a0, $zero -/* 423E5C 802A91EC AFB10014 */ sw $s1, 0x14($sp) -/* 423E60 802A91F0 3C11802A */ lui $s1, %hi(gActionCommandStatus) -/* 423E64 802A91F4 2631FBE0 */ addiu $s1, $s1, %lo(gActionCommandStatus) -/* 423E68 802A91F8 AFB3001C */ sw $s3, 0x1c($sp) -/* 423E6C 802A91FC 3C13800E */ lui $s3, %hi(gBattleStatus) -/* 423E70 802A9200 2673C070 */ addiu $s3, $s3, %lo(gBattleStatus) -/* 423E74 802A9204 AFB40020 */ sw $s4, 0x20($sp) -/* 423E78 802A9208 AFBF0024 */ sw $ra, 0x24($sp) -/* 423E7C 802A920C AFB00010 */ sw $s0, 0x10($sp) -/* 423E80 802A9210 82620083 */ lb $v0, 0x83($s3) -/* 423E84 802A9214 8E50000C */ lw $s0, 0xc($s2) -/* 423E88 802A9218 14400004 */ bnez $v0, .L802A922C -/* 423E8C 802A921C 0260A02D */ daddu $s4, $s3, $zero -/* 423E90 802A9220 A2600081 */ sb $zero, 0x81($s3) -/* 423E94 802A9224 080AA4B4 */ j .L802A92D0 -/* 423E98 802A9228 24020002 */ addiu $v0, $zero, 2 -.L802A922C: -/* 423E9C 802A922C 0C09A216 */ jal func_80268858 -/* 423EA0 802A9230 00000000 */ nop -/* 423EA4 802A9234 8E050000 */ lw $a1, ($s0) -/* 423EA8 802A9238 26100004 */ addiu $s0, $s0, 4 -/* 423EAC 802A923C 0C0B1EAF */ jal evt_get_variable -/* 423EB0 802A9240 0240202D */ daddu $a0, $s2, $zero -/* 423EB4 802A9244 A622004E */ sh $v0, 0x4e($s1) -/* 423EB8 802A9248 8E050000 */ lw $a1, ($s0) -/* 423EBC 802A924C 26100004 */ addiu $s0, $s0, 4 -/* 423EC0 802A9250 0C0B1EAF */ jal evt_get_variable -/* 423EC4 802A9254 0240202D */ daddu $a0, $s2, $zero -/* 423EC8 802A9258 A6220052 */ sh $v0, 0x52($s1) -/* 423ECC 802A925C 8E050000 */ lw $a1, ($s0) -/* 423ED0 802A9260 0C0B1EAF */ jal evt_get_variable -/* 423ED4 802A9264 0240202D */ daddu $a0, $s2, $zero -/* 423ED8 802A9268 00022400 */ sll $a0, $v0, 0x10 -/* 423EDC 802A926C 00042403 */ sra $a0, $a0, 0x10 -/* 423EE0 802A9270 0C09A089 */ jal func_80268224 -/* 423EE4 802A9274 A6220050 */ sh $v0, 0x50($s1) -/* 423EE8 802A9278 86230064 */ lh $v1, 0x64($s1) -/* 423EEC 802A927C A6220050 */ sh $v0, 0x50($s1) -/* 423EF0 802A9280 A2200060 */ sb $zero, 0x60($s1) -/* 423EF4 802A9284 A6200044 */ sh $zero, 0x44($s1) -/* 423EF8 802A9288 A6200048 */ sh $zero, 0x48($s1) -/* 423EFC 802A928C A2600081 */ sb $zero, 0x81($s3) -/* 423F00 802A9290 14600003 */ bnez $v1, .L802A92A0 -/* 423F04 802A9294 A2600086 */ sb $zero, 0x86($s3) -/* 423F08 802A9298 080AA4AA */ j .L802A92A8 -/* 423F0C 802A929C A2600084 */ sb $zero, 0x84($s3) -.L802A92A0: -/* 423F10 802A92A0 24020003 */ addiu $v0, $zero, 3 -/* 423F14 802A92A4 A2820084 */ sb $v0, 0x84($s4) -.L802A92A8: -/* 423F18 802A92A8 3C06FFFF */ lui $a2, 0xffff -/* 423F1C 802A92AC 34C67FFF */ ori $a2, $a2, 0x7fff -/* 423F20 802A92B0 24020002 */ addiu $v0, $zero, 2 -/* 423F24 802A92B4 3C05800E */ lui $a1, %hi(gBattleStatus) -/* 423F28 802A92B8 24A5C070 */ addiu $a1, $a1, %lo(gBattleStatus) -/* 423F2C 802A92BC 8CA30000 */ lw $v1, ($a1) -/* 423F30 802A92C0 2404000A */ addiu $a0, $zero, 0xa -/* 423F34 802A92C4 A624004C */ sh $a0, 0x4c($s1) -/* 423F38 802A92C8 00661824 */ and $v1, $v1, $a2 -/* 423F3C 802A92CC ACA30000 */ sw $v1, ($a1) -.L802A92D0: -/* 423F40 802A92D0 8FBF0024 */ lw $ra, 0x24($sp) -/* 423F44 802A92D4 8FB40020 */ lw $s4, 0x20($sp) -/* 423F48 802A92D8 8FB3001C */ lw $s3, 0x1c($sp) -/* 423F4C 802A92DC 8FB20018 */ lw $s2, 0x18($sp) -/* 423F50 802A92E0 8FB10014 */ lw $s1, 0x14($sp) -/* 423F54 802A92E4 8FB00010 */ lw $s0, 0x10($sp) -/* 423F58 802A92E8 03E00008 */ jr $ra -/* 423F5C 802A92EC 27BD0028 */ addiu $sp, $sp, 0x28 diff --git a/ver/us/asm/nonmatchings/battle/action_cmd/whirlwind/func_802A92F0_423F60.s b/ver/us/asm/nonmatchings/battle/action_cmd/whirlwind/func_802A92F0_423F60.s deleted file mode 100644 index 1756b3431c..0000000000 --- a/ver/us/asm/nonmatchings/battle/action_cmd/whirlwind/func_802A92F0_423F60.s +++ /dev/null @@ -1,309 +0,0 @@ -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches - -glabel func_802A92F0_423F60 -/* 423F60 802A92F0 27BDFFE0 */ addiu $sp, $sp, -0x20 -/* 423F64 802A92F4 AFB10014 */ sw $s1, 0x14($sp) -/* 423F68 802A92F8 3C11802A */ lui $s1, %hi(gActionCommandStatus) -/* 423F6C 802A92FC 2631FBE0 */ addiu $s1, $s1, %lo(gActionCommandStatus) -/* 423F70 802A9300 AFBF001C */ sw $ra, 0x1c($sp) -/* 423F74 802A9304 AFB20018 */ sw $s2, 0x18($sp) -/* 423F78 802A9308 AFB00010 */ sw $s0, 0x10($sp) -/* 423F7C 802A930C 8623004C */ lh $v1, 0x4c($s1) -/* 423F80 802A9310 3C12800E */ lui $s2, %hi(gBattleStatus) -/* 423F84 802A9314 2652C070 */ addiu $s2, $s2, %lo(gBattleStatus) -/* 423F88 802A9318 2C62000D */ sltiu $v0, $v1, 0xd -/* 423F8C 802A931C 10400103 */ beqz $v0, L802A972C_42439C -/* 423F90 802A9320 00031080 */ sll $v0, $v1, 2 -/* 423F94 802A9324 3C01802B */ lui $at, %hi(jtbl_802AA8E0_425550) -/* 423F98 802A9328 00220821 */ addu $at, $at, $v0 -/* 423F9C 802A932C 8C22A8E0 */ lw $v0, %lo(jtbl_802AA8E0_425550)($at) -/* 423FA0 802A9330 00400008 */ jr $v0 -/* 423FA4 802A9334 00000000 */ nop -dlabel L802A9338_423FA8 -/* 423FA8 802A9338 0C093EB1 */ jal btl_set_popup_duration -/* 423FAC 802A933C 24040063 */ addiu $a0, $zero, 0x63 -/* 423FB0 802A9340 82220061 */ lb $v0, 0x61($s1) -/* 423FB4 802A9344 8E300004 */ lw $s0, 4($s1) -/* 423FB8 802A9348 10400004 */ beqz $v0, .L802A935C -/* 423FBC 802A934C 0200202D */ daddu $a0, $s0, $zero -/* 423FC0 802A9350 0C05128B */ jal hud_element_clear_flags -/* 423FC4 802A9354 24050002 */ addiu $a1, $zero, 2 -/* 423FC8 802A9358 0200202D */ daddu $a0, $s0, $zero -.L802A935C: -/* 423FCC 802A935C 0C0513AC */ jal hud_element_set_alpha -/* 423FD0 802A9360 240500FF */ addiu $a1, $zero, 0xff -/* 423FD4 802A9364 8E300008 */ lw $s0, 8($s1) -/* 423FD8 802A9368 240500FF */ addiu $a1, $zero, 0xff -/* 423FDC 802A936C 0C0513AC */ jal hud_element_set_alpha -/* 423FE0 802A9370 0200202D */ daddu $a0, $s0, $zero -/* 423FE4 802A9374 82220061 */ lb $v0, 0x61($s1) -/* 423FE8 802A9378 10400003 */ beqz $v0, .L802A9388 -/* 423FEC 802A937C 0200202D */ daddu $a0, $s0, $zero -/* 423FF0 802A9380 0C05128B */ jal hud_element_clear_flags -/* 423FF4 802A9384 24050002 */ addiu $a1, $zero, 2 -.L802A9388: -/* 423FF8 802A9388 8E30000C */ lw $s0, 0xc($s1) -/* 423FFC 802A938C 240500FF */ addiu $a1, $zero, 0xff -/* 424000 802A9390 0C0513AC */ jal hud_element_set_alpha -/* 424004 802A9394 0200202D */ daddu $a0, $s0, $zero -/* 424008 802A9398 82220061 */ lb $v0, 0x61($s1) -/* 42400C 802A939C 10400003 */ beqz $v0, .L802A93AC -/* 424010 802A93A0 0200202D */ daddu $a0, $s0, $zero -/* 424014 802A93A4 0C05128B */ jal hud_element_clear_flags -/* 424018 802A93A8 24050002 */ addiu $a1, $zero, 2 -.L802A93AC: -/* 42401C 802A93AC 8E300010 */ lw $s0, 0x10($s1) -/* 424020 802A93B0 240500FF */ addiu $a1, $zero, 0xff -/* 424024 802A93B4 0C0513AC */ jal hud_element_set_alpha -/* 424028 802A93B8 0200202D */ daddu $a0, $s0, $zero -/* 42402C 802A93BC 82220061 */ lb $v0, 0x61($s1) -/* 424030 802A93C0 10400003 */ beqz $v0, .L802A93D0 -/* 424034 802A93C4 0200202D */ daddu $a0, $s0, $zero -/* 424038 802A93C8 0C05128B */ jal hud_element_clear_flags -/* 42403C 802A93CC 24050002 */ addiu $a1, $zero, 2 -.L802A93D0: -/* 424040 802A93D0 24020001 */ addiu $v0, $zero, 1 -/* 424044 802A93D4 080AA5CB */ j L802A972C_42439C -/* 424048 802A93D8 A622004C */ sh $v0, 0x4c($s1) -dlabel L802A93DC_42404C -/* 42404C 802A93DC 0C093EB1 */ jal btl_set_popup_duration -/* 424050 802A93E0 24040063 */ addiu $a0, $zero, 0x63 -/* 424054 802A93E4 96220056 */ lhu $v0, 0x56($s1) -/* 424058 802A93E8 24420014 */ addiu $v0, $v0, 0x14 -/* 42405C 802A93EC A6220056 */ sh $v0, 0x56($s1) -/* 424060 802A93F0 00021400 */ sll $v0, $v0, 0x10 -/* 424064 802A93F4 00021403 */ sra $v0, $v0, 0x10 -/* 424068 802A93F8 28420033 */ slti $v0, $v0, 0x33 -/* 42406C 802A93FC 14400002 */ bnez $v0, .L802A9408 -/* 424070 802A9400 24020032 */ addiu $v0, $zero, 0x32 -/* 424074 802A9404 A6220056 */ sh $v0, 0x56($s1) -.L802A9408: -/* 424078 802A9408 8E240004 */ lw $a0, 4($s1) -/* 42407C 802A940C 86250056 */ lh $a1, 0x56($s1) -/* 424080 802A9410 0C051261 */ jal hud_element_set_render_pos -/* 424084 802A9414 86260058 */ lh $a2, 0x58($s1) -/* 424088 802A9418 8E240008 */ lw $a0, 8($s1) -/* 42408C 802A941C 86260058 */ lh $a2, 0x58($s1) -/* 424090 802A9420 86250056 */ lh $a1, 0x56($s1) -/* 424094 802A9424 0C051261 */ jal hud_element_set_render_pos -/* 424098 802A9428 24C6001C */ addiu $a2, $a2, 0x1c -/* 42409C 802A942C 8E24000C */ lw $a0, 0xc($s1) -/* 4240A0 802A9430 86250056 */ lh $a1, 0x56($s1) -/* 4240A4 802A9434 86260058 */ lh $a2, 0x58($s1) -/* 4240A8 802A9438 24A50036 */ addiu $a1, $a1, 0x36 -/* 4240AC 802A943C 0C051261 */ jal hud_element_set_render_pos -/* 4240B0 802A9440 24C60017 */ addiu $a2, $a2, 0x17 -/* 4240B4 802A9444 8E240010 */ lw $a0, 0x10($s1) -/* 4240B8 802A9448 86250056 */ lh $a1, 0x56($s1) -/* 4240BC 802A944C 86260058 */ lh $a2, 0x58($s1) -/* 4240C0 802A9450 24A5003C */ addiu $a1, $a1, 0x3c -/* 4240C4 802A9454 0C051261 */ jal hud_element_set_render_pos -/* 4240C8 802A9458 24C60017 */ addiu $a2, $a2, 0x17 -/* 4240CC 802A945C 080AA5CB */ j L802A972C_42439C -/* 4240D0 802A9460 00000000 */ nop -dlabel L802A9464_4240D4 -/* 4240D4 802A9464 0C093EB1 */ jal btl_set_popup_duration -/* 4240D8 802A9468 24040063 */ addiu $a0, $zero, 0x63 -/* 4240DC 802A946C 8622004E */ lh $v0, 0x4e($s1) -/* 4240E0 802A9470 9623004E */ lhu $v1, 0x4e($s1) -/* 4240E4 802A9474 10400003 */ beqz $v0, .L802A9484 -/* 4240E8 802A9478 2462FFFF */ addiu $v0, $v1, -1 -/* 4240EC 802A947C 080AA5CB */ j L802A972C_42439C -/* 4240F0 802A9480 A622004E */ sh $v0, 0x4e($s1) -.L802A9484: -/* 4240F4 802A9484 8E240004 */ lw $a0, 4($s1) -/* 4240F8 802A9488 3C058011 */ lui $a1, %hi(HudScript_MashAButton) -/* 4240FC 802A948C 24A58B80 */ addiu $a1, $a1, %lo(HudScript_MashAButton) -/* 424100 802A9490 0C0511FF */ jal hud_element_set_script -/* 424104 802A9494 00000000 */ nop -/* 424108 802A9498 96230052 */ lhu $v1, 0x52($s1) -/* 42410C 802A949C 2402000B */ addiu $v0, $zero, 0xb -/* 424110 802A94A0 A6200044 */ sh $zero, 0x44($s1) -/* 424114 802A94A4 A622004C */ sh $v0, 0x4c($s1) -/* 424118 802A94A8 A6230054 */ sh $v1, 0x54($s1) -dlabel L802A94AC_42411C -/* 42411C 802A94AC 0C093EB1 */ jal btl_set_popup_duration -/* 424120 802A94B0 24040063 */ addiu $a0, $zero, 0x63 -/* 424124 802A94B4 82220080 */ lb $v0, 0x80($s1) -/* 424128 802A94B8 00021040 */ sll $v0, $v0, 1 -/* 42412C 802A94BC 02221021 */ addu $v0, $s1, $v0 -/* 424130 802A94C0 84500074 */ lh $s0, 0x74($v0) -/* 424134 802A94C4 86220044 */ lh $v0, 0x44($s1) -/* 424138 802A94C8 86230064 */ lh $v1, 0x64($s1) -/* 42413C 802A94CC 16000002 */ bnez $s0, .L802A94D8 -/* 424140 802A94D0 0050001A */ div $zero, $v0, $s0 -/* 424144 802A94D4 0007000D */ break 7 -.L802A94D8: -/* 424148 802A94D8 2401FFFF */ addiu $at, $zero, -1 -/* 42414C 802A94DC 16010004 */ bne $s0, $at, .L802A94F0 -/* 424150 802A94E0 3C018000 */ lui $at, 0x8000 -/* 424154 802A94E4 14410002 */ bne $v0, $at, .L802A94F0 -/* 424158 802A94E8 00000000 */ nop -/* 42415C 802A94EC 0006000D */ break 6 -.L802A94F0: -/* 424160 802A94F0 00002012 */ mflo $a0 -/* 424164 802A94F4 1460000C */ bnez $v1, .L802A9528 -/* 424168 802A94F8 3C026666 */ lui $v0, 0x6666 -/* 42416C 802A94FC 34426667 */ ori $v0, $v0, 0x6667 -/* 424170 802A9500 00820018 */ mult $a0, $v0 -/* 424174 802A9504 00041FC3 */ sra $v1, $a0, 0x1f -/* 424178 802A9508 00003810 */ mfhi $a3 -/* 42417C 802A950C 000710C3 */ sra $v0, $a3, 3 -/* 424180 802A9510 00431023 */ subu $v0, $v0, $v1 -/* 424184 802A9514 00021080 */ sll $v0, $v0, 2 -/* 424188 802A9518 3C03802B */ lui $v1, %hi(D_802AA844_4254B4) -/* 42418C 802A951C 00621821 */ addu $v1, $v1, $v0 -/* 424190 802A9520 080AA554 */ j .L802A9550 -/* 424194 802A9524 8C63A844 */ lw $v1, %lo(D_802AA844_4254B4)($v1) -.L802A9528: -/* 424198 802A9528 34426667 */ ori $v0, $v0, 0x6667 -/* 42419C 802A952C 00820018 */ mult $a0, $v0 -/* 4241A0 802A9530 00041FC3 */ sra $v1, $a0, 0x1f -/* 4241A4 802A9534 00003810 */ mfhi $a3 -/* 4241A8 802A9538 00071083 */ sra $v0, $a3, 2 -/* 4241AC 802A953C 00431023 */ subu $v0, $v0, $v1 -/* 4241B0 802A9540 00021080 */ sll $v0, $v0, 2 -/* 4241B4 802A9544 3C03802B */ lui $v1, %hi(D_802AA85C_4254CC) -/* 4241B8 802A9548 00621821 */ addu $v1, $v1, $v0 -/* 4241BC 802A954C 8C63A85C */ lw $v1, %lo(D_802AA85C_4254CC)($v1) -.L802A9550: -/* 4241C0 802A9550 96220044 */ lhu $v0, 0x44($s1) -/* 4241C4 802A9554 00431023 */ subu $v0, $v0, $v1 -/* 4241C8 802A9558 A6220044 */ sh $v0, 0x44($s1) -/* 4241CC 802A955C 00021400 */ sll $v0, $v0, 0x10 -/* 4241D0 802A9560 04420001 */ bltzl $v0, .L802A9568 -/* 4241D4 802A9564 A6200044 */ sh $zero, 0x44($s1) -.L802A9568: -/* 4241D8 802A9568 8622006A */ lh $v0, 0x6a($s1) -/* 4241DC 802A956C 1440001C */ bnez $v0, .L802A95E0 -/* 4241E0 802A9570 00000000 */ nop -/* 4241E4 802A9574 8E420214 */ lw $v0, 0x214($s2) -/* 4241E8 802A9578 30428000 */ andi $v0, $v0, 0x8000 -/* 4241EC 802A957C 1040002F */ beqz $v0, .L802A963C -/* 4241F0 802A9580 00000000 */ nop -/* 4241F4 802A9584 86220064 */ lh $v0, 0x64($s1) -/* 4241F8 802A9588 14400009 */ bnez $v0, .L802A95B0 -/* 4241FC 802A958C 00000000 */ nop -/* 424200 802A9590 86220050 */ lh $v0, 0x50($s1) -/* 424204 802A9594 8E430434 */ lw $v1, 0x434($s2) -/* 424208 802A9598 00021080 */ sll $v0, $v0, 2 -/* 42420C 802A959C 00431021 */ addu $v0, $v0, $v1 -/* 424210 802A95A0 8C430000 */ lw $v1, ($v0) -/* 424214 802A95A4 00031080 */ sll $v0, $v1, 2 -/* 424218 802A95A8 080AA574 */ j .L802A95D0 -/* 42421C 802A95AC 00431821 */ addu $v1, $v0, $v1 -.L802A95B0: -/* 424220 802A95B0 86220050 */ lh $v0, 0x50($s1) -/* 424224 802A95B4 8E430434 */ lw $v1, 0x434($s2) -/* 424228 802A95B8 00021080 */ sll $v0, $v0, 2 -/* 42422C 802A95BC 00431021 */ addu $v0, $v0, $v1 -/* 424230 802A95C0 8C430000 */ lw $v1, ($v0) -/* 424234 802A95C4 00031040 */ sll $v0, $v1, 1 -/* 424238 802A95C8 00431021 */ addu $v0, $v0, $v1 -/* 42423C 802A95CC 00021840 */ sll $v1, $v0, 1 -.L802A95D0: -/* 424240 802A95D0 96220044 */ lhu $v0, 0x44($s1) -/* 424244 802A95D4 00431021 */ addu $v0, $v0, $v1 -/* 424248 802A95D8 080AA58F */ j .L802A963C -/* 42424C 802A95DC A6220044 */ sh $v0, 0x44($s1) -.L802A95E0: -/* 424250 802A95E0 86220050 */ lh $v0, 0x50($s1) -/* 424254 802A95E4 8E430434 */ lw $v1, 0x434($s2) -/* 424258 802A95E8 00021080 */ sll $v0, $v0, 2 -/* 42425C 802A95EC 00431021 */ addu $v0, $v0, $v1 -/* 424260 802A95F0 8C430000 */ lw $v1, ($v0) -/* 424264 802A95F4 04620001 */ bltzl $v1, .L802A95FC -/* 424268 802A95F8 24630003 */ addiu $v1, $v1, 3 -.L802A95FC: -/* 42426C 802A95FC 96220044 */ lhu $v0, 0x44($s1) -/* 424270 802A9600 00031883 */ sra $v1, $v1, 2 -/* 424274 802A9604 00431021 */ addu $v0, $v0, $v1 -/* 424278 802A9608 A6220044 */ sh $v0, 0x44($s1) -/* 42427C 802A960C 86220050 */ lh $v0, 0x50($s1) -/* 424280 802A9610 8E430434 */ lw $v1, 0x434($s2) -/* 424284 802A9614 00021080 */ sll $v0, $v0, 2 -/* 424288 802A9618 00431021 */ addu $v0, $v0, $v1 -/* 42428C 802A961C 8C420000 */ lw $v0, ($v0) -/* 424290 802A9620 04420001 */ bltzl $v0, .L802A9628 -/* 424294 802A9624 24420003 */ addiu $v0, $v0, 3 -.L802A9628: -/* 424298 802A9628 0C00A67F */ jal rand_int -/* 42429C 802A962C 00022083 */ sra $a0, $v0, 2 -/* 4242A0 802A9630 96230044 */ lhu $v1, 0x44($s1) -/* 4242A4 802A9634 00621821 */ addu $v1, $v1, $v0 -/* 4242A8 802A9638 A6230044 */ sh $v1, 0x44($s1) -.L802A963C: -/* 4242AC 802A963C 86230044 */ lh $v1, 0x44($s1) -/* 4242B0 802A9640 00101040 */ sll $v0, $s0, 1 -/* 4242B4 802A9644 00501021 */ addu $v0, $v0, $s0 -/* 4242B8 802A9648 000210C0 */ sll $v0, $v0, 3 -/* 4242BC 802A964C 00501021 */ addu $v0, $v0, $s0 -/* 4242C0 802A9650 00021080 */ sll $v0, $v0, 2 -/* 4242C4 802A9654 0043182A */ slt $v1, $v0, $v1 -/* 4242C8 802A9658 54600001 */ bnel $v1, $zero, .L802A9660 -/* 4242CC 802A965C A6220044 */ sh $v0, 0x44($s1) -.L802A9660: -/* 4242D0 802A9660 86220064 */ lh $v0, 0x64($s1) -/* 4242D4 802A9664 1440000B */ bnez $v0, .L802A9694 -/* 4242D8 802A9668 3C041062 */ lui $a0, 0x1062 -/* 4242DC 802A966C 96230044 */ lhu $v1, 0x44($s1) -/* 4242E0 802A9670 34844DD3 */ ori $a0, $a0, 0x4dd3 -/* 4242E4 802A9674 00031C00 */ sll $v1, $v1, 0x10 -/* 4242E8 802A9678 00031403 */ sra $v0, $v1, 0x10 -/* 4242EC 802A967C 00440018 */ mult $v0, $a0 -/* 4242F0 802A9680 00031FC3 */ sra $v1, $v1, 0x1f -/* 4242F4 802A9684 00003810 */ mfhi $a3 -/* 4242F8 802A9688 000711C3 */ sra $v0, $a3, 7 -/* 4242FC 802A968C 080AA5B3 */ j .L802A96CC -/* 424300 802A9690 00431023 */ subu $v0, $v0, $v1 -.L802A9694: -/* 424304 802A9694 96230044 */ lhu $v1, 0x44($s1) -/* 424308 802A9698 34844DD3 */ ori $a0, $a0, 0x4dd3 -/* 42430C 802A969C 00031C00 */ sll $v1, $v1, 0x10 -/* 424310 802A96A0 00031403 */ sra $v0, $v1, 0x10 -/* 424314 802A96A4 00440018 */ mult $v0, $a0 -/* 424318 802A96A8 00031FC3 */ sra $v1, $v1, 0x1f -/* 42431C 802A96AC 00003810 */ mfhi $a3 -/* 424320 802A96B0 00071183 */ sra $v0, $a3, 6 -/* 424324 802A96B4 00431023 */ subu $v0, $v0, $v1 -/* 424328 802A96B8 00021400 */ sll $v0, $v0, 0x10 -/* 42432C 802A96BC 00021383 */ sra $v0, $v0, 0xe -/* 424330 802A96C0 3C01802B */ lui $at, %hi(D_802AA8B7_425527) -/* 424334 802A96C4 00220821 */ addu $at, $at, $v0 -/* 424338 802A96C8 9022A8B7 */ lbu $v0, %lo(D_802AA8B7_425527)($at) -.L802A96CC: -/* 42433C 802A96CC A2420084 */ sb $v0, 0x84($s2) -/* 424340 802A96D0 86220054 */ lh $v0, 0x54($s1) -/* 424344 802A96D4 96230054 */ lhu $v1, 0x54($s1) -/* 424348 802A96D8 14400010 */ bnez $v0, .L802A971C -/* 42434C 802A96DC 2462FFFF */ addiu $v0, $v1, -1 -/* 424350 802A96E0 0000202D */ daddu $a0, $zero, $zero -/* 424354 802A96E4 92430084 */ lbu $v1, 0x84($s2) -/* 424358 802A96E8 2402007F */ addiu $v0, $zero, 0x7f -/* 42435C 802A96EC A2420086 */ sb $v0, 0x86($s2) -/* 424360 802A96F0 0C093EB1 */ jal btl_set_popup_duration -/* 424364 802A96F4 A2430081 */ sb $v1, 0x81($s2) -/* 424368 802A96F8 24020005 */ addiu $v0, $zero, 5 -/* 42436C 802A96FC A6220054 */ sh $v0, 0x54($s1) -/* 424370 802A9700 2402000C */ addiu $v0, $zero, 0xc -/* 424374 802A9704 080AA5CB */ j L802A972C_42439C -/* 424378 802A9708 A622004C */ sh $v0, 0x4c($s1) -dlabel L802A970C_42437C -/* 42437C 802A970C 86220054 */ lh $v0, 0x54($s1) -/* 424380 802A9710 96230054 */ lhu $v1, 0x54($s1) -/* 424384 802A9714 10400003 */ beqz $v0, .L802A9724 -/* 424388 802A9718 2462FFFF */ addiu $v0, $v1, -1 -.L802A971C: -/* 42438C 802A971C 080AA5CB */ j L802A972C_42439C -/* 424390 802A9720 A6220054 */ sh $v0, 0x54($s1) -.L802A9724: -/* 424394 802A9724 0C09A327 */ jal func_80268C9C -/* 424398 802A9728 00000000 */ nop -dlabel L802A972C_42439C -/* 42439C 802A972C 8FBF001C */ lw $ra, 0x1c($sp) -/* 4243A0 802A9730 8FB20018 */ lw $s2, 0x18($sp) -/* 4243A4 802A9734 8FB10014 */ lw $s1, 0x14($sp) -/* 4243A8 802A9738 8FB00010 */ lw $s0, 0x10($sp) -/* 4243AC 802A973C 03E00008 */ jr $ra -/* 4243B0 802A9740 27BD0020 */ addiu $sp, $sp, 0x20 diff --git a/ver/us/asm/nonmatchings/battle/area_kpa2/69F320/func_80218AA4_69FCA4.s b/ver/us/asm/nonmatchings/battle/area_kpa2/69F320/func_80218AA4_69FCA4.s index 33b86f1c2e..d471bb2974 100644 --- a/ver/us/asm/nonmatchings/battle/area_kpa2/69F320/func_80218AA4_69FCA4.s +++ b/ver/us/asm/nonmatchings/battle/area_kpa2/69F320/func_80218AA4_69FCA4.s @@ -1,6 +1,31 @@ .set noat # allow manual use of $at .set noreorder # don't insert nops after branches +.section .rodata + +dlabel D_80234740_6BB940 +.double 0.4 + +dlabel D_80234748_6BB948 +.double 2.4000000953674316 + +dlabel D_80234750_6BB950 +.double 1.600000023841858 + +dlabel D_80234758_6BB958 +.double 1.2000000000000002 + +dlabel D_80234760_6BB960 +.double 0.9600000381469727 + +dlabel D_80234768_6BB968 +.double 0.4 + +dlabel D_80234770_6BB970 +.double 0.6400000095367432, 0.0 + +.section .text + glabel func_80218AA4_69FCA4 /* 69FCA4 80218AA4 27BDFFB0 */ addiu $sp, $sp, -0x50 /* 69FCA8 80218AA8 AFB1001C */ sw $s1, 0x1c($sp) diff --git a/ver/us/asm/nonmatchings/battle/area_kpa2/69F320/func_80219818_6A0A18.s b/ver/us/asm/nonmatchings/battle/area_kpa2/69F320/func_80219818_6A0A18.s index df4a2d5dc2..633caa9586 100644 --- a/ver/us/asm/nonmatchings/battle/area_kpa2/69F320/func_80219818_6A0A18.s +++ b/ver/us/asm/nonmatchings/battle/area_kpa2/69F320/func_80219818_6A0A18.s @@ -1,6 +1,31 @@ .set noat # allow manual use of $at .set noreorder # don't insert nops after branches +.section .rodata + +dlabel D_80234780_6BB980 +.double 0.4 + +dlabel D_80234788_6BB988 +.double 2.4000000953674316 + +dlabel D_80234790_6BB990 +.double 1.600000023841858 + +dlabel D_80234798_6BB998 +.double 1.2000000000000002 + +dlabel D_802347A0_6BB9A0 +.double 0.9600000381469727 + +dlabel D_802347A8_6BB9A8 +.double 0.4 + +dlabel D_802347B0_6BB9B0 +.double 0.6400000095367432, 0.0 + +.section .text + glabel func_80219818_6A0A18 /* 6A0A18 80219818 27BDFFB0 */ addiu $sp, $sp, -0x50 /* 6A0A1C 8021981C AFB1001C */ sw $s1, 0x1c($sp) diff --git a/ver/us/asm/nonmatchings/battle/area_kpa2/69F320/func_8021ABD8_6A1DD8.s b/ver/us/asm/nonmatchings/battle/area_kpa2/69F320/func_8021ABD8_6A1DD8.s index ca388d3adb..e2fc0b0940 100644 --- a/ver/us/asm/nonmatchings/battle/area_kpa2/69F320/func_8021ABD8_6A1DD8.s +++ b/ver/us/asm/nonmatchings/battle/area_kpa2/69F320/func_8021ABD8_6A1DD8.s @@ -1,6 +1,34 @@ .set noat # allow manual use of $at .set noreorder # don't insert nops after branches +.section .rodata + +dlabel D_802347C0_6BB9C0 +.double 0.4 + +dlabel D_802347C8_6BB9C8 +.double 90.0 + +dlabel D_802347D0_6BB9D0 +.double 3.6000001430511475 + +dlabel D_802347D8_6BB9D8 +.double 2.400000035762787 + +dlabel D_802347E0_6BB9E0 +.double 1.8 + +dlabel D_802347E8_6BB9E8 +.double 1.440000057220459 + +dlabel D_802347F0_6BB9F0 +.double 0.6000000000000001 + +dlabel D_802347F8_6BB9F8 +.double 0.9600000143051148 + +.section .text + glabel func_8021ABD8_6A1DD8 /* 6A1DD8 8021ABD8 27BDFFB0 */ addiu $sp, $sp, -0x50 /* 6A1DDC 8021ABDC AFB1001C */ sw $s1, 0x1c($sp) diff --git a/ver/us/asm/nonmatchings/battle/area_kpa2/69F320/func_8021B678_6A2878.s b/ver/us/asm/nonmatchings/battle/area_kpa2/69F320/func_8021B678_6A2878.s index ccea1a9751..3fcd8993a2 100644 --- a/ver/us/asm/nonmatchings/battle/area_kpa2/69F320/func_8021B678_6A2878.s +++ b/ver/us/asm/nonmatchings/battle/area_kpa2/69F320/func_8021B678_6A2878.s @@ -1,6 +1,13 @@ .set noat # allow manual use of $at .set noreorder # don't insert nops after branches +.section .rodata + +dlabel D_80234800_6BBA00 +.double 0.3, 0.0 + +.section .text + glabel func_8021B678_6A2878 /* 6A2878 8021B678 27BDFF88 */ addiu $sp, $sp, -0x78 /* 6A287C 8021B67C AFB5003C */ sw $s5, 0x3c($sp) diff --git a/ver/us/asm/nonmatchings/battle/area_kpa2/6A2B50/func_8021B9A8_6A2BA8.s b/ver/us/asm/nonmatchings/battle/area_kpa2/6A2B50/func_8021B9A8_6A2BA8.s index 73b86ca61f..f15751a6d0 100644 --- a/ver/us/asm/nonmatchings/battle/area_kpa2/6A2B50/func_8021B9A8_6A2BA8.s +++ b/ver/us/asm/nonmatchings/battle/area_kpa2/6A2B50/func_8021B9A8_6A2BA8.s @@ -1,6 +1,16 @@ .set noat # allow manual use of $at .set noreorder # don't insert nops after branches +.section .rodata + +dlabel D_80234810_6BBA10 +.word 0x0000005A, 0x00000087, 0x000000E1, 0x0000010E, 0x0000013B, 0x00000195 + +dlabel D_80234828_6BBA28 +.double 14.4 + +.section .text + glabel func_8021B9A8_6A2BA8 /* 6A2BA8 8021B9A8 27BDFF78 */ addiu $sp, $sp, -0x88 /* 6A2BAC 8021B9AC AFB10044 */ sw $s1, 0x44($sp) diff --git a/ver/us/asm/nonmatchings/battle/area_kpa2/6A2B50/func_8021C520_6A3720.s b/ver/us/asm/nonmatchings/battle/area_kpa2/6A2B50/func_8021C520_6A3720.s index cc2ea0dbcc..c7fe8b795b 100644 --- a/ver/us/asm/nonmatchings/battle/area_kpa2/6A2B50/func_8021C520_6A3720.s +++ b/ver/us/asm/nonmatchings/battle/area_kpa2/6A2B50/func_8021C520_6A3720.s @@ -1,6 +1,34 @@ .set noat # allow manual use of $at .set noreorder # don't insert nops after branches +.section .rodata + +dlabel D_80234830_6BBA30 +.double 0.4 + +dlabel D_80234838_6BBA38 +.double 90.0 + +dlabel D_80234840_6BBA40 +.double 3.6000001430511475 + +dlabel D_80234848_6BBA48 +.double 2.400000035762787 + +dlabel D_80234850_6BBA50 +.double 1.8 + +dlabel D_80234858_6BBA58 +.double 1.440000057220459 + +dlabel D_80234860_6BBA60 +.double 0.6000000000000001 + +dlabel D_80234868_6BBA68 +.double 0.9600000143051148 + +.section .text + glabel func_8021C520_6A3720 /* 6A3720 8021C520 27BDFFB0 */ addiu $sp, $sp, -0x50 /* 6A3724 8021C524 AFB1001C */ sw $s1, 0x1c($sp) diff --git a/ver/us/asm/nonmatchings/battle/area_kpa2/6A2B50/func_8021CFC0_6A41C0.s b/ver/us/asm/nonmatchings/battle/area_kpa2/6A2B50/func_8021CFC0_6A41C0.s index e9f6e7ef34..9759b0bed8 100644 --- a/ver/us/asm/nonmatchings/battle/area_kpa2/6A2B50/func_8021CFC0_6A41C0.s +++ b/ver/us/asm/nonmatchings/battle/area_kpa2/6A2B50/func_8021CFC0_6A41C0.s @@ -1,6 +1,13 @@ .set noat # allow manual use of $at .set noreorder # don't insert nops after branches +.section .rodata + +dlabel D_80234870_6BBA70 +.double 0.3, 0.0 + +.section .text + glabel func_8021CFC0_6A41C0 /* 6A41C0 8021CFC0 27BDFF88 */ addiu $sp, $sp, -0x78 /* 6A41C4 8021CFC4 AFB5003C */ sw $s5, 0x3c($sp) diff --git a/ver/us/asm/nonmatchings/battle/area_kpa2/6A2B50/func_8021D290_6A4490.s b/ver/us/asm/nonmatchings/battle/area_kpa2/6A2B50/func_8021D290_6A4490.s index 8dc25c1fc0..67a9e577f6 100644 --- a/ver/us/asm/nonmatchings/battle/area_kpa2/6A2B50/func_8021D290_6A4490.s +++ b/ver/us/asm/nonmatchings/battle/area_kpa2/6A2B50/func_8021D290_6A4490.s @@ -1,6 +1,67 @@ .set noat # allow manual use of $at .set noreorder # don't insert nops after branches +.section .rodata + +dlabel D_80234880_6BBA80 +.word 0x6B70615F, 0x62743031, 0x5F686974, 0x00000000 + +dlabel D_80234890_6BBA90 +.word 0x6B70615F, 0x62743031, 0x5F736861, 0x70650000 + +dlabel D_802348A0_6BBAA0 +.word 0x6B70615F, 0x74657800 + +dlabel D_802348A8_6BBAA8 +.word 0x6B70615F, 0x62670000 + +dlabel D_802348B0_6BBAB0 +.word 0x6B6B6A5F, 0x62743031, 0x5F686974, 0x00000000 + +dlabel D_802348C0_6BBAC0 +.word 0x6B6B6A5F, 0x62743031, 0x5F736861, 0x70650000 + +dlabel D_802348D0_6BBAD0 +.word 0x6B6B6A5F, 0x74657800 + +dlabel D_802348D8_6BBAD8 +.word 0x6B70615F, 0x62670000 + +dlabel D_802348E0_6BBAE0 +.word 0x6B6B6A5F, 0x62743032, 0x5F686974, 0x00000000 + +dlabel D_802348F0_6BBAF0 +.word 0x6B6B6A5F, 0x62743032, 0x5F736861, 0x70650000 + +dlabel D_80234900_6BBB00 +.word 0x6B6B6A5F, 0x74657800 + +dlabel D_80234908_6BBB08 +.word 0x834E8362, 0x83702883, 0x89835883, 0x67836F83, 0x67838B82, 0x52290000 + +dlabel D_80234920_6BBB20 +.word 0x834E8362, 0x83702883, 0x89835883, 0x67836F83, 0x67838B82, 0x51290000 + +dlabel D_80234938_6BBB38 +.word 0x834E8362, 0x83702883, 0x89835883, 0x67836F83, 0x67838B82, 0x50290000 + +dlabel D_80234950_6BBB50 +.word 0x834E8362, 0x83702883, 0x49815B83, 0x76836A83, 0x93834F29, 0x00000000 + +dlabel D_80234968_6BBB68 +.word 0x834E8362, 0x83700000 + +dlabel D_80234970_6BBB70 +.word 0x6B70615F, 0x30330000 + +dlabel D_80234978_6BBB78 +.word 0x6B70615F, 0x30320000 + +dlabel D_80234980_6BBB80 +.word 0x6B70615F, 0x30310000, 0x00000000, 0x00000000 + +.section .text + glabel func_8021D290_6A4490 /* 6A4490 8021D290 8C8400C0 */ lw $a0, 0xc0($a0) /* 6A4494 8021D294 8C83000C */ lw $v1, 0xc($a0) diff --git a/ver/us/asm/nonmatchings/battle/area_tik2/608AB0/func_80218058_608B08.s b/ver/us/asm/nonmatchings/battle/area_tik2/608AB0/func_80218058_608B08.s deleted file mode 100644 index cec9df181e..0000000000 --- a/ver/us/asm/nonmatchings/battle/area_tik2/608AB0/func_80218058_608B08.s +++ /dev/null @@ -1,110 +0,0 @@ -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches - -glabel func_80218058_608B08 -/* 608B08 80218058 27BDFFB0 */ addiu $sp, $sp, -0x50 -/* 608B0C 8021805C AFB1001C */ sw $s1, 0x1c($sp) -/* 608B10 80218060 0080882D */ daddu $s1, $a0, $zero -/* 608B14 80218064 AFBF0020 */ sw $ra, 0x20($sp) -/* 608B18 80218068 AFB00018 */ sw $s0, 0x18($sp) -/* 608B1C 8021806C F7BC0048 */ sdc1 $f28, 0x48($sp) -/* 608B20 80218070 F7BA0040 */ sdc1 $f26, 0x40($sp) -/* 608B24 80218074 F7B80038 */ sdc1 $f24, 0x38($sp) -/* 608B28 80218078 F7B60030 */ sdc1 $f22, 0x30($sp) -/* 608B2C 8021807C F7B40028 */ sdc1 $f20, 0x28($sp) -/* 608B30 80218080 8E30000C */ lw $s0, 0xc($s1) -/* 608B34 80218084 8E050000 */ lw $a1, ($s0) -/* 608B38 80218088 0C0B1EAF */ jal evt_get_variable -/* 608B3C 8021808C 26100004 */ addiu $s0, $s0, 4 -/* 608B40 80218090 8E050000 */ lw $a1, ($s0) -/* 608B44 80218094 26100004 */ addiu $s0, $s0, 4 -/* 608B48 80218098 4482E000 */ mtc1 $v0, $f28 -/* 608B4C 8021809C 00000000 */ nop -/* 608B50 802180A0 4680E720 */ cvt.s.w $f28, $f28 -/* 608B54 802180A4 0C0B1EAF */ jal evt_get_variable -/* 608B58 802180A8 0220202D */ daddu $a0, $s1, $zero -/* 608B5C 802180AC 8E050000 */ lw $a1, ($s0) -/* 608B60 802180B0 26100004 */ addiu $s0, $s0, 4 -/* 608B64 802180B4 4482D000 */ mtc1 $v0, $f26 -/* 608B68 802180B8 00000000 */ nop -/* 608B6C 802180BC 4680D6A0 */ cvt.s.w $f26, $f26 -/* 608B70 802180C0 0C0B1EAF */ jal evt_get_variable -/* 608B74 802180C4 0220202D */ daddu $a0, $s1, $zero -/* 608B78 802180C8 8E050000 */ lw $a1, ($s0) -/* 608B7C 802180CC 26100004 */ addiu $s0, $s0, 4 -/* 608B80 802180D0 0C0B1EAF */ jal evt_get_variable -/* 608B84 802180D4 0220202D */ daddu $a0, $s1, $zero -/* 608B88 802180D8 8E050000 */ lw $a1, ($s0) -/* 608B8C 802180DC 26100004 */ addiu $s0, $s0, 4 -/* 608B90 802180E0 4482A000 */ mtc1 $v0, $f20 -/* 608B94 802180E4 00000000 */ nop -/* 608B98 802180E8 4680A520 */ cvt.s.w $f20, $f20 -/* 608B9C 802180EC 0C0B1EAF */ jal evt_get_variable -/* 608BA0 802180F0 0220202D */ daddu $a0, $s1, $zero -/* 608BA4 802180F4 8E050000 */ lw $a1, ($s0) -/* 608BA8 802180F8 4482B000 */ mtc1 $v0, $f22 -/* 608BAC 802180FC 00000000 */ nop -/* 608BB0 80218100 4680B5A0 */ cvt.s.w $f22, $f22 -/* 608BB4 80218104 0C0B1EAF */ jal evt_get_variable -/* 608BB8 80218108 0220202D */ daddu $a0, $s1, $zero -/* 608BBC 8021810C 3C014220 */ lui $at, 0x4220 -/* 608BC0 80218110 44810000 */ mtc1 $at, $f0 -/* 608BC4 80218114 4482C000 */ mtc1 $v0, $f24 -/* 608BC8 80218118 00000000 */ nop -/* 608BCC 8021811C 4680C620 */ cvt.s.w $f24, $f24 -/* 608BD0 80218120 4600B000 */ add.s $f0, $f22, $f0 -/* 608BD4 80218124 4600E306 */ mov.s $f12, $f28 -/* 608BD8 80218128 4406A000 */ mfc1 $a2, $f20 -/* 608BDC 8021812C 44070000 */ mfc1 $a3, $f0 -/* 608BE0 80218130 0C00A720 */ jal atan2 -/* 608BE4 80218134 4600D386 */ mov.s $f14, $f26 -/* 608BE8 80218138 3C014120 */ lui $at, 0x4120 -/* 608BEC 8021813C 44811000 */ mtc1 $at, $f2 -/* 608BF0 80218140 0000202D */ daddu $a0, $zero, $zero -/* 608BF4 80218144 4602A501 */ sub.s $f20, $f20, $f2 -/* 608BF8 80218148 3C014270 */ lui $at, 0x4270 -/* 608BFC 8021814C 44811000 */ mtc1 $at, $f2 -/* 608C00 80218150 3C014020 */ lui $at, 0x4020 -/* 608C04 80218154 44812000 */ mtc1 $at, $f4 -/* 608C08 80218158 4602B580 */ add.s $f22, $f22, $f2 -/* 608C0C 8021815C 3C0141A0 */ lui $at, 0x41a0 -/* 608C10 80218160 44811000 */ mtc1 $at, $f2 -/* 608C14 80218164 24020028 */ addiu $v0, $zero, 0x28 -/* 608C18 80218168 AFA20014 */ sw $v0, 0x14($sp) -/* 608C1C 8021816C E7A40010 */ swc1 $f4, 0x10($sp) -/* 608C20 80218170 4602C600 */ add.s $f24, $f24, $f2 -/* 608C24 80218174 4405A000 */ mfc1 $a1, $f20 -/* 608C28 80218178 4406B000 */ mfc1 $a2, $f22 -/* 608C2C 8021817C 4407C000 */ mfc1 $a3, $f24 -/* 608C30 80218180 0C01C6C4 */ jal fx_water_fountain -/* 608C34 80218184 46000506 */ mov.s $f20, $f0 -/* 608C38 80218188 8C43000C */ lw $v1, 0xc($v0) -/* 608C3C 8021818C E4740038 */ swc1 $f20, 0x38($v1) -/* 608C40 80218190 8C43000C */ lw $v1, 0xc($v0) -/* 608C44 80218194 24040002 */ addiu $a0, $zero, 2 -/* 608C48 80218198 AC640018 */ sw $a0, 0x18($v1) -/* 608C4C 8021819C 8C43000C */ lw $v1, 0xc($v0) -/* 608C50 802181A0 AC64001C */ sw $a0, 0x1c($v1) -/* 608C54 802181A4 8C43000C */ lw $v1, 0xc($v0) -/* 608C58 802181A8 AC640020 */ sw $a0, 0x20($v1) -/* 608C5C 802181AC 8C43000C */ lw $v1, 0xc($v0) -/* 608C60 802181B0 24040050 */ addiu $a0, $zero, 0x50 -/* 608C64 802181B4 AC640028 */ sw $a0, 0x28($v1) -/* 608C68 802181B8 8C43000C */ lw $v1, 0xc($v0) -/* 608C6C 802181BC AC64002C */ sw $a0, 0x2c($v1) -/* 608C70 802181C0 8C43000C */ lw $v1, 0xc($v0) -/* 608C74 802181C4 AC640030 */ sw $a0, 0x30($v1) -/* 608C78 802181C8 8FBF0020 */ lw $ra, 0x20($sp) -/* 608C7C 802181CC 8FB1001C */ lw $s1, 0x1c($sp) -/* 608C80 802181D0 8FB00018 */ lw $s0, 0x18($sp) -/* 608C84 802181D4 D7BC0048 */ ldc1 $f28, 0x48($sp) -/* 608C88 802181D8 D7BA0040 */ ldc1 $f26, 0x40($sp) -/* 608C8C 802181DC D7B80038 */ ldc1 $f24, 0x38($sp) -/* 608C90 802181E0 D7B60030 */ ldc1 $f22, 0x30($sp) -/* 608C94 802181E4 D7B40028 */ ldc1 $f20, 0x28($sp) -/* 608C98 802181E8 24020002 */ addiu $v0, $zero, 2 -/* 608C9C 802181EC 03E00008 */ jr $ra -/* 608CA0 802181F0 27BD0050 */ addiu $sp, $sp, 0x50 -/* 608CA4 802181F4 00000000 */ nop -/* 608CA8 802181F8 00000000 */ nop -/* 608CAC 802181FC 00000000 */ nop diff --git a/ver/us/asm/nonmatchings/battle/area_tik2/608CB0/func_802184E4_608F94.s b/ver/us/asm/nonmatchings/battle/area_tik2/608CB0/func_802184E4_608F94.s deleted file mode 100644 index e31421faa7..0000000000 --- a/ver/us/asm/nonmatchings/battle/area_tik2/608CB0/func_802184E4_608F94.s +++ /dev/null @@ -1,107 +0,0 @@ -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches - -glabel func_802184E4_608F94 -/* 608F94 802184E4 27BDFFB0 */ addiu $sp, $sp, -0x50 -/* 608F98 802184E8 AFB1001C */ sw $s1, 0x1c($sp) -/* 608F9C 802184EC 0080882D */ daddu $s1, $a0, $zero -/* 608FA0 802184F0 AFBF0020 */ sw $ra, 0x20($sp) -/* 608FA4 802184F4 AFB00018 */ sw $s0, 0x18($sp) -/* 608FA8 802184F8 F7BC0048 */ sdc1 $f28, 0x48($sp) -/* 608FAC 802184FC F7BA0040 */ sdc1 $f26, 0x40($sp) -/* 608FB0 80218500 F7B80038 */ sdc1 $f24, 0x38($sp) -/* 608FB4 80218504 F7B60030 */ sdc1 $f22, 0x30($sp) -/* 608FB8 80218508 F7B40028 */ sdc1 $f20, 0x28($sp) -/* 608FBC 8021850C 8E30000C */ lw $s0, 0xc($s1) -/* 608FC0 80218510 8E050000 */ lw $a1, ($s0) -/* 608FC4 80218514 0C0B1EAF */ jal evt_get_variable -/* 608FC8 80218518 26100004 */ addiu $s0, $s0, 4 -/* 608FCC 8021851C 8E050000 */ lw $a1, ($s0) -/* 608FD0 80218520 26100004 */ addiu $s0, $s0, 4 -/* 608FD4 80218524 4482E000 */ mtc1 $v0, $f28 -/* 608FD8 80218528 00000000 */ nop -/* 608FDC 8021852C 4680E720 */ cvt.s.w $f28, $f28 -/* 608FE0 80218530 0C0B1EAF */ jal evt_get_variable -/* 608FE4 80218534 0220202D */ daddu $a0, $s1, $zero -/* 608FE8 80218538 8E050000 */ lw $a1, ($s0) -/* 608FEC 8021853C 26100004 */ addiu $s0, $s0, 4 -/* 608FF0 80218540 4482D000 */ mtc1 $v0, $f26 -/* 608FF4 80218544 00000000 */ nop -/* 608FF8 80218548 4680D6A0 */ cvt.s.w $f26, $f26 -/* 608FFC 8021854C 0C0B1EAF */ jal evt_get_variable -/* 609000 80218550 0220202D */ daddu $a0, $s1, $zero -/* 609004 80218554 8E050000 */ lw $a1, ($s0) -/* 609008 80218558 26100004 */ addiu $s0, $s0, 4 -/* 60900C 8021855C 0C0B1EAF */ jal evt_get_variable -/* 609010 80218560 0220202D */ daddu $a0, $s1, $zero -/* 609014 80218564 8E050000 */ lw $a1, ($s0) -/* 609018 80218568 26100004 */ addiu $s0, $s0, 4 -/* 60901C 8021856C 4482A000 */ mtc1 $v0, $f20 -/* 609020 80218570 00000000 */ nop -/* 609024 80218574 4680A520 */ cvt.s.w $f20, $f20 -/* 609028 80218578 0C0B1EAF */ jal evt_get_variable -/* 60902C 8021857C 0220202D */ daddu $a0, $s1, $zero -/* 609030 80218580 8E050000 */ lw $a1, ($s0) -/* 609034 80218584 4482B000 */ mtc1 $v0, $f22 -/* 609038 80218588 00000000 */ nop -/* 60903C 8021858C 4680B5A0 */ cvt.s.w $f22, $f22 -/* 609040 80218590 0C0B1EAF */ jal evt_get_variable -/* 609044 80218594 0220202D */ daddu $a0, $s1, $zero -/* 609048 80218598 3C014220 */ lui $at, 0x4220 -/* 60904C 8021859C 44810000 */ mtc1 $at, $f0 -/* 609050 802185A0 4482C000 */ mtc1 $v0, $f24 -/* 609054 802185A4 00000000 */ nop -/* 609058 802185A8 4680C620 */ cvt.s.w $f24, $f24 -/* 60905C 802185AC 4600B000 */ add.s $f0, $f22, $f0 -/* 609060 802185B0 4600E306 */ mov.s $f12, $f28 -/* 609064 802185B4 4406A000 */ mfc1 $a2, $f20 -/* 609068 802185B8 44070000 */ mfc1 $a3, $f0 -/* 60906C 802185BC 0C00A720 */ jal atan2 -/* 609070 802185C0 4600D386 */ mov.s $f14, $f26 -/* 609074 802185C4 3C014120 */ lui $at, 0x4120 -/* 609078 802185C8 44811000 */ mtc1 $at, $f2 -/* 60907C 802185CC 0000202D */ daddu $a0, $zero, $zero -/* 609080 802185D0 4602A501 */ sub.s $f20, $f20, $f2 -/* 609084 802185D4 3C014270 */ lui $at, 0x4270 -/* 609088 802185D8 44811000 */ mtc1 $at, $f2 -/* 60908C 802185DC 3C014020 */ lui $at, 0x4020 -/* 609090 802185E0 44812000 */ mtc1 $at, $f4 -/* 609094 802185E4 4602B580 */ add.s $f22, $f22, $f2 -/* 609098 802185E8 3C0141A0 */ lui $at, 0x41a0 -/* 60909C 802185EC 44811000 */ mtc1 $at, $f2 -/* 6090A0 802185F0 24020028 */ addiu $v0, $zero, 0x28 -/* 6090A4 802185F4 AFA20014 */ sw $v0, 0x14($sp) -/* 6090A8 802185F8 E7A40010 */ swc1 $f4, 0x10($sp) -/* 6090AC 802185FC 4602C600 */ add.s $f24, $f24, $f2 -/* 6090B0 80218600 4405A000 */ mfc1 $a1, $f20 -/* 6090B4 80218604 4406B000 */ mfc1 $a2, $f22 -/* 6090B8 80218608 4407C000 */ mfc1 $a3, $f24 -/* 6090BC 8021860C 0C01C6C4 */ jal fx_water_fountain -/* 6090C0 80218610 46000506 */ mov.s $f20, $f0 -/* 6090C4 80218614 8C43000C */ lw $v1, 0xc($v0) -/* 6090C8 80218618 E4740038 */ swc1 $f20, 0x38($v1) -/* 6090CC 8021861C 8C43000C */ lw $v1, 0xc($v0) -/* 6090D0 80218620 24040002 */ addiu $a0, $zero, 2 -/* 6090D4 80218624 AC640018 */ sw $a0, 0x18($v1) -/* 6090D8 80218628 8C43000C */ lw $v1, 0xc($v0) -/* 6090DC 8021862C AC64001C */ sw $a0, 0x1c($v1) -/* 6090E0 80218630 8C43000C */ lw $v1, 0xc($v0) -/* 6090E4 80218634 AC640020 */ sw $a0, 0x20($v1) -/* 6090E8 80218638 8C43000C */ lw $v1, 0xc($v0) -/* 6090EC 8021863C 24040050 */ addiu $a0, $zero, 0x50 -/* 6090F0 80218640 AC640028 */ sw $a0, 0x28($v1) -/* 6090F4 80218644 8C43000C */ lw $v1, 0xc($v0) -/* 6090F8 80218648 AC64002C */ sw $a0, 0x2c($v1) -/* 6090FC 8021864C 8C43000C */ lw $v1, 0xc($v0) -/* 609100 80218650 AC640030 */ sw $a0, 0x30($v1) -/* 609104 80218654 8FBF0020 */ lw $ra, 0x20($sp) -/* 609108 80218658 8FB1001C */ lw $s1, 0x1c($sp) -/* 60910C 8021865C 8FB00018 */ lw $s0, 0x18($sp) -/* 609110 80218660 D7BC0048 */ ldc1 $f28, 0x48($sp) -/* 609114 80218664 D7BA0040 */ ldc1 $f26, 0x40($sp) -/* 609118 80218668 D7B80038 */ ldc1 $f24, 0x38($sp) -/* 60911C 8021866C D7B60030 */ ldc1 $f22, 0x30($sp) -/* 609120 80218670 D7B40028 */ ldc1 $f20, 0x28($sp) -/* 609124 80218674 24020002 */ addiu $v0, $zero, 2 -/* 609128 80218678 03E00008 */ jr $ra -/* 60912C 8021867C 27BD0050 */ addiu $sp, $sp, 0x50 diff --git a/ver/us/asm/nonmatchings/battle/area_tik2/608CB0/func_80218884_609334.s b/ver/us/asm/nonmatchings/battle/area_tik2/608CB0/func_80218884_609334.s deleted file mode 100644 index 601e6ba0c2..0000000000 --- a/ver/us/asm/nonmatchings/battle/area_tik2/608CB0/func_80218884_609334.s +++ /dev/null @@ -1,107 +0,0 @@ -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches - -glabel func_80218884_609334 -/* 609334 80218884 27BDFFB0 */ addiu $sp, $sp, -0x50 -/* 609338 80218888 AFB1001C */ sw $s1, 0x1c($sp) -/* 60933C 8021888C 0080882D */ daddu $s1, $a0, $zero -/* 609340 80218890 AFBF0020 */ sw $ra, 0x20($sp) -/* 609344 80218894 AFB00018 */ sw $s0, 0x18($sp) -/* 609348 80218898 F7BC0048 */ sdc1 $f28, 0x48($sp) -/* 60934C 8021889C F7BA0040 */ sdc1 $f26, 0x40($sp) -/* 609350 802188A0 F7B80038 */ sdc1 $f24, 0x38($sp) -/* 609354 802188A4 F7B60030 */ sdc1 $f22, 0x30($sp) -/* 609358 802188A8 F7B40028 */ sdc1 $f20, 0x28($sp) -/* 60935C 802188AC 8E30000C */ lw $s0, 0xc($s1) -/* 609360 802188B0 8E050000 */ lw $a1, ($s0) -/* 609364 802188B4 0C0B1EAF */ jal evt_get_variable -/* 609368 802188B8 26100004 */ addiu $s0, $s0, 4 -/* 60936C 802188BC 8E050000 */ lw $a1, ($s0) -/* 609370 802188C0 26100004 */ addiu $s0, $s0, 4 -/* 609374 802188C4 4482E000 */ mtc1 $v0, $f28 -/* 609378 802188C8 00000000 */ nop -/* 60937C 802188CC 4680E720 */ cvt.s.w $f28, $f28 -/* 609380 802188D0 0C0B1EAF */ jal evt_get_variable -/* 609384 802188D4 0220202D */ daddu $a0, $s1, $zero -/* 609388 802188D8 8E050000 */ lw $a1, ($s0) -/* 60938C 802188DC 26100004 */ addiu $s0, $s0, 4 -/* 609390 802188E0 4482D000 */ mtc1 $v0, $f26 -/* 609394 802188E4 00000000 */ nop -/* 609398 802188E8 4680D6A0 */ cvt.s.w $f26, $f26 -/* 60939C 802188EC 0C0B1EAF */ jal evt_get_variable -/* 6093A0 802188F0 0220202D */ daddu $a0, $s1, $zero -/* 6093A4 802188F4 8E050000 */ lw $a1, ($s0) -/* 6093A8 802188F8 26100004 */ addiu $s0, $s0, 4 -/* 6093AC 802188FC 0C0B1EAF */ jal evt_get_variable -/* 6093B0 80218900 0220202D */ daddu $a0, $s1, $zero -/* 6093B4 80218904 8E050000 */ lw $a1, ($s0) -/* 6093B8 80218908 26100004 */ addiu $s0, $s0, 4 -/* 6093BC 8021890C 4482A000 */ mtc1 $v0, $f20 -/* 6093C0 80218910 00000000 */ nop -/* 6093C4 80218914 4680A520 */ cvt.s.w $f20, $f20 -/* 6093C8 80218918 0C0B1EAF */ jal evt_get_variable -/* 6093CC 8021891C 0220202D */ daddu $a0, $s1, $zero -/* 6093D0 80218920 8E050000 */ lw $a1, ($s0) -/* 6093D4 80218924 4482B000 */ mtc1 $v0, $f22 -/* 6093D8 80218928 00000000 */ nop -/* 6093DC 8021892C 4680B5A0 */ cvt.s.w $f22, $f22 -/* 6093E0 80218930 0C0B1EAF */ jal evt_get_variable -/* 6093E4 80218934 0220202D */ daddu $a0, $s1, $zero -/* 6093E8 80218938 3C014220 */ lui $at, 0x4220 -/* 6093EC 8021893C 44810000 */ mtc1 $at, $f0 -/* 6093F0 80218940 4482C000 */ mtc1 $v0, $f24 -/* 6093F4 80218944 00000000 */ nop -/* 6093F8 80218948 4680C620 */ cvt.s.w $f24, $f24 -/* 6093FC 8021894C 4600B000 */ add.s $f0, $f22, $f0 -/* 609400 80218950 4600E306 */ mov.s $f12, $f28 -/* 609404 80218954 4406A000 */ mfc1 $a2, $f20 -/* 609408 80218958 44070000 */ mfc1 $a3, $f0 -/* 60940C 8021895C 0C00A720 */ jal atan2 -/* 609410 80218960 4600D386 */ mov.s $f14, $f26 -/* 609414 80218964 3C014120 */ lui $at, 0x4120 -/* 609418 80218968 44811000 */ mtc1 $at, $f2 -/* 60941C 8021896C 0000202D */ daddu $a0, $zero, $zero -/* 609420 80218970 4602A501 */ sub.s $f20, $f20, $f2 -/* 609424 80218974 3C014270 */ lui $at, 0x4270 -/* 609428 80218978 44811000 */ mtc1 $at, $f2 -/* 60942C 8021897C 3C014020 */ lui $at, 0x4020 -/* 609430 80218980 44812000 */ mtc1 $at, $f4 -/* 609434 80218984 4602B580 */ add.s $f22, $f22, $f2 -/* 609438 80218988 3C0141A0 */ lui $at, 0x41a0 -/* 60943C 8021898C 44811000 */ mtc1 $at, $f2 -/* 609440 80218990 24020028 */ addiu $v0, $zero, 0x28 -/* 609444 80218994 AFA20014 */ sw $v0, 0x14($sp) -/* 609448 80218998 E7A40010 */ swc1 $f4, 0x10($sp) -/* 60944C 8021899C 4602C600 */ add.s $f24, $f24, $f2 -/* 609450 802189A0 4405A000 */ mfc1 $a1, $f20 -/* 609454 802189A4 4406B000 */ mfc1 $a2, $f22 -/* 609458 802189A8 4407C000 */ mfc1 $a3, $f24 -/* 60945C 802189AC 0C01C6C4 */ jal fx_water_fountain -/* 609460 802189B0 46000506 */ mov.s $f20, $f0 -/* 609464 802189B4 8C43000C */ lw $v1, 0xc($v0) -/* 609468 802189B8 E4740038 */ swc1 $f20, 0x38($v1) -/* 60946C 802189BC 8C43000C */ lw $v1, 0xc($v0) -/* 609470 802189C0 24040002 */ addiu $a0, $zero, 2 -/* 609474 802189C4 AC640018 */ sw $a0, 0x18($v1) -/* 609478 802189C8 8C43000C */ lw $v1, 0xc($v0) -/* 60947C 802189CC AC64001C */ sw $a0, 0x1c($v1) -/* 609480 802189D0 8C43000C */ lw $v1, 0xc($v0) -/* 609484 802189D4 AC640020 */ sw $a0, 0x20($v1) -/* 609488 802189D8 8C43000C */ lw $v1, 0xc($v0) -/* 60948C 802189DC 24040050 */ addiu $a0, $zero, 0x50 -/* 609490 802189E0 AC640028 */ sw $a0, 0x28($v1) -/* 609494 802189E4 8C43000C */ lw $v1, 0xc($v0) -/* 609498 802189E8 AC64002C */ sw $a0, 0x2c($v1) -/* 60949C 802189EC 8C43000C */ lw $v1, 0xc($v0) -/* 6094A0 802189F0 AC640030 */ sw $a0, 0x30($v1) -/* 6094A4 802189F4 8FBF0020 */ lw $ra, 0x20($sp) -/* 6094A8 802189F8 8FB1001C */ lw $s1, 0x1c($sp) -/* 6094AC 802189FC 8FB00018 */ lw $s0, 0x18($sp) -/* 6094B0 80218A00 D7BC0048 */ ldc1 $f28, 0x48($sp) -/* 6094B4 80218A04 D7BA0040 */ ldc1 $f26, 0x40($sp) -/* 6094B8 80218A08 D7B80038 */ ldc1 $f24, 0x38($sp) -/* 6094BC 80218A0C D7B60030 */ ldc1 $f22, 0x30($sp) -/* 6094C0 80218A10 D7B40028 */ ldc1 $f20, 0x28($sp) -/* 6094C4 80218A14 24020002 */ addiu $v0, $zero, 2 -/* 6094C8 80218A18 03E00008 */ jr $ra -/* 6094CC 80218A1C 27BD0050 */ addiu $sp, $sp, 0x50 diff --git a/ver/us/asm/nonmatchings/battle/item/mystery/battle_item_mystery_func_802A123C_72C7EC.s b/ver/us/asm/nonmatchings/battle/item/mystery/battle_item_mystery_func_802A123C_72C7EC.s deleted file mode 100644 index 84be3b2c37..0000000000 --- a/ver/us/asm/nonmatchings/battle/item/mystery/battle_item_mystery_func_802A123C_72C7EC.s +++ /dev/null @@ -1,112 +0,0 @@ -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches - -glabel battle_item_mystery_func_802A123C_72C7EC -/* 72C7EC 802A123C 3C03802A */ lui $v1, %hi(D_802A25E4) -/* 72C7F0 802A1240 8C6325E4 */ lw $v1, %lo(D_802A25E4)($v1) -/* 72C7F4 802A1244 27BDFF98 */ addiu $sp, $sp, -0x68 -/* 72C7F8 802A1248 AFBF0064 */ sw $ra, 0x64($sp) -/* 72C7FC 802A124C AFB40060 */ sw $s4, 0x60($sp) -/* 72C800 802A1250 AFB3005C */ sw $s3, 0x5c($sp) -/* 72C804 802A1254 AFB20058 */ sw $s2, 0x58($sp) -/* 72C808 802A1258 AFB10054 */ sw $s1, 0x54($sp) -/* 72C80C 802A125C 28620006 */ slti $v0, $v1, 6 -/* 72C810 802A1260 10400058 */ beqz $v0, .L802A13C4 -/* 72C814 802A1264 AFB00050 */ sw $s0, 0x50($sp) -/* 72C818 802A1268 18600056 */ blez $v1, .L802A13C4 -/* 72C81C 802A126C 24050007 */ addiu $a1, $zero, 7 -/* 72C820 802A1270 0000202D */ daddu $a0, $zero, $zero -/* 72C824 802A1274 2406006A */ addiu $a2, $zero, 0x6a -/* 72C828 802A1278 24020024 */ addiu $v0, $zero, 0x24 -/* 72C82C 802A127C AFA20014 */ sw $v0, 0x14($sp) -/* 72C830 802A1280 AFA20018 */ sw $v0, 0x18($sp) -/* 72C834 802A1284 240200FF */ addiu $v0, $zero, 0xff -/* 72C838 802A1288 AFA2001C */ sw $v0, 0x1c($sp) -/* 72C83C 802A128C 24020140 */ addiu $v0, $zero, 0x140 -/* 72C840 802A1290 AFA20044 */ sw $v0, 0x44($sp) -/* 72C844 802A1294 240200F0 */ addiu $v0, $zero, 0xf0 -/* 72C848 802A1298 24070056 */ addiu $a3, $zero, 0x56 -/* 72C84C 802A129C AFA00010 */ sw $zero, 0x10($sp) -/* 72C850 802A12A0 AFA00020 */ sw $zero, 0x20($sp) -/* 72C854 802A12A4 AFA00024 */ sw $zero, 0x24($sp) -/* 72C858 802A12A8 AFA00028 */ sw $zero, 0x28($sp) -/* 72C85C 802A12AC AFA0002C */ sw $zero, 0x2c($sp) -/* 72C860 802A12B0 AFA00030 */ sw $zero, 0x30($sp) -/* 72C864 802A12B4 AFA00034 */ sw $zero, 0x34($sp) -/* 72C868 802A12B8 AFA00038 */ sw $zero, 0x38($sp) -/* 72C86C 802A12BC AFA0003C */ sw $zero, 0x3c($sp) -/* 72C870 802A12C0 AFA00040 */ sw $zero, 0x40($sp) -/* 72C874 802A12C4 AFA20048 */ sw $v0, 0x48($sp) -/* 72C878 802A12C8 0C03D4B8 */ jal draw_box -/* 72C87C 802A12CC AFA0004C */ sw $zero, 0x4c($sp) -/* 72C880 802A12D0 3C06ED1B */ lui $a2, 0xed1b -/* 72C884 802A12D4 34C60168 */ ori $a2, $a2, 0x168 -/* 72C888 802A12D8 3C050022 */ lui $a1, 0x22 -/* 72C88C 802A12DC 34A5C1D8 */ ori $a1, $a1, 0xc1d8 -/* 72C890 802A12E0 0000882D */ daddu $s1, $zero, $zero -/* 72C894 802A12E4 3C1451EB */ lui $s4, 0x51eb -/* 72C898 802A12E8 3694851F */ ori $s4, $s4, 0x851f -/* 72C89C 802A12EC 0220982D */ daddu $s3, $s1, $zero -/* 72C8A0 802A12F0 3C04800A */ lui $a0, %hi(gMasterGfxPos) -/* 72C8A4 802A12F4 2484A66C */ addiu $a0, $a0, %lo(gMasterGfxPos) -/* 72C8A8 802A12F8 8C820000 */ lw $v0, ($a0) -/* 72C8AC 802A12FC 3C12802A */ lui $s2, %hi(D_802A25C8) -/* 72C8B0 802A1300 265225C8 */ addiu $s2, $s2, %lo(D_802A25C8) -/* 72C8B4 802A1304 0040182D */ daddu $v1, $v0, $zero -/* 72C8B8 802A1308 24420008 */ addiu $v0, $v0, 8 -/* 72C8BC 802A130C AC820000 */ sw $v0, ($a0) -/* 72C8C0 802A1310 AC660000 */ sw $a2, ($v1) -/* 72C8C4 802A1314 AC650004 */ sw $a1, 4($v1) -.L802A1318: -/* 72C8C8 802A1318 2405007C */ addiu $a1, $zero, 0x7c -/* 72C8CC 802A131C 3C02802A */ lui $v0, %hi(D_802A25EC) -/* 72C8D0 802A1320 8C4225EC */ lw $v0, %lo(D_802A25EC)($v0) -/* 72C8D4 802A1324 8E500000 */ lw $s0, ($s2) -/* 72C8D8 802A1328 00540018 */ mult $v0, $s4 -/* 72C8DC 802A132C 26520004 */ addiu $s2, $s2, 4 -/* 72C8E0 802A1330 26310001 */ addiu $s1, $s1, 1 -/* 72C8E4 802A1334 0200202D */ daddu $a0, $s0, $zero -/* 72C8E8 802A1338 000217C3 */ sra $v0, $v0, 0x1f -/* 72C8EC 802A133C 00004010 */ mfhi $t0 -/* 72C8F0 802A1340 00083143 */ sra $a2, $t0, 5 -/* 72C8F4 802A1344 00C23023 */ subu $a2, $a2, $v0 -/* 72C8F8 802A1348 24C6FF98 */ addiu $a2, $a2, -0x68 -/* 72C8FC 802A134C 0C051261 */ jal hud_element_set_render_pos -/* 72C900 802A1350 02663023 */ subu $a2, $s3, $a2 -/* 72C904 802A1354 0C0511F8 */ jal hud_element_draw_without_clipping -/* 72C908 802A1358 0200202D */ daddu $a0, $s0, $zero -/* 72C90C 802A135C 2A220007 */ slti $v0, $s1, 7 -/* 72C910 802A1360 1440FFED */ bnez $v0, .L802A1318 -/* 72C914 802A1364 2673001A */ addiu $s3, $s3, 0x1a -/* 72C918 802A1368 3C0251EB */ lui $v0, 0x51eb -/* 72C91C 802A136C 3442851F */ ori $v0, $v0, 0x851f -/* 72C920 802A1370 2405007C */ addiu $a1, $zero, 0x7c -/* 72C924 802A1374 00113040 */ sll $a2, $s1, 1 -/* 72C928 802A1378 00D13021 */ addu $a2, $a2, $s1 -/* 72C92C 802A137C 00063080 */ sll $a2, $a2, 2 -/* 72C930 802A1380 3C03802A */ lui $v1, %hi(D_802A25EC) -/* 72C934 802A1384 8C6325EC */ lw $v1, %lo(D_802A25EC)($v1) -/* 72C938 802A1388 00D13021 */ addu $a2, $a2, $s1 -/* 72C93C 802A138C 00620018 */ mult $v1, $v0 -/* 72C940 802A1390 3C10802A */ lui $s0, %hi(D_802A25C8) -/* 72C944 802A1394 8E1025C8 */ lw $s0, %lo(D_802A25C8)($s0) -/* 72C948 802A1398 00063040 */ sll $a2, $a2, 1 -/* 72C94C 802A139C 0200202D */ daddu $a0, $s0, $zero -/* 72C950 802A13A0 00031FC3 */ sra $v1, $v1, 0x1f -/* 72C954 802A13A4 00004010 */ mfhi $t0 -/* 72C958 802A13A8 00081143 */ sra $v0, $t0, 5 -/* 72C95C 802A13AC 00431023 */ subu $v0, $v0, $v1 -/* 72C960 802A13B0 2442FF98 */ addiu $v0, $v0, -0x68 -/* 72C964 802A13B4 0C051261 */ jal hud_element_set_render_pos -/* 72C968 802A13B8 00C23023 */ subu $a2, $a2, $v0 -/* 72C96C 802A13BC 0C0511F8 */ jal hud_element_draw_without_clipping -/* 72C970 802A13C0 0200202D */ daddu $a0, $s0, $zero -.L802A13C4: -/* 72C974 802A13C4 8FBF0064 */ lw $ra, 0x64($sp) -/* 72C978 802A13C8 8FB40060 */ lw $s4, 0x60($sp) -/* 72C97C 802A13CC 8FB3005C */ lw $s3, 0x5c($sp) -/* 72C980 802A13D0 8FB20058 */ lw $s2, 0x58($sp) -/* 72C984 802A13D4 8FB10054 */ lw $s1, 0x54($sp) -/* 72C988 802A13D8 8FB00050 */ lw $s0, 0x50($sp) -/* 72C98C 802A13DC 03E00008 */ jr $ra -/* 72C990 802A13E0 27BD0068 */ addiu $sp, $sp, 0x68 diff --git a/ver/us/asm/nonmatchings/battle/item/mystery/battle_item_mystery_func_802A13E4_72C994.s b/ver/us/asm/nonmatchings/battle/item/mystery/battle_item_mystery_func_802A13E4_72C994.s deleted file mode 100644 index 3ff92dd526..0000000000 --- a/ver/us/asm/nonmatchings/battle/item/mystery/battle_item_mystery_func_802A13E4_72C994.s +++ /dev/null @@ -1,334 +0,0 @@ -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches - -.section .rodata - -dlabel jtbl_802A25A0_72DB50 -.word .L802A143C_72C9EC, .L802A1548_72CAF8, .L802A168C_72CC3C, .L802A1710_72CCC0, .L802A17AC_72CD5C, .L802A17CC_72CD7C, 0, 0 - -.section .text - -glabel battle_item_mystery_func_802A13E4_72C994 -/* 72C994 802A13E4 27BDFFD0 */ addiu $sp, $sp, -0x30 -/* 72C998 802A13E8 0080302D */ daddu $a2, $a0, $zero -/* 72C99C 802A13EC AFB20020 */ sw $s2, 0x20($sp) -/* 72C9A0 802A13F0 3C12800E */ lui $s2, %hi(gBattleStatus) -/* 72C9A4 802A13F4 2652C070 */ addiu $s2, $s2, %lo(gBattleStatus) -/* 72C9A8 802A13F8 AFBF0028 */ sw $ra, 0x28($sp) -/* 72C9AC 802A13FC AFB30024 */ sw $s3, 0x24($sp) -/* 72C9B0 802A1400 AFB1001C */ sw $s1, 0x1c($sp) -/* 72C9B4 802A1404 10A00003 */ beqz $a1, .L802A1414 -/* 72C9B8 802A1408 AFB00018 */ sw $s0, 0x18($sp) -/* 72C9BC 802A140C 3C01802A */ lui $at, %hi(D_802A25E4) -/* 72C9C0 802A1410 AC2025E4 */ sw $zero, %lo(D_802A25E4)($at) -.L802A1414: -/* 72C9C4 802A1414 3C03802A */ lui $v1, %hi(D_802A25E4) -/* 72C9C8 802A1418 8C6325E4 */ lw $v1, %lo(D_802A25E4)($v1) -/* 72C9CC 802A141C 2C620006 */ sltiu $v0, $v1, 6 -/* 72C9D0 802A1420 10400112 */ beqz $v0, .L802A186C -/* 72C9D4 802A1424 00031080 */ sll $v0, $v1, 2 -/* 72C9D8 802A1428 3C01802A */ lui $at, %hi(jtbl_802A25A0_72DB50) -/* 72C9DC 802A142C 00220821 */ addu $at, $at, $v0 -/* 72C9E0 802A1430 8C2225A0 */ lw $v0, %lo(jtbl_802A25A0_72DB50)($at) -/* 72C9E4 802A1434 00400008 */ jr $v0 -/* 72C9E8 802A1438 00000000 */ nop -.L802A143C_72C9EC: -/* 72C9EC 802A143C 3C05802A */ lui $a1, %hi(battle_item_mystery_func_802A123C_72C7EC) -/* 72C9F0 802A1440 24A5123C */ addiu $a1, $a1, %lo(battle_item_mystery_func_802A123C_72C7EC) -/* 72C9F4 802A1444 0C048C8F */ jal create_generic_entity_frontUI -/* 72C9F8 802A1448 0000202D */ daddu $a0, $zero, $zero -/* 72C9FC 802A144C 3C01802A */ lui $at, %hi(D_802A25F8) -/* 72CA00 802A1450 AC2225F8 */ sw $v0, %lo(D_802A25F8)($at) -/* 72CA04 802A1454 0C00A67F */ jal rand_int -/* 72CA08 802A1458 24044718 */ addiu $a0, $zero, 0x4718 -/* 72CA0C 802A145C 3C01802A */ lui $at, %hi(D_802A25EC) -/* 72CA10 802A1460 AC2225EC */ sw $v0, %lo(D_802A25EC)($at) -/* 72CA14 802A1464 240203E8 */ addiu $v0, $zero, 0x3e8 -/* 72CA18 802A1468 3C10802A */ lui $s0, %hi(D_802A25FC) -/* 72CA1C 802A146C 261025FC */ addiu $s0, $s0, %lo(D_802A25FC) -/* 72CA20 802A1470 3C01802A */ lui $at, %hi(D_802A25F0) -/* 72CA24 802A1474 AC2225F0 */ sw $v0, %lo(D_802A25F0)($at) -/* 72CA28 802A1478 82430432 */ lb $v1, 0x432($s2) -/* 72CA2C 802A147C 3C02802A */ lui $v0, %hi(battle_item_mystery_D_802A227C_72D82C) -/* 72CA30 802A1480 2442227C */ addiu $v0, $v0, %lo(battle_item_mystery_D_802A227C_72D82C) -/* 72CA34 802A1484 18600010 */ blez $v1, .L802A14C8 -/* 72CA38 802A1488 AE020000 */ sw $v0, ($s0) -/* 72CA3C 802A148C 24040001 */ addiu $a0, $zero, 1 -/* 72CA40 802A1490 27A50010 */ addiu $a1, $sp, 0x10 -/* 72CA44 802A1494 0C04DF70 */ jal get_screen_overlay_params -/* 72CA48 802A1498 27A60014 */ addiu $a2, $sp, 0x14 -/* 72CA4C 802A149C C7A20014 */ lwc1 $f2, 0x14($sp) -/* 72CA50 802A14A0 3C014357 */ lui $at, 0x4357 -/* 72CA54 802A14A4 44810000 */ mtc1 $at, $f0 -/* 72CA58 802A14A8 00000000 */ nop -/* 72CA5C 802A14AC 4602003E */ c.le.s $f0, $f2 -/* 72CA60 802A14B0 00000000 */ nop -/* 72CA64 802A14B4 45020005 */ bc1fl .L802A14CC -/* 72CA68 802A14B8 0000802D */ daddu $s0, $zero, $zero -/* 72CA6C 802A14BC 3C02802A */ lui $v0, %hi(battle_item_mystery_D_802A229C_72D84C) -/* 72CA70 802A14C0 2442229C */ addiu $v0, $v0, %lo(battle_item_mystery_D_802A229C_72D84C) -/* 72CA74 802A14C4 AE020000 */ sw $v0, ($s0) -.L802A14C8: -/* 72CA78 802A14C8 0000802D */ daddu $s0, $zero, $zero -.L802A14CC: -/* 72CA7C 802A14CC 3C138009 */ lui $s3, %hi(gItemHudScripts) -/* 72CA80 802A14D0 2673A680 */ addiu $s3, $s3, %lo(gItemHudScripts) -/* 72CA84 802A14D4 3C128008 */ lui $s2, %hi(gItemTable) -/* 72CA88 802A14D8 265278E0 */ addiu $s2, $s2, %lo(gItemTable) -/* 72CA8C 802A14DC 3C11802A */ lui $s1, %hi(D_802A25C8) -/* 72CA90 802A14E0 263125C8 */ addiu $s1, $s1, %lo(D_802A25C8) -.L802A14E4: -/* 72CA94 802A14E4 3C03802A */ lui $v1, %hi(D_802A25FC) -/* 72CA98 802A14E8 8C6325FC */ lw $v1, %lo(D_802A25FC)($v1) -/* 72CA9C 802A14EC 00101080 */ sll $v0, $s0, 2 -/* 72CAA0 802A14F0 00431021 */ addu $v0, $v0, $v1 -/* 72CAA4 802A14F4 8C420000 */ lw $v0, ($v0) -/* 72CAA8 802A14F8 00021140 */ sll $v0, $v0, 5 -/* 72CAAC 802A14FC 00521021 */ addu $v0, $v0, $s2 -/* 72CAB0 802A1500 84420004 */ lh $v0, 4($v0) -/* 72CAB4 802A1504 000210C0 */ sll $v0, $v0, 3 -/* 72CAB8 802A1508 00531021 */ addu $v0, $v0, $s3 -/* 72CABC 802A150C 8C440000 */ lw $a0, ($v0) -/* 72CAC0 802A1510 0C050529 */ jal hud_element_create -/* 72CAC4 802A1514 26100001 */ addiu $s0, $s0, 1 -/* 72CAC8 802A1518 0040202D */ daddu $a0, $v0, $zero -/* 72CACC 802A151C 24050080 */ addiu $a1, $zero, 0x80 -/* 72CAD0 802A1520 0C051280 */ jal hud_element_set_flags -/* 72CAD4 802A1524 AE240000 */ sw $a0, ($s1) -/* 72CAD8 802A1528 2A020007 */ slti $v0, $s0, 7 -/* 72CADC 802A152C 1440FFED */ bnez $v0, .L802A14E4 -/* 72CAE0 802A1530 26310004 */ addiu $s1, $s1, 4 -/* 72CAE4 802A1534 24020001 */ addiu $v0, $zero, 1 -/* 72CAE8 802A1538 3C01802A */ lui $at, %hi(D_802A25E4) -/* 72CAEC 802A153C AC2225E4 */ sw $v0, %lo(D_802A25E4)($at) -/* 72CAF0 802A1540 080A861C */ j .L802A1870 -/* 72CAF4 802A1544 0000102D */ daddu $v0, $zero, $zero -.L802A1548_72CAF8: -/* 72CAF8 802A1548 3C0351EB */ lui $v1, 0x51eb -/* 72CAFC 802A154C 3C06802A */ lui $a2, %hi(D_802A25EC) -/* 72CB00 802A1550 24C625EC */ addiu $a2, $a2, %lo(D_802A25EC) -/* 72CB04 802A1554 3C07802A */ lui $a3, %hi(D_802A25F0) -/* 72CB08 802A1558 24E725F0 */ addiu $a3, $a3, %lo(D_802A25F0) -/* 72CB0C 802A155C 8CC20000 */ lw $v0, ($a2) -/* 72CB10 802A1560 8CE50000 */ lw $a1, ($a3) -/* 72CB14 802A1564 3463851F */ ori $v1, $v1, 0x851f -/* 72CB18 802A1568 00452021 */ addu $a0, $v0, $a1 -/* 72CB1C 802A156C 00830018 */ mult $a0, $v1 -/* 72CB20 802A1570 00041FC3 */ sra $v1, $a0, 0x1f -/* 72CB24 802A1574 00004010 */ mfhi $t0 -/* 72CB28 802A1578 00081143 */ sra $v0, $t0, 5 -/* 72CB2C 802A157C 00431023 */ subu $v0, $v0, $v1 -/* 72CB30 802A1580 284200B6 */ slti $v0, $v0, 0xb6 -/* 72CB34 802A1584 14400003 */ bnez $v0, .L802A1594 -/* 72CB38 802A1588 ACC40000 */ sw $a0, ($a2) -/* 72CB3C 802A158C 2482B8E8 */ addiu $v0, $a0, -0x4718 -/* 72CB40 802A1590 ACC20000 */ sw $v0, ($a2) -.L802A1594: -/* 72CB44 802A1594 00A0182D */ daddu $v1, $a1, $zero -/* 72CB48 802A1598 28620191 */ slti $v0, $v1, 0x191 -/* 72CB4C 802A159C 14400003 */ bnez $v0, .L802A15AC -/* 72CB50 802A15A0 28620065 */ slti $v0, $v1, 0x65 -/* 72CB54 802A15A4 080A856E */ j .L802A15B8 -/* 72CB58 802A15A8 2462FFF6 */ addiu $v0, $v1, -0xa -.L802A15AC: -/* 72CB5C 802A15AC 14400002 */ bnez $v0, .L802A15B8 -/* 72CB60 802A15B0 24A2FFFF */ addiu $v0, $a1, -1 -/* 72CB64 802A15B4 2462FFFB */ addiu $v0, $v1, -5 -.L802A15B8: -/* 72CB68 802A15B8 ACE20000 */ sw $v0, ($a3) -/* 72CB6C 802A15BC 3C02802A */ lui $v0, %hi(D_802A25F0) -/* 72CB70 802A15C0 8C4225F0 */ lw $v0, %lo(D_802A25F0)($v0) -/* 72CB74 802A15C4 2842000A */ slti $v0, $v0, 0xa -/* 72CB78 802A15C8 104000A8 */ beqz $v0, .L802A186C -/* 72CB7C 802A15CC 3C0351EB */ lui $v1, 0x51eb -/* 72CB80 802A15D0 3C02802A */ lui $v0, %hi(D_802A25EC) -/* 72CB84 802A15D4 8C4225EC */ lw $v0, %lo(D_802A25EC)($v0) -/* 72CB88 802A15D8 3463851F */ ori $v1, $v1, 0x851f -/* 72CB8C 802A15DC 00430018 */ mult $v0, $v1 -/* 72CB90 802A15E0 3C044EC4 */ lui $a0, 0x4ec4 -/* 72CB94 802A15E4 3484EC4F */ ori $a0, $a0, 0xec4f -/* 72CB98 802A15E8 000217C3 */ sra $v0, $v0, 0x1f -/* 72CB9C 802A15EC 00004010 */ mfhi $t0 -/* 72CBA0 802A15F0 00081943 */ sra $v1, $t0, 5 -/* 72CBA4 802A15F4 00621823 */ subu $v1, $v1, $v0 -/* 72CBA8 802A15F8 00640018 */ mult $v1, $a0 -/* 72CBAC 802A15FC 000317C3 */ sra $v0, $v1, 0x1f -/* 72CBB0 802A1600 3C01802A */ lui $at, %hi(D_802A25E8) -/* 72CBB4 802A1604 AC2325E8 */ sw $v1, %lo(D_802A25E8)($at) -/* 72CBB8 802A1608 00004010 */ mfhi $t0 -/* 72CBBC 802A160C 000820C3 */ sra $a0, $t0, 3 -/* 72CBC0 802A1610 00822023 */ subu $a0, $a0, $v0 -/* 72CBC4 802A1614 00041040 */ sll $v0, $a0, 1 -/* 72CBC8 802A1618 00441021 */ addu $v0, $v0, $a0 -/* 72CBCC 802A161C 00021080 */ sll $v0, $v0, 2 -/* 72CBD0 802A1620 00441021 */ addu $v0, $v0, $a0 -/* 72CBD4 802A1624 00021040 */ sll $v0, $v0, 1 -/* 72CBD8 802A1628 00621823 */ subu $v1, $v1, $v0 -/* 72CBDC 802A162C 2863000D */ slti $v1, $v1, 0xd -/* 72CBE0 802A1630 10600008 */ beqz $v1, .L802A1654 -/* 72CBE4 802A1634 00000000 */ nop -/* 72CBE8 802A1638 0C00A67F */ jal rand_int -/* 72CBEC 802A163C 24040064 */ addiu $a0, $zero, 0x64 -/* 72CBF0 802A1640 28420050 */ slti $v0, $v0, 0x50 -/* 72CBF4 802A1644 1440000D */ bnez $v0, .L802A167C -/* 72CBF8 802A1648 24020002 */ addiu $v0, $zero, 2 -/* 72CBFC 802A164C 080A859A */ j .L802A1668 -/* 72CC00 802A1650 24020003 */ addiu $v0, $zero, 3 -.L802A1654: -/* 72CC04 802A1654 0C00A67F */ jal rand_int -/* 72CC08 802A1658 24040064 */ addiu $a0, $zero, 0x64 -/* 72CC0C 802A165C 2842003C */ slti $v0, $v0, 0x3c -/* 72CC10 802A1660 10400005 */ beqz $v0, .L802A1678 -/* 72CC14 802A1664 24020003 */ addiu $v0, $zero, 3 -.L802A1668: -/* 72CC18 802A1668 3C01802A */ lui $at, %hi(D_802A25E4) -/* 72CC1C 802A166C AC2225E4 */ sw $v0, %lo(D_802A25E4)($at) -/* 72CC20 802A1670 080A861C */ j .L802A1870 -/* 72CC24 802A1674 0000102D */ daddu $v0, $zero, $zero -.L802A1678: -/* 72CC28 802A1678 24020002 */ addiu $v0, $zero, 2 -.L802A167C: -/* 72CC2C 802A167C 3C01802A */ lui $at, %hi(D_802A25E4) -/* 72CC30 802A1680 AC2225E4 */ sw $v0, %lo(D_802A25E4)($at) -/* 72CC34 802A1684 080A861C */ j .L802A1870 -/* 72CC38 802A1688 0000102D */ daddu $v0, $zero, $zero -.L802A168C_72CC3C: -/* 72CC3C 802A168C 3C024EC4 */ lui $v0, 0x4ec4 -/* 72CC40 802A1690 3C06802A */ lui $a2, %hi(D_802A25E8) -/* 72CC44 802A1694 24C625E8 */ addiu $a2, $a2, %lo(D_802A25E8) -/* 72CC48 802A1698 8CC50000 */ lw $a1, ($a2) -/* 72CC4C 802A169C 3442EC4F */ ori $v0, $v0, 0xec4f -/* 72CC50 802A16A0 00A20018 */ mult $a1, $v0 -/* 72CC54 802A16A4 000517C3 */ sra $v0, $a1, 0x1f -/* 72CC58 802A16A8 00004010 */ mfhi $t0 -/* 72CC5C 802A16AC 000818C3 */ sra $v1, $t0, 3 -/* 72CC60 802A16B0 00622023 */ subu $a0, $v1, $v0 -/* 72CC64 802A16B4 00041040 */ sll $v0, $a0, 1 -/* 72CC68 802A16B8 00441021 */ addu $v0, $v0, $a0 -/* 72CC6C 802A16BC 00021080 */ sll $v0, $v0, 2 -/* 72CC70 802A16C0 00441021 */ addu $v0, $v0, $a0 -/* 72CC74 802A16C4 00021040 */ sll $v0, $v0, 1 -/* 72CC78 802A16C8 00A22023 */ subu $a0, $a1, $v0 -/* 72CC7C 802A16CC 24820003 */ addiu $v0, $a0, 3 -/* 72CC80 802A16D0 04420001 */ bltzl $v0, .L802A16D8 -/* 72CC84 802A16D4 24820006 */ addiu $v0, $a0, 6 -.L802A16D8: -/* 72CC88 802A16D8 00022083 */ sra $a0, $v0, 2 -/* 72CC8C 802A16DC 00A41823 */ subu $v1, $a1, $a0 -/* 72CC90 802A16E0 00031040 */ sll $v0, $v1, 1 -/* 72CC94 802A16E4 00431021 */ addu $v0, $v0, $v1 -/* 72CC98 802A16E8 000210C0 */ sll $v0, $v0, 3 -/* 72CC9C 802A16EC 00431021 */ addu $v0, $v0, $v1 -/* 72CCA0 802A16F0 00021080 */ sll $v0, $v0, 2 -/* 72CCA4 802A16F4 ACC30000 */ sw $v1, ($a2) -/* 72CCA8 802A16F8 3C01802A */ lui $at, %hi(D_802A25EC) -/* 72CCAC 802A16FC AC2225EC */ sw $v0, %lo(D_802A25EC)($at) -/* 72CCB0 802A1700 1480005B */ bnez $a0, .L802A1870 -/* 72CCB4 802A1704 0000102D */ daddu $v0, $zero, $zero -/* 72CCB8 802A1708 080A85D7 */ j .L802A175C -/* 72CCBC 802A170C 24020004 */ addiu $v0, $zero, 4 -.L802A1710_72CCC0: -/* 72CCC0 802A1710 3C024EC4 */ lui $v0, 0x4ec4 -/* 72CCC4 802A1714 3C06802A */ lui $a2, %hi(D_802A25E8) -/* 72CCC8 802A1718 24C625E8 */ addiu $a2, $a2, %lo(D_802A25E8) -/* 72CCCC 802A171C 8CC50000 */ lw $a1, ($a2) -/* 72CCD0 802A1720 3442EC4F */ ori $v0, $v0, 0xec4f -/* 72CCD4 802A1724 00A20018 */ mult $a1, $v0 -/* 72CCD8 802A1728 000517C3 */ sra $v0, $a1, 0x1f -/* 72CCDC 802A172C 00004010 */ mfhi $t0 -/* 72CCE0 802A1730 000818C3 */ sra $v1, $t0, 3 -/* 72CCE4 802A1734 00621823 */ subu $v1, $v1, $v0 -/* 72CCE8 802A1738 00031040 */ sll $v0, $v1, 1 -/* 72CCEC 802A173C 00431021 */ addu $v0, $v0, $v1 -/* 72CCF0 802A1740 00021080 */ sll $v0, $v0, 2 -/* 72CCF4 802A1744 00431021 */ addu $v0, $v0, $v1 -/* 72CCF8 802A1748 00021040 */ sll $v0, $v0, 1 -/* 72CCFC 802A174C 00A21823 */ subu $v1, $a1, $v0 -/* 72CD00 802A1750 14600006 */ bnez $v1, .L802A176C -/* 72CD04 802A1754 2402001A */ addiu $v0, $zero, 0x1a -/* 72CD08 802A1758 24020004 */ addiu $v0, $zero, 4 -.L802A175C: -/* 72CD0C 802A175C 3C01802A */ lui $at, %hi(D_802A25E4) -/* 72CD10 802A1760 AC2225E4 */ sw $v0, %lo(D_802A25E4)($at) -/* 72CD14 802A1764 080A861C */ j .L802A1870 -/* 72CD18 802A1768 0000102D */ daddu $v0, $zero, $zero -.L802A176C: -/* 72CD1C 802A176C 00432023 */ subu $a0, $v0, $v1 -/* 72CD20 802A1770 24820003 */ addiu $v0, $a0, 3 -/* 72CD24 802A1774 04420001 */ bltzl $v0, .L802A177C -/* 72CD28 802A1778 24820006 */ addiu $v0, $a0, 6 -.L802A177C: -/* 72CD2C 802A177C 00022083 */ sra $a0, $v0, 2 -/* 72CD30 802A1780 00A41821 */ addu $v1, $a1, $a0 -/* 72CD34 802A1784 00031040 */ sll $v0, $v1, 1 -/* 72CD38 802A1788 00431021 */ addu $v0, $v0, $v1 -/* 72CD3C 802A178C 000210C0 */ sll $v0, $v0, 3 -/* 72CD40 802A1790 00431021 */ addu $v0, $v0, $v1 -/* 72CD44 802A1794 00021080 */ sll $v0, $v0, 2 -/* 72CD48 802A1798 ACC30000 */ sw $v1, ($a2) -/* 72CD4C 802A179C 3C01802A */ lui $at, %hi(D_802A25EC) -/* 72CD50 802A17A0 AC2225EC */ sw $v0, %lo(D_802A25EC)($at) -/* 72CD54 802A17A4 080A861C */ j .L802A1870 -/* 72CD58 802A17A8 0000102D */ daddu $v0, $zero, $zero -.L802A17AC_72CD5C: -/* 72CD5C 802A17AC 24020014 */ addiu $v0, $zero, 0x14 -/* 72CD60 802A17B0 3C01802A */ lui $at, %hi(D_802A25F4) -/* 72CD64 802A17B4 AC2225F4 */ sw $v0, %lo(D_802A25F4)($at) -/* 72CD68 802A17B8 24020005 */ addiu $v0, $zero, 5 -/* 72CD6C 802A17BC 3C01802A */ lui $at, %hi(D_802A25E4) -/* 72CD70 802A17C0 AC2225E4 */ sw $v0, %lo(D_802A25E4)($at) -/* 72CD74 802A17C4 080A861C */ j .L802A1870 -/* 72CD78 802A17C8 0000102D */ daddu $v0, $zero, $zero -.L802A17CC_72CD7C: -/* 72CD7C 802A17CC 3C03802A */ lui $v1, %hi(D_802A25F4) -/* 72CD80 802A17D0 246325F4 */ addiu $v1, $v1, %lo(D_802A25F4) -/* 72CD84 802A17D4 8C620000 */ lw $v0, ($v1) -/* 72CD88 802A17D8 10400003 */ beqz $v0, .L802A17E8 -/* 72CD8C 802A17DC 2442FFFF */ addiu $v0, $v0, -1 -/* 72CD90 802A17E0 080A861B */ j .L802A186C -/* 72CD94 802A17E4 AC620000 */ sw $v0, ($v1) -.L802A17E8: -/* 72CD98 802A17E8 3C034EC4 */ lui $v1, 0x4ec4 -/* 72CD9C 802A17EC 3C02802A */ lui $v0, %hi(D_802A25E8) -/* 72CDA0 802A17F0 8C4225E8 */ lw $v0, %lo(D_802A25E8)($v0) -/* 72CDA4 802A17F4 3463EC4F */ ori $v1, $v1, 0xec4f -/* 72CDA8 802A17F8 00430018 */ mult $v0, $v1 -/* 72CDAC 802A17FC 3C11802A */ lui $s1, %hi(D_802A25C8) -/* 72CDB0 802A1800 263125C8 */ addiu $s1, $s1, %lo(D_802A25C8) -/* 72CDB4 802A1804 3C04802A */ lui $a0, %hi(D_802A25F8) -/* 72CDB8 802A1808 8C8425F8 */ lw $a0, %lo(D_802A25F8)($a0) -/* 72CDBC 802A180C 000217C3 */ sra $v0, $v0, 0x1f -/* 72CDC0 802A1810 00004010 */ mfhi $t0 -/* 72CDC4 802A1814 000818C3 */ sra $v1, $t0, 3 -/* 72CDC8 802A1818 00628023 */ subu $s0, $v1, $v0 -/* 72CDCC 802A181C 3C03802A */ lui $v1, %hi(D_802A25FC) -/* 72CDD0 802A1820 8C6325FC */ lw $v1, %lo(D_802A25FC)($v1) -/* 72CDD4 802A1824 00101080 */ sll $v0, $s0, 2 -/* 72CDD8 802A1828 00431021 */ addu $v0, $v0, $v1 -/* 72CDDC 802A182C 94420002 */ lhu $v0, 2($v0) -/* 72CDE0 802A1830 0000802D */ daddu $s0, $zero, $zero -/* 72CDE4 802A1834 A642017A */ sh $v0, 0x17a($s2) -/* 72CDE8 802A1838 00021400 */ sll $v0, $v0, 0x10 -/* 72CDEC 802A183C 00021403 */ sra $v0, $v0, 0x10 -/* 72CDF0 802A1840 0C048D70 */ jal free_generic_entity -/* 72CDF4 802A1844 ACC20084 */ sw $v0, 0x84($a2) -.L802A1848: -/* 72CDF8 802A1848 8E240000 */ lw $a0, ($s1) -/* 72CDFC 802A184C 26310004 */ addiu $s1, $s1, 4 -/* 72CE00 802A1850 0C05123D */ jal hud_element_free -/* 72CE04 802A1854 26100001 */ addiu $s0, $s0, 1 -/* 72CE08 802A1858 2A020007 */ slti $v0, $s0, 7 -/* 72CE0C 802A185C 1440FFFA */ bnez $v0, .L802A1848 -/* 72CE10 802A1860 24020002 */ addiu $v0, $zero, 2 -/* 72CE14 802A1864 080A861C */ j .L802A1870 -/* 72CE18 802A1868 00000000 */ nop -.L802A186C: -/* 72CE1C 802A186C 0000102D */ daddu $v0, $zero, $zero -.L802A1870: -/* 72CE20 802A1870 8FBF0028 */ lw $ra, 0x28($sp) -/* 72CE24 802A1874 8FB30024 */ lw $s3, 0x24($sp) -/* 72CE28 802A1878 8FB20020 */ lw $s2, 0x20($sp) -/* 72CE2C 802A187C 8FB1001C */ lw $s1, 0x1c($sp) -/* 72CE30 802A1880 8FB00018 */ lw $s0, 0x18($sp) -/* 72CE34 802A1884 03E00008 */ jr $ra -/* 72CE38 802A1888 27BD0030 */ addiu $sp, $sp, 0x30 diff --git a/ver/us/asm/nonmatchings/battle/item/shooting_star/battle_item_shooting_star_func_802A123C_71D9AC.s b/ver/us/asm/nonmatchings/battle/item/shooting_star/battle_item_shooting_star_func_802A123C_71D9AC.s deleted file mode 100644 index 1089bbb0c7..0000000000 --- a/ver/us/asm/nonmatchings/battle/item/shooting_star/battle_item_shooting_star_func_802A123C_71D9AC.s +++ /dev/null @@ -1,89 +0,0 @@ -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches - -glabel battle_item_shooting_star_func_802A123C_71D9AC -/* 71D9AC 802A123C 27BDFFC0 */ addiu $sp, $sp, -0x40 -/* 71D9B0 802A1240 AFB00020 */ sw $s0, 0x20($sp) -/* 71D9B4 802A1244 0080802D */ daddu $s0, $a0, $zero -/* 71D9B8 802A1248 AFBF002C */ sw $ra, 0x2c($sp) -/* 71D9BC 802A124C AFB20028 */ sw $s2, 0x28($sp) -/* 71D9C0 802A1250 AFB10024 */ sw $s1, 0x24($sp) -/* 71D9C4 802A1254 F7B60038 */ sdc1 $f22, 0x38($sp) -/* 71D9C8 802A1258 F7B40030 */ sdc1 $f20, 0x30($sp) -/* 71D9CC 802A125C 0C00A67F */ jal rand_int -/* 71D9D0 802A1260 240400C8 */ addiu $a0, $zero, 0xc8 -/* 71D9D4 802A1264 24040028 */ addiu $a0, $zero, 0x28 -/* 71D9D8 802A1268 0C00A67F */ jal rand_int -/* 71D9DC 802A126C 24510064 */ addiu $s1, $v0, 0x64 -/* 71D9E0 802A1270 241200C8 */ addiu $s2, $zero, 0xc8 -/* 71D9E4 802A1274 8E030084 */ lw $v1, 0x84($s0) -/* 71D9E8 802A1278 30630003 */ andi $v1, $v1, 3 -/* 71D9EC 802A127C 10600013 */ beqz $v1, .L802A12CC -/* 71D9F0 802A1280 0040802D */ daddu $s0, $v0, $zero -/* 71D9F4 802A1284 0C00A67F */ jal rand_int -/* 71D9F8 802A1288 24040064 */ addiu $a0, $zero, 0x64 -/* 71D9FC 802A128C 00521021 */ addu $v0, $v0, $s2 -/* 71DA00 802A1290 02221023 */ subu $v0, $s1, $v0 -/* 71DA04 802A1294 4482B000 */ mtc1 $v0, $f22 -/* 71DA08 802A1298 00000000 */ nop -/* 71DA0C 802A129C 4680B5A0 */ cvt.s.w $f22, $f22 -/* 71DA10 802A12A0 0C00A67F */ jal rand_int -/* 71DA14 802A12A4 24040064 */ addiu $a0, $zero, 0x64 -/* 71DA18 802A12A8 2442FFCE */ addiu $v0, $v0, -0x32 -/* 71DA1C 802A12AC 02021023 */ subu $v0, $s0, $v0 -/* 71DA20 802A12B0 4482A000 */ mtc1 $v0, $f20 -/* 71DA24 802A12B4 00000000 */ nop -/* 71DA28 802A12B8 4680A520 */ cvt.s.w $f20, $f20 -/* 71DA2C 802A12BC 0C00A67F */ jal rand_int -/* 71DA30 802A12C0 2404000A */ addiu $a0, $zero, 0xa -/* 71DA34 802A12C4 080A84C4 */ j .L802A1310 -/* 71DA38 802A12C8 24040002 */ addiu $a0, $zero, 2 -.L802A12CC: -/* 71DA3C 802A12CC 0C00A67F */ jal rand_int -/* 71DA40 802A12D0 24040064 */ addiu $a0, $zero, 0x64 -/* 71DA44 802A12D4 244200C8 */ addiu $v0, $v0, 0xc8 -/* 71DA48 802A12D8 02221023 */ subu $v0, $s1, $v0 -/* 71DA4C 802A12DC 4482B000 */ mtc1 $v0, $f22 -/* 71DA50 802A12E0 00000000 */ nop -/* 71DA54 802A12E4 4680B5A0 */ cvt.s.w $f22, $f22 -/* 71DA58 802A12E8 0C00A67F */ jal rand_int -/* 71DA5C 802A12EC 24040064 */ addiu $a0, $zero, 0x64 -/* 71DA60 802A12F0 2442FFCE */ addiu $v0, $v0, -0x32 -/* 71DA64 802A12F4 02021023 */ subu $v0, $s0, $v0 -/* 71DA68 802A12F8 4482A000 */ mtc1 $v0, $f20 -/* 71DA6C 802A12FC 00000000 */ nop -/* 71DA70 802A1300 4680A520 */ cvt.s.w $f20, $f20 -/* 71DA74 802A1304 0C00A67F */ jal rand_int -/* 71DA78 802A1308 2404000A */ addiu $a0, $zero, 0xa -/* 71DA7C 802A130C 24040003 */ addiu $a0, $zero, 3 -.L802A1310: -/* 71DA80 802A1310 44911000 */ mtc1 $s1, $f2 -/* 71DA84 802A1314 00000000 */ nop -/* 71DA88 802A1318 468010A0 */ cvt.s.w $f2, $f2 -/* 71DA8C 802A131C 44051000 */ mfc1 $a1, $f2 -/* 71DA90 802A1320 44921000 */ mtc1 $s2, $f2 -/* 71DA94 802A1324 00000000 */ nop -/* 71DA98 802A1328 468010A0 */ cvt.s.w $f2, $f2 -/* 71DA9C 802A132C 44061000 */ mfc1 $a2, $f2 -/* 71DAA0 802A1330 44901000 */ mtc1 $s0, $f2 -/* 71DAA4 802A1334 00000000 */ nop -/* 71DAA8 802A1338 468010A0 */ cvt.s.w $f2, $f2 -/* 71DAAC 802A133C 24420007 */ addiu $v0, $v0, 7 -/* 71DAB0 802A1340 44071000 */ mfc1 $a3, $f2 -/* 71DAB4 802A1344 44820000 */ mtc1 $v0, $f0 -/* 71DAB8 802A1348 00000000 */ nop -/* 71DABC 802A134C 46800020 */ cvt.s.w $f0, $f0 -/* 71DAC0 802A1350 E7B60010 */ swc1 $f22, 0x10($sp) -/* 71DAC4 802A1354 AFA00014 */ sw $zero, 0x14($sp) -/* 71DAC8 802A1358 E7B40018 */ swc1 $f20, 0x18($sp) -/* 71DACC 802A135C 0C01BF8C */ jal fx_star -/* 71DAD0 802A1360 E7A0001C */ swc1 $f0, 0x1c($sp) -/* 71DAD4 802A1364 8FBF002C */ lw $ra, 0x2c($sp) -/* 71DAD8 802A1368 8FB20028 */ lw $s2, 0x28($sp) -/* 71DADC 802A136C 8FB10024 */ lw $s1, 0x24($sp) -/* 71DAE0 802A1370 8FB00020 */ lw $s0, 0x20($sp) -/* 71DAE4 802A1374 D7B60038 */ ldc1 $f22, 0x38($sp) -/* 71DAE8 802A1378 D7B40030 */ ldc1 $f20, 0x30($sp) -/* 71DAEC 802A137C 24020002 */ addiu $v0, $zero, 2 -/* 71DAF0 802A1380 03E00008 */ jr $ra -/* 71DAF4 802A1384 27BD0040 */ addiu $sp, $sp, 0x40 diff --git a/ver/us/asm/nonmatchings/battle/item/strange_cake/battle_item_strange_cake_func_802A123C_73153C.s b/ver/us/asm/nonmatchings/battle/item/strange_cake/battle_item_strange_cake_func_802A123C_73153C.s deleted file mode 100644 index d3de0b8158..0000000000 --- a/ver/us/asm/nonmatchings/battle/item/strange_cake/battle_item_strange_cake_func_802A123C_73153C.s +++ /dev/null @@ -1,112 +0,0 @@ -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches - -glabel battle_item_strange_cake_func_802A123C_73153C -/* 73153C 802A123C 3C03802A */ lui $v1, %hi(D_802A2DEC) -/* 731540 802A1240 8C632DEC */ lw $v1, %lo(D_802A2DEC)($v1) -/* 731544 802A1244 27BDFF98 */ addiu $sp, $sp, -0x68 -/* 731548 802A1248 AFBF0064 */ sw $ra, 0x64($sp) -/* 73154C 802A124C AFB40060 */ sw $s4, 0x60($sp) -/* 731550 802A1250 AFB3005C */ sw $s3, 0x5c($sp) -/* 731554 802A1254 AFB20058 */ sw $s2, 0x58($sp) -/* 731558 802A1258 AFB10054 */ sw $s1, 0x54($sp) -/* 73155C 802A125C 28620006 */ slti $v0, $v1, 6 -/* 731560 802A1260 10400058 */ beqz $v0, .L802A13C4 -/* 731564 802A1264 AFB00050 */ sw $s0, 0x50($sp) -/* 731568 802A1268 18600056 */ blez $v1, .L802A13C4 -/* 73156C 802A126C 24050007 */ addiu $a1, $zero, 7 -/* 731570 802A1270 0000202D */ daddu $a0, $zero, $zero -/* 731574 802A1274 2406006A */ addiu $a2, $zero, 0x6a -/* 731578 802A1278 24020024 */ addiu $v0, $zero, 0x24 -/* 73157C 802A127C AFA20014 */ sw $v0, 0x14($sp) -/* 731580 802A1280 AFA20018 */ sw $v0, 0x18($sp) -/* 731584 802A1284 240200FF */ addiu $v0, $zero, 0xff -/* 731588 802A1288 AFA2001C */ sw $v0, 0x1c($sp) -/* 73158C 802A128C 24020140 */ addiu $v0, $zero, 0x140 -/* 731590 802A1290 AFA20044 */ sw $v0, 0x44($sp) -/* 731594 802A1294 240200F0 */ addiu $v0, $zero, 0xf0 -/* 731598 802A1298 24070056 */ addiu $a3, $zero, 0x56 -/* 73159C 802A129C AFA00010 */ sw $zero, 0x10($sp) -/* 7315A0 802A12A0 AFA00020 */ sw $zero, 0x20($sp) -/* 7315A4 802A12A4 AFA00024 */ sw $zero, 0x24($sp) -/* 7315A8 802A12A8 AFA00028 */ sw $zero, 0x28($sp) -/* 7315AC 802A12AC AFA0002C */ sw $zero, 0x2c($sp) -/* 7315B0 802A12B0 AFA00030 */ sw $zero, 0x30($sp) -/* 7315B4 802A12B4 AFA00034 */ sw $zero, 0x34($sp) -/* 7315B8 802A12B8 AFA00038 */ sw $zero, 0x38($sp) -/* 7315BC 802A12BC AFA0003C */ sw $zero, 0x3c($sp) -/* 7315C0 802A12C0 AFA00040 */ sw $zero, 0x40($sp) -/* 7315C4 802A12C4 AFA20048 */ sw $v0, 0x48($sp) -/* 7315C8 802A12C8 0C03D4B8 */ jal draw_box -/* 7315CC 802A12CC AFA0004C */ sw $zero, 0x4c($sp) -/* 7315D0 802A12D0 3C06ED1B */ lui $a2, 0xed1b -/* 7315D4 802A12D4 34C60168 */ ori $a2, $a2, 0x168 -/* 7315D8 802A12D8 3C050022 */ lui $a1, 0x22 -/* 7315DC 802A12DC 34A5C1D8 */ ori $a1, $a1, 0xc1d8 -/* 7315E0 802A12E0 0000882D */ daddu $s1, $zero, $zero -/* 7315E4 802A12E4 3C1451EB */ lui $s4, 0x51eb -/* 7315E8 802A12E8 3694851F */ ori $s4, $s4, 0x851f -/* 7315EC 802A12EC 0220982D */ daddu $s3, $s1, $zero -/* 7315F0 802A12F0 3C04800A */ lui $a0, %hi(gMasterGfxPos) -/* 7315F4 802A12F4 2484A66C */ addiu $a0, $a0, %lo(gMasterGfxPos) -/* 7315F8 802A12F8 8C820000 */ lw $v0, ($a0) -/* 7315FC 802A12FC 3C12802A */ lui $s2, %hi(D_802A2DD8) -/* 731600 802A1300 26522DD8 */ addiu $s2, $s2, %lo(D_802A2DD8) -/* 731604 802A1304 0040182D */ daddu $v1, $v0, $zero -/* 731608 802A1308 24420008 */ addiu $v0, $v0, 8 -/* 73160C 802A130C AC820000 */ sw $v0, ($a0) -/* 731610 802A1310 AC660000 */ sw $a2, ($v1) -/* 731614 802A1314 AC650004 */ sw $a1, 4($v1) -.L802A1318: -/* 731618 802A1318 2405007C */ addiu $a1, $zero, 0x7c -/* 73161C 802A131C 3C02802A */ lui $v0, %hi(D_802A2DF4) -/* 731620 802A1320 8C422DF4 */ lw $v0, %lo(D_802A2DF4)($v0) -/* 731624 802A1324 8E500000 */ lw $s0, ($s2) -/* 731628 802A1328 00540018 */ mult $v0, $s4 -/* 73162C 802A132C 26520004 */ addiu $s2, $s2, 4 -/* 731630 802A1330 26310001 */ addiu $s1, $s1, 1 -/* 731634 802A1334 0200202D */ daddu $a0, $s0, $zero -/* 731638 802A1338 000217C3 */ sra $v0, $v0, 0x1f -/* 73163C 802A133C 00004010 */ mfhi $t0 -/* 731640 802A1340 00083143 */ sra $a2, $t0, 5 -/* 731644 802A1344 00C23023 */ subu $a2, $a2, $v0 -/* 731648 802A1348 24C6FF98 */ addiu $a2, $a2, -0x68 -/* 73164C 802A134C 0C051261 */ jal hud_element_set_render_pos -/* 731650 802A1350 02663023 */ subu $a2, $s3, $a2 -/* 731654 802A1354 0C0511F8 */ jal hud_element_draw_without_clipping -/* 731658 802A1358 0200202D */ daddu $a0, $s0, $zero -/* 73165C 802A135C 2A220005 */ slti $v0, $s1, 5 -/* 731660 802A1360 1440FFED */ bnez $v0, .L802A1318 -/* 731664 802A1364 2673001A */ addiu $s3, $s3, 0x1a -/* 731668 802A1368 3C0251EB */ lui $v0, 0x51eb -/* 73166C 802A136C 3442851F */ ori $v0, $v0, 0x851f -/* 731670 802A1370 2405007C */ addiu $a1, $zero, 0x7c -/* 731674 802A1374 00113040 */ sll $a2, $s1, 1 -/* 731678 802A1378 00D13021 */ addu $a2, $a2, $s1 -/* 73167C 802A137C 00063080 */ sll $a2, $a2, 2 -/* 731680 802A1380 3C03802A */ lui $v1, %hi(D_802A2DF4) -/* 731684 802A1384 8C632DF4 */ lw $v1, %lo(D_802A2DF4)($v1) -/* 731688 802A1388 00D13021 */ addu $a2, $a2, $s1 -/* 73168C 802A138C 00620018 */ mult $v1, $v0 -/* 731690 802A1390 3C10802A */ lui $s0, %hi(D_802A2DD8) -/* 731694 802A1394 8E102DD8 */ lw $s0, %lo(D_802A2DD8)($s0) -/* 731698 802A1398 00063040 */ sll $a2, $a2, 1 -/* 73169C 802A139C 0200202D */ daddu $a0, $s0, $zero -/* 7316A0 802A13A0 00031FC3 */ sra $v1, $v1, 0x1f -/* 7316A4 802A13A4 00004010 */ mfhi $t0 -/* 7316A8 802A13A8 00081143 */ sra $v0, $t0, 5 -/* 7316AC 802A13AC 00431023 */ subu $v0, $v0, $v1 -/* 7316B0 802A13B0 2442FF98 */ addiu $v0, $v0, -0x68 -/* 7316B4 802A13B4 0C051261 */ jal hud_element_set_render_pos -/* 7316B8 802A13B8 00C23023 */ subu $a2, $a2, $v0 -/* 7316BC 802A13BC 0C0511F8 */ jal hud_element_draw_without_clipping -/* 7316C0 802A13C0 0200202D */ daddu $a0, $s0, $zero -.L802A13C4: -/* 7316C4 802A13C4 8FBF0064 */ lw $ra, 0x64($sp) -/* 7316C8 802A13C8 8FB40060 */ lw $s4, 0x60($sp) -/* 7316CC 802A13CC 8FB3005C */ lw $s3, 0x5c($sp) -/* 7316D0 802A13D0 8FB20058 */ lw $s2, 0x58($sp) -/* 7316D4 802A13D4 8FB10054 */ lw $s1, 0x54($sp) -/* 7316D8 802A13D8 8FB00050 */ lw $s0, 0x50($sp) -/* 7316DC 802A13DC 03E00008 */ jr $ra -/* 7316E0 802A13E0 27BD0068 */ addiu $sp, $sp, 0x68 diff --git a/ver/us/asm/nonmatchings/battle/item/strange_cake/battle_item_strange_cake_func_802A13E4_7316E4.s b/ver/us/asm/nonmatchings/battle/item/strange_cake/battle_item_strange_cake_func_802A13E4_7316E4.s deleted file mode 100644 index c1d7ec4446..0000000000 --- a/ver/us/asm/nonmatchings/battle/item/strange_cake/battle_item_strange_cake_func_802A13E4_7316E4.s +++ /dev/null @@ -1,303 +0,0 @@ -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches - -.section .rodata - -dlabel jtbl_802A2DB0_7330B0 -.word .L802A1434_731734, .L802A14D0_7317D0, .L802A1614_731914, .L802A1698_731998, .L802A1734_731A34, .L802A1754_731A54, 0, 0 - -.section .text - -glabel battle_item_strange_cake_func_802A13E4_7316E4 -/* 7316E4 802A13E4 27BDFFD8 */ addiu $sp, $sp, -0x28 -/* 7316E8 802A13E8 0080302D */ daddu $a2, $a0, $zero -/* 7316EC 802A13EC AFBF0020 */ sw $ra, 0x20($sp) -/* 7316F0 802A13F0 AFB3001C */ sw $s3, 0x1c($sp) -/* 7316F4 802A13F4 AFB20018 */ sw $s2, 0x18($sp) -/* 7316F8 802A13F8 AFB10014 */ sw $s1, 0x14($sp) -/* 7316FC 802A13FC 10A00003 */ beqz $a1, .L802A140C -/* 731700 802A1400 AFB00010 */ sw $s0, 0x10($sp) -/* 731704 802A1404 3C01802A */ lui $at, %hi(D_802A2DEC) -/* 731708 802A1408 AC202DEC */ sw $zero, %lo(D_802A2DEC)($at) -.L802A140C: -/* 73170C 802A140C 3C03802A */ lui $v1, %hi(D_802A2DEC) -/* 731710 802A1410 8C632DEC */ lw $v1, %lo(D_802A2DEC)($v1) -/* 731714 802A1414 2C620006 */ sltiu $v0, $v1, 6 -/* 731718 802A1418 104000F7 */ beqz $v0, .L802A17F8 -/* 73171C 802A141C 00031080 */ sll $v0, $v1, 2 -/* 731720 802A1420 3C01802A */ lui $at, %hi(jtbl_802A2DB0_7330B0) -/* 731724 802A1424 00220821 */ addu $at, $at, $v0 -/* 731728 802A1428 8C222DB0 */ lw $v0, %lo(jtbl_802A2DB0_7330B0)($at) -/* 73172C 802A142C 00400008 */ jr $v0 -/* 731730 802A1430 00000000 */ nop -.L802A1434_731734: -/* 731734 802A1434 3C05802A */ lui $a1, %hi(battle_item_strange_cake_func_802A123C_73153C) -/* 731738 802A1438 24A5123C */ addiu $a1, $a1, %lo(battle_item_strange_cake_func_802A123C_73153C) -/* 73173C 802A143C 0C048C8F */ jal create_generic_entity_frontUI -/* 731740 802A1440 0000202D */ daddu $a0, $zero, $zero -/* 731744 802A1444 3C01802A */ lui $at, %hi(D_802A2E00) -/* 731748 802A1448 AC222E00 */ sw $v0, %lo(D_802A2E00)($at) -/* 73174C 802A144C 0C00A67F */ jal rand_int -/* 731750 802A1450 240432C8 */ addiu $a0, $zero, 0x32c8 -/* 731754 802A1454 0000802D */ daddu $s0, $zero, $zero -/* 731758 802A1458 3C13802A */ lui $s3, %hi(battle_item_strange_cake_D_802A2848_732B48) -/* 73175C 802A145C 26732848 */ addiu $s3, $s3, %lo(battle_item_strange_cake_D_802A2848_732B48) -/* 731760 802A1460 3C12802A */ lui $s2, %hi(D_802A2DD8) -/* 731764 802A1464 26522DD8 */ addiu $s2, $s2, %lo(D_802A2DD8) -/* 731768 802A1468 3C11802A */ lui $s1, %hi(battle_item_strange_cake_D_802A2858_732B58) -/* 73176C 802A146C 26312858 */ addiu $s1, $s1, %lo(battle_item_strange_cake_D_802A2858_732B58) -/* 731770 802A1470 3C01802A */ lui $at, %hi(D_802A2DF4) -/* 731774 802A1474 AC222DF4 */ sw $v0, %lo(D_802A2DF4)($at) -/* 731778 802A1478 240203E8 */ addiu $v0, $zero, 0x3e8 -/* 73177C 802A147C 3C01802A */ lui $at, %hi(D_802A2DF8) -/* 731780 802A1480 AC222DF8 */ sw $v0, %lo(D_802A2DF8)($at) -.L802A1484: -/* 731784 802A1484 8E220000 */ lw $v0, ($s1) -/* 731788 802A1488 26310004 */ addiu $s1, $s1, 4 -/* 73178C 802A148C 00021080 */ sll $v0, $v0, 2 -/* 731790 802A1490 00531021 */ addu $v0, $v0, $s3 -/* 731794 802A1494 8C440000 */ lw $a0, ($v0) -/* 731798 802A1498 0C050529 */ jal hud_element_create -/* 73179C 802A149C 26100001 */ addiu $s0, $s0, 1 -/* 7317A0 802A14A0 0040202D */ daddu $a0, $v0, $zero -/* 7317A4 802A14A4 24050080 */ addiu $a1, $zero, 0x80 -/* 7317A8 802A14A8 0C051280 */ jal hud_element_set_flags -/* 7317AC 802A14AC AE440000 */ sw $a0, ($s2) -/* 7317B0 802A14B0 2A020005 */ slti $v0, $s0, 5 -/* 7317B4 802A14B4 1440FFF3 */ bnez $v0, .L802A1484 -/* 7317B8 802A14B8 26520004 */ addiu $s2, $s2, 4 -/* 7317BC 802A14BC 24020001 */ addiu $v0, $zero, 1 -/* 7317C0 802A14C0 3C01802A */ lui $at, %hi(D_802A2DEC) -/* 7317C4 802A14C4 AC222DEC */ sw $v0, %lo(D_802A2DEC)($at) -/* 7317C8 802A14C8 080A85FF */ j .L802A17FC -/* 7317CC 802A14CC 0000102D */ daddu $v0, $zero, $zero -.L802A14D0_7317D0: -/* 7317D0 802A14D0 3C0351EB */ lui $v1, 0x51eb -/* 7317D4 802A14D4 3C06802A */ lui $a2, %hi(D_802A2DF4) -/* 7317D8 802A14D8 24C62DF4 */ addiu $a2, $a2, %lo(D_802A2DF4) -/* 7317DC 802A14DC 3C07802A */ lui $a3, %hi(D_802A2DF8) -/* 7317E0 802A14E0 24E72DF8 */ addiu $a3, $a3, %lo(D_802A2DF8) -/* 7317E4 802A14E4 8CC20000 */ lw $v0, ($a2) -/* 7317E8 802A14E8 8CE50000 */ lw $a1, ($a3) -/* 7317EC 802A14EC 3463851F */ ori $v1, $v1, 0x851f -/* 7317F0 802A14F0 00452021 */ addu $a0, $v0, $a1 -/* 7317F4 802A14F4 00830018 */ mult $a0, $v1 -/* 7317F8 802A14F8 00041FC3 */ sra $v1, $a0, 0x1f -/* 7317FC 802A14FC 00004010 */ mfhi $t0 -/* 731800 802A1500 00081143 */ sra $v0, $t0, 5 -/* 731804 802A1504 00431023 */ subu $v0, $v0, $v1 -/* 731808 802A1508 28420082 */ slti $v0, $v0, 0x82 -/* 73180C 802A150C 14400003 */ bnez $v0, .L802A151C -/* 731810 802A1510 ACC40000 */ sw $a0, ($a2) -/* 731814 802A1514 2482CD38 */ addiu $v0, $a0, -0x32c8 -/* 731818 802A1518 ACC20000 */ sw $v0, ($a2) -.L802A151C: -/* 73181C 802A151C 00A0182D */ daddu $v1, $a1, $zero -/* 731820 802A1520 28620191 */ slti $v0, $v1, 0x191 -/* 731824 802A1524 14400003 */ bnez $v0, .L802A1534 -/* 731828 802A1528 28620065 */ slti $v0, $v1, 0x65 -/* 73182C 802A152C 080A8550 */ j .L802A1540 -/* 731830 802A1530 2462FFF6 */ addiu $v0, $v1, -0xa -.L802A1534: -/* 731834 802A1534 14400002 */ bnez $v0, .L802A1540 -/* 731838 802A1538 24A2FFFF */ addiu $v0, $a1, -1 -/* 73183C 802A153C 2462FFFB */ addiu $v0, $v1, -5 -.L802A1540: -/* 731840 802A1540 ACE20000 */ sw $v0, ($a3) -/* 731844 802A1544 3C02802A */ lui $v0, %hi(D_802A2DF8) -/* 731848 802A1548 8C422DF8 */ lw $v0, %lo(D_802A2DF8)($v0) -/* 73184C 802A154C 2842000A */ slti $v0, $v0, 0xa -/* 731850 802A1550 104000A9 */ beqz $v0, .L802A17F8 -/* 731854 802A1554 3C0351EB */ lui $v1, 0x51eb -/* 731858 802A1558 3C02802A */ lui $v0, %hi(D_802A2DF4) -/* 73185C 802A155C 8C422DF4 */ lw $v0, %lo(D_802A2DF4)($v0) -/* 731860 802A1560 3463851F */ ori $v1, $v1, 0x851f -/* 731864 802A1564 00430018 */ mult $v0, $v1 -/* 731868 802A1568 3C044EC4 */ lui $a0, 0x4ec4 -/* 73186C 802A156C 3484EC4F */ ori $a0, $a0, 0xec4f -/* 731870 802A1570 000217C3 */ sra $v0, $v0, 0x1f -/* 731874 802A1574 00004010 */ mfhi $t0 -/* 731878 802A1578 00081943 */ sra $v1, $t0, 5 -/* 73187C 802A157C 00621823 */ subu $v1, $v1, $v0 -/* 731880 802A1580 00640018 */ mult $v1, $a0 -/* 731884 802A1584 000317C3 */ sra $v0, $v1, 0x1f -/* 731888 802A1588 3C01802A */ lui $at, %hi(D_802A2DF0) -/* 73188C 802A158C AC232DF0 */ sw $v1, %lo(D_802A2DF0)($at) -/* 731890 802A1590 00004010 */ mfhi $t0 -/* 731894 802A1594 000820C3 */ sra $a0, $t0, 3 -/* 731898 802A1598 00822023 */ subu $a0, $a0, $v0 -/* 73189C 802A159C 00041040 */ sll $v0, $a0, 1 -/* 7318A0 802A15A0 00441021 */ addu $v0, $v0, $a0 -/* 7318A4 802A15A4 00021080 */ sll $v0, $v0, 2 -/* 7318A8 802A15A8 00441021 */ addu $v0, $v0, $a0 -/* 7318AC 802A15AC 00021040 */ sll $v0, $v0, 1 -/* 7318B0 802A15B0 00621823 */ subu $v1, $v1, $v0 -/* 7318B4 802A15B4 2863000D */ slti $v1, $v1, 0xd -/* 7318B8 802A15B8 10600008 */ beqz $v1, .L802A15DC -/* 7318BC 802A15BC 00000000 */ nop -/* 7318C0 802A15C0 0C00A67F */ jal rand_int -/* 7318C4 802A15C4 24040064 */ addiu $a0, $zero, 0x64 -/* 7318C8 802A15C8 28420050 */ slti $v0, $v0, 0x50 -/* 7318CC 802A15CC 1440000D */ bnez $v0, .L802A1604 -/* 7318D0 802A15D0 24020002 */ addiu $v0, $zero, 2 -/* 7318D4 802A15D4 080A857C */ j .L802A15F0 -/* 7318D8 802A15D8 24020003 */ addiu $v0, $zero, 3 -.L802A15DC: -/* 7318DC 802A15DC 0C00A67F */ jal rand_int -/* 7318E0 802A15E0 24040064 */ addiu $a0, $zero, 0x64 -/* 7318E4 802A15E4 2842003C */ slti $v0, $v0, 0x3c -/* 7318E8 802A15E8 10400005 */ beqz $v0, .L802A1600 -/* 7318EC 802A15EC 24020003 */ addiu $v0, $zero, 3 -.L802A15F0: -/* 7318F0 802A15F0 3C01802A */ lui $at, %hi(D_802A2DEC) -/* 7318F4 802A15F4 AC222DEC */ sw $v0, %lo(D_802A2DEC)($at) -/* 7318F8 802A15F8 080A85FF */ j .L802A17FC -/* 7318FC 802A15FC 0000102D */ daddu $v0, $zero, $zero -.L802A1600: -/* 731900 802A1600 24020002 */ addiu $v0, $zero, 2 -.L802A1604: -/* 731904 802A1604 3C01802A */ lui $at, %hi(D_802A2DEC) -/* 731908 802A1608 AC222DEC */ sw $v0, %lo(D_802A2DEC)($at) -/* 73190C 802A160C 080A85FF */ j .L802A17FC -/* 731910 802A1610 0000102D */ daddu $v0, $zero, $zero -.L802A1614_731914: -/* 731914 802A1614 3C024EC4 */ lui $v0, 0x4ec4 -/* 731918 802A1618 3C06802A */ lui $a2, %hi(D_802A2DF0) -/* 73191C 802A161C 24C62DF0 */ addiu $a2, $a2, %lo(D_802A2DF0) -/* 731920 802A1620 8CC50000 */ lw $a1, ($a2) -/* 731924 802A1624 3442EC4F */ ori $v0, $v0, 0xec4f -/* 731928 802A1628 00A20018 */ mult $a1, $v0 -/* 73192C 802A162C 000517C3 */ sra $v0, $a1, 0x1f -/* 731930 802A1630 00004010 */ mfhi $t0 -/* 731934 802A1634 000818C3 */ sra $v1, $t0, 3 -/* 731938 802A1638 00622023 */ subu $a0, $v1, $v0 -/* 73193C 802A163C 00041040 */ sll $v0, $a0, 1 -/* 731940 802A1640 00441021 */ addu $v0, $v0, $a0 -/* 731944 802A1644 00021080 */ sll $v0, $v0, 2 -/* 731948 802A1648 00441021 */ addu $v0, $v0, $a0 -/* 73194C 802A164C 00021040 */ sll $v0, $v0, 1 -/* 731950 802A1650 00A22023 */ subu $a0, $a1, $v0 -/* 731954 802A1654 24820003 */ addiu $v0, $a0, 3 -/* 731958 802A1658 04420001 */ bltzl $v0, .L802A1660 -/* 73195C 802A165C 24820006 */ addiu $v0, $a0, 6 -.L802A1660: -/* 731960 802A1660 00022083 */ sra $a0, $v0, 2 -/* 731964 802A1664 00A41823 */ subu $v1, $a1, $a0 -/* 731968 802A1668 00031040 */ sll $v0, $v1, 1 -/* 73196C 802A166C 00431021 */ addu $v0, $v0, $v1 -/* 731970 802A1670 000210C0 */ sll $v0, $v0, 3 -/* 731974 802A1674 00431021 */ addu $v0, $v0, $v1 -/* 731978 802A1678 00021080 */ sll $v0, $v0, 2 -/* 73197C 802A167C ACC30000 */ sw $v1, ($a2) -/* 731980 802A1680 3C01802A */ lui $at, %hi(D_802A2DF4) -/* 731984 802A1684 AC222DF4 */ sw $v0, %lo(D_802A2DF4)($at) -/* 731988 802A1688 1480005C */ bnez $a0, .L802A17FC -/* 73198C 802A168C 0000102D */ daddu $v0, $zero, $zero -/* 731990 802A1690 080A85B9 */ j .L802A16E4 -/* 731994 802A1694 24020004 */ addiu $v0, $zero, 4 -.L802A1698_731998: -/* 731998 802A1698 3C024EC4 */ lui $v0, 0x4ec4 -/* 73199C 802A169C 3C06802A */ lui $a2, %hi(D_802A2DF0) -/* 7319A0 802A16A0 24C62DF0 */ addiu $a2, $a2, %lo(D_802A2DF0) -/* 7319A4 802A16A4 8CC50000 */ lw $a1, ($a2) -/* 7319A8 802A16A8 3442EC4F */ ori $v0, $v0, 0xec4f -/* 7319AC 802A16AC 00A20018 */ mult $a1, $v0 -/* 7319B0 802A16B0 000517C3 */ sra $v0, $a1, 0x1f -/* 7319B4 802A16B4 00004010 */ mfhi $t0 -/* 7319B8 802A16B8 000818C3 */ sra $v1, $t0, 3 -/* 7319BC 802A16BC 00621823 */ subu $v1, $v1, $v0 -/* 7319C0 802A16C0 00031040 */ sll $v0, $v1, 1 -/* 7319C4 802A16C4 00431021 */ addu $v0, $v0, $v1 -/* 7319C8 802A16C8 00021080 */ sll $v0, $v0, 2 -/* 7319CC 802A16CC 00431021 */ addu $v0, $v0, $v1 -/* 7319D0 802A16D0 00021040 */ sll $v0, $v0, 1 -/* 7319D4 802A16D4 00A21823 */ subu $v1, $a1, $v0 -/* 7319D8 802A16D8 14600006 */ bnez $v1, .L802A16F4 -/* 7319DC 802A16DC 2402001A */ addiu $v0, $zero, 0x1a -/* 7319E0 802A16E0 24020004 */ addiu $v0, $zero, 4 -.L802A16E4: -/* 7319E4 802A16E4 3C01802A */ lui $at, %hi(D_802A2DEC) -/* 7319E8 802A16E8 AC222DEC */ sw $v0, %lo(D_802A2DEC)($at) -/* 7319EC 802A16EC 080A85FF */ j .L802A17FC -/* 7319F0 802A16F0 0000102D */ daddu $v0, $zero, $zero -.L802A16F4: -/* 7319F4 802A16F4 00432023 */ subu $a0, $v0, $v1 -/* 7319F8 802A16F8 24820003 */ addiu $v0, $a0, 3 -/* 7319FC 802A16FC 04420001 */ bltzl $v0, .L802A1704 -/* 731A00 802A1700 24820006 */ addiu $v0, $a0, 6 -.L802A1704: -/* 731A04 802A1704 00022083 */ sra $a0, $v0, 2 -/* 731A08 802A1708 00A41821 */ addu $v1, $a1, $a0 -/* 731A0C 802A170C 00031040 */ sll $v0, $v1, 1 -/* 731A10 802A1710 00431021 */ addu $v0, $v0, $v1 -/* 731A14 802A1714 000210C0 */ sll $v0, $v0, 3 -/* 731A18 802A1718 00431021 */ addu $v0, $v0, $v1 -/* 731A1C 802A171C 00021080 */ sll $v0, $v0, 2 -/* 731A20 802A1720 ACC30000 */ sw $v1, ($a2) -/* 731A24 802A1724 3C01802A */ lui $at, %hi(D_802A2DF4) -/* 731A28 802A1728 AC222DF4 */ sw $v0, %lo(D_802A2DF4)($at) -/* 731A2C 802A172C 080A85FF */ j .L802A17FC -/* 731A30 802A1730 0000102D */ daddu $v0, $zero, $zero -.L802A1734_731A34: -/* 731A34 802A1734 24020014 */ addiu $v0, $zero, 0x14 -/* 731A38 802A1738 3C01802A */ lui $at, %hi(D_802A2DFC) -/* 731A3C 802A173C AC222DFC */ sw $v0, %lo(D_802A2DFC)($at) -/* 731A40 802A1740 24020005 */ addiu $v0, $zero, 5 -/* 731A44 802A1744 3C01802A */ lui $at, %hi(D_802A2DEC) -/* 731A48 802A1748 AC222DEC */ sw $v0, %lo(D_802A2DEC)($at) -/* 731A4C 802A174C 080A85FF */ j .L802A17FC -/* 731A50 802A1750 0000102D */ daddu $v0, $zero, $zero -.L802A1754_731A54: -/* 731A54 802A1754 3C03802A */ lui $v1, %hi(D_802A2DFC) -/* 731A58 802A1758 24632DFC */ addiu $v1, $v1, %lo(D_802A2DFC) -/* 731A5C 802A175C 8C620000 */ lw $v0, ($v1) -/* 731A60 802A1760 10400003 */ beqz $v0, .L802A1770 -/* 731A64 802A1764 2442FFFF */ addiu $v0, $v0, -1 -/* 731A68 802A1768 080A85FE */ j .L802A17F8 -/* 731A6C 802A176C AC620000 */ sw $v0, ($v1) -.L802A1770: -/* 731A70 802A1770 3C034EC4 */ lui $v1, 0x4ec4 -/* 731A74 802A1774 3C02802A */ lui $v0, %hi(D_802A2DF0) -/* 731A78 802A1778 8C422DF0 */ lw $v0, %lo(D_802A2DF0)($v0) -/* 731A7C 802A177C 3463EC4F */ ori $v1, $v1, 0xec4f -/* 731A80 802A1780 00430018 */ mult $v0, $v1 -/* 731A84 802A1784 3C11802A */ lui $s1, %hi(D_802A2DD8) -/* 731A88 802A1788 26312DD8 */ addiu $s1, $s1, %lo(D_802A2DD8) -/* 731A8C 802A178C 3C04802A */ lui $a0, %hi(D_802A2E00) -/* 731A90 802A1790 8C842E00 */ lw $a0, %lo(D_802A2E00)($a0) -/* 731A94 802A1794 000217C3 */ sra $v0, $v0, 0x1f -/* 731A98 802A1798 00004010 */ mfhi $t0 -/* 731