sustained = TRUE;
break;
case A_INT:
- if (creature_ptr->sustain_int)
+ if (has_sustain_int(creature_ptr))
sustained = TRUE;
break;
case A_WIS:
if (has_sustain_str(creature_ptr)) {
self_ptr->info[self_ptr->line++] = _("あなたの腕力は維持されている。", "Your strength is sustained.");
}
- if (creature_ptr->sustain_int) {
+ if (has_sustain_int(creature_ptr)) {
self_ptr->info[self_ptr->line++] = _("あなたの知能は維持されている。", "Your intelligence is sustained.");
}
if (creature_ptr->sustain_wis) {
creature_ptr->hold_exp = has_hold_exp(creature_ptr);
creature_ptr->see_inv = has_see_inv(creature_ptr);
creature_ptr->free_act = has_free_act(creature_ptr);
- creature_ptr->sustain_int = has_sustain_int(creature_ptr);
creature_ptr->sustain_wis = has_sustain_wis(creature_ptr);
creature_ptr->sustain_dex = has_sustain_dex(creature_ptr);
creature_ptr->sustain_con = has_sustain_con(creature_ptr);
BIT_FLAGS anti_magic; /* Anti-magic */
BIT_FLAGS anti_tele; /* Prevent teleportation */
- BIT_FLAGS sustain_int; /* Keep intelligence */
BIT_FLAGS sustain_wis; /* Keep wisdom */
BIT_FLAGS sustain_dex; /* Keep dexterity */
BIT_FLAGS sustain_con; /* Keep constitution */
#include "player/attack-defense-types.h"
#include "player-info/avatar.h"
#include "player/player-race.h"
+#include "player/player-status-flags.h"
#include "player/special-defense-types.h"
#include "spell-realm/spells-hex.h"
#include "status/base-status.h"
msg_print(_("割れるような頭痛がする。", "A vicious blow hits your head."));
if (one_in_(3)) {
- if (!creature_ptr->sustain_int)
+ if (!has_sustain_int(creature_ptr))
(void)do_dec_stat(creature_ptr, A_INT);
if (!creature_ptr->sustain_wis)
(void)do_dec_stat(creature_ptr, A_WIS);
} else if (one_in_(2)) {
- if (!creature_ptr->sustain_int)
+ if (!has_sustain_int(creature_ptr))
(void)do_dec_stat(creature_ptr, A_INT);
} else {
if (!creature_ptr->sustain_wis)
sust = TRUE;
break;
case A_INT:
- if (creature_ptr->sustain_int)
+ if (has_sustain_int(creature_ptr))
sust = TRUE;
break;
case A_WIS: