wyrt_equipment

v1.0.0Inventory

Equipment system with slot management, stat aggregation, and item requirements

Features

  • Configurable equipment slots (head, chest, weapon, etc.)
  • Automatic stat aggregation from equipped items
  • Item requirement validation (level, class, stats)
  • Equipment set bonuses
  • Durability tracking
  • Equip/unequip callbacks

Quick Start

const equipModule = context.getModule('wyrt_equipment');
const equipSystem = equipModule.createEquipmentSystem('my_game');

// Equip an item to a slot
await equipSystem.equip(playerId, 'weapon', ironSwordItem);

// Get aggregated stats
const stats = equipSystem.getEquipmentStats(playerId);
console.log(stats.attack, stats.defense);

// Unequip
const item = await equipSystem.unequip(playerId, 'weapon');

Exports

EquipmentSystem

Manages equipment slots and stat calculation