ep_ptr->dam = ep_ptr->dam * calc_disenchant_damage_rate(target_ptr, CALC_RAND) / 100;
- if (!target_ptr->resist_disen && !check_multishadow(target_ptr)) {
+ if (!has_resist_disen(target_ptr) && !check_multishadow(target_ptr)) {
(void)apply_disenchant(target_ptr, 0);
}
if (monap_ptr->explode)
return;
- if (!target_ptr->resist_disen && !check_multishadow(target_ptr) && apply_disenchant(target_ptr, 0)) {
+ if (!has_resist_disen(target_ptr) && !check_multishadow(target_ptr) && apply_disenchant(target_ptr, 0)) {
update_creature(target_ptr);
monap_ptr->obvious = TRUE;
}
break;
case DRS_DISEN:
- if (player_ptr->resist_disen)
+ if (has_resist_disen(player_ptr))
m_ptr->smart |= SM_RES_DISEN;
break;
if (has_resist_chaos(target_ptr))
msr_ptr->smart |= SM_RES_CHAOS;
- if (target_ptr->resist_disen)
+ if (has_resist_disen(target_ptr))
msr_ptr->smart |= SM_RES_DISEN;
if (target_ptr->resist_blind)
if (has_resist_sound(creature_ptr))
self_ptr->info[self_ptr->line++] = _("あなたは音波の衝撃への耐性を持っている。", "You are resistant to sonic attacks.");
- if (creature_ptr->resist_disen)
+ if (has_resist_disen(creature_ptr))
self_ptr->info[self_ptr->line++] = _("あなたは劣化への耐性を持っている。", "You are resistant to disenchantment.");
if (has_resist_chaos(creature_ptr))
{
PERCENTAGE per = 100;
- if (creature_ptr->resist_disen) {
+ if (has_resist_disen(creature_ptr)) {
per *= 600;
per /= randrate(4, 7, mode);
}
{
PERCENTAGE per = 100;
- if (creature_ptr->resist_disen) {
+ if (has_resist_disen(creature_ptr)) {
per *= 600;
per /= randrate(4, 7, mode);
}
has_curses(creature_ptr);
creature_ptr->impact = has_impact(creature_ptr);
has_extra_blow(creature_ptr);
- creature_ptr->resist_disen = has_resist_disen(creature_ptr);
creature_ptr->resist_shard = has_resist_shard(creature_ptr);
creature_ptr->resist_nexus = has_resist_nexus(creature_ptr);
creature_ptr->resist_blind = has_resist_blind(creature_ptr);
bool is_fired;
bool level_up_message;
- BIT_FLAGS resist_disen; /* Resist disenchant */
BIT_FLAGS resist_shard; /* Resist shards */
BIT_FLAGS resist_nexus; /* Resist nexus */
BIT_FLAGS resist_blind; /* Resist blindness */