Skip to content

Commit

Permalink
add 训练室排除
Browse files Browse the repository at this point in the history
  • Loading branch information
Rovniced committed Jan 12, 2024
1 parent bb64216 commit 296210a
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
10 changes: 9 additions & 1 deletion path.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1858,7 +1858,15 @@ path.宿舍换班 = function()
-- 慢机仍会漏换, miui13也是
-- 加了心情检测这儿还要等?
ssleep(0.25)
tapAll(operator)
-- tapAll(operator)
for _, v in pairs(operator) do
tap(v)
training_check_time = training_check_time or 0.15
ssleep(training_check_time)
if disable_training_shift and is_training() then -- 训练室干员跳过
tap(v)
end
end
disappear("干员未选中", 2)
end, 5) then
return
Expand Down
6 changes: 6 additions & 0 deletions skill.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1128,3 +1128,9 @@ ygStaitonColor = {
-- 'ffffffff', -- 控制,
-- 'ffffffff', -- 会客,
}

is_training = function()
local ret = find_color({ scale(46), scale(642), scale(172), scale(1026) }, "72001F", 0, 1)
ret = ret and true or false
return ret
end
10 changes: 10 additions & 0 deletions util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3228,6 +3228,16 @@ show_debug_ui = function()
ui.addCheckBox(layout, "collect_beforeleaving",
"基建离开前加一次基建收获", true)

newRow(layout)
addTextView(layout, "--------------------基建设置--------------------")

newRow(layout)
ui.addCheckBox(layout, "disable_training_shift", "基建换班忽略训练室", false)

newRow(layout)
addTextView(layout, "基建训练室检测延迟")
ui.addEditText(layout, "training_check_time", '0.15')

newRow(layout)
addTextView(layout, "基建换班心情阈值")
ui.addEditText(layout, "shift_min_mood", '12')
Expand Down

0 comments on commit 296210a

Please sign in to comment.