diff --git a/main.lua b/main.lua index 65d953b..76a1376 100644 --- a/main.lua +++ b/main.lua @@ -8,7 +8,7 @@ DEBUG = true STATE = { properties = { population = 0, money = 40 }, buildings = { - { x = 1, y = 1, building = "large_office" }, + { x = 1, y = 1, building = "small_park" }, }, hand = {}, diff --git a/scripts/gameobjects/buildings.lua b/scripts/gameobjects/buildings.lua index 28676a5..8de0e0f 100644 --- a/scripts/gameobjects/buildings.lua +++ b/scripts/gameobjects/buildings.lua @@ -137,7 +137,7 @@ buildings.large_office = { { type = "resource", resource = "work", - value = -10, + value = -2, }, { type = "resource", @@ -158,7 +158,6 @@ buildings.large_office = { }, }, }, - }, } buildings.tech_office = { @@ -204,12 +203,12 @@ buildings.medium_residential = { { type = "resource", resource = "housing", - value = 8, + value = 10, }, { type = "resource", resource = "power", - value = -3, + value = -2, }, }, } @@ -219,11 +218,7 @@ buildings.small_park = { size = { x = 1, y = 1 }, asset = "small_park", effects = { - { - type = "resource", - resource = "money_per_turn", - value = -1, - }, + { type = "adjacent", filter = { @@ -305,7 +300,37 @@ buildings.casino = { name = "Casino", size = { x = 1, y = 1 }, asset = "casino", - effects = {}, + effects = { + { + type = "resource", + resource = "money_per_turn", + value = 2, + }, + { + type = "resource", + resource = "relaxation", + value = 5, + }, + { + type = "resource", + resource = "power", + value = -10, + }, + { + type = "adjacent", + filter = { + "small_residential", + "medium_residential", + }, + effects = { + { + type = "resource", + resource = "nuisance", + value = 15, + }, + }, + }, + } } buildings.industrial_1 = { @@ -313,21 +338,73 @@ buildings.industrial_1 = { name = "Steel mill", size = { x = 1, y = 1 }, asset = "steelmill", - effects = {}, + effects = { + { + type = "resource", + resource = "money_per_turn", + value = 1, + }, + { + type = "resource", + resource = "work", + value = -12, + }, + { + type = "resource", + resource = "power", + value = -10, + }, + }, } buildings.industrial_2 = { - name = "Factory", + name = "Steel mill", size = { x = 1, y = 1 }, - asset = "factory", - effects = {}, + asset = "steelmill", + effects = { + { + type = "resource", + resource = "money_per_turn", + value = 2, + }, + { + type = "resource", + resource = "work", + value = -10, + }, + { + type = "resource", + resource = "power", + value = -20, + }, + { + type = "adjacent", + filter = { + "small_generator", + "medium_generator", + }, + effects = { + { + type = "resource", + resource = "work", + value = -5, + }, + }, + }, + }, } buildings.start = { -- name = "Start", size = { x = 1, y = 1 }, asset = "start", - effects = {}, + effects = { + { + type = "resource", + resource = "money_per_turn", + value = 1, + }, + }, } for k, v in pairs(buildings) do diff --git a/scripts/gameobjects/cards.lua b/scripts/gameobjects/cards.lua index 215a34f..89784b4 100644 --- a/scripts/gameobjects/cards.lua +++ b/scripts/gameobjects/cards.lua @@ -202,11 +202,11 @@ cards.industrial_1 = { effects = { { type = "add_card", - card = "industrial_2", + card = "industrial_1", }, { type = "place_building", - building = "industrial_1", + building = "industrial_2", }, }, requirements = {}, @@ -219,7 +219,7 @@ cards.industrial_2 = { effects = { { type = "place_building", - building = "industrial_2", + building = "industrial_1", } }, requirements = {},