Add plain-language item type template documentation

This commit is contained in:
Jage9
2026-02-21 18:57:02 -05:00
parent 8189881403
commit 4f04e735da
3 changed files with 121 additions and 0 deletions

View File

@@ -100,6 +100,8 @@ This is behavior-focused documentation for item types and their defaults.
Item types are currently code-registered on both server and client so new types are additive instead of editing one large branch.
For a full copy/paste example with plain-English explanation, see `docs/item-type-template.md`.
1. Server catalog: add global defaults in `server/app/item_catalog.py` (`ITEM_DEFINITIONS`).
2. Server handlers: add `validate_update` + `use` logic in `server/app/item_type_handlers.py` and register it in `ITEM_TYPE_HANDLERS`.
3. Server models: extend `ItemType` literals in `server/app/models.py` and any packet enums that list item types.