Commit Graph
1 Commits
Author SHA1 Message Date
西风逍遥游andCursor Agent 068085a93c feat: 高扩展性背包 / 物品栏模块 (inventory) (#17)
* feat: add extensible inventory/backpack module

Introduce eve.Inventory with data-driven items, Bag containers,
EquipmentSet, pluggable accept/capacity/stack rules, change events,
script bindings, tests, docs, and a playable example.

Co-authored-by: 西风逍遥游 <sunxfancy@gmail.com>

* fix: inventory tests for CHECK_EQ double-eval and never-stack slots

Store side-effecting call results before CHECK_EQ (zeroerr evaluates LHS
twice), and treat non-merging stack rules as per-slot capacity 1.

Co-authored-by: 西风逍遥游 <sunxfancy@gmail.com>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2026-08-10 13:03:46 +08:00