From 00eb125ad04ede6c896de09735e2cf77ce44c0f3 Mon Sep 17 00:00:00 2001 From: Gnome Ann <> Date: Sun, 12 Dec 2021 01:55:46 -0500 Subject: [PATCH] Allow Lua API to toggle dynamic scan --- aiserver.py | 3 +++ bridge.lua | 1 + 2 files changed, 4 insertions(+) diff --git a/aiserver.py b/aiserver.py index 5d04fdea..308e80da 100644 --- a/aiserver.py +++ b/aiserver.py @@ -1048,6 +1048,7 @@ def lua_has_setting(setting): "setwidepth", "setuseprompt", "setadventure", + "setdynamicscan", "frmttriminc", "frmtrmblln", "frmtrmspch", @@ -1069,6 +1070,7 @@ def lua_get_setting(setting): if(setting == "setwidepth"): return vars.widepth if(setting == "setuseprompt"): return vars.useprompt if(setting == "setadventure"): return vars.adventure + if(setting == "setdynamicscan"): return vars.dynamicscan if(setting == "frmttriminc"): return vars.formatoptns["frmttriminc"] if(setting == "frmtrmblln"): return vars.formatoptns["frmttriminc"] if(setting == "frmtrmspch"): return vars.formatoptns["frmttriminc"] @@ -1095,6 +1097,7 @@ def lua_set_setting(setting, v): if(setting == "setwidepth"): vars.widepth = v if(setting == "setuseprompt"): vars.useprompt = v if(setting == "setadventure"): vars.adventure = v + if(setting == "setdynamicscan"): vars.dynamicscan = v if(setting == "frmttriminc"): vars.formatoptns["frmttriminc"] = v if(setting == "frmtrmblln"): vars.formatoptns["frmttriminc"] = v if(setting == "frmtrmspch"): vars.formatoptns["frmttriminc"] = v diff --git a/bridge.lua b/bridge.lua index 0f485cc9..e4017f16 100644 --- a/bridge.lua +++ b/bridge.lua @@ -716,6 +716,7 @@ return function(_python, _bridged) ---@field setwidepth integer ---@field setuseprompt boolean ---@field setadventure boolean + ---@field setdynamicscan boolean ---@field frmttriminc boolean ---@field frmtrmblln boolean ---@field frmtrmspch boolean