Skip to content

Commit

Permalink
修复已知问题
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyJiangWJ committed Jul 9, 2023
1 parent 182456e commit 76d3855
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion core/Ant_forest.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: NickHopps
* @Date: 2019-01-31 22:58:00
* @Last Modified by: TonyJiangWJ
* @Last Modified time: 2023-07-09 11:08:42
* @Last Modified time: 2023-07-09 11:44:40
* @Description:
*/
let { config: _config, storage_name: _storage_name } = require('../config.js')(runtime, global)
Expand Down Expand Up @@ -555,6 +555,10 @@ function Ant_forest () {
return true
}

function boundsToRegion (bd) {
return [bd.left, bd.top, bd.right - bd.left, (bd.bottom - bd.top)]
}

const autoDetectTreeCollectRegion = function () {
let showVisual = true
if (_config.auto_detect_tree_collect_region) {
Expand Down
4 changes: 2 additions & 2 deletions core/StrollScanner.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: TonyJiangWJ
* @Date: 2020-09-07 13:06:32
* @Last Modified by: TonyJiangWJ
* @Last Modified time: 2023-07-05 20:42:07
* @Last Modified time: 2023-07-09 11:47:42
* @Description: 逛一逛收集器
*/
let { config: _config, storage_name: _storage_name } = require('../config.js')(runtime, global)
Expand All @@ -29,7 +29,7 @@ const DuplicateChecker = function () {
return false
}
for (let key in this.duplicateChecked) {
if (this.duplicateChecked[key].count <= 1) {
if (this.duplicateChecked[key].count <= 2) {
return false
}
}
Expand Down

0 comments on commit 76d3855

Please sign in to comment.