* @param item 飲む薬オブジェクトの所持品ID\r
* @return なし\r
*/\r
-void do_cmd_quaff_potion_aux(int item)\r
+void do_cmd_quaff_potion_aux(INVENTORY_IDX item)\r
{\r
- int ident, lev;\r
+ bool ident;\r
+ DEPTH lev;\r
object_type *o_ptr;\r
object_type forge;\r
object_type *q_ptr;\r
\r
- p_ptr->energy_use = 100; /* Take a turn */\r
\r
if (world_player)\r
{\r
floor_item_optimize(0 - item);\r
}\r
\r
- /* Sound */\r
sound(SOUND_QUAFF);\r
\r
\r
gain_exp((lev + (p_ptr->lev >> 1)) / p_ptr->lev);\r
}\r
\r
- /* Window stuff */\r
p_ptr->window |= (PW_INVEN | PW_EQUIP | PW_PLAYER);\r
\r
/* Potions can feed the player */\r