From a893e541666a8ad89ea7e4d68be64799087fdcd4 Mon Sep 17 00:00:00 2001 From: ninemine <1371605831@qq.com> Date: Wed, 29 Oct 2025 17:52:15 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E6=94=B9=E5=91=BD=E4=BB=A4=E7=9A=84?= =?UTF-8?q?=E5=88=A4=E6=96=AD=E6=9D=A1=E4=BB=B6(=E4=BB=8Estartwith?= =?UTF-8?q?=E8=BD=AC=E4=B8=BA=E5=88=A4=E5=AE=9A=E7=9B=B8=E7=AD=89)2.?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=86=92=E9=99=A9=E7=B3=BB=E7=BB=9F=E5=BC=80?= =?UTF-8?q?=E5=8F=91=E4=BB=BB=E5=8A=A1=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .tasks/2025-10-29_2_complete-adventure-game.md | 3 +++ utils/parser.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.tasks/2025-10-29_2_complete-adventure-game.md b/.tasks/2025-10-29_2_complete-adventure-game.md index a2ff4cb..348a694 100644 --- a/.tasks/2025-10-29_2_complete-adventure-game.md +++ b/.tasks/2025-10-29_2_complete-adventure-game.md @@ -9,6 +9,9 @@ Yolo模式:Off # 任务描述 完善冒险游戏的 `_perform_adventure` 函数,实现冒险系统的时间管理和奖励发放功能。完成后将冒险系统关联到炼金游戏检测中,并将该游戏注册到指令系统中。 +## 关联影响 +本次更新同时也修改了炼金系统(`games/alchemy.py`),添加了冒险状态检测功能,实现游戏互斥机制。由于炼金系统开发时没有创建独立的任务文件,本次修改记录在本任务文件中。如需追踪炼金系统的完整变更历史,可参考本任务文件的"炼金游戏集成"部分。 + ## 核心需求 1. 完善 `_perform_adventure` 函数,实现三种状态处理: - 检查用户是否已有未完成的冒险 diff --git a/utils/parser.py b/utils/parser.py index 3419e92..3626f20 100644 --- a/utils/parser.py +++ b/utils/parser.py @@ -96,7 +96,7 @@ class CommandParser: # 检查是否以指令开头 for cmd_prefix, game_type in cls.COMMAND_MAP.items(): - if content.startswith(cmd_prefix): + if content == cmd_prefix: # 返回游戏类型和完整指令 return game_type, content