feat: Add lootbox item type with weighted rewards and dedicated UI for item usage results.

This commit is contained in:
syntaxbullet
2026-01-05 12:52:34 +01:00
parent 5606fb6e2f
commit 599684cde8
6 changed files with 109 additions and 10 deletions

View File

@@ -159,7 +159,6 @@ export const inventoryService = {
const results: string[] = [];
// 2. Apply Effects
// 2. Apply Effects
const { effectHandlers } = await import("./effects/registry");
@@ -179,7 +178,7 @@ export const inventoryService = {
await inventoryService.removeItem(userId, itemId, 1n, txFn);
}
return { success: true, results, usageData };
return { success: true, results, usageData, item };
}, tx);
}
};