OSDN Git Service

アリーナに限りGLOW地形とその周辺でも暗黒属性で暗くなるように変更. こ
authornothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sun, 21 Dec 2003 17:58:39 +0000 (17:58 +0000)
committernothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sun, 21 Dec 2003 17:58:39 +0000 (17:58 +0000)
れにより, アリーナでの忍者の最初の行動が暗闇生成の場合に不利にならな
いようにした.

src/spells1.c
src/spells2.c

index 54448a7..43a49cd 100644 (file)
@@ -1064,24 +1064,27 @@ static bool project_f(int who, int r, int y, int x, int dam, int typ)
                        /* Turn off the light. */
                        if (do_dark)
                        {
-                               for (j = 0; j < 9; j++)
+                               if (!p_ptr->inside_arena)
                                {
-                                       int by = y + ddy_ddd[j];
-                                       int bx = x + ddx_ddd[j];
-
-                                       if (in_bounds2(by, bx))
+                                       for (j = 0; j < 9; j++)
                                        {
-                                               cave_type *cc_ptr = &cave[by][bx];
+                                               int by = y + ddy_ddd[j];
+                                               int bx = x + ddx_ddd[j];
 
-                                               if (have_flag(f_info[get_feat_mimic(cc_ptr)].flags, FF_GLOW))
+                                               if (in_bounds2(by, bx))
                                                {
-                                                       do_dark = FALSE;
-                                                       break;
+                                                       cave_type *cc_ptr = &cave[by][bx];
+
+                                                       if (have_flag(f_info[get_feat_mimic(cc_ptr)].flags, FF_GLOW))
+                                                       {
+                                                               do_dark = FALSE;
+                                                               break;
+                                                       }
                                                }
                                        }
-                               }
 
-                               if (!do_dark) break;
+                                       if (!do_dark) break;
+                               }
 
                                c_ptr->info &= ~(CAVE_GLOW);
 
index 376b99a..ced3f72 100644 (file)
@@ -6107,24 +6107,27 @@ static void cave_temp_room_unlite(void)
                /* Darken the grid */
                if (do_dark)
                {
-                       for (j = 0; j < 9; j++)
+                       if (!p_ptr->inside_arena)
                        {
-                               int by = y + ddy_ddd[j];
-                               int bx = x + ddx_ddd[j];
-
-                               if (in_bounds2(by, bx))
+                               for (j = 0; j < 9; j++)
                                {
-                                       cave_type *cc_ptr = &cave[by][bx];
+                                       int by = y + ddy_ddd[j];
+                                       int bx = x + ddx_ddd[j];
 
-                                       if (have_flag(f_info[get_feat_mimic(cc_ptr)].flags, FF_GLOW))
+                                       if (in_bounds2(by, bx))
                                        {
-                                               do_dark = FALSE;
-                                               break;
+                                               cave_type *cc_ptr = &cave[by][bx];
+
+                                               if (have_flag(f_info[get_feat_mimic(cc_ptr)].flags, FF_GLOW))
+                                               {
+                                                       do_dark = FALSE;
+                                                       break;
+                                               }
                                        }
                                }
-                       }
 
-                       if (!do_dark) continue;
+                               if (!do_dark) continue;
+                       }
 
                        c_ptr->info &= ~(CAVE_GLOW);