per = per * 4 / 3;
}
- if (creature_ptr->resist_lite) {
+ if (has_resist_lite(creature_ptr)) {
per *= 400;
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);
}