}
/*!
- * @brief フロアにマスに落ちているオブジェクトを全て削除する / Deletes all objects at given location
+ * @brief フロア中のアイテムを全て削除する / Deletes all objects at given location
* Delete a dungeon object
* @param player_ptr プレーヤーへの参照ポインタ
* @param y 削除したフロアマスのY座標
* @param x 削除したフロアマスのX座標
* @return なし
*/
-void delete_object(player_type *player_ptr, POSITION y, POSITION x)
+void delete_all_items_from_floor(player_type *player_ptr, POSITION y, POSITION x)
{
grid_type *g_ptr;
OBJECT_IDX this_o_idx, next_o_idx = 0;
bool make_object(player_type *owner_ptr, object_type *j_ptr, BIT_FLAGS mode);
bool make_gold(floor_type *floor_ptr, object_type *j_ptr);
-void delete_object(player_type *owner_ptr, POSITION y, POSITION x);
+void delete_all_items_from_floor(player_type *owner_ptr, POSITION y, POSITION x);
}
}
- delete_object(player_ptr, ty, tx);
+ delete_all_items_from_floor(player_ptr, ty, tx);
}
/* Clear previous contents, add proper vein type */
}
/* Destroy all objects in the grid */
- delete_object(caster_ptr, caster_ptr->y, caster_ptr->x);
+ delete_all_items_from_floor(caster_ptr, caster_ptr->y, caster_ptr->x);
/* Extract current floor data */
saved_floor_type *sf_ptr;
}
}
- delete_object(caster_ptr, y, x);
+ delete_all_items_from_floor(caster_ptr, y, x);
/* Destroy "non-permanent" grids */
if (cave_perma_grid(g_ptr)) continue;
/* Destroy location (if valid) */
if (!cave_valid_bold(floor_ptr, yy, xx)) continue;
- delete_object(caster_ptr, yy, xx);
+ delete_all_items_from_floor(caster_ptr, yy, xx);
/* Wall (or floor) type */
int t = cave_have_flag_bold(floor_ptr, yy, xx, FF_PROJECT) ? randint0(100) : 200;