Skip to content

Commit 296210a

Browse files
committedJan 12, 2024
add 训练室排除
1 parent bb64216 commit 296210a

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed
 

‎path.lua

+9-1
Original file line numberDiff line numberDiff line change
@@ -1858,7 +1858,15 @@ path.宿舍换班 = function()
18581858
-- 慢机仍会漏换, miui13也是
18591859
-- 加了心情检测这儿还要等?
18601860
ssleep(0.25)
1861-
tapAll(operator)
1861+
-- tapAll(operator)
1862+
for _, v in pairs(operator) do
1863+
tap(v)
1864+
training_check_time = training_check_time or 0.15
1865+
ssleep(training_check_time)
1866+
if disable_training_shift and is_training() then -- 训练室干员跳过
1867+
tap(v)
1868+
end
1869+
end
18621870
disappear("干员未选中", 2)
18631871
end, 5) then
18641872
return

‎skill.lua

+6
Original file line numberDiff line numberDiff line change
@@ -1128,3 +1128,9 @@ ygStaitonColor = {
11281128
-- 'ffffffff', -- 控制,
11291129
-- 'ffffffff', -- 会客,
11301130
}
1131+
1132+
is_training = function()
1133+
local ret = find_color({ scale(46), scale(642), scale(172), scale(1026) }, "72001F", 0, 1)
1134+
ret = ret and true or false
1135+
return ret
1136+
end

‎util.lua

+10
Original file line numberDiff line numberDiff line change
@@ -3228,6 +3228,16 @@ show_debug_ui = function()
32283228
ui.addCheckBox(layout, "collect_beforeleaving",
32293229
"基建离开前加一次基建收获", true)
32303230

3231+
newRow(layout)
3232+
addTextView(layout, "--------------------基建设置--------------------")
3233+
3234+
newRow(layout)
3235+
ui.addCheckBox(layout, "disable_training_shift", "基建换班忽略训练室", false)
3236+
3237+
newRow(layout)
3238+
addTextView(layout, "基建训练室检测延迟")
3239+
ui.addEditText(layout, "training_check_time", '0.15')
3240+
32313241
newRow(layout)
32323242
addTextView(layout, "基建换班心情阈值")
32333243
ui.addEditText(layout, "shift_min_mood", '12')

0 commit comments

Comments
 (0)
Please sign in to comment.