OSDN Git Service

[Refactor] #40514 player_type の sustain_wis 変数を廃止. / Abolished sustain_wis variable...
[hengband/hengband.git] / src / player / player-status.h
index b390b77..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,37 +366,9 @@ typedef struct player_type {
     bool is_fired;
     bool level_up_message;
 
-    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 */
-    BIT_FLAGS resist_blind; /* Resist blindness */
-    BIT_FLAGS resist_neth; /* Resist nether */
-    BIT_FLAGS resist_fear; /* Resist fear */
-    BIT_FLAGS resist_time; /* Resist time */
-    BIT_FLAGS 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 */
@@ -506,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);
@@ -535,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);
 
 /*