OSDN Git Service

ダンジョンの外壁を永久岩で生成するオプションbound_walls_permを作成.
authornothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Fri, 13 Jun 2003 12:33:09 +0000 (12:33 +0000)
committernothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Fri, 13 Jun 2003 12:33:09 +0000 (12:33 +0000)
初期値はFALSE. 3ページに入れた.

lib/help/joption.txt
lib/pref/pref-opt.prf
src/externs.h
src/generate.c
src/tables.c
src/variable.c

index 2b57e9f..29e8ba1 100644 (file)
@@ -398,6 +398,14 @@ MP
     ¤Ä²ÄǽÀ­¤¬¤¢¤ê¤Þ¤¹¡£Ãæ¤Ë¤Ï¿¿¤Ã°Å¤Ê¥¢¥ê¡¼¥Ê¥ì¥Ù¥ë¤â¤¢¤ê¤Þ¤¹¤¬¡¢Ä̾ï
     ¤ÏÌÀ¤ë¤¯¾È¤é¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
 
+***** <bound_walls_perm>
+¥À¥ó¥¸¥ç¥ó¤Î³°Êɤò±Êµ×´ä¤Ë¤¹¤ë  [bound_walls_perm]
+    ¥À¥ó¥¸¥ç¥ó¤Î³°ÊɤϳƥÀ¥ó¥¸¥ç¥ó¤Ç°Û¤Ê¤Ã¤¿³°¸«¤ò¼¨¤·¤Þ¤¹¤¬¡¢¤½¤ì°Ê¾å
+    Àè¤Ë¿Ê¤á¤Ê¤¤¶­³¦¤Ï¤¢¤ê¤Þ¤¹¡£¤³¤Î¥ª¥×¥·¥ç¥ó¤òON¤Ë¤¹¤ë¤È¡¢¤½¤Î¤è¤¦¤Ê
+    ¶­³¦¤¬ÌÀ¼¨Åª¤Ê³°ÊɤȤʤꡢ±Êµ×´ä¤ÇÀ¸À®¤µ¤ì¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£°ìÉô¤Î
+    ËâË¡¤Ç¤Ï¶­³¦¤¬¾²¤Ë¸«¤¨¤Æ¤¤¤ì¤Ð¾²¤Ç¤¢¤ë¤è¤¦¤Ë°·¤ï¤ì¤Þ¤¹¡£¤³¤Î¥ª¥×
+    ¥·¥ç¥ó¤ÎÀßÄê¤Ï¼¡¤Î¿·¤·¤¤¥À¥ó¥¸¥ç¥óÀ¸À®¤«¤éÍ­¸ú¤Ë¤Ê¤ê¤Þ¤¹¡£
+
 ***** <last_words>
 ¥­¥ã¥é¥¯¥¿¡¼¤¬»à¤ó¤À»þ°ä¸À¤ò¤Î¤³¤¹  [last_words]
     ¥­¥ã¥é¥¯¥¿¤¬»à¤ó¤À¤È¤­¡¢'death.txt'¤«¤é¥é¥ó¥À¥à¤Ë°ì¹ÔÁª¤ó¤Çɽ¼¨¤·¡¢
index aa876fd..7ea9fc1 100644 (file)
@@ -68,6 +68,7 @@ X:view_unsafe_grids
 Y:small_levels
 X:always_small_levels
 Y:empty_levels
+X:bound_walls_perm
 Y:last_words
 Y:send_score
 X:allow_debug_opts
index 7d94d4c..7c0fb88 100644 (file)
@@ -289,6 +289,7 @@ extern bool over_exert;
 extern bool small_levels;
 extern bool always_small_levels;
 extern bool empty_levels;
+extern bool bound_walls_perm;
 extern bool player_symbols;
 extern bool equippy_chars;
 extern bool use_command;
index dac60fe..e54d345 100644 (file)
@@ -994,13 +994,13 @@ static bool cave_gen(void)
                cave_type *c_ptr = &cave[0][x];
 
                /* Set boundary mimic and add "solid" perma-wall */
-               c_ptr->mimic = f_info[c_ptr->feat].mimic;
+               c_ptr->mimic = bound_walls_perm ? 0 : f_info[c_ptr->feat].mimic;
                c_ptr->feat = FEAT_PERM_SOLID;
 
                c_ptr = &cave[cur_hgt - 1][x];
 
                /* Set boundary mimic and add "solid" perma-wall */
-               c_ptr->mimic = f_info[c_ptr->feat].mimic;
+               c_ptr->mimic = bound_walls_perm ? 0 : f_info[c_ptr->feat].mimic;
                c_ptr->feat = FEAT_PERM_SOLID;
        }
 
@@ -1010,13 +1010,13 @@ static bool cave_gen(void)
                cave_type *c_ptr = &cave[y][0];
 
                /* Set boundary mimic and add "solid" perma-wall */
-               c_ptr->mimic = f_info[c_ptr->feat].mimic;
+               c_ptr->mimic = bound_walls_perm ? 0 : f_info[c_ptr->feat].mimic;
                c_ptr->feat = FEAT_PERM_SOLID;
 
                c_ptr = &cave[y][cur_wid - 1];
 
                /* Set boundary mimic and add "solid" perma-wall */
-               c_ptr->mimic = f_info[c_ptr->feat].mimic;
+               c_ptr->mimic = bound_walls_perm ? 0 : f_info[c_ptr->feat].mimic;
                c_ptr->feat = FEAT_PERM_SOLID;
        }
 
index 1cb0261..d5b19aa 100644 (file)
@@ -6905,6 +6905,15 @@ option_type option_info[] =
 
 
 #ifdef JP
+       { &bound_walls_perm,            FALSE,  3, 2, 1,
+       "bound_walls_perm",             "¥À¥ó¥¸¥ç¥ó¤Î³°Êɤò±Êµ×´ä¤Ë¤¹¤ë" },
+#else
+       { &bound_walls_perm,            FALSE,  3, 2, 1,
+       "bound_walls_perm",             "Boundary walls are created by permanent wall" },
+#endif
+
+
+#ifdef JP
        { &last_words,                  TRUE, 3, 0, 28,
        "last_words",                   "¥­¥ã¥é¥¯¥¿¡¼¤¬»à¤ó¤À»þ°ä¸À¤ò¤Î¤³¤¹" },
 #else
index 8727d8a..2be8d11 100644 (file)
@@ -223,6 +223,7 @@ bool over_exert;
 bool small_levels;             /* Allow unusually small dungeon levels */
 bool always_small_levels;              /* Use always unusually small dungeon levels */
 bool empty_levels;             /* Allow empty 'arena' levels */
+bool bound_walls_perm;         /* Boundary walls are created by permanent wall */
 bool player_symbols;           /* Use varying symbols for the player char */
 bool equippy_chars;            /* Back by popular demand... */
 bool display_mutations;                /* Skip mutations screen even if we have it */