Only log about dialogue if timer is inactive
This commit is contained in:
parent
f8c699ca1e
commit
15df5dacd7
|
@ -92,9 +92,9 @@ eventFunctions.onInfoResponse = function(e)
|
||||||
|
|
||||||
for _, item in pairs(followMatches) do
|
for _, item in pairs(followMatches) do
|
||||||
if command:match(item) or dialogue:match(item) then
|
if command:match(item) or dialogue:match(item) then
|
||||||
log("Found %s in dialogue, rebuilding followers", item)
|
|
||||||
-- wait until game time restarts, and don't set multiple timers
|
-- wait until game time restarts, and don't set multiple timers
|
||||||
if not postDialogueTimer or postDialogueTimer.state ~= timer.active then
|
if not postDialogueTimer or postDialogueTimer.state ~= timer.active then
|
||||||
|
log("Found %s in dialogue, rebuilding followers", item)
|
||||||
postDialogueTimer = timer.start({
|
postDialogueTimer = timer.start({
|
||||||
type = timer.simulate,
|
type = timer.simulate,
|
||||||
duration = 0.5,
|
duration = 0.5,
|
||||||
|
|
Loading…
Reference in a new issue