OSDN Git Service

[Refactor] #40514 player_type の sustain_wis 変数を廃止. / Abolished sustain_wis variable...
[hengband/hengband.git] / src / player / player-status.h
index 1b2c0cf..d31ce66 100644 (file)
@@ -287,6 +287,8 @@ typedef struct player_type {
 
     /*** Temporary fields ***/
 
+    bool select_ring_slot;
+
     bool playing; /* True if player is playing */
     bool leaving; /* True if player is leaving */
 
@@ -357,8 +359,6 @@ typedef struct player_type {
     s16b running; /* Current counter for running, if any */
     bool suppress_multi_reward; /*!< 複数レベルアップ時のパトロンからの報酬多重受け取りを防止 */
 
-    WEIGHT total_weight; /*!< 所持品と装備品の計算総重量 / Total weight being carried */
-
     s16b stat_add[A_MAX]; /* Modifiers to stat values */
     s16b stat_ind[A_MAX]; /* Indexes into stat tables */
 
@@ -366,42 +366,9 @@ typedef struct player_type {
     bool is_fired;
     bool level_up_message;
 
-    BIT_FLAGS immune_acid; /* Immunity to acid */
-    BIT_FLAGS immune_elec; /* Immunity to lightning */
-    BIT_FLAGS immune_fire; /* Immunity to fire */
-    BIT_FLAGS immune_cold; /* Immunity to cold */
-
-    BIT_FLAGS resist_acid; /* Resist acid */
-    BIT_FLAGS resist_elec; /* Resist lightning */
-    BIT_FLAGS resist_fire; /* Resist fire */
-    BIT_FLAGS resist_cold; /* Resist cold */
-    BIT_FLAGS resist_pois; /* Resist poison */
-
-    BIT_FLAGS resist_conf; /* Resist confusion */
-    BIT_FLAGS resist_sound; /* Resist sound */
-    BIT_FLAGS resist_lite; /* Resist light */
-    BIT_FLAGS resist_dark; /* Resist darkness */
-    BIT_FLAGS resist_chaos; /* Resist chaos */
-    BIT_FLAGS resist_disen; /* Resist disenchant */
-    BIT_FLAGS resist_shard; /* Resist shards */
-    BIT_FLAGS resist_nexus; /* Resist nexus */
-    bool resist_blind; /* Resist blindness */
-    bool resist_neth; /* Resist nether */
-    bool resist_fear; /* Resist fear */
-    bool resist_time; /* Resist time */
-    bool resist_water; /* Resist water */
-
-    BIT_FLAGS reflect; /* Reflect 'bolt' attacks */
-    BIT_FLAGS sh_fire; /* Fiery 'immolation' effect */
-    BIT_FLAGS sh_elec; /* Electric 'immolation' effect */
-    BIT_FLAGS sh_cold; /* Cold 'immolation' effect */
-
     BIT_FLAGS anti_magic; /* Anti-magic */
     BIT_FLAGS anti_tele; /* Prevent teleportation */
 
-    BIT_FLAGS sustain_str; /* Keep strength */
-    BIT_FLAGS sustain_int; /* Keep intelligence */
-    BIT_FLAGS sustain_wis; /* Keep wisdom */
     BIT_FLAGS sustain_dex; /* Keep dexterity */
     BIT_FLAGS sustain_con; /* Keep constitution */
     BIT_FLAGS sustain_chr; /* Keep charisma */
@@ -410,7 +377,7 @@ typedef struct player_type {
 
     bool can_swim; /* No damage falling */
     BIT_FLAGS levitation; /* No damage falling */
-    bool lite; /* Permanent light */
+    BIT_FLAGS lite; /* Permanent light */
     BIT_FLAGS free_act; /* Never paralyzed */
     BIT_FLAGS see_inv; /* Can see invisible */
     BIT_FLAGS regenerate; /* Regenerate hit pts */
@@ -430,7 +397,7 @@ typedef struct player_type {
     BIT_FLAGS esp_nonliving;
     BIT_FLAGS esp_unique;
 
-    bool slow_digest; /* Slower digestion */
+    BIT_FLAGS slow_digest; /* Slower digestion */
     BIT_FLAGS bless_blade; /* Blessed blade */
     BIT_FLAGS xtra_might; /* Extra might bow */
     BIT_FLAGS impact; /* Earthquake blows */
@@ -439,7 +406,7 @@ typedef struct player_type {
     BIT_FLAGS dec_mana;
     BIT_FLAGS easy_spell;
     BIT_FLAGS heavy_spell;
-    bool warning;
+    BIT_FLAGS warning;
     BIT_FLAGS mighty_throw;
     BIT_FLAGS see_nocto; /* Noctovision */
     bool invoking_midnight_curse;
@@ -511,10 +478,11 @@ extern int riding_exp_level(int riding_exp);
 extern int spell_exp_level(int spell_exp);
 
 extern int calc_weapon_weight_limit(player_type *creature_ptr);
+extern WEIGHT calc_inventory_weight(player_type *creature_ptr);
 
 extern s16b calc_num_fire(player_type *creature_ptr, object_type *o_ptr);
 extern void calc_bonuses(player_type *creature_ptr);
-extern WEIGHT weight_limit(player_type *creature_ptr);
+extern WEIGHT calc_weight_limit(player_type *creature_ptr);
 extern bool has_melee_weapon(player_type *creature_ptr, int i);
 
 extern bool heavy_armor(player_type *creature_ptr);
@@ -540,6 +508,7 @@ extern bool can_two_hands_wielding(player_type *creature_ptr);
 bool is_fast(player_type *creature_ptr);
 bool is_invuln(player_type *creature_ptr);
 bool is_hero(player_type *creature_ptr);
+bool is_shero(player_type *creature_ptr);
 bool is_echizen(player_type *creature_ptr);
 
 /*
@@ -561,8 +530,6 @@ bool is_echizen(player_type *creature_ptr);
 #define PY_REGEN_HPBASE 1442 /* Min amount hp regen*2^16 */
 #define PY_REGEN_MNBASE 524 /* Min amount mana regen*2^16 */
 
-extern void cheat_death(player_type *creature_ptr);
-
 extern void stop_singing(player_type *creature_ptr);
 extern void stop_mouth(player_type *caster_ptr);
 extern PERCENTAGE calculate_upkeep(player_type *creature_ptr);