don't touch playmats at all if option is disabled

This commit is contained in:
Chr1Z93 2024-06-08 00:15:28 +02:00
parent a36287212e
commit 57db06c708

View File

@ -133,18 +133,16 @@ end
--------------------------------------------------------- ---------------------------------------------------------
function updateCounters() function updateCounters()
if not options["tidyPlayermats"] then return end
playmatApi.updateCounter("All", "ResourceCounter", 5) playmatApi.updateCounter("All", "ResourceCounter", 5)
playmatApi.updateCounter("All", "ClickableClueCounter", 0) playmatApi.updateCounter("All", "ClickableClueCounter", 0)
playmatApi.resetSkillTracker("All")
for i = 1, 4 do for i = 1, 4 do
playmatApi.updateCounter(COLORS[i], "DamageCounter", RESET_VALUES.Damage[i]) playmatApi.updateCounter(COLORS[i], "DamageCounter", RESET_VALUES.Damage[i])
playmatApi.updateCounter(COLORS[i], "HorrorCounter", RESET_VALUES.Horror[i]) playmatApi.updateCounter(COLORS[i], "HorrorCounter", RESET_VALUES.Horror[i])
end end
-- reset skill trackers (but only if option is enabled)
if options["tidyPlayermats"] then
playmatApi.resetSkillTracker("All")
end
end end
-- reset doom on agenda -- reset doom on agenda