Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
rhbvkleef committed Apr 23, 2018
2 parents 234fb55 + 8ee7def commit 78ebdb8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
6 changes: 5 additions & 1 deletion scripts/gameobjects/buildings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
7 changes: 1 addition & 6 deletions scripts/helpers/gamerules.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 78ebdb8

Please sign in to comment.