/* Do nothing */
break;
case BACT_RESEARCH_ITEM:
- paid = identify_fully(FALSE);
+ paid = identify_fully(player_ptr, FALSE);
break;
case BACT_TOWN_HISTORY:
town_history();
msg_print(_("明るく輝いている...", "It glows brightly..."));
detect_all(user_ptr, DETECT_RAD_DEFAULT);
probing(user_ptr);
- identify_fully(FALSE);
+ identify_fully(user_ptr, FALSE);
break;
}
case ACT_ID_FULL:
{
msg_print(_("黄色く輝いている...", "It glows yellow..."));
- identify_fully(FALSE);
+ identify_fully(user_ptr, FALSE);
break;
}
case SV_SCROLL_STAR_IDENTIFY:
{
- if (!identify_fully(FALSE)) used_up = FALSE;
+ if (!identify_fully(creature_ptr, FALSE)) used_up = FALSE;
ident = TRUE;
break;
}
case SV_STAFF_IDENTIFY:
{
if (powerful) {
- if (!identify_fully(FALSE)) *use_charge = FALSE;
+ if (!identify_fully(creature_ptr, FALSE)) *use_charge = FALSE;
}
else {
if (!ident_spell(creature_ptr, FALSE)) *use_charge = FALSE;
case SV_ROD_IDENTIFY:
{
if (powerful) {
- if (!identify_fully(FALSE)) *use_charge = FALSE;
+ if (!identify_fully(creature_ptr, FALSE)) *use_charge = FALSE;
}
else {
if (!ident_spell(creature_ptr, FALSE)) *use_charge = FALSE;
}
else if (command == -4)
{
- if (!identify_fully(FALSE)) return FALSE;
+ if (!identify_fully(creature_ptr, FALSE)) return FALSE;
}
break;
}
{
if (creature_ptr->lev > 29)
{
- if (!identify_fully(TRUE)) return FALSE;
+ if (!identify_fully(creature_ptr, TRUE)) return FALSE;
}
else
{
{
if (cast)
{
- if (!identify_fully(FALSE)) return NULL;
+ if (!identify_fully(caster_ptr, FALSE)) return NULL;
}
}
break;
}
else
{
- if (!identify_fully(FALSE)) return NULL;
+ if (!identify_fully(caster_ptr, FALSE)) return NULL;
}
}
}
{
if (plev > 44)
{
- if (!identify_fully(TRUE)) return NULL;
+ if (!identify_fully(caster_ptr, TRUE)) return NULL;
}
else
{
{
if (cast)
{
- if (!identify_fully(FALSE)) return NULL;
+ if (!identify_fully(caster_ptr, FALSE)) return NULL;
}
}
break;
{
if (cast)
{
- if (!identify_fully(FALSE)) return NULL;
+ if (!identify_fully(caster_ptr, FALSE)) return NULL;
}
}
break;
{
if (cast)
{
- if (!identify_fully(FALSE)) return NULL;
+ if (!identify_fully(caster_ptr, FALSE)) return NULL;
}
}
break;
{
if (cast)
{
- if (!identify_fully(FALSE)) return NULL;
+ if (!identify_fully(caster_ptr, FALSE)) return NULL;
}
}
break;
extern bool ident_spell(player_type *caster_ptr, bool only_equip);
extern bool mundane_spell(player_type *ownner_ptr, bool only_equip);
extern bool identify_item(player_type *owner_ptr, object_type *o_ptr);
-extern bool identify_fully(bool only_equip);
+extern bool identify_fully(player_type *caster_ptr, bool only_equip);
extern bool recharge(player_type *caster_ptr, int power);
extern void display_spell_list(player_type *caster_ptr);
extern EXP experience_of_spell(player_type *caster_ptr, SPELL_IDX spell, REALM_IDX use_realm);
* Fully "identify" an object in the inventory -BEN-
* This routine returns TRUE if an item was identified.
*/
-bool identify_fully(bool only_equip)
+bool identify_fully(player_type *caster_ptr, bool only_equip)
{
OBJECT_IDX item;
object_type *o_ptr;
s = _("*鑑定*するべきアイテムがない。", "You have nothing to *identify*.");
- o_ptr = choose_object(p_ptr, &item, q, s, (USE_EQUIP | USE_INVEN | USE_FLOOR | IGNORE_BOTHHAND_SLOT), 0);
+ o_ptr = choose_object(caster_ptr, &item, q, s, (USE_EQUIP | USE_INVEN | USE_FLOOR | IGNORE_BOTHHAND_SLOT), 0);
if (!o_ptr) return (FALSE);
- old_known = identify_item(p_ptr, o_ptr);
+ old_known = identify_item(caster_ptr, o_ptr);
/* Mark the item as fully known */
o_ptr->ident |= (IDENT_MENTAL);
/* View item info */
case 'f':
- identify_fully(FALSE);
+ identify_fully(creature_ptr, FALSE);
break;
/* Create desired feature */