{
if (creature_ptr->muta3) {
-
if (creature_ptr->muta3 & MUT3_FLESH_ROT) {
creature_ptr->regenerate = FALSE;
}
creature_ptr->lite = TRUE;
}
- if (creature_ptr->muta3 & MUT3_WART_SKIN) {
- creature_ptr->dis_to_a += 5;
- }
-
- if (creature_ptr->muta3 & MUT3_SCALES) {
- creature_ptr->dis_to_a += 10;
- }
-
- if (creature_ptr->muta3 & MUT3_IRON_SKIN) {
- creature_ptr->dis_to_a += 25;
- }
-
if (creature_ptr->muta3 & MUT3_WINGS) {
creature_ptr->levitation = TRUE;
}
creature_ptr->sh_fire = TRUE;
creature_ptr->sh_elec = TRUE;
creature_ptr->sh_cold = TRUE;
- creature_ptr->to_a += 100;
- creature_ptr->dis_to_a += 100;
- } else if (creature_ptr->tsubureru || creature_ptr->shield || creature_ptr->magicdef) {
- creature_ptr->to_a += 50;
- creature_ptr->dis_to_a += 50;
- }
+ }
if (creature_ptr->tim_res_nether) {
creature_ptr->resist_neth = TRUE;
creature_ptr->dis_to_d[0] += (creature_ptr->lev / 6);
}
- if (creature_ptr->special_defense & KAMAE_BYAKKO)
+ if (creature_ptr->special_defense & KAMAE_SEIRYU)
{
- creature_ptr->to_a -= 40;
- creature_ptr->dis_to_a -= 40;
-
- }
- else if (creature_ptr->special_defense & KAMAE_SEIRYU)
- {
- creature_ptr->to_a -= 50;
- creature_ptr->dis_to_a -= 50;
creature_ptr->resist_acid = TRUE;
creature_ptr->resist_fire = TRUE;
creature_ptr->resist_elec = TRUE;
}
}
- if (creature_ptr->special_defense & KATA_KOUKIJIN) {
+ if (creature_ptr->special_defense & KAMAE_BYAKKO) {
+ creature_ptr->to_a -= 40;
+ } else if (creature_ptr->special_defense & KAMAE_SEIRYU) {
+ creature_ptr->to_a -= 50;
+ } else if (creature_ptr->special_defense & KATA_KOUKIJIN) {
creature_ptr->to_a -= 50;
}
+
+ if (creature_ptr->ult_res || (creature_ptr->special_defense & KATA_MUSOU)) {
+ creature_ptr->to_a += 100;
+ } else if (creature_ptr->tsubureru || creature_ptr->shield || creature_ptr->magicdef) {
+ creature_ptr->to_a += 50;
+ }
}
static void calc_base_ac_display(player_type *creature_ptr)
creature_ptr->dis_to_a += 10 + (creature_ptr->lev * 2 / 5);
}
- if (creature_ptr->special_defense & KATA_KOUKIJIN) {
+ if (creature_ptr->muta3) {
+ if (creature_ptr->muta3 & MUT3_WART_SKIN) {
+ creature_ptr->dis_to_a += 5;
+ }
+
+ if (creature_ptr->muta3 & MUT3_SCALES) {
+ creature_ptr->dis_to_a += 10;
+ }
+
+ if (creature_ptr->muta3 & MUT3_IRON_SKIN) {
+ creature_ptr->dis_to_a += 25;
+ }
+ }
+
+ if (creature_ptr->special_defense & KAMAE_BYAKKO) {
+ creature_ptr->dis_to_a -= 40;
+ } else if (creature_ptr->special_defense & KAMAE_SEIRYU) {
+ creature_ptr->dis_to_a -= 50;
+ } else if (creature_ptr->special_defense & KATA_KOUKIJIN) {
creature_ptr->dis_to_a -= 50;
}
+
+ if (creature_ptr->ult_res || (creature_ptr->special_defense & KATA_MUSOU)) {
+ creature_ptr->dis_to_a += 100;
+ } else if (creature_ptr->tsubureru || creature_ptr->shield || creature_ptr->magicdef) {
+ creature_ptr->dis_to_a += 50;
+ }
}
static void calc_speed(player_type *creature_ptr)