if (o_ptr->tval == TV_CAPTURE)
continue;
- creature_ptr->to_a += o_ptr->to_a;
- if (object_is_known(o_ptr))
- creature_ptr->dis_to_a += o_ptr->to_a;
-
if (o_ptr->curse_flags & TRC_LOW_MELEE) {
int slot = i - INVEN_RARM;
if (slot < 2) {
}
if (is_blessed(creature_ptr)) {
- creature_ptr->to_a += 5;
- creature_ptr->dis_to_a += 5;
creature_ptr->to_h[0] += 10;
creature_ptr->to_h[1] += 10;
creature_ptr->to_h_b += 10;
{
creature_ptr->to_a = 0;
+ for (int i = INVEN_RARM; i < INVEN_TOTAL; i++) {
+ object_type *o_ptr;
+ o_ptr = &creature_ptr->inventory_list[i];
+ if (!o_ptr->k_idx)
+ continue;
+ creature_ptr->to_a += o_ptr->to_a;
+ }
+
if (is_specific_player_race(creature_ptr, RACE_GOLEM) || is_specific_player_race(creature_ptr, RACE_ANDROID)) {
creature_ptr->to_a += 10 + (creature_ptr->lev * 2 / 5);
}
} else if (creature_ptr->tsubureru || creature_ptr->shield || creature_ptr->magicdef) {
creature_ptr->to_a += 50;
}
+
+ if (is_blessed(creature_ptr)) {
+ creature_ptr->to_a += 5;
+ }
}
static void calc_base_ac_display(player_type *creature_ptr)
{
creature_ptr->dis_to_a = 0;
+ for (int i = INVEN_RARM; i < INVEN_TOTAL; i++) {
+ object_type *o_ptr;
+ o_ptr = &creature_ptr->inventory_list[i];
+ if (!o_ptr->k_idx)
+ continue;
+ if (object_is_known(o_ptr))
+ creature_ptr->dis_to_a += o_ptr->to_a;
+ }
+
if (is_specific_player_race(creature_ptr, RACE_GOLEM) || is_specific_player_race(creature_ptr, RACE_ANDROID)) {
creature_ptr->dis_to_a += 10 + (creature_ptr->lev * 2 / 5);
}
} else if (creature_ptr->tsubureru || creature_ptr->shield || creature_ptr->magicdef) {
creature_ptr->dis_to_a += 50;
}
+
+ if (is_blessed(creature_ptr)) {
+ creature_ptr->dis_to_a += 5;
+ }
}
static void calc_speed(player_type *creature_ptr)