feat: add Equipment system with slot validation and stat bonuses #1

Merged
Pakobbix merged 1 commits from feature/equipment-system into main 2026-07-03 09:16:58 +00:00
Collaborator

Equipment System

New Equipment tab with slot-type validation and stat bonus tracking.

Features

  • 19 equipment slots: Helmet, Necklace, Body Armor, Gloves, Pants, Shoes, 10 Rings, 3 Accessories
  • Slot-type validation prevents equipping two helmets, enforces per-category limits
  • Auto-slot assignment on equip
  • Stat bonuses from equipped items show as green bonuses on RPG attributes (e.g. "STR 10 +2")
  • Create/Edit modal with name, type, stats, description
  • Type change on equipped item auto-re-equips to valid slot

Architecture

  • Shared constants in src/systems/equipment/constants.js
  • Data model: items have type (category) + slot (specific slot ID)
  • Settings version 7 with v6→v7 migration
  • Desktop & mobile tabs, settings toggle, full i18n
## Equipment System New Equipment tab with slot-type validation and stat bonus tracking. ### Features - 19 equipment slots: Helmet, Necklace, Body Armor, Gloves, Pants, Shoes, 10 Rings, 3 Accessories - Slot-type validation prevents equipping two helmets, enforces per-category limits - Auto-slot assignment on equip - Stat bonuses from equipped items show as green bonuses on RPG attributes (e.g. "STR 10 +2") - Create/Edit modal with name, type, stats, description - Type change on equipped item auto-re-equips to valid slot ### Architecture - Shared constants in `src/systems/equipment/constants.js` - Data model: items have `type` (category) + `slot` (specific slot ID) - Settings version 7 with v6→v7 migration - Desktop & mobile tabs, settings toggle, full i18n
ARIA added 1 commit 2026-07-03 09:16:25 +00:00
Add a new Equipment tab to manage player gear and stat bonuses.

Features:
- 19 equipment slots across 8 categories (helmet, necklace, body armor, gloves, pants, shoes, rings, accessories)
- Type-to-slot validation: each type has max equipped limits (1 helmet, 10 rings, 3 accessories, etc.)
- Auto-slot assignment: equipping a ring fills the first available ring slot
- Stat bonuses from equipped items display on RPG attributes (e.g. STR 10 +2)
- Create/edit modal with stat checkboxes per RPG attribute
- Inventory list for unequipped items

Architecture:
- Shared constants in src/systems/equipment/constants.js
- Category-based types (Ring, Accessory) with auto-slot assignment
- v7 migration converts legacy slot-specific types to generic categories
- Full i18n support for all UI strings

Files:
- New: src/systems/equipment/constants.js
- New: src/systems/interaction/equipmentActions.js
- New: src/systems/rendering/equipment.js
- Modified: state.js, persistence.js, template.html, index.js
- Modified: userStats.js, desktop.js, mobile.js, layout.js, modals.js
- Modified: apiClient.js, sillytavern.js, style.css, en.json
Collaborator

No issues found — changes look consistent with the stated intent.

✅ No issues found — changes look consistent with the stated intent.
Pakobbix merged commit 411dc3eb9c into main 2026-07-03 09:16:58 +00:00
Pakobbix deleted branch feature/equipment-system 2026-07-03 09:16:58 +00:00
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Pakobbix/rpg-companion-sillytavern#1