diff --git a/scripts/gameobjects/buildings.lua b/scripts/gameobjects/buildings.lua index cead2a8..968c4cf 100644 --- a/scripts/gameobjects/buildings.lua +++ b/scripts/gameobjects/buildings.lua @@ -228,7 +228,11 @@ buildings.university = { name = "University", size = { x = 1, y = 1 }, asset = "university", - effects = {}, + effects = { { + type = "resource", + resource = "draw", + value = 1, + },}, } buildings.casino = { diff --git a/scripts/helpers/gamerules.lua b/scripts/helpers/gamerules.lua index 73b722e..51a184a 100644 --- a/scripts/helpers/gamerules.lua +++ b/scripts/helpers/gamerules.lua @@ -99,12 +99,7 @@ end function gamerules.getCardDraw(state) local c = 3 - for _, building in ipairs(state.buildings) do - if building.building == "university" then - c = c + 1 - end - end - return c + return c + gamerules.getTotalResource(state, "draw") end function gamerules.getMoneyPerTurn(state)