papermario/src/code_190B20.c

187 lines
4.7 KiB
C
Raw Normal View History

2020-10-15 05:49:49 +02:00
#include "common.h"
2020-10-16 08:09:20 +02:00
ActorPart* get_actor_part(Actor* actor, s32 partIndex);
2020-10-15 05:49:49 +02:00
INCLUDE_ASM(s32, "code_190B20", create_target_list);
2020-10-16 08:09:20 +02:00
void player_create_target_list(Actor* actor) {
create_target_list(actor, 0);
}
2020-10-15 05:49:49 +02:00
2020-10-16 08:09:20 +02:00
void enemy_create_target_list(Actor* actor) {
create_target_list(actor, 1);
}
2020-10-15 05:49:49 +02:00
INCLUDE_ASM(s32, "code_190B20", func_80263064);
INCLUDE_ASM(s32, "code_190B20", func_80263230);
INCLUDE_ASM(s32, "code_190B20", func_8026324C);
INCLUDE_ASM(s32, "code_190B20", func_80263268);
INCLUDE_ASM(s32, "code_190B20", func_80263300);
INCLUDE_ASM(s32, "code_190B20", func_802633E8);
INCLUDE_ASM(s32, "code_190B20", func_80263434);
INCLUDE_ASM(s32, "code_190B20", func_80263464);
INCLUDE_ASM(s32, "code_190B20", func_802634B8);
INCLUDE_ASM(s32, "code_190B20", func_802636E4);
INCLUDE_ASM(s32, "code_190B20", func_80263914);
INCLUDE_ASM(s32, "code_190B20", count_power_plus);
INCLUDE_ASM(s32, "code_190B20", deduct_current_move_fp);
INCLUDE_ASM(s32, "code_190B20", func_80263C60);
INCLUDE_ASM(s32, "code_190B20", func_80263CC4);
INCLUDE_ASM(s32, "code_190B20", set_animation);
INCLUDE_ASM(s32, "code_190B20", func_80263E08);
INCLUDE_ASM(s32, "code_190B20", set_animation_rate);
2020-10-16 08:09:20 +02:00
void set_actor_yaw(s32 actorId, s32 yaw) {
get_actor(actorId)->yaw = yaw;
}
2020-10-15 05:49:49 +02:00
2020-10-16 08:09:20 +02:00
void set_part_yaw(s32 actorID, s32 partIndex, s32 value) {
get_actor_part(get_actor(actorID), partIndex)->yaw = value;
}
2020-10-15 05:49:49 +02:00
INCLUDE_ASM(s32, "code_190B20", func_80263FE8);
INCLUDE_ASM(s32, "code_190B20", func_80264084);
INCLUDE_ASM(s32, "code_190B20", add_xz_vec3f);
INCLUDE_ASM(s32, "code_190B20", add_xz_vec3f_copy1);
INCLUDE_ASM(s32, "code_190B20", add_xz_vec3f_copy2);
INCLUDE_ASM(s32, "code_190B20", play_movement_dust_effects);
2020-10-16 08:09:20 +02:00
INCLUDE_ASM(ActorPart*, "code_190B20", get_actor_part, Actor* actor, s32 partIndex);
2020-10-15 05:49:49 +02:00
INCLUDE_ASM(s32, "code_190B20", load_player_actor);
INCLUDE_ASM(s32, "code_190B20", load_partner_actor);
INCLUDE_ASM(s32, "code_190B20", create_actor);
INCLUDE_ASM(s32, "code_190B20", func_80265CE8);
INCLUDE_ASM(s32, "code_190B20", func_80265D44);
INCLUDE_ASM(s32, "code_190B20", lookup_defense);
INCLUDE_ASM(s32, "code_190B20", lookup_status_chance);
INCLUDE_ASM(s32, "code_190B20", lookup_status_duration_mod);
INCLUDE_ASM(s32, "code_190B20", inflict_status);
INCLUDE_ASM(s32, "code_190B20", inflict_partner_ko);
INCLUDE_ASM(s32, "code_190B20", get_defense);
INCLUDE_ASM(s32, "code_190B20", func_802664DC);
INCLUDE_ASM(s32, "code_190B20", show_damage_popup);
INCLUDE_ASM(s32, "code_190B20", func_80266684);
INCLUDE_ASM(s32, "code_190B20", func_802666E4);
INCLUDE_ASM(s32, "code_190B20", func_802667F0);
INCLUDE_ASM(s32, "code_190B20", func_80266970);
INCLUDE_ASM(s32, "code_190B20", func_80266978);
INCLUDE_ASM(s32, "code_190B20", func_80266ADC);
INCLUDE_ASM(s32, "code_190B20", func_80266AF8);
INCLUDE_ASM(s32, "code_190B20", func_80266B14);
INCLUDE_ASM(s32, "code_190B20", try_inflict_status);
INCLUDE_ASM(s32, "code_190B20", inflict_status_set_duration);
INCLUDE_ASM(s32, "code_190B20", func_80266D6C);
INCLUDE_ASM(s32, "code_190B20", func_80266DAC);
INCLUDE_ASM(s32, "code_190B20", func_80266E14);
INCLUDE_ASM(s32, "code_190B20", func_80266E40);
INCLUDE_ASM(s32, "code_190B20", func_80266EA8);
INCLUDE_ASM(s32, "code_190B20", func_80266EE8);
INCLUDE_ASM(s32, "code_190B20", func_80266F60);
INCLUDE_ASM(s32, "code_190B20", func_80266F8C);
INCLUDE_ASM(s32, "code_190B20", func_80266FD8);
INCLUDE_ASM(s32, "code_190B20", func_80267018);
INCLUDE_ASM(s32, "code_190B20", func_8026709C);
INCLUDE_ASM(s32, "code_190B20", func_802670C8);
INCLUDE_ASM(s32, "code_190B20", add_part_decoration);
INCLUDE_ASM(s32, "code_190B20", add_actor_decoration);
2020-10-16 08:09:20 +02:00
void remove_part_decoration(ActorPart* part, s32 decorationIndex) {
_remove_part_decoration(part, decorationIndex);
}
2020-10-15 05:49:49 +02:00
INCLUDE_ASM(s32, "code_190B20", remove_actor_decoration);
INCLUDE_ASM(s32, "code_190B20", heroes_is_ability_active);
INCLUDE_ASM(s32, "code_190B20", create_part_shadow);
2020-10-16 08:09:20 +02:00
void remove_part_shadow(s32 actorId, s32 partIndex) {
ActorPart* part = get_actor_part(get_actor(actorId), partIndex);
part->flags |= 4;
func_80112328(part->shadow);
}
2020-10-15 05:49:49 +02:00
INCLUDE_ASM(s32, "code_190B20", func_802673E4);
INCLUDE_ASM(s32, "code_190B20", remove_player_buffs);
INCLUDE_ASM(s32, "code_190B20", func_8026777C);
INCLUDE_ASM(s32, "code_190B20", func_8026787C);
INCLUDE_ASM(s32, "code_190B20", func_80267A3C);
INCLUDE_ASM(s32, "code_190B20", reset_all_actor_sounds);
INCLUDE_ASM(s32, "code_190B20", hide_foreground_models_unchecked);
INCLUDE_ASM(s32, "code_190B20", show_foreground_models_unchecked);
INCLUDE_ASM(s32, "code_190B20", hide_foreground_models);
INCLUDE_ASM(s32, "code_190B20", show_foreground_models);
INCLUDE_ASM(s32, "code_190B20", StartRumbleWithParams);
INCLUDE_ASM(s32, "code_190B20", start_rumble_type);