(void)set_blind(target_ptr, target_ptr->blind + randint1(5) + 2);
}
- ep_ptr->dam = ep_ptr->dam * calc_vuln_fire_rate(target_ptr) / 100;
+ ep_ptr->dam = ep_ptr->dam * calc_fire_damage_rate(target_ptr) / 100;
if (is_specific_player_race(target_ptr, RACE_VAMPIRE) || (target_ptr->mimic_form == MIMIC_VAMPIRE)) {
if (!check_multishadow(target_ptr))
ignore_wraith_form = TRUE;
break;
}
- dam = dam * calc_vuln_fire_rate(target_ptr) / 100;
- if (target_ptr->resist_fire)
- dam = (dam + 2) / 3;
- if (is_oppose_fire(target_ptr))
- dam = (dam + 2) / 3;
- break;
+ dam = dam * calc_fire_damage_rate(target_ptr) / 100;
case GF_PSY_SPEAR:
ignore_wraith_form = TRUE;
return 0;
}
- /* Vulnerability (Ouch!) */
- dam = dam * calc_vuln_fire_rate(creature_ptr) / 100;
-
- /* Resist the damage */
- if (creature_ptr->resist_fire)
- dam = (dam + 2) / 3;
- if (double_resist)
- dam = (dam + 2) / 3;
+ 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))
return per;
}
-PERCENTAGE calc_vuln_fire_rate(player_type *creature_ptr)
+PERCENTAGE calc_fire_damage_rate(player_type *creature_ptr)
{
PERCENTAGE per = 100;
int i;
}
}
}
+
+ /* Resist the damage */
+ if (creature_ptr->resist_fire)
+ per = (per + 2) / 3;
+ if (is_oppose_fire(creature_ptr))
+ per = (per + 2) / 3;
+
return per;
}
PERCENTAGE calc_acid_damage_rate(player_type *creature_ptr);
PERCENTAGE calc_elec_damage_rate(player_type *creature_ptr);
-PERCENTAGE calc_vuln_fire_rate(player_type *creature_ptr);
+PERCENTAGE calc_fire_damage_rate(player_type *creature_ptr);
PERCENTAGE calc_vuln_cold_rate(player_type *creature_ptr);
PERCENTAGE calc_vuln_lite_rate(player_type *creature_ptr);