}
}
- if (creature_ptr->resist_elec)
+ if (has_resist_elec(creature_ptr))
per = (per + 2) / 3;
if (is_oppose_elec(creature_ptr))
per = (per + 2) / 3;
}
}
- if (creature_ptr->resist_cold)
+ if (has_resist_cold(creature_ptr))
per = (per + 2) / 3;
if (is_oppose_cold(creature_ptr))
per = (per + 2) / 3;
PERCENTAGE calc_pois_damage_rate(player_type *creature_ptr)
{
PERCENTAGE per = 100;
- if (creature_ptr->resist_pois)
+ if (has_resist_pois(creature_ptr))
per = (per + 2) / 3;
if (is_oppose_pois(creature_ptr))
per = (per + 2) / 3;
{
PERCENTAGE per = 100;
- if (creature_ptr->resist_pois)
+ if (has_resist_pois(creature_ptr))
per = (2 * per + 2) / 5;
if (is_oppose_pois(creature_ptr))
per = (2 * per + 2) / 5;
per = per * 4 / 3;
}
- if (creature_ptr->resist_lite) {
+ if (has_resist_lite(creature_ptr)) {
per *= 400;
per /= randrate(4, 7, mode);
}
return 0;
}
- if (creature_ptr->resist_dark) {
+ if (has_resist_dark(creature_ptr)) {
per *= 400;
per /= randrate(4, 7, mode);
}
{
PERCENTAGE per = 100;
- if (creature_ptr->resist_shard) {
+ if (has_resist_shard(creature_ptr)) {
per *= 600;
per /= randrate(4, 7, mode);
}
{
PERCENTAGE per = 100;
- if (creature_ptr->resist_sound) {
+ if (has_resist_sound(creature_ptr)) {
per *= 500;
per /= randrate(4, 7, mode);
}
{
PERCENTAGE per = 100;
- if (creature_ptr->resist_conf) {
+ if (has_resist_conf(creature_ptr)) {
per *= 500;
per /= randrate(4, 7, mode);
}
{
PERCENTAGE per = 100;
- if (creature_ptr->resist_chaos) {
+ if (has_resist_chaos(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);
}
{
PERCENTAGE per = 100;
- if (creature_ptr->resist_disen) {
+ if (has_resist_disen(creature_ptr)) {
per *= 600;
per /= randrate(4, 7, mode);
}
(void)mode; // unused
PERCENTAGE per = 100;
- if (creature_ptr->resist_shard) {
+ if (has_resist_shard(creature_ptr)) {
per /= 2;
}
{
PERCENTAGE per = 100;
- if (creature_ptr->resist_neth) {
+ if (has_resist_neth(creature_ptr)) {
if (!is_specific_player_race(creature_ptr, RACE_SPECTRE))
per *= 6;
per *= 100;
(void)mode; // unused
PERCENTAGE per = 100;
- if (creature_ptr->resist_time) {
+ if (has_resist_time(creature_ptr)) {
per *= 400;
per /= randrate(4, 7, mode);
}