Skip to content

Commit

Permalink
Scoring blight and dahan will now account for number of boards (whoops)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Dolan committed Feb 8, 2021
1 parent e04a2b0 commit 9b623a1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions global-script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2832,12 +2832,13 @@ function deleteObject(obj)
end
----
function refreshScore()
local dahan = #getObjectsWithTag("Dahan")
local dahan = math.floor(#getObjectsWithTag("Dahan") / numBoards)
local blight = #getObjectsWithTag("Blight")
if SetupChecker.call("isSpiritPickable", {guid="4c061f"}) then
-- TODO figure out a more elegant solution here
blight = blight - 2
end
blight = math.floor(blight / numBoards)

local invaderDeck = getObjectFromGUID(invaderDeckZone).getObjects()[1]
local deckCount = 0
Expand Down Expand Up @@ -3309,4 +3310,4 @@ function tCompare(t1,t2)
return table.concat(newTab,"|")
end
return cc2(t1) == cc2(t2)
end
end

0 comments on commit 9b623a1

Please sign in to comment.