don't really need a variable for that

This commit is contained in:
Lilian Jónsdóttir 2020-10-14 21:01:04 -07:00
parent 9294eccdd5
commit e44242ba98

View file

@ -9,9 +9,6 @@ local interop = require("celediel.NPCsGoHome.interop")
-- {{{ variables and such -- {{{ variables and such
-- for rebuilding follower list on dialogue
local followMatches = {"follow", "together", "travel", "wait", "stay"}
-- timers -- timers
local updateTimer local updateTimer
local postDialogueTimer local postDialogueTimer
@ -183,7 +180,7 @@ eventFunctions.onInfoResponse = function(e)
-- what that dialogue option triggers; this will catch AIFollow commands -- what that dialogue option triggers; this will catch AIFollow commands
local command = e.command:lower() local command = e.command:lower()
for _, item in pairs(followMatches) do for _, item in pairs({"follow", "together", "travel", "wait", "stay"}) do
if command:match(item) or dialogue:match(item) then if command:match(item) or dialogue:match(item) then
-- 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