Skip to content

Commit

Permalink
Merge pull request #18 from doc82/autoresearch_fixes_continued
Browse files Browse the repository at this point in the history
Cleanup Autoresearch Messaging
  • Loading branch information
NieldSWND authored Oct 3, 2024
2 parents 7905fcd + 9139068 commit 0932c44
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"package": "lotj-ui",
"version": "v2.3.4"
"version": "v2.3.5"
}
1 change: 1 addition & 0 deletions src/scripts/autoresearch/autoresearch.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ local subcommands = {{
args = {"start"},
action = function()
lotj.autoResearch.enabled = true
lotj.autoResearch.started = false
lotj.autoResearch.researchList = {}
lotj.autoResearch.log("Research list cleared.")

Expand Down
6 changes: 3 additions & 3 deletions src/triggers/autoresearch/autoresearch.practiceEnd.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
if lotj.autoResearch.started then
lotj.autoResearch.log("You are already researching..", true)
if lotj.autoResearch.enabled and lotj.autoResearch.started then
lotj.autoResearch.log("You are already researching, or interrupted your previous session.", true)
lotj.autoResearch.log("You can either type 'autoresearch next' to continue researching from where you left off, OR Type 'autoresearch start' to re-calculate the resarch-queue.", false)
elseif lotj.autoResearch.enabled then
-- Disable the practice-adding logic
disableTrigger("autoresearch.grabSkills")
lotj.autoResearch.started = true;

Expand Down

0 comments on commit 0932c44

Please sign in to comment.