diff options
author | Brendan Hickey <brendan@bhickey.net> | 2012-09-16 09:50:22 -0700 |
---|---|---|
committer | Brendan Hickey <brendan@bhickey.net> | 2012-12-30 19:06:14 -0800 |
commit | e4a81535766709e9e1941ce4300b8206291e6f11 (patch) | |
tree | 8641a514a740fad24d3e911bd462a41cdbc8704a /crawl-ref/source/dgn-proclayouts.cc | |
parent | 5d9c6d73e9a3d76013b3d9c535dbfbf4d0e9ccb9 (diff) | |
download | crawl-ref-e4a81535766709e9e1941ce4300b8206291e6f11.tar.gz crawl-ref-e4a81535766709e9e1941ce4300b8206291e6f11.zip |
Calm down, Abyss!
Diffstat (limited to 'crawl-ref/source/dgn-proclayouts.cc')
-rw-r--r-- | crawl-ref/source/dgn-proclayouts.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/dgn-proclayouts.cc b/crawl-ref/source/dgn-proclayouts.cc index 731709eba9..6073d1c743 100644 --- a/crawl-ref/source/dgn-proclayouts.cc +++ b/crawl-ref/source/dgn-proclayouts.cc @@ -110,17 +110,17 @@ RiverLayout::operator()(const coord_def &p, const uint32_t offset) const { const int periodicity = 100; const int baseWidth = 12; - const double scale = 10000; + const double scale = 20000; worley::noise_datum n = - worley::noise(p.x/100.0, p.y/1000.0, offset / 1000.0 + seed); + worley::noise(p.x/100.0, p.y/1000.0, offset / scale + seed); if ((n.id[0] + n.id[1]) % 6 || p.x % periodicity > baseWidth * 2) { int cp = offset + _get_changepoint(n, scale); ProceduralSample sample = layout(p, offset); return _maybe_set_changepoint(sample, cp); } - int xi = p.x + perlin::noise(p.x/4.0, p.y/4.0, offset / 1000.0) * 6; - int yi = p.y + perlin::noise(p.x/4.0 + 31., p.y/4.0 + 17., offset / 1000.0) * 10; + int xi = p.x + perlin::noise(p.x/4.0, p.y/4.0, offset / scale) * 6; + int yi = p.y + perlin::noise(p.x/4.0 + 31., p.y/4.0 + 17., offset / scale) * 10; int x = xi + sin(yi / 6.0) * 7; int width = baseWidth + perlin::noise(p.x/5.0, p.y/5.0, seed) * 6; if (x % periodicity < width) @@ -133,7 +133,7 @@ RiverLayout::operator()(const coord_def &p, const uint32_t offset) const if ((x + 4) % periodicity < width + 8) { dungeon_feature_type feat = DNGN_FLOOR; - if (!(hash3(xi, yi, seed) % 20)) + if (!(hash3(xi, yi, seed) % 23)) feat = DNGN_MANGROVE; return ProceduralSample(p, feat, offset + 1); } |