Release ranch assistant 1.1.1

This commit is contained in:
AttilaNet
2026-11-08 15:25:52 +08:00
parent 13a253a447
commit 014b497508
4 changed files with 15 additions and 7 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
# 牧羊人之心牧场辅助
原生 PySide6 窗口,使用 Qt 默认控件。双击项目根目录的
`Start_Ranch_Helper.cmd` 启动。当前辅助版本为 **1.1.0**,适配游戏 **1.9.68**。
`Start_Ranch_Helper.cmd` 启动。当前辅助版本为 **1.1.1**,适配游戏 **1.9.68**。
首次运行请先执行 `python -m pip install -r ranch_assistant/requirements.txt`。
完整功能与版本摘要见[项目README](../README.md)。
+2 -2
View File
@@ -33,7 +33,7 @@ from .stage_cache import StageCache
from .drop_statistics import SweepStatistics
from .statistics_gui import StatisticsPage
APP_VERSION = "1.1.0"
APP_VERSION = "1.1.1"
GAME_VERSION = "1.9.68"
ROOT = Path(sys.executable).parent if getattr(sys, "frozen", False) else Path(__file__).resolve().parent.parent
@@ -1837,7 +1837,7 @@ class Window(ActivityPages, W.QMainWindow):
self.statusBar().showMessage("设置尚未保存,请检查输入格式及本地目录", 5000)
def export_policies(self):
path, _ = W.QFileDialog.getSaveFileName(self, "导出全部策略", "ranch-policies-1.1.0.json", "策略文件 (*.json)")
path, _ = W.QFileDialog.getSaveFileName(self, "导出全部策略", "ranch-policies-1.1.1.json", "策略文件 (*.json)")
if not path:
return
try:
+1 -1
View File
@@ -45,7 +45,7 @@ def portable_policy(policy, snapshot=None):
for key, priority in sorted(value.pop(field).items(), key=lambda pair: pair[1]):
mon = snapshot.monsters.get(int(key)) if snapshot else None
targets[kind].append({"typeId": str(mon.get("typeId")) if mon else "", "priority": priority})
return {"format": FORMAT, "schema": VERSION, "assistantVersion": "1.1.0", "gameVersion": "1.9.68",
return {"format": FORMAT, "schema": VERSION, "assistantVersion": "1.1.1", "gameVersion": "1.9.68",
"policy": value, "targetSpecies": targets}