OSDN Git Service

can_player_destroy_object()のextern宣言がなかったのを修正。ついでに
[hengband/hengband.git] / src / cmd1.c
index 9a33061..288541c 100644 (file)
@@ -771,39 +771,6 @@ void py_pickup_aux(int o_idx)
 }
 
 
-bool can_player_destroy_object(object_type *o_ptr)
-{
-       /* Artifacts cannot be destroyed */
-       if (artifact_p(o_ptr) || o_ptr->art_name)
-       {
-               byte feel = FEEL_SPECIAL;
-
-               /* Hack -- Handle icky artifacts */
-               if (cursed_p(o_ptr) || broken_p(o_ptr)) feel = FEEL_TERRIBLE;
-
-               /* Hack -- inscribe the artifact */
-               o_ptr->feeling = feel;
-
-               /* We have "felt" it (again) */
-               o_ptr->ident |= (IDENT_SENSE);
-
-               /* Combine the pack */
-               p_ptr->notice |= (PN_COMBINE);
-
-               /* Redraw equippy chars */
-               p_ptr->redraw |= (PR_EQUIPPY);
-
-               /* Window stuff */
-               p_ptr->window |= (PW_INVEN | PW_EQUIP);
-
-               /* Done */
-               return FALSE;
-       }
-
-       return TRUE;
-}
-
-
 /*
  * Player "wants" to pick up an object or gold.
  * Note that we ONLY handle things that can be picked up.