/*!
- * @brief ã\80\8cã\81\8fã\81\95ã\81³ã\82\92æ\89\93ã\81¤ã\80\8dã\81\9fã\82\81ã\81«å¿\85è¦\81ã\81ªã\82ªã\83\96ã\82¸ã\82§ã\82¯ã\83\88ã\81\8cã\81\82るかどうかの判定を返す /
+ * @brief ã\80\8cã\81\8fã\81\95ã\81³ã\82\92æ\89\93ã\81¤ã\80\8dã\81\9fã\82\81ã\81«å¿\85è¦\81ã\81ªã\82ªã\83\96ã\82¸ã\82§ã\82¯ã\83\88ã\82\92æ\89\80æ\8c\81ã\81\97ã\81¦ã\81\84るかどうかの判定を返す /
* Find the index of some "spikes", if possible.
* @param ip くさびとして打てるオブジェクトのID
* @return オブジェクトがある場合TRUEを返す
* Let user choose a pile of spikes, perhaps?
* </pre>
*/
-static bool get_spike(INVENTORY_IDX *ip)
+static bool get_spike(player_type *creature_ptr, INVENTORY_IDX *ip)
{
INVENTORY_IDX i;
/* Check every item in the pack */
for (i = 0; i < INVEN_PACK; i++)
{
- object_type *o_ptr = &p_ptr->inventory_list[i];
+ object_type *o_ptr = &creature_ptr->inventory_list[i];
if (!o_ptr->k_idx) continue;
/* Check the "tval" code */
}
/* Get a spike */
- else if (!get_spike(&item))
+ else if (!get_spike(creature_ptr, &item))
{
msg_print(_("くさびを持っていない!", "You have no spikes!"));
}