sustained = TRUE;
break;
case A_WIS:
- if (creature_ptr->sustain_wis)
+ if (has_sustain_wis(creature_ptr))
sustained = TRUE;
break;
case A_DEX:
if (has_sustain_int(creature_ptr)) {
self_ptr->info[self_ptr->line++] = _("あなたの知能は維持されている。", "Your intelligence is sustained.");
}
- if (creature_ptr->sustain_wis) {
+ if (has_sustain_wis(creature_ptr)) {
self_ptr->info[self_ptr->line++] = _("あなたの賢さは維持されている。", "Your wisdom is sustained.");
}
if (creature_ptr->sustain_con) {
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_wis = has_sustain_wis(creature_ptr);
creature_ptr->sustain_dex = has_sustain_dex(creature_ptr);
creature_ptr->sustain_con = has_sustain_con(creature_ptr);
creature_ptr->sustain_chr = has_sustain_chr(creature_ptr);
BIT_FLAGS anti_magic; /* Anti-magic */
BIT_FLAGS anti_tele; /* Prevent teleportation */
- BIT_FLAGS sustain_wis; /* Keep wisdom */
BIT_FLAGS sustain_dex; /* Keep dexterity */
BIT_FLAGS sustain_con; /* Keep constitution */
BIT_FLAGS sustain_chr; /* Keep charisma */
if (one_in_(3)) {
if (!has_sustain_int(creature_ptr))
(void)do_dec_stat(creature_ptr, A_INT);
- if (!creature_ptr->sustain_wis)
+ if (!has_sustain_wis(creature_ptr))
(void)do_dec_stat(creature_ptr, A_WIS);
} else if (one_in_(2)) {
if (!has_sustain_int(creature_ptr))
(void)do_dec_stat(creature_ptr, A_INT);
} else {
- if (!creature_ptr->sustain_wis)
+ if (!has_sustain_wis(creature_ptr))
(void)do_dec_stat(creature_ptr, A_WIS);
}
}
sust = TRUE;
break;
case A_WIS:
- if (creature_ptr->sustain_wis)
+ if (has_sustain_wis(creature_ptr))
sust = TRUE;
break;
case A_DEX: