Add 'drop' command to remove items from inventory
还没有人认领这个 Issue。
评估
调研方向
首先定位 CommandType 枚举、CommandParser,以及 GameEngine 中现有的 inventory 和 room-item 处理逻辑。以 take 流程为指导,然后验证 drop 解析、从 inventory 中移除、放置到当前房间、不可丢弃物品的处理以及绿色确认输出是否都符合验收标准。
由索引模型根据 Issue 内容生成。
描述
Players can ake items but cannot drop them. A drop command would allow placing inventory items back into the current room.
Acceptance criteria:
- Add CommandType.Drop to the enum
- CommandParser recognizes drop
- GameEngine.HandleDrop() removes item from inventory, adds to current room's RoomItems
- Non-droppable items (if any) should be handled gracefully
- Output confirmation message in green
- 主要语言
- C#
- 星标
- 1
- 派生
- 0
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
csharpfritz/MyFirstTextGame 的其他 Issue
-
enhancement game-content squad:romanoff
难度 2/5 1-3 小时 新手友好度 62/100
-
enhancement game-content squad:romanoff
难度 3/5 1-2 天 新手友好度 45/100
-
squad:barton testing
难度 3/5 1-2 天 新手友好度 55/100
-
architecture enhancement squad:fury
难度 4/5 3-5 天 新手友好度 45/100
-
engine enhancement squad:banner
难度 3/5 1-2 天 新手友好度 58/100
查看 csharpfritz/MyFirstTextGame 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
nightscout/nocturne#1379 ·
-
priority-0
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 1/5 1 小时以内 新手友好度 78/100
StackExchange/StackExchange.Redis#3249 ·
-
难度 2/5 1-3 小时 新手友好度 68/100
-
documentation
难度 2/5 1-3 小时 新手友好度 72/100