OSDN Git Service

k_info内のIDを直接指定していた部分をlookup_kind()を使うように修正.
authornothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Mon, 5 May 2003 05:59:19 +0000 (05:59 +0000)
committernothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Mon, 5 May 2003 05:59:19 +0000 (05:59 +0000)
また, svalの直接指定があった部分を記号定数を使うように修正.

src/init1.c
src/racial.c
src/xtra2.c

index d7cd5c2..83c0941 100644 (file)
@@ -3399,7 +3399,7 @@ static errr process_dungeon_file_aux(char *buf, int ymin, int xmin, int ymax, in
                        {
                                if (a_info[artifact_index].cur_num)
                                {
-                                       int k_idx = 198;
+                                       int k_idx = lookup_kind(TV_SCROLL, SV_SCROLL_ACQUIREMENT);
                                        object_type forge;
                                        object_type *q_ptr = &forge;
 
index 7e7a478..dfc6da8 100644 (file)
@@ -1457,7 +1457,7 @@ static bool cmd_racial_power_aux(s32b command)
                                q_ptr = &forge;
 
                                /* Create the food ration */
-                               object_prep(q_ptr, 21);
+                               object_prep(q_ptr, lookup_kind(TV_FOOD, SV_FOOD_RATION));
 
                                /* Drop the object from heaven */
                                (void)drop_near(q_ptr, -1, py, px);
index cfb8b51..7c14880 100644 (file)
@@ -782,7 +782,7 @@ msg_print("
                        /* Get local object */
                        q_ptr = &forge;
 
-                       /* Prepare to make a Blade of Chaos */
+                       /* Prepare to make a prize */
                        object_prep(q_ptr, lookup_kind(k_info[arena_shouhin[p_ptr->arena_number]].tval, k_info[arena_shouhin[p_ptr->arena_number]].sval));
 
                        apply_magic(q_ptr, object_level, FALSE, FALSE, FALSE, FALSE);
@@ -969,7 +969,7 @@ msg_print("
                /* Prepare allocation table */
                get_obj_num_prep();
 
-               /* Make a great object */
+               /* Make a book */
                make_object(q_ptr, FALSE, FALSE);
 
                /* Drop it in the dungeon */
@@ -982,7 +982,7 @@ msg_print("
                /* Get local object */
                q_ptr = &forge;
 
-               /* Prepare to make a Blade of Chaos */
+               /* Prepare to make a broken sword */
                object_prep(q_ptr, lookup_kind(TV_SWORD, randint1(2)));
 
                /* Drop it in the dungeon */
@@ -1004,7 +1004,7 @@ msg_print("
                /* Prepare allocation table */
                get_obj_num_prep();
 
-               /* Make a great object */
+               /* Make a sword */
                make_object(q_ptr, FALSE, FALSE);
 
                /* Drop it in the dungeon */
@@ -1026,7 +1026,7 @@ msg_print("
                /* Prepare allocation table */
                get_obj_num_prep();
 
-               /* Make a great object */
+               /* Make a cloak */
                make_object(q_ptr, FALSE, FALSE);
 
                /* Drop it in the dungeon */
@@ -1048,7 +1048,7 @@ msg_print("
                /* Prepare allocation table */
                get_obj_num_prep();
 
-               /* Make a great object */
+               /* Make a poleweapon */
                make_object(q_ptr, FALSE, FALSE);
 
                /* Drop it in the dungeon */
@@ -1070,7 +1070,7 @@ msg_print("
                /* Prepare allocation table */
                get_obj_num_prep();
 
-               /* Make a great object */
+               /* Make a hard armor */
                make_object(q_ptr, FALSE, FALSE);
 
                /* Drop it in the dungeon */
@@ -1082,8 +1082,8 @@ msg_print("
                /* Get local object */
                q_ptr = &forge;
 
-               /* Prepare to make a Blade of Chaos */
-               object_prep(q_ptr, lookup_kind(TV_CHEST, 50));
+               /* Prepare to make a Can of Toys */
+               object_prep(q_ptr, lookup_kind(TV_CHEST, SV_CHEST_KANDUME));
 
                apply_magic(q_ptr, object_level, FALSE, FALSE, FALSE, FALSE);
 
@@ -1094,7 +1094,6 @@ msg_print("
        else
        {
                if (m_ptr->r_idx == MON_SERPENT)
-
                {
                        /* Get local object */
                        q_ptr = &forge;
@@ -1341,7 +1340,7 @@ msg_print("
        }
        if ((r_ptr->flags7 & RF7_GUARDIAN) && !p_ptr->inside_battle && (d_info[dungeon_type].final_guardian == m_ptr->r_idx))
        {
-               int k_idx = 198; /* Acquirement */;
+               int k_idx = lookup_kind(TV_SCROLL, SV_SCROLL_ACQUIREMENT); /* Acquirement */;
 
                if (d_info[dungeon_type].final_object)
                        k_idx = d_info[dungeon_type].final_object;