Compare commits
277
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f9899ee9c0 | ||
|
|
9b760d1d19 | ||
|
|
d56198adb4 | ||
|
|
bb1b892c1b | ||
|
|
23ac624197 | ||
|
|
4063d10088 | ||
|
|
4e2e731d7f | ||
|
|
a60f94eb7c | ||
|
|
88c74df159 | ||
|
|
8c0ea63062 | ||
|
|
298ff0c066 | ||
|
|
4fef2c7a70 | ||
|
|
08950d07e2 | ||
|
|
5494de9796 | ||
|
|
7352bd3950 | ||
|
|
81bc0f00b4 | ||
|
|
f85dc296e3 | ||
|
|
3fc1ad12c4 | ||
|
|
af12cfab66 | ||
|
|
af750b2900 | ||
|
|
4a6c837e93 | ||
|
|
8d60de4568 | ||
|
|
eb1baf91d7 | ||
|
|
5ab26bc0df | ||
|
|
3ed574ee87 | ||
|
|
46713b930c | ||
|
|
64d6c62824 | ||
|
|
11f18f7ca4 | ||
|
|
c714491213 | ||
|
|
06e8924cd8 | ||
|
|
30ac7aa44e | ||
|
|
332ecc2280 | ||
|
|
d2752de3cd | ||
|
|
d3ab0675bf | ||
|
|
e7ec79a37f | ||
|
|
2c1a7fc049 | ||
|
|
3974665cba | ||
|
|
31b4a24a8c | ||
|
|
93e17e4755 | ||
|
|
6e355f32df | ||
|
|
0961892354 | ||
|
|
38fd280c3f | ||
|
|
cd344af4c7 | ||
|
|
d3a6aaa622 | ||
|
|
70dd10bccf | ||
|
|
5296d555fa | ||
|
|
a031309c17 | ||
|
|
8d45f55e38 | ||
|
|
6be613e7db | ||
|
|
31d8c5f37c | ||
|
|
94b281f8c8 | ||
|
|
8c1d313d84 | ||
|
|
2752667f0d | ||
|
|
5cd2088338 | ||
|
|
67a142d555 | ||
|
|
ad3618838e | ||
|
|
a0e7e593f4 | ||
|
|
9ff6a3a10d | ||
|
|
718629faf0 | ||
|
|
771b9f40da | ||
|
|
e28f77c9a2 | ||
|
|
81c00241bf | ||
|
|
82d9f688e3 | ||
|
|
40e95ec310 | ||
|
|
bb2fe56164 | ||
|
|
419c7206fb | ||
|
|
6d92d719ff | ||
|
|
8c06d5f367 | ||
|
|
3a9dd6748d | ||
|
|
06adbd188b | ||
|
|
084454183a | ||
|
|
108aa538bd | ||
|
|
c342d259b6 | ||
|
|
2733fed006 | ||
|
|
6106fe8070 | ||
|
|
b494fef9de | ||
|
|
f1c037ca9f | ||
|
|
667200fc4c | ||
|
|
b906da70db | ||
|
|
b1e7be8af9 | ||
|
|
898712e9c9 | ||
|
|
4a1f9f2101 | ||
|
|
496e49770c | ||
|
|
56dec40ab5 | ||
|
|
6ed5a42d52 | ||
|
|
c657339e58 | ||
|
|
4a894b0711 | ||
|
|
33495fe5a2 | ||
|
|
05da16794d | ||
|
|
740db154c3 | ||
|
|
2c008071e2 | ||
|
|
337a55539d | ||
|
|
cb2bb4ef99 | ||
|
|
7729430bc9 | ||
|
|
33564010a1 | ||
|
|
9f0eba86e7 | ||
|
|
fce69e865c | ||
|
|
c13f63fa95 | ||
|
|
38c45e63d8 | ||
|
|
a8f03e601d | ||
|
|
55fb3a434b | ||
|
|
fd9008b55e | ||
|
|
6c2899f367 | ||
|
|
fb9fe10ee8 | ||
|
|
c85d0cafd3 | ||
|
|
e8b2675e09 | ||
|
|
4978ae5e5e | ||
|
|
999a95e5e7 | ||
|
|
8d827d270f | ||
|
|
f88becd779 | ||
|
|
f57ea5ac16 | ||
|
|
22d10e633f | ||
|
|
f5a7331ddd | ||
|
|
22a9642692 | ||
|
|
e3953bab38 | ||
|
|
4dcec436b8 | ||
|
|
d023577615 | ||
|
|
67707c50e1 | ||
|
|
e4e4c62500 | ||
|
|
67236f5a68 | ||
|
|
ad68aae966 | ||
|
|
a6c1cc33ae | ||
|
|
a8ccab2b9e | ||
|
|
d2559d8f28 | ||
|
|
6e7cbe851f | ||
|
|
c4e83f22e9 | ||
|
|
4f8dc97493 | ||
|
|
e1a6c13106 | ||
|
|
e883f75467 | ||
|
|
5d1fd54d13 | ||
|
|
45a178cf3d | ||
|
|
09e18e23c1 | ||
|
|
50d8b997a3 | ||
|
|
4f52b1292c | ||
|
|
abc8e33b1d | ||
|
|
cc354e513b | ||
|
|
43a3914627 | ||
|
|
6d43d98525 | ||
|
|
a0cbeed299 | ||
|
|
652fe18e1a | ||
|
|
0c970be672 | ||
|
|
c3e1d91c36 | ||
|
|
423c0117a3 | ||
|
|
b3fb0e7850 | ||
|
|
e298ffd52b | ||
|
|
c2554094fd | ||
|
|
4b78d96537 | ||
|
|
38434f824e | ||
|
|
928976d392 | ||
|
|
571c34a711 | ||
|
|
5397e66352 | ||
|
|
a84112bb52 | ||
|
|
adff6687e8 | ||
|
|
895f8262e6 | ||
|
|
7d9dcecd43 | ||
|
|
68309d468e | ||
|
|
240487655b | ||
|
|
3ad121bbd6 | ||
|
|
6b87ebdc4d | ||
|
|
282bbe4c3c | ||
|
|
c837a5e94f | ||
|
|
f1a417d7b1 | ||
|
|
2542c696a9 | ||
|
|
302ddef082 | ||
|
|
004cfd7449 | ||
|
|
56eac86dfb | ||
|
|
a8aeba0798 | ||
|
|
e8040ff3e7 | ||
|
|
43a035fad4 | ||
|
|
b17a858e27 | ||
|
|
312031b018 | ||
|
|
e63af6e9b7 | ||
|
|
a9c89ba093 | ||
|
|
4a064944d7 | ||
|
|
71440c3cd6 | ||
|
|
a506f2dad0 | ||
|
|
358d199769 | ||
|
|
6fc6a59b89 | ||
|
|
418dbaa297 | ||
|
|
3795ffd5d3 | ||
|
|
3e73430e4b | ||
|
|
96d9740511 | ||
|
|
cc279c17de | ||
|
|
dd3384acbb | ||
|
|
f10013bca4 | ||
|
|
481afddcc7 | ||
|
|
713a49b251 | ||
|
|
4feab654f0 | ||
|
|
f520b812c0 | ||
|
|
6c172abf78 | ||
|
|
38d1f2a9d6 | ||
|
|
bbd94cdc94 | ||
|
|
dc4cdac3a4 | ||
|
|
ecc5ca9488 | ||
|
|
5f26b0f19c | ||
|
|
0d38811c0a | ||
|
|
2ee49cb204 | ||
|
|
2e88bf3063 | ||
|
|
eba2f3c211 | ||
|
|
9a243d4bd6 | ||
|
|
7c05e78145 | ||
|
|
0a15bf51ed | ||
|
|
b7202e4a11 | ||
|
|
073eb57534 | ||
|
|
74d90b7179 | ||
|
|
7011fb7d1b | ||
|
|
e974717027 | ||
|
|
13ee4f68b5 | ||
|
|
7dad5733f8 | ||
|
|
05ad9cfce7 | ||
|
|
858cd23fb9 | ||
|
|
6356e29935 | ||
|
|
22f7aae573 | ||
|
|
288bc884ee | ||
|
|
c45e7db310 | ||
|
|
e740e07480 | ||
|
|
9ceb8b01eb | ||
|
|
730d3b2b36 | ||
|
|
dc0578d3cf | ||
|
|
8528de7c5f | ||
|
|
b0de7dd04a | ||
|
|
dccd2a901b | ||
|
|
405c9c3865 | ||
|
|
b0dfe8fe32 | ||
|
|
a25821bd61 | ||
|
|
89d8df221a | ||
|
|
96baeba39a | ||
|
|
ae99ee2805 | ||
|
|
69b47a630e | ||
|
|
8d4e3fb974 | ||
|
|
37698f2d23 | ||
|
|
3ce02665a9 | ||
|
|
ec61fa594b | ||
|
|
7dd00f2015 | ||
|
|
e3f7cbfc04 | ||
|
|
6f890f76ba | ||
|
|
641efb5f38 | ||
|
|
684df40674 | ||
|
|
55beec59b6 | ||
|
|
f1c0a1ba5a | ||
|
|
0d225fa244 | ||
|
|
d1c5c32fcf | ||
|
|
4fc4f78b11 | ||
|
|
cc1be9d0b9 | ||
|
|
58114bca95 | ||
|
|
bca50b42a5 | ||
|
|
f272d6ea33 | ||
|
|
ec60487d8a | ||
|
|
e199be6b03 | ||
|
|
70fa249b86 | ||
|
|
6304db27cb | ||
|
|
ec9947dcdf | ||
|
|
4bb8f2deeb | ||
|
|
3015face01 | ||
|
|
d4f470a845 | ||
|
|
aa53a0baaf | ||
|
|
956d6aa628 | ||
|
|
5421b5be11 | ||
|
|
20f2790426 | ||
|
|
a89757ff50 | ||
|
|
b53713b8ec | ||
|
|
fc2e1f3b68 | ||
|
|
6d5c3dfad2 | ||
|
|
9cf98aff6a | ||
|
|
a4f2841978 | ||
|
|
896f2fc906 | ||
|
|
cda1d23e37 | ||
|
|
3be8b5bf59 | ||
|
|
c97d7cede7 | ||
|
|
075ad1641a | ||
|
|
fb60a98408 | ||
|
|
521f6f2e32 | ||
|
|
a693039591 | ||
|
|
6b1d1fb976 | ||
|
|
83a0b88591 | ||
|
|
4bcbaf34bb | ||
|
|
8785461e44 |
No files matched your search
@@ -1,8 +1,7 @@
|
||||
name: Bug Report / 脚本问题反馈
|
||||
description: 反馈 BetterGI 脚本、脚本仓库或分发相关问题
|
||||
title: "[bug] "
|
||||
labels:
|
||||
- bug
|
||||
type: Bug
|
||||
body:
|
||||
- type: checkboxes
|
||||
id: confirmations
|
||||
@@ -48,13 +47,6 @@ body:
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: input
|
||||
id: script-path
|
||||
attributes:
|
||||
label: 脚本链接或仓库路径
|
||||
description: 填写准确路径可帮助 AI 直接读取相关源码。
|
||||
placeholder: 例如:repo/js/LinneaMining
|
||||
|
||||
- type: textarea
|
||||
id: environment
|
||||
attributes:
|
||||
@@ -95,10 +87,10 @@ body:
|
||||
id: logs-and-media
|
||||
attributes:
|
||||
label: 日志、截图或录屏
|
||||
description: 支持拖入 .log/.txt、截图或录屏,请注明发生时间,并再次确认附件中不含隐私信息。
|
||||
description: 支持拖入 .log/.txt、截图或录屏
|
||||
|
||||
- type: textarea
|
||||
id: additional-info
|
||||
attributes:
|
||||
label: 其他信息
|
||||
description: 如果由脚本网站跳转而来,请保留已预填的脚本作者通知信息;也可补充其他有助于定位问题的内容。
|
||||
description: 补充其他有助于定位问题的内容
|
||||
@@ -4,7 +4,7 @@ contact_links:
|
||||
url: https://www.bettergi.com/doc.html
|
||||
about: 使用前请先查阅 BetterGI 功能说明、快速上手和常见问题。
|
||||
- name: 脚本贡献指南
|
||||
url: https://bettergi.com/dev/pr.html
|
||||
url: https://www.bettergi.com/dev/pr.html
|
||||
about: 提交或修改脚本前,请阅读 Pull Request 与脚本贡献说明。
|
||||
- name: 在线脚本仓库
|
||||
url: https://bgi.sh
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
name: Feature Request / 功能与改进建议
|
||||
description: 提议新脚本能力、现有脚本改进或仓库分发优化
|
||||
title: "[feature] "
|
||||
labels:
|
||||
- enhancement
|
||||
type: Feature
|
||||
body:
|
||||
- type: checkboxes
|
||||
id: confirmations
|
||||
@@ -37,12 +36,6 @@ body:
|
||||
attributes:
|
||||
label: 相关脚本名称与版本
|
||||
|
||||
- type: input
|
||||
id: script-path
|
||||
attributes:
|
||||
label: 脚本链接或仓库路径
|
||||
placeholder: 例如:repo/js/LinneaMining
|
||||
|
||||
- type: textarea
|
||||
id: request
|
||||
attributes:
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
name: Question / 使用咨询
|
||||
description: 咨询脚本使用、配置或脚本仓库相关问题
|
||||
title: "[question] "
|
||||
labels:
|
||||
- question
|
||||
type: Question
|
||||
body:
|
||||
- type: checkboxes
|
||||
id: confirmations
|
||||
@@ -39,12 +38,6 @@ body:
|
||||
attributes:
|
||||
label: 相关脚本名称与版本
|
||||
|
||||
- type: input
|
||||
id: script-path
|
||||
attributes:
|
||||
label: 脚本链接或仓库路径
|
||||
placeholder: 例如:repo/js/LinneaMining
|
||||
|
||||
- type: textarea
|
||||
id: question
|
||||
attributes:
|
||||
@@ -64,5 +57,5 @@ body:
|
||||
- type: textarea
|
||||
id: logs
|
||||
attributes:
|
||||
label: 日志与附件
|
||||
description: 可拖入日志、截图或录屏;请先移除 UID、路径等隐私信息。
|
||||
label: 日志、截图或录屏
|
||||
description: 支持拖入 .log/.txt、截图或录屏
|
||||
+108
-9
@@ -33,84 +33,151 @@ issues:
|
||||
commentAnchor: issue-bot:validation
|
||||
templates:
|
||||
- key: bug
|
||||
issueType: Bug
|
||||
detect:
|
||||
markers:
|
||||
- bug
|
||||
titlePrefixes:
|
||||
- "[bug]"
|
||||
formSignatures:
|
||||
- 我已搜索现有 Issue,确认没有相同问题
|
||||
- 我已阅读相关脚本的 README 或使用说明
|
||||
- 我已确认问题来自脚本或脚本仓库
|
||||
- 我已移除日志、截图中的 UID、路径等隐私信息
|
||||
requiredSections:
|
||||
- id: scope
|
||||
aliases:
|
||||
- 涉及范围
|
||||
transferExempt: true
|
||||
- id: bettergi-version
|
||||
aliases:
|
||||
- BetterGI 版本号
|
||||
- BetterGI Version
|
||||
- id: script-name
|
||||
aliases:
|
||||
- 相关脚本名称与版本
|
||||
transferExempt: true
|
||||
- id: environment
|
||||
aliases:
|
||||
- 运行环境与关键配置
|
||||
- 系统环境
|
||||
- System Environment
|
||||
- id: description
|
||||
aliases:
|
||||
- 问题描述
|
||||
- Description of the issue
|
||||
- id: expected
|
||||
aliases:
|
||||
- 期望结果
|
||||
transferExempt: true
|
||||
- id: steps
|
||||
aliases:
|
||||
- 复现步骤
|
||||
- Reproduction steps
|
||||
labels:
|
||||
whenValid:
|
||||
- bug
|
||||
whenValid: []
|
||||
whenInvalid:
|
||||
- 需要更多信息
|
||||
- key: feature
|
||||
issueType: Feature
|
||||
detect:
|
||||
markers:
|
||||
- feature
|
||||
titlePrefixes:
|
||||
- "[feature]"
|
||||
formSignatures:
|
||||
- 我已搜索现有 Issue
|
||||
- 我已确认当前脚本或仓库尚无等价能力
|
||||
- 该需求不仅是个人操作习惯
|
||||
- 我理解需求可能受兼容性和维护成本限制
|
||||
requiredSections:
|
||||
- id: scope
|
||||
aliases:
|
||||
- 涉及范围
|
||||
transferExempt: true
|
||||
- id: request
|
||||
aliases:
|
||||
- 需求或建议
|
||||
- 功能请求
|
||||
- Feature Request
|
||||
- id: scenario
|
||||
aliases:
|
||||
- 使用场景
|
||||
- Use Case
|
||||
- id: benefits
|
||||
aliases:
|
||||
- 预期收益
|
||||
- Expected Benefit
|
||||
transferExempt: true
|
||||
- id: constraints
|
||||
aliases:
|
||||
- 影响与约束
|
||||
transferExempt: true
|
||||
labels:
|
||||
whenValid:
|
||||
- enhancement
|
||||
whenValid: []
|
||||
whenInvalid:
|
||||
- 需要更多信息
|
||||
- key: question
|
||||
issueType: Question
|
||||
detect:
|
||||
markers:
|
||||
- question
|
||||
titlePrefixes:
|
||||
- "[question]"
|
||||
formSignatures:
|
||||
- 我已搜索现有 Issue
|
||||
- 我已阅读相关脚本 README 和 BetterGI 文档
|
||||
requiredSections:
|
||||
- id: scope
|
||||
aliases:
|
||||
- 涉及范围
|
||||
transferExempt: true
|
||||
- id: question
|
||||
aliases:
|
||||
- 问题描述
|
||||
- Problem Description
|
||||
- id: tried
|
||||
aliases:
|
||||
- 已尝试内容
|
||||
- What I Tried
|
||||
labels:
|
||||
whenValid:
|
||||
- question
|
||||
whenValid: []
|
||||
whenInvalid:
|
||||
- 需要更多信息
|
||||
- key: suggestion
|
||||
issueType: Suggestions
|
||||
detect:
|
||||
markers:
|
||||
- suggestion
|
||||
titlePrefixes:
|
||||
- "[suggestion]"
|
||||
requiredSections:
|
||||
- id: suggestion
|
||||
aliases:
|
||||
- 建议内容
|
||||
- Suggestion
|
||||
- id: benefit
|
||||
aliases:
|
||||
- 预期收益
|
||||
- Expected Benefit
|
||||
labels:
|
||||
whenValid: []
|
||||
whenInvalid:
|
||||
- 需要更多信息
|
||||
- key: normal
|
||||
detect:
|
||||
markers:
|
||||
- normal
|
||||
titlePrefixes:
|
||||
- "[feedback]"
|
||||
- "[normal]"
|
||||
requiredSections:
|
||||
- id: description
|
||||
aliases:
|
||||
- 描述
|
||||
- Description
|
||||
labels:
|
||||
whenValid: []
|
||||
whenInvalid:
|
||||
- 需要更多信息
|
||||
duplicateDetection:
|
||||
@@ -134,9 +201,6 @@ issues:
|
||||
enabled: true
|
||||
autoCreateMissing: true
|
||||
managed:
|
||||
- bug
|
||||
- enhancement
|
||||
- question
|
||||
- 需要更多信息
|
||||
- duplicate
|
||||
definitions:
|
||||
@@ -238,3 +302,38 @@ pullRequests:
|
||||
enabled: false
|
||||
summary:
|
||||
enabled: false
|
||||
pathLabels:
|
||||
enabled: true
|
||||
managed: true
|
||||
documentationLabel: documentation
|
||||
commentAnchor: pull-bot:path-labels
|
||||
rules:
|
||||
- label: JS 脚本
|
||||
pathPrefixes:
|
||||
- repo/js
|
||||
- label: 地图追踪
|
||||
pathPrefixes:
|
||||
- repo/pathing
|
||||
- label: 战斗策略
|
||||
pathPrefixes:
|
||||
- repo/combat
|
||||
- label: 七圣召唤
|
||||
pathPrefixes:
|
||||
- repo/tcg
|
||||
locationCheck:
|
||||
enabled: true
|
||||
commentAnchor: pull-bot:location
|
||||
allowedPaths:
|
||||
- build
|
||||
- .github
|
||||
scriptRoots:
|
||||
- repo/js
|
||||
fileKindRules:
|
||||
- category: 战斗策略
|
||||
expectedLocation: repo/combat
|
||||
extensions:
|
||||
- .txt
|
||||
rules:
|
||||
pathingFileNamePattern: ^\d{2,3}-
|
||||
issueLink:
|
||||
enabled: false
|
||||
@@ -1,5 +1,5 @@
|
||||
name: Repo Bot
|
||||
run-name: "Repo Bot #${{ github.event.issue.number }} - ${{ github.event_name }}/${{ github.event.action }} - @${{ github.actor }}"
|
||||
run-name: "Repo Bot #${{ github.event.issue.number || github.event.pull_request.number }} - ${{ github.event_name }}/${{ github.event.action }} - @${{ github.actor }}"
|
||||
|
||||
on:
|
||||
issues:
|
||||
@@ -11,6 +11,14 @@ on:
|
||||
types:
|
||||
- created
|
||||
- edited
|
||||
# pull_request_target (not pull_request) is required so that pull requests opened from
|
||||
# forks can be labelled/commented. Never check out or execute the pull request head here.
|
||||
pull_request_target:
|
||||
types:
|
||||
- opened
|
||||
- synchronize
|
||||
- reopened
|
||||
- ready_for_review
|
||||
|
||||
jobs:
|
||||
repo-bot:
|
||||
@@ -24,6 +32,7 @@ jobs:
|
||||
uses: ddaodan/bettergi-github-bot/.github/workflows/repo-bot.yml@v1
|
||||
permissions:
|
||||
issues: write
|
||||
pull-requests: write
|
||||
contents: read
|
||||
secrets:
|
||||
REPO_BOT_AI_API_KEY: ${{ secrets.REPO_BOT_AI_API_KEY }}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
# Codex 代码审查规则
|
||||
|
||||
以下规则仅适用于代码审查,不适用于实现、修复或其他 Codex 任务。
|
||||
|
||||
## Code Review Rules
|
||||
|
||||
- 审查结论使用中文,只报告当前 diff 引入且作者可采取行动的问题。
|
||||
- 重点报告 P0/P1;仅在存在明确功能回归时报告 P2。不报告纯风格问题或已有 CI 能完整发现的机械问题。
|
||||
- 每条发现必须包含准确文件位置、触发条件、实际影响和安全修复方向。
|
||||
- 没有有效发现时,明确写出“未发现需阻断的问题”,并列出未完成的运行时验证。
|
||||
- 普通脚本 PR 不应手工修改生成文件 `repo.json`,也不应携带无关文件或构建产物。
|
||||
- 检查脚本是否位于正确目录:战斗策略在 `repo/combat`,JS 脚本在 `repo/js`,地图追踪在 `repo/pathing`,七圣召唤在 `repo/tcg`;移入或移出 `archive` 会改变分发状态。
|
||||
- JS 审查应核对 `manifest.json` 的入口、设置、资源和 `http_allowed_urls` 是否与实现一致;新 API 必须存在于 `bettergi.d.ts`,并由 `bgi_version` 覆盖最低版本。
|
||||
- JS 新增网络请求、敏感数据处理、文件或系统操作、远程代码、关机重启等高风险行为时,必须使用安全默认值、最小权限、明确用户确认,并在 README 中披露。
|
||||
- 地图追踪审查应关注路径点顺序、移动模式、动作参数、目录语义和 `info.bgi_version`;JSON 可解析不代表路线行为正确。
|
||||
- 战斗与七圣召唤策略应保留正确的角色、作者、适用场景和必要手动步骤,避免语法有效但无法按声明场景运行。
|
||||
- 修改 `build` 或 GitHub Actions 时,应检查增量/全量构建、gzip、索引结构、镜像发布和分支来源是否保持兼容。
|
||||
- GitHub Actions 不得使用写权限令牌或密钥执行 PR 分支可控代码;应使用基础分支中的受信任脚本、最小权限,并将 PR 内容视为不可信数据。
|
||||
@@ -10,169 +10,108 @@
|
||||
|
||||
## 脚本提交说明
|
||||
|
||||
- 战斗脚本提交到 [repo/combat](https://github.com/babalae/bettergi-scripts-list/tree/main/repo/combat) 目录;
|
||||
- 战斗策略提交到 [repo/combat](https://github.com/babalae/bettergi-scripts-list/tree/main/repo/combat) 目录;
|
||||
- JS 脚本提交到 [repo/js](https://github.com/babalae/bettergi-scripts-list/tree/main/repo/js) 目录;
|
||||
- 地图追踪脚本提交到 [repo/pathing](https://github.com/babalae/bettergi-scripts-list/tree/main/repo/pathing) 目录;
|
||||
- 七圣召唤脚本提交到 [repo/tcg](https://github.com/babalae/bettergi-scripts-list/tree/main/repo/tcg) 目录。
|
||||
- 地图追踪路线提交到 [repo/pathing](https://github.com/babalae/bettergi-scripts-list/tree/main/repo/pathing) 目录;
|
||||
- 七圣召唤策略提交到 [repo/tcg](https://github.com/babalae/bettergi-scripts-list/tree/main/repo/tcg) 目录。
|
||||
|
||||
## 脚本提交规范
|
||||
## 提交规范
|
||||
|
||||
为了保证脚本的规范性和可读性,方便用户清晰了解脚本的用途,制定以下脚本命名规则和脚本文件夹命名规则。
|
||||
以下为提交时应遵守的规范,不符合规范的以及作者长期不回复的(通常为1个月),将做 close 处理。
|
||||
|
||||
### 战斗策略脚本
|
||||
### 战斗策略
|
||||
|
||||
创建战斗策略脚本请参考文档[自动战斗](https://www.bettergi.com/feats/task/domain.html)和已有的其他战斗策略脚本
|
||||
创建战斗策略请参考文档[自动战斗](https://www.bettergi.com/feats/task/domain.html)和已有的其他战斗策略
|
||||
|
||||
#### 命名规则
|
||||
|
||||
- 脚本的名称**应包含使用的角色简写**
|
||||
- 特别的,只能用于副本,不适用于锄地的战斗策略应当增加“-副本”的后缀
|
||||
- 策略的名称**应包含使用的角色简写**
|
||||
- 只能用于副本,不适用于锄地的战斗策略应当增加“-副本”的后缀
|
||||
- 不应添加过多冗余修饰词
|
||||
|
||||
#### 注释与署名
|
||||
|
||||
- 战斗策略脚本中使用“//”进行注释,必要时应当在脚本中使用注释以明确使用的条件等
|
||||
- 使用“//”进行注释,必要时应当在策略中使用注释以明确使用的条件等
|
||||
- 推荐在策略中同时通过注释说明自动战斗设置中的相关部分,例如:“// 检查战斗结束的延时:设置为 0.4”
|
||||
- 署名使用“//作者:你的名字”,错误的格式将导致无法识别
|
||||
|
||||
#### 注意事项
|
||||
|
||||
- 确保你充分了解自动战斗的完整机制(如战斗结束检查的触发)和每个动作的具体内容再开始编写战斗策略
|
||||
- 提交前请进行充分的实战测试与优化。若战斗策略被社区或管理员判定为低质量,其合并请求(PR)将不予通过。
|
||||
- 由 AI 生成的策略不会被接受
|
||||
- 提交前请进行充分的实战测试与优化,提供战斗耗时数据。存在已有策略时,请提供多项对比数据
|
||||
|
||||
### 地图追踪脚本
|
||||
### 地图追踪
|
||||
|
||||
#### 文件命名规范
|
||||
#### 文件命名
|
||||
|
||||
确保脚本文件在同一目录下按预期顺序排列,并一目了然地传达关键信息。地图追踪脚本命名需包含以下核心信息:
|
||||
路线文件名格式:
|
||||
|
||||
```
|
||||
编号-材料名称-区域(跨区域材料填写)-二级区域(可选)-二级子区域-数量
|
||||
```text
|
||||
编号-材料名称-[区域]-[二级区域]-二级子区域-数量
|
||||
```
|
||||
|
||||
- 编号
|
||||
|
||||
- 两位数,如果单个资源脚本数量超过 `100` 可以考虑使用三位数编号或者使用字母加数字编号,如 A01
|
||||
- 编号的排序应遵循以下两种方式之一:
|
||||
- 按传送点位顺序排序。相邻脚本之间优先保证传送的便捷性,这种编号方式考虑整体采集效率。
|
||||
- 按材料获取效率排序。优先选择资源分布密集或容易采集的点,效率高的路径放在靠前编号,这种编号方式考虑编号靠前脚本的采集效率。
|
||||
其中:
|
||||
|
||||
- 材料名称
|
||||
|
||||
- 采集物(使用游戏内官方名称命名,如 `慕风蘑菇`,`劫波莲`,不应当使用 `绫华突破材料`等不清晰的名称命名)
|
||||
- 掉落物(因掉落物名称与掉落物等级有关,因此不使用掉落物本身命名,而是使用怪物名称命名)
|
||||
- **编号**:默认两位数;超过 100 条时可使用三位数或 `A01` 等形式。排序应按传送便利性或材料获取效率进行。
|
||||
- **材料名称**:使用游戏内官方名称。采集物不得使用“XX突破材料”等非正式名称;敌怪使用 F1 讨伐页面中的名称。
|
||||
- **区域**:如 `蒙德`、`璃月`、`稻妻` 等,仅跨区域材料需要标注。
|
||||
- **二级区域**:如 `珉林`,按实际需要填写。
|
||||
- **二级子区域**:如 `绝云间`。若无明确子区域,可使用起始锚点显示区域或路线主要经过区域。
|
||||
- **数量**:路线预期获取数量。
|
||||
|
||||
- 区域(指 `蒙德` `璃月` `稻妻` `须弥` `枫丹` `纳塔` `至冬`,**仅当材料跨区域需标注**)
|
||||
|
||||
- 二级区域(如 `珉林`,根据实际需求标注)
|
||||
|
||||
- 二级子区域(细分地点,如 `绝云间`)
|
||||
|
||||
- 预期采集的数量
|
||||
|
||||
脚本名称**仅限上述**规定的编号、材料名称、区域、二级子区域,原则上不应包含额外的描述或标点符号。
|
||||
文件名原则上仅包含上述信息,不应加入“快速路线”“推荐路线”等额外描述。
|
||||
|
||||
```text
|
||||
✔ 01-水晶块-璃月-绝云间-6个
|
||||
✔ 02-水晶块-璃月-荻花洲-8个
|
||||
✘ 01-水晶块-璃月-快速路径-绝云间-6个
|
||||
```
|
||||
✔ 参考示范:
|
||||
01-水晶块-璃月-绝云间-6个
|
||||
02-水晶块-璃月-荻花洲-8个
|
||||
同一二级子区域存在多条路线时,可增加方位区分。
|
||||
|
||||
❌ 错误示范:
|
||||
01-水晶块-璃月-快速路径-绝云间-6个
|
||||
路线文件名必须与 JSON 中的 `name` 字段一致,说明文件统一命名为 `README.md`。
|
||||
|
||||
#### 文件夹结构
|
||||
|
||||
路线应放入对应分类,目前包括:
|
||||
|
||||
`锄地专区`、`地方特产`、`敌人与魔物`、`矿物`、`食材与炼金`、`其他`
|
||||
|
||||
一级目录以材料名称命名;必要时可增加用于区分项目、采集方式或作者的子目录。
|
||||
|
||||
```text
|
||||
repo/pathing/矿物
|
||||
├── 水晶块
|
||||
│ ├── 01-水晶块-璃月-绝云间-6个
|
||||
│ └── 02-水晶块-璃月-荻花洲-8个
|
||||
└── 星银矿石
|
||||
└── 01-星银矿石-覆雪之路-7个
|
||||
```
|
||||
|
||||
已有路线存在冲突时:
|
||||
|
||||
| 情况 | 处理方式 |
|
||||
| --- | --- |
|
||||
| 修复、补充原路线 | 直接提交至原目录 |
|
||||
| 同类路线但实现不同 | 使用 `名称@作者` 建立独立目录 |
|
||||
| 采集角色、方式或目标不同 | 使用 `采集方式@作者`、`效率路线@作者` 等名称区分 |
|
||||
|
||||
例如:
|
||||
|
||||
```text
|
||||
水晶矿
|
||||
├── 大剑@作者A
|
||||
├── 钟离@作者B
|
||||
└── 大剑效率路线@作者C
|
||||
```
|
||||
|
||||
**其他注意事项**
|
||||
### JS 脚本
|
||||
|
||||
- 部分采集物没有对应的二级子区域,允许名称的区域部分使用**起始传送锚点**右侧展示的二级区域,或**这条路径的大部分采集物点位**所位于的二级区域
|
||||
|
||||
- 相同**二级子区域**有多条路径时,推荐采用 `编号-材料名称-二级区域-二级子区域及方位-数量` 进行命名。
|
||||
|
||||
- 脚本文件名应当和 `json` 文件中的 `name` 字段相同。
|
||||
|
||||
- 说明文件应当命名为README.md以保证仓库能够正确读取。
|
||||
|
||||
#### 文件夹命名规范
|
||||
|
||||
目的:对脚本按材料分类管理,便于版本控制与团队协作。目录结构应当遵循以下原则:
|
||||
|
||||
- 根据脚本种类选择恰当的一级分类,目前共有六个分类 `锄地专区`、`地方特产`、`敌人与魔物`、`矿物`、`其他`。
|
||||
|
||||
- 一级目录:以材料名称命名,须与文件命名中的材料名称一致。
|
||||
|
||||
- 二级子目录(可选):可根据项目或作者划分,如有必要。
|
||||
|
||||
- 示例目录结构如下:
|
||||
|
||||
```
|
||||
repo/pathing/矿物
|
||||
├─ 水晶块
|
||||
│ ├─ 01-水晶块-璃月-绝云间-6个
|
||||
│ └─ 02-水晶块-璃月-荻花洲-8个
|
||||
└─ 星银矿石
|
||||
└─ 01-星银矿石-覆雪之路-7个
|
||||
```
|
||||
|
||||
如果脚本和原来的地图追踪脚本存在冲突 按照以下原则处理:
|
||||
|
||||
- 修复或补充:直接提交到原材料目录。
|
||||
|
||||
- 路线冲突:新建同名目录并添加作者标识:
|
||||
|
||||
1. 将旧脚本目录重命名为 `AA@旧作者名`
|
||||
2. 新脚本放入 `AA@你的名字`
|
||||
3. 例:原 `repo/pathing/AA` 重命名为 `AA@oldauthor` 新目录 `AA@yourname`
|
||||
- 示例目录结构如下:
|
||||
|
||||
```
|
||||
repo/pathing/.../
|
||||
└── AA
|
||||
├── AA@旧作者名
|
||||
└── AA@你的名字
|
||||
```
|
||||
|
||||
- 不同采集方式|角色|效率:新建目录添加标识及作者标识:
|
||||
|
||||
1. 判断旧脚本目录的采集方式,将旧脚本目录重命名为 `采集方式@旧作者名`
|
||||
2. 新脚本放入 `采集方式@你的名字`
|
||||
- 示例目录结构如下:
|
||||
|
||||
```
|
||||
repo/pathing
|
||||
├── 地方特产/区域
|
||||
│ ├── A材料
|
||||
│ │ ├── 无草神@作者广告位招租
|
||||
│ │ ├── 有草神效率路线@作者广告位招租
|
||||
│ │ ├── 有草神全收集@作者广告位招租
|
||||
│ │ └── ...
|
||||
│ └── B材料
|
||||
│ ├── 效率路线@作者广告位招租
|
||||
│ ├── 全收集@作者广告位招租
|
||||
│ └── ...
|
||||
├── 矿物
|
||||
│ ├── 水晶矿
|
||||
│ │ ├── 大剑@作者广告位招租
|
||||
│ │ ├── 钟离@作者广告位招租
|
||||
│ │ ├── 诺艾尔@作者广告位招租
|
||||
│ │ └── ...
|
||||
│ └── 萃凝晶
|
||||
│ ├── 大剑效率路线@作者广告位招租
|
||||
│ ├── 大剑无战斗@作者广告位招租
|
||||
│ └── ...
|
||||
└── ...
|
||||
```
|
||||
|
||||
**其他注意事项**
|
||||
|
||||
- 目录名仅限材料官方名称,不添加版本号或其他标识。
|
||||
|
||||
- 作者标识仅在冲突时追加,格式为“@作者名”,紧随原目录名。
|
||||
|
||||
### JS脚本
|
||||
|
||||
创建JS脚本请参考文档[创建脚本](https://bettergi.com/dev/js/create.html)
|
||||
创建 JS 脚本请参考文档[创建脚本](https://bettergi.com/dev/js/create.html)
|
||||
|
||||
#### 文件夹命名规则
|
||||
|
||||
- 脚本的文件夹名称**应体现脚本的用途**,简要用途可在描述文件 [manifest.json](https://bettergi.com/dev/js/create.html#manifest-json) 中说明,详细用途可在`README.md`(大小写敏感,要求全部大写的文件名) 中说明
|
||||
- 脚本的文件夹名称**应体现脚本的用途**,简要用途可在描述文件 [manifest.json](https://bettergi.com/dev/js/create.html#manifest-json) 中说明,详细用途可在`README.md` 中说明
|
||||
|
||||
- 脚本的主体文件夹名称可采用 [大驼峰式命名法](https://zh.wikipedia.org/wiki/%E9%A7%9D%E5%B3%B0%E5%BC%8F%E5%A4%A7%E5%B0%8F%E5%AF%AB) 等命名方式,名称中不应包含空格,如:
|
||||
|
||||
@@ -194,6 +133,16 @@
|
||||
│ │ └── xxx.json
|
||||
│ └── RecognitionObject
|
||||
│ └── xxx.png
|
||||
│
|
||||
├── src
|
||||
│ ├── modules
|
||||
│ │ ├── recognition.js
|
||||
│ │ ├── navigation.js
|
||||
│ │ └── task.js
|
||||
│ ├── utils
|
||||
│ │ └── common.js
|
||||
│ └── constants.js
|
||||
│
|
||||
├── main.js
|
||||
├── manifest.json
|
||||
├── settings.json
|
||||
@@ -207,7 +156,7 @@
|
||||
|
||||
#### HTML遮罩内容规范
|
||||
|
||||
脚本内由于可以通过`html`文件进行遮罩渲染,用于引导提示、脚本配置等工作,因此网页内容应当受到一定限制,罗列如下:
|
||||
脚本内由于可以通过`html`文件进行遮罩渲染,用于引导提示、脚本配置等工作,制作遮罩时应遵守如下规则:
|
||||
* 需考虑dom元素过多或不当操作引起的浏览器引擎内存占用问题,不能过度影响普通玩家在运行时的内存占用
|
||||
* 提交代码时如使用了html遮罩,需要将能够人为理解的页面项目完整源码上传(框架打包产物通常不易于理解),或是在pr信息中附上个人开源仓库链接(每次html有更新时都需要)
|
||||
* 不可用于展示宣传、推广性质的信息,如QQ群号、平台广告、外部视频等(包括iframe中的链接)
|
||||
@@ -215,11 +164,21 @@
|
||||
|
||||
#### 其他注意事项
|
||||
|
||||
- 脚本使用的资源文件应在`README.md`中注明实际用途
|
||||
- 当脚本足够大时,应按工程化标准进行实现,具体标准请自行学习
|
||||
- `README.md`中应详细介绍脚本使用方式,如有必要再对技术实现做解释。禁止提交未经人工润色、AI 味浓厚、内容臃肿的`README.md`
|
||||
- main.js 应主要负责脚本入口、初始化以及各模块的调用,例如:
|
||||
|
||||
### 其他
|
||||
|
||||
因早期对脚本管理较为宽松,因此仓库有部分脚本并不符合命名规范,欢迎通过 PR 规范这些名称。
|
||||
```
|
||||
import { runTask } from "./src/modules/task.js";
|
||||
|
||||
async function main() {
|
||||
await runTask();
|
||||
}
|
||||
|
||||
main();
|
||||
```
|
||||
|
||||
随着逻辑增加,应及时将不同职责拆分为独立模块。原则上不推荐大于500行、几乎没有模块导入的单文件 main.js,这会显著增加各方面成本。
|
||||
|
||||
## Contributors
|
||||
|
||||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loaded 100 of 4112 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user