OSDN Git Service

[Refactor] #37353 item_tester_learn_spell() を object-hook.c へ移動。 / Move item_tester_l...
[hengband/hengband.git] / src / dungeon.c
index 389492c..a6c5250 100644 (file)
@@ -26,6 +26,7 @@
 #include "object-curse.h"
 #include "store.h"
 #include "spells-summon.h"
+#include "spells-object.h"
 #include "monsterrace-hook.h"
 #include "world.h"
 #include "mutation.h"
@@ -146,7 +147,6 @@ static void sense_inventory_aux(INVENTORY_IDX slot, bool heavy)
 
        }
 
-       /* We have "felt" it */
        o_ptr->ident |= (IDENT_SENSE);
 
        /* Set the "inscription" */
@@ -154,8 +154,6 @@ static void sense_inventory_aux(INVENTORY_IDX slot, bool heavy)
 
        /* Auto-inscription/destroy */
        autopick_alter_item(slot, destroy_feeling);
-
-       /* Combine / Reorder the pack (later) */
        p_ptr->update |= (PU_COMBINE | PU_REORDER);
 
        p_ptr->window |= (PW_INVEN | PW_EQUIP);
@@ -4163,7 +4161,7 @@ static void process_command(void)
                        else if (p_ptr->pclass == CLASS_SAMURAI)
                                do_cmd_gain_hissatsu();
                        else if (p_ptr->pclass == CLASS_MAGIC_EATER)
-                               gain_magic();
+                               import_magic_device();
                        else
                                do_cmd_study();
                        break;