papermario/papermario/src/code_80850_len_3060.c

166 lines
4.2 KiB
C
Raw Normal View History

2020-08-04 08:49:11 +02:00
#include "common.h"
INCLUDE_ASM(code_80850_len_3060, clear_player_data);
INCLUDE_ASM(code_80850_len_3060, get_player_data);
INCLUDE_ASM(code_80850_len_3060, add_item);
INCLUDE_ASM(code_80850_len_3060, get_item_count);
INCLUDE_ASM(code_80850_len_3060, get_item_empty_count);
INCLUDE_ASM(code_80850_len_3060, find_item);
INCLUDE_ASM(code_80850_len_3060, sort_items);
INCLUDE_ASM(code_80850_len_3060, add_badge);
INCLUDE_ASM(code_80850_len_3060, store_item);
INCLUDE_ASM(code_80850_len_3060, get_stored_count);
INCLUDE_ASM(code_80850_len_3060, get_stored_empty_count);
INCLUDE_ASM(code_80850_len_3060, enforce_hpfp_limits);
INCLUDE_ASM(code_80850_len_3060, initialize_status_menu);
INCLUDE_ASM(code_80850_len_3060, status_menu_draw_number);
INCLUDE_ASM(code_80850_len_3060, status_menu_draw_stat);
INCLUDE_ASM(code_80850_len_3060, update_status_menu);
INCLUDE_ASM(code_80850_len_3060, coin_counter_draw_content);
INCLUDE_ASM(code_80850_len_3060, update_coin_counter);
INCLUDE_ASM(code_80850_len_3060, show_coin_counter);
INCLUDE_ASM(code_80850_len_3060, hide_coin_counter);
INCLUDE_ASM(code_80850_len_3060, func_800E96C8);
INCLUDE_ASM(code_80850_len_3060, ShowCoinCounter);
INCLUDE_ASM(code_80850_len_3060, func_800E973C);
INCLUDE_ASM(code_80850_len_3060, open_status_menu_long);
INCLUDE_ASM(code_80850_len_3060, open_status_menu_short);
INCLUDE_ASM(code_80850_len_3060, func_800E97B8);
INCLUDE_ASM(code_80850_len_3060, func_800E97E4);
INCLUDE_ASM(code_80850_len_3060, func_800E9810);
INCLUDE_ASM(code_80850_len_3060, func_800E983C);
INCLUDE_ASM(code_80850_len_3060, func_800E984C);
INCLUDE_ASM(code_80850_len_3060, func_800E9860);
INCLUDE_ASM(code_80850_len_3060, func_800E9894);
INCLUDE_ASM(code_80850_len_3060, func_800E98C4);
INCLUDE_ASM(code_80850_len_3060, func_800E98D4);
INCLUDE_ASM(code_80850_len_3060, func_800E98EC);
INCLUDE_ASM(code_80850_len_3060, func_800E9900);
INCLUDE_ASM(code_80850_len_3060, is_status_menu_visible);
INCLUDE_ASM(code_80850_len_3060, status_menu_start_blinking_hp);
INCLUDE_ASM(code_80850_len_3060, status_menu_stop_blinking_hp);
INCLUDE_ASM(code_80850_len_3060, status_menu_start_blinking_fp);
INCLUDE_ASM(code_80850_len_3060, status_menu_stop_blinking_fp);
INCLUDE_ASM(code_80850_len_3060, status_menu_start_blinking_coins);
INCLUDE_ASM(code_80850_len_3060, status_menu_stop_blinking_coins);
INCLUDE_ASM(code_80850_len_3060, status_menu_start_blinking_sp);
INCLUDE_ASM(code_80850_len_3060, status_menu_stop_blinking_sp);
INCLUDE_ASM(code_80850_len_3060, status_menu_start_blinking_sp_bars);
INCLUDE_ASM(code_80850_len_3060, status_menu_start_blinking_starpoints);
INCLUDE_ASM(code_80850_len_3060, status_menu_stop_blinking_starpoints);
INCLUDE_ASM(code_80850_len_3060, decrement_status_menu_disabled);
INCLUDE_ASM(code_80850_len_3060, increment_status_menu_disabled);
INCLUDE_ASM(code_80850_len_3060, sync_status_menu);
INCLUDE_ASM(code_80850_len_3060, reset_status_menu);
INCLUDE_ASM(code_80850_len_3060, is_ability_active);
2020-08-06 07:00:11 +02:00
s32 is_partner_ability_active(void) {
return 0;
}
2020-08-04 08:49:11 +02:00
INCLUDE_ASM(code_80850_len_3060, add_coins);
INCLUDE_ASM(code_80850_len_3060, add_star_points);
INCLUDE_ASM(code_80850_len_3060, add_star_pieces);
INCLUDE_ASM(code_80850_len_3060, increment_max_SP);
INCLUDE_ASM(code_80850_len_3060, set_max_SP);
INCLUDE_ASM(code_80850_len_3060, add_SP);
INCLUDE_ASM(code_80850_len_3060, recover_fp);
INCLUDE_ASM(code_80850_len_3060, recover_hp);
INCLUDE_ASM(code_80850_len_3060, subtract_hp);
2020-08-06 07:00:11 +02:00
s8 has_full_hp(void) {
player_data* playerData = &gPlayerData;
return playerData->curMaxHP == playerData->curHP;
}
s8 has_full_fp(void) {
player_data* playerData = &gPlayerData;
return playerData->curMaxFP == playerData->curFP;
}
s8 add_fortress_keys(s32 amt) {
player_data* playerData = &gPlayerData;
playerData->fortressKeyCount += amt;
return playerData->fortressKeyCount;
}
/*
s8 subtract_fortress_keys(s32 amt) {
player_data* playerData = &gPlayerData;
//player_data* new_var = playerData;
playerData->fortressKeyCount -= amt;
if (playerData->fortressKeyCount < 0) {
playerData->fortressKeyCount = 0;
}
return playerData->fortressKeyCount;
}
*/
2020-08-04 08:49:11 +02:00
INCLUDE_ASM(code_80850_len_3060, subtract_fortress_keys);
INCLUDE_ASM(code_80850_len_3060, get_fortress_key_count);