Compile selectable colony rules into real bed construction recipes
This commit is contained in:
1 parent
60154bd5f0
commit
275956395d
11 files changed
+544
-9
No files matched your search
@@ -5,9 +5,9 @@
|
||||
|
||||
namespace settlement {
|
||||
|
||||
std::unique_ptr<World> make_first_colony(std::size_t workers) {
|
||||
std::unique_ptr<World> make_first_colony(std::size_t workers, BedConstructionMode beds, ExecutionMode mode) {
|
||||
constexpr auto size = first_colony_map_size;
|
||||
auto world = std::make_unique<World>(2026, size, size, workers);
|
||||
auto world = std::make_unique<World>(2026, size, size, workers, mode);
|
||||
DeterministicRng terrain_rng(0x534554544C454D45ULL);
|
||||
for (int y = 2; y < size - 2; ++y) {
|
||||
for (int x = 2; x < size - 2; ++x) {
|
||||
@@ -28,7 +28,7 @@ std::unique_ptr<World> make_first_colony(std::size_t workers) {
|
||||
for (const auto position : {GridPosition{13, 14}, {14, 12}, {18, 12}, {19, 14}}) {
|
||||
static_cast<void>(world->add_resource_node(position, ItemType::Berries, 16));
|
||||
}
|
||||
world->start_scenario({15, 14});
|
||||
world->start_scenario({15, 14}, beds);
|
||||
return world;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user