変愚蛮怒のメインリポジトリです
Revision | 5ce97277436de34c32b6807932e5e14fd6a60f4f (tree) |
---|---|
Time | 2003-05-27 07:38:15 |
Author | nothere <nothere@0568...> |
Commiter | nothere |
地形変化で深い溶岩に変わった場合に溶岩と周囲8マスが光るように変更.
@@ -4611,6 +4611,28 @@ void cave_set_feat(int y, int x, int feat) | ||
4611 | 4611 | /* Change the feature */ |
4612 | 4612 | c_ptr->feat = feat; |
4613 | 4613 | |
4614 | + /* Hack -- glow the deep lava */ | |
4615 | + if (feat == FEAT_DEEP_LAVA) | |
4616 | + { | |
4617 | + int i, yy, xx; | |
4618 | + | |
4619 | + for (i = 0; i < 9; i++) | |
4620 | + { | |
4621 | + yy = y + ddy_ddd[i]; | |
4622 | + xx = x + ddx_ddd[i]; | |
4623 | + if (!in_bounds2(yy, xx)) continue; | |
4624 | + cave[yy][xx].info |= CAVE_GLOW; | |
4625 | + if (player_has_los_bold(yy, xx)) | |
4626 | + { | |
4627 | + /* Notice */ | |
4628 | + note_spot(yy, xx); | |
4629 | + | |
4630 | + /* Redraw */ | |
4631 | + lite_spot(yy, xx); | |
4632 | + } | |
4633 | + } | |
4634 | + } | |
4635 | + | |
4614 | 4636 | /* Notice */ |
4615 | 4637 | note_spot(y, x); |
4616 | 4638 |