OSDN Git Service

[Refactor] #40466 Moved set_food() from player-effects.c/h to digestion-processor.c/h
[hengband/hengband.git] / src / player / player-effects.h
1 #pragma once
2
3 #include "system/angband.h"
4
5 void set_action(player_type *creature_ptr, ACTION_IDX typ);
6 void dispel_player(player_type *creature_ptr);
7 bool set_mimic(player_type *creature_ptr, TIME_EFFECT v, MIMIC_RACE_IDX p, bool do_dec);
8 bool set_shero(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
9 bool set_protevil(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
10 bool set_invuln(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
11 bool set_tim_regen(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
12 bool set_tim_stealth(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
13 bool set_tim_levitation(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
14 bool set_tim_sh_touki(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
15 bool set_tim_sh_fire(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
16 bool set_tim_sh_holy(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
17 bool set_tim_eyeeye(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
18 bool set_resist_magic(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
19 bool set_tim_reflect(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
20 bool set_kabenuke(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
21 bool set_tsuyoshi(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
22 bool set_oppose_acid(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
23 bool set_oppose_elec(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
24 bool set_oppose_fire(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
25 bool set_oppose_cold(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
26 bool set_oppose_pois(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
27 bool inc_stat(player_type *creature_ptr, int stat);
28 bool dec_stat(player_type *creature_ptr, int stat, int amount, int permanent);
29 bool res_stat(player_type *creature_ptr, int stat);
30 bool hp_player(player_type *creature_ptr, int num);
31 bool do_dec_stat(player_type *creature_ptr, int stat);
32 bool do_res_stat(player_type *creature_ptr, int stat);
33 bool do_inc_stat(player_type *creature_ptr, int stat);
34 bool restore_level(player_type *creature_ptr);
35 bool lose_all_info(player_type *creature_ptr);
36 void gain_exp_64(player_type *creature_ptr, s32b amount, u32b amount_frac);
37 void gain_exp(player_type *creature_ptr, s32b amount);
38 void calc_android_exp(player_type *creature_ptr);
39 void lose_exp(player_type *creature_ptr, s32b amount);
40 bool drain_exp(player_type *creature_ptr, s32b drain, s32b slip, int hold_exp_prob);
41 void do_poly_self(player_type *creature_ptr);
42 bool set_ultimate_res(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
43 bool set_tim_res_nether(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
44 bool set_tim_res_time(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
45 bool set_wraith_form(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
46 void do_poly_wounds(player_type *creature_ptr);
47 void change_race(player_type *creature_ptr, player_race_type new_race, concptr effect_msg);