Scale the bottom controls and confirm editable construction plans
This commit is contained in:
1 parent
73a91a066d
commit
2a71ed6242
10 files changed
+438
-133
No files matched your search
@@ -337,6 +337,14 @@ bool World::can_place_cabin(GridPosition position) const noexcept {
|
||||
std::none_of(production_orders_.begin(), production_orders_.end(), occupies_cell);
|
||||
}
|
||||
|
||||
std::array<ItemStack, 2> World::construction_materials(RecipeId recipe, BedBase base) const {
|
||||
if (recipe == RecipeId::BuildBed && staged_beds_) {
|
||||
return {ItemStack{base == BedBase::Stone ? ItemType::Stone : ItemType::Wood, 1},
|
||||
ItemStack{ItemType::Cloth, 2}};
|
||||
}
|
||||
return is_construction(recipe) ? recipe_for(recipe).ingredients : std::array<ItemStack, 2>{};
|
||||
}
|
||||
|
||||
void World::queue_cabin(GridPosition position, GridPosition sawmill, GridPosition stonecutter) {
|
||||
if (!can_place_cabin(position) || position == sawmill || position == stonecutter ||
|
||||
(scenario_active_ && position == scenario_sawmill_)) {
|
||||
|
||||
Reference in new issue
Block a user