refactor(inventory): flatten effects directory structure

Move effect handlers from effects/ subdirectory to flat structure:
- effects/handlers.ts → effect.handlers.ts
- effects/registry.ts → effect.registry.ts
- effects/types.ts → effect.types.ts

Update import path in inventory.service.ts from
'@/modules/inventory/effects/registry' to
'@/modules/inventory/effect.registry'.

This reduces directory nesting and follows the convention of
keeping module files flat unless there are 5+ files.
This commit is contained in:
syntaxbullet
2026-02-12 12:15:17 +01:00
parent b0c3baf5b7
commit 8c306fbd23
4 changed files with 4 additions and 5 deletions

View File

@@ -171,7 +171,7 @@ export const inventoryService = {
const results: any[] = [];
// 2. Apply Effects
const { effectHandlers } = await import("@/modules/inventory/effects/registry");
const { effectHandlers } = await import("@/modules/inventory/effect.registry");
for (const effect of usageData.effects) {
const handler = effectHandlers[effect.type];