OSDN Git Service

[Refactor] #37353 コメント整理。 / Refactor comments, (Duplicated meaning "Prepare allocatio...
[hengband/hengband.git] / src / rooms-special.c
index 37c732e..8667231 100644 (file)
@@ -3,14 +3,8 @@
 #include "generate.h"\r
 #include "rooms.h"\r
 #include "monsterrace-hook.h"\r
+#include "objectkind-hook.h"\r
 \r
-/*\r
- * Hack -- determine if a template is potion\r
- */\r
-static bool kind_is_potion(KIND_OBJECT_IDX k_idx)\r
-{\r
-       return k_info[k_idx].tval == TV_POTION;\r
-}\r
 \r
 /*!\r
 * @brief タイプ15の部屋…ガラス部屋の生成 / Type 15 -- glass rooms\r
@@ -78,8 +72,6 @@ bool build_type15(void)
        case 1: /* 4 lite breathers + potion */\r
        {\r
                int dir1, dir2;\r
-\r
-               /* Prepare allocation table */\r
                get_mon_num_prep(vault_aux_lite, NULL);\r
 \r
                /* Place fixed lite berathers */\r
@@ -147,8 +139,6 @@ bool build_type15(void)
                c_ptr = &cave[y2 - 1][x2 - 1];\r
                place_inner_grid(c_ptr);\r
                c_ptr->feat = feat_glass_wall;\r
-\r
-               /* Prepare allocation table */\r
                get_mon_num_prep(vault_aux_lite, NULL);\r
 \r
                r_idx = get_mon_num(dun_level);\r
@@ -182,7 +172,7 @@ bool build_type15(void)
 \r
        case 3: /* 4 shards breathers + 2 potions */\r
        {\r
-               int dir1;\r
+               DIRECTION dir1;\r
 \r
                /* Walls around the potion */\r
                for (y = yval - 2; y <= yval + 2; y++)\r
@@ -209,8 +199,6 @@ bool build_type15(void)
                        place_inner_grid(c_ptr);\r
                        c_ptr->feat = feat_glass_wall;\r
                }\r
-\r
-               /* Prepare allocation table */\r
                get_mon_num_prep(vault_aux_shards, NULL);\r
 \r
                /* Place shard berathers */\r