/*** Temporary fields ***/
+ bool select_ring_slot;
+
bool playing; /* True if player is playing */
bool leaving; /* True if player is leaving */
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 */
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 */
- BIT_FLAGS resist_blind; /* Resist blindness */
- BIT_FLAGS 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 */
-
BIT_FLAGS cursed; /* Player is cursed */
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 */
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 */
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;
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);
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);
/*
#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);