if (has_flag(f_ptr->flags, FF_LAVA)) {
int lava = 2;
- if (!creature_ptr->resist_fire)
+ if (!has_resist_fire(creature_ptr))
lava *= 2;
if (!creature_ptr->levitation)
if (damage) {
if (is_specific_player_race(creature_ptr, RACE_ENT))
damage += damage / 3;
- if (creature_ptr->resist_fire)
+ if (has_resist_fire(creature_ptr))
damage = damage / 3;
if (is_oppose_fire(creature_ptr))
damage = damage / 3;
damage = r_info[creature_ptr->current_floor_ptr->m_list[creature_ptr->riding].r_idx].level / 2;
if (is_specific_player_race(creature_ptr, RACE_ENT))
damage += damage / 3;
- if (creature_ptr->resist_fire)
+ if (has_resist_fire(creature_ptr))
damage = damage / 3;
if (is_oppose_fire(creature_ptr))
damage = damage / 3;
(void)set_stun(target_ptr, target_ptr->stun + plus_stun);
}
- if (!(target_ptr->resist_fire || is_oppose_fire(target_ptr) || has_immune_fire(target_ptr)))
+ if (!(has_resist_fire(target_ptr) || is_oppose_fire(target_ptr) || has_immune_fire(target_ptr)))
inventory_damage(target_ptr, set_acid_destroy, 3);
}
break;
case DRS_FIRE:
- if (player_ptr->resist_fire)
+ if (has_resist_fire(player_ptr))
m_ptr->smart |= SM_RES_FIRE;
if (is_oppose_fire(player_ptr))
if (has_immune_elec(target_ptr))
msr_ptr->smart |= SM_IMM_ELEC;
- if (target_ptr->resist_fire)
+ if (has_resist_fire(target_ptr))
msr_ptr->smart |= SM_RES_FIRE;
if (is_oppose_fire(target_ptr))
}
case SV_SCROLL_FIRE: {
fire_ball(creature_ptr, GF_FIRE, 0, 666, 4);
- if (!(is_oppose_fire(creature_ptr) || creature_ptr->resist_fire || has_immune_fire(creature_ptr)))
+ if (!(is_oppose_fire(creature_ptr) || has_resist_fire(creature_ptr) || has_immune_fire(creature_ptr)))
take_hit(creature_ptr, DAMAGE_NOESCAPE, 50 + randint1(50), _("炎の巻物", "a Scroll of Fire"), -1);
ident = TRUE;
if (has_immune_fire(creature_ptr)) {
self_ptr->info[self_ptr->line++] = _("あなたは火に対する完全なる免疫を持っている。", "You are completely immune to fire.");
- } else if (creature_ptr->resist_fire && is_oppose_fire(creature_ptr)) {
+ } else if (has_resist_fire(creature_ptr) &&is_oppose_fire(creature_ptr)) {
self_ptr->info[self_ptr->line++] = _("あなたは火への強力な耐性を持っている。", "You resist fire exceptionally well.");
- } else if (creature_ptr->resist_fire || is_oppose_fire(creature_ptr)) {
+ } else if (has_resist_fire(creature_ptr) || is_oppose_fire(creature_ptr)) {
self_ptr->info[self_ptr->line++] = _("あなたは火への耐性を持っている。", "You are resistant to fire.");
}
dam = dam * calc_fire_damage_rate(creature_ptr) / 100;
if (aura || !check_multishadow(creature_ptr)) {
- if ((!(double_resist || creature_ptr->resist_fire)) && one_in_(HURT_CHANCE))
+ if ((!(double_resist || has_resist_fire(creature_ptr))) && one_in_(HURT_CHANCE))
(void)do_dec_stat(creature_ptr, A_STR);
}
HIT_POINT get_damage = take_hit(creature_ptr, aura ? DAMAGE_NOESCAPE : DAMAGE_ATTACK, dam, kb_str, monspell);
- if (!aura && !(double_resist && creature_ptr->resist_fire))
+ if (!aura && !(double_resist && has_resist_fire(creature_ptr)))
inventory_damage(creature_ptr, set_fire_destroy, inv);
return get_damage;
}
/* Resist the damage */
- if (creature_ptr->resist_fire)
+ if (has_resist_fire(creature_ptr))
per = (per + 2) / 3;
if (is_oppose_fire(creature_ptr))
per = (per + 2) / 3;
has_extra_blow(creature_ptr);
creature_ptr->resist_acid = has_resist_acid(creature_ptr);
creature_ptr->resist_elec = has_resist_elec(creature_ptr);
- creature_ptr->resist_fire = has_resist_fire(creature_ptr);
creature_ptr->resist_cold = has_resist_cold(creature_ptr);
creature_ptr->resist_pois = has_resist_pois(creature_ptr);
creature_ptr->resist_conf = has_resist_conf(creature_ptr);
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 */
if (!(attacker_ptr->resist_elec || is_oppose_elec(attacker_ptr) || has_immune_elec(attacker_ptr)) && (*magnification < 25))
*magnification = 25;
- if (!(attacker_ptr->resist_fire || is_oppose_fire(attacker_ptr) || has_immune_fire(attacker_ptr)) && (*magnification < 25))
+ if (!(has_resist_fire(attacker_ptr) || is_oppose_fire(attacker_ptr) || has_immune_fire(attacker_ptr)) && (*magnification < 25))
*magnification = 25;
if (!(attacker_ptr->resist_cold || is_oppose_cold(attacker_ptr) || has_immune_cold(attacker_ptr)) && (*magnification < 25))