Fix buildings
This commit is contained in:
parent
fe7fdb7858
commit
c87db2496e
@ -15,7 +15,7 @@ module Game
|
|||||||
Building.new Building::Type::CrystalMiner, **{
|
Building.new Building::Type::CrystalMiner, **{
|
||||||
shortcut: "miner",
|
shortcut: "miner",
|
||||||
construction: Construction.new(
|
construction: Construction.new(
|
||||||
ts: 10,
|
ts: 30,
|
||||||
cost: ResourceBag.new,
|
cost: ResourceBag.new,
|
||||||
requirements: [] of Game::Building::Type
|
requirements: [] of Game::Building::Type
|
||||||
),
|
),
|
||||||
@ -31,7 +31,7 @@ module Game
|
|||||||
Building.new Building::Type::CrystalRestorer, **{
|
Building.new Building::Type::CrystalRestorer, **{
|
||||||
shortcut: "rest",
|
shortcut: "rest",
|
||||||
construction: Construction.new(
|
construction: Construction.new(
|
||||||
ts: 30,
|
ts: 45,
|
||||||
cost: ResourceBag.new({
|
cost: ResourceBag.new({
|
||||||
Resource::Type::Crystals => 100,
|
Resource::Type::Crystals => 100,
|
||||||
}),
|
}),
|
||||||
|
@ -25,6 +25,7 @@ module Game
|
|||||||
raise InvalidPlaceForBuilding.new
|
raise InvalidPlaceForBuilding.new
|
||||||
end
|
end
|
||||||
# @todo check requirements
|
# @todo check requirements
|
||||||
|
world.resources.dec construction.cost
|
||||||
world.map.set(ConstructionSiteTile.new(@point))
|
world.map.set(ConstructionSiteTile.new(@point))
|
||||||
construction.ts
|
construction.ts
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user