Added option check to skill tracker resetting
This commit is contained in:
parent
1621be3594
commit
a36287212e
@ -135,12 +135,16 @@ end
|
|||||||
function updateCounters()
|
function updateCounters()
|
||||||
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user