OSDN Git Service

地形変化で深い溶岩に変わった場合に溶岩と周囲8マスが光るように変更.
authornothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Mon, 26 May 2003 22:38:15 +0000 (22:38 +0000)
committernothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Mon, 26 May 2003 22:38:15 +0000 (22:38 +0000)
src/cave.c

index a139c59..c415d51 100644 (file)
@@ -4611,6 +4611,28 @@ void cave_set_feat(int y, int x, int feat)
        /* Change the feature */
        c_ptr->feat = feat;
 
+       /* Hack -- glow the deep lava */
+       if (feat == FEAT_DEEP_LAVA)
+       {
+               int i, yy, xx;
+
+               for (i = 0; i < 9; i++)
+               {
+                       yy = y + ddy_ddd[i];
+                       xx = x + ddx_ddd[i];
+                       if (!in_bounds2(yy, xx)) continue;
+                       cave[yy][xx].info |= CAVE_GLOW;
+                       if (player_has_los_bold(yy, xx))
+                       {
+                               /* Notice */
+                               note_spot(yy, xx);
+
+                               /* Redraw */
+                               lite_spot(yy, xx);
+                       }
+               }
+       }
+
        /* Notice */
        note_spot(y, x);