summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-04-17 17:50:52 +0200
committermadmaxoft <github@xoft.cz>2014-04-17 17:50:52 +0200
commitafb20132fe966efa1b90ee9497b6881a5b8df25c (patch)
treeb6f6f4ce6f0803846e335d7127c8d0ae49f950cf
parentPrefabs can have per-piece per-placement weights. (diff)
downloadcuberite-afb20132fe966efa1b90ee9497b6881a5b8df25c.tar
cuberite-afb20132fe966efa1b90ee9497b6881a5b8df25c.tar.gz
cuberite-afb20132fe966efa1b90ee9497b6881a5b8df25c.tar.bz2
cuberite-afb20132fe966efa1b90ee9497b6881a5b8df25c.tar.lz
cuberite-afb20132fe966efa1b90ee9497b6881a5b8df25c.tar.xz
cuberite-afb20132fe966efa1b90ee9497b6881a5b8df25c.tar.zst
cuberite-afb20132fe966efa1b90ee9497b6881a5b8df25c.zip
Diffstat (limited to '')
-rw-r--r--src/Generating/Prefab.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/Generating/Prefab.cpp b/src/Generating/Prefab.cpp
index b1964e2a0..69bea69e8 100644
--- a/src/Generating/Prefab.cpp
+++ b/src/Generating/Prefab.cpp
@@ -91,7 +91,19 @@ static const cPrefab::sDef g_TestPrefabDef =
7, /* 1, 2, 3 CCW rotations */
// Merge strategy:
- cBlockArea::msImprint
+ cBlockArea::msImprint,
+
+ // ShouldExtendFloor:
+ false,
+
+ // DefaultWeight:
+ 10,
+
+ // DepthWeight:
+ "",
+
+ // AddWeightIfSame:
+ 1000,
};
static cPrefab g_TestPrefab(g_TestPrefabDef);