OSDN Git Service

NO_CAVEダンジョンではランダムvaultのうち泡, 洞窟, エレメンタルvaultを
authornothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sun, 30 May 2004 13:25:47 +0000 (13:25 +0000)
committernothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sun, 30 May 2004 13:25:47 +0000 (13:25 +0000)
出さないように変更.

src/rooms.c

index b6bc830..8b03b3e 100644 (file)
@@ -5345,9 +5345,19 @@ static bool build_type10(void)
 
        /* Select type of vault */
 #ifdef ALLOW_CAVERNS_AND_LAKES
-       vtype = randint1(15);
+       do
+       {
+               vtype = randint1(15);
+       }
+       while ((d_info[dungeon_type].flags1 & DF1_NO_CAVE) &&
+               ((vtype == 1) || (vtype == 3) || (vtype == 8) || (vtype == 9) || (vtype == 11)));
 #else /* ALLOW_CAVERNS_AND_LAKES */
-       vtype = randint1(7);
+       do
+       {
+               vtype = randint1(7);
+       }
+       while ((d_info[dungeon_type].flags1 & DF1_NO_CAVE) &&
+               ((vtype == 1) || (vtype == 3)));
 #endif /* ALLOW_CAVERNS_AND_LAKES */
 
        switch (vtype)