From d1d25ce4f3b5c66d7ae4f5f7dac85f3d0eb9f178 Mon Sep 17 00:00:00 2001 From: Chr1Z93 Date: Fri, 20 Oct 2023 00:01:46 +0200 Subject: [PATCH] reset highlighted locations --- src/core/PlayArea.ttslua | 1 + src/core/VictoryDisplay.ttslua | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/PlayArea.ttslua b/src/core/PlayArea.ttslua index 453de993..e35e5243 100644 --- a/src/core/PlayArea.ttslua +++ b/src/core/PlayArea.ttslua @@ -581,6 +581,7 @@ end -- count victory points on locations in play area ---@return. Returns the total amount of VP found in the play area function countVP() + countedVP = {} local totalVP = 0 for cardId, metadata in pairs(locations) do diff --git a/src/core/VictoryDisplay.ttslua b/src/core/VictoryDisplay.ttslua index c4c95a0e..404f8cdd 100644 --- a/src/core/VictoryDisplay.ttslua +++ b/src/core/VictoryDisplay.ttslua @@ -212,8 +212,7 @@ end function highlightMissingData() self.editButton({ index = 3, - tooltip = (highlightMissing and "Enable" or "Disable") .. - " highlighting of cards without metadata (VP on these is not counted)." + tooltip = (highlightMissing and "Enable" or "Disable") .. " highlighting of cards without metadata (VP on these is not counted)." }) for _, obj in pairs(missingData) do if obj ~= nil then