vagabond-rpg-foundryvtt/module/data/item
Cal Corum 1a36139387 Add slotsWhenEquipped system and equipment Active Effect sync
- Add getTotalSlots() method to base-item.mjs as unified interface
- Add slotsWhenEquipped field to weapon, armor, and equipment schemas
- Implement getTotalSlots() in each item type respecting equipped state
- Update actor slot calculation to use getTotalSlots() uniformly
- Add _onUpdate hook to sync equipment effects with equipped state
- Update backpack with slotsWhenEquipped: 0 and +2 slot bonus effect

Backpack now correctly:
- Costs 1 slot when unequipped, 0 when equipped
- Grants +2 max item slots via Active Effect when equipped

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-17 00:34:16 -06:00
..
_module.mjs Implement Phase 1: Complete data model system for actors and items 2025-12-12 15:22:09 -06:00
ancestry.mjs Complete P2-P5: Perks, Feature Choices, Ancestry Traits, Caster Progression 2025-12-16 14:23:44 -06:00
armor.mjs Add slotsWhenEquipped system and equipment Active Effect sync 2025-12-17 00:34:16 -06:00
base-item.mjs Add slotsWhenEquipped system and equipment Active Effect sync 2025-12-17 00:34:16 -06:00
class.mjs Review and correct all 18 class compendium JSONs 2025-12-16 16:24:59 -06:00
equipment.mjs Add slotsWhenEquipped system and equipment Active Effect sync 2025-12-17 00:34:16 -06:00
feature.mjs Add Phase 2 core system logic: document classes, dice rolling, and fixes 2025-12-13 10:21:48 -06:00
perk.mjs Add critical data model omissions from rulebook audit 2025-12-12 15:52:15 -06:00
spell.mjs Implement spell casting system with rulebook-accurate mana costs 2025-12-13 20:22:20 -06:00
weapon.mjs Add slotsWhenEquipped system and equipment Active Effect sync 2025-12-17 00:34:16 -06:00