summaryrefslogtreecommitdiff
path: root/src/game/worldgen.cpp
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2017-12-16 17:09:34 +0100
committerPaweł Redman <pawel.redman@gmail.com>2017-12-16 17:09:34 +0100
commitd0061c0c66133267ed38aec41a97541c047a5c1a (patch)
tree67ff1622c20612d1ee7682625bc8e68df5ed3b2d /src/game/worldgen.cpp
parent3f4e91d450bc79f1551f1c324bf5f6a5009cc25a (diff)
Add nests (as decorations for now).
Diffstat (limited to 'src/game/worldgen.cpp')
-rw-r--r--src/game/worldgen.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/worldgen.cpp b/src/game/worldgen.cpp
index 74a07c7..01b05ca 100644
--- a/src/game/worldgen.cpp
+++ b/src/game/worldgen.cpp
@@ -12,7 +12,9 @@ void add_decoration(world_t *world, state_t *game, v2f_t x, float noise)
if (noise < 0.3)
return;
- if (noise > 0.45)
+ if (noise > 0.5)
+ type = DECO_NEST;
+ else if (noise > 0.40)
type = DECO_EYETHING;
else if (noise > 0.35)
type = DECO_STONE;