* We return "TRUE" if the effect of the projection is "obvious".
* </pre>
*/
-bool project_o(player_type *caster_ptr, MONSTER_IDX who, POSITION r, POSITION y, POSITION x, HIT_POINT dam, EFFECT_ID typ)
+bool affect_item(player_type *caster_ptr, MONSTER_IDX who, POSITION r, POSITION y, POSITION x, HIT_POINT dam, EFFECT_ID typ)
{
grid_type *g_ptr = &caster_ptr->current_floor_ptr->grid_array[y][x];
}
}
- if (project_o(caster_ptr, 0, 0, y, x, dam, GF_SEEKER))notice = TRUE;
+ if (affect_item(caster_ptr, 0, 0, y, x, dam, GF_SEEKER))notice = TRUE;
if (!is_mirror_grid(&caster_ptr->current_floor_ptr->grid_array[y][x]))
continue;
}
}
- if (project_o(caster_ptr, 0, 0, y, x, dam, GF_SUPER_RAY))notice = TRUE;
+ if (affect_item(caster_ptr, 0, 0, y, x, dam, GF_SUPER_RAY))notice = TRUE;
if (!cave_have_flag_bold(caster_ptr->current_floor_ptr, y, x, FF_PROJECT))
{
if (second_step)continue;
if (breath)
{
int d = dist_to_line(y, x, y1, x1, by, bx);
- if (project_o(caster_ptr, who, d, y, x, dam, typ)) notice = TRUE;
+ if (affect_item(caster_ptr, who, d, y, x, dam, typ)) notice = TRUE;
}
else
{
- if (project_o(caster_ptr, who, dist, y, x, dam, typ)) notice = TRUE;
+ if (affect_item(caster_ptr, who, dist, y, x, dam, typ)) notice = TRUE;
}
}
}
{
if (player_has_los_bold(caster_ptr, y, x) && projectable(caster_ptr, caster_ptr->y, caster_ptr->x, y, x))
{
- (void)project_o(caster_ptr, 0, 0, y, x, dam, GF_MANA);
+ (void)affect_item(caster_ptr, 0, 0, y, x, dam, GF_MANA);
}
}
}