diff --git a/src/game/building_factory.cr b/src/game/building_factory.cr index a951d25..5eeed31 100644 --- a/src/game/building_factory.cr +++ b/src/game/building_factory.cr @@ -15,7 +15,7 @@ module Game Building.new Building::Type::CrystalMiner, **{ shortcut: "miner", construction: Construction.new( - ts: 10, + ts: 30, cost: ResourceBag.new, requirements: [] of Game::Building::Type ), @@ -31,7 +31,7 @@ module Game Building.new Building::Type::CrystalRestorer, **{ shortcut: "rest", construction: Construction.new( - ts: 30, + ts: 45, cost: ResourceBag.new({ Resource::Type::Crystals => 100, }), diff --git a/src/game/command.cr b/src/game/command.cr index db6f3b0..fef0ec0 100644 --- a/src/game/command.cr +++ b/src/game/command.cr @@ -25,6 +25,7 @@ module Game raise InvalidPlaceForBuilding.new end # @todo check requirements + world.resources.dec construction.cost world.map.set(ConstructionSiteTile.new(@point)) construction.ts end