Increase consider timeout

main
AreiaAard 4 years ago
parent 19a855fb1d
commit 6a11a45d96

@ -11,7 +11,7 @@
save_state="y" save_state="y"
date_written="2021-04-11 21:00:00" date_written="2021-04-11 21:00:00"
requires="5.06" requires="5.06"
version="1.11" version="1.12"
> >
<description trim="y"> <description trim="y">
<![CDATA[ <![CDATA[
@ -498,6 +498,7 @@ function Consider.initialize()
) )
SetTriggerOption("trigger_consider_mob_end", "group", "trigger_group_consider_mobs") SetTriggerOption("trigger_consider_mob_end", "group", "trigger_group_consider_mobs")
Consider.TIMEOUT = 30
Consider.KEYWORDS_TO_IGNORE = {["a"] = true, ["an"] = true, ["and"] = true, Consider.KEYWORDS_TO_IGNORE = {["a"] = true, ["an"] = true, ["and"] = true,
["but"] = true, ["for"] = true, ["in"] = true, ["nor"] = true, ["but"] = true, ["for"] = true, ["in"] = true, ["nor"] = true,
["of"] = true, ["on"] = true, ["or"] = true, ["so"] = true, ["some"] = true, ["of"] = true, ["on"] = true, ["or"] = true, ["so"] = true, ["some"] = true,
@ -528,7 +529,7 @@ function Consider.start()
end end
function Consider.start_CR() function Consider.start_CR()
local line = wait.regexp("^\\{consider\\}$", 4, trigger_flag.OmitFromOutput) local line = wait.regexp("^\\{consider\\}$", Consider.TIMEOUT, trigger_flag.OmitFromOutput)
if (not line) then if (not line) then
Utility.print("@RTimeout@w. Failed to obtain consider output.") Utility.print("@RTimeout@w. Failed to obtain consider output.")
return return

Loading…
Cancel
Save