Fix buildings
This commit is contained in:
parent
fe7fdb7858
commit
c87db2496e
@ -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,
|
||||
}),
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user