Added option check to skill tracker resetting

This commit is contained in:
Chr1Z93 2024-06-07 23:33:07 +02:00
parent 1621be3594
commit a36287212e

View File

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