From e44242ba981631c0031b6b13ff8749ee940b6413 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lilian=20J=C3=B3nsd=C3=B3ttir?= Date: Wed, 14 Oct 2020 21:01:04 -0700 Subject: [PATCH] don't really need a variable for that --- MWSE/mods/celediel/NPCsGoHome/main.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/MWSE/mods/celediel/NPCsGoHome/main.lua b/MWSE/mods/celediel/NPCsGoHome/main.lua index 3ae0ef5..b029899 100644 --- a/MWSE/mods/celediel/NPCsGoHome/main.lua +++ b/MWSE/mods/celediel/NPCsGoHome/main.lua @@ -9,9 +9,6 @@ local interop = require("celediel.NPCsGoHome.interop") -- {{{ variables and such --- for rebuilding follower list on dialogue -local followMatches = {"follow", "together", "travel", "wait", "stay"} - -- timers local updateTimer local postDialogueTimer @@ -183,7 +180,7 @@ eventFunctions.onInfoResponse = function(e) -- what that dialogue option triggers; this will catch AIFollow commands 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 -- wait until game time restarts, and don't set multiple timers if not postDialogueTimer or postDialogueTimer.state ~= timer.active then