feat: Introduce lootdrop functionality, enabling activity-based spawning and interactive claiming, alongside new configuration parameters.

This commit is contained in:
syntaxbullet
2025-12-18 16:09:52 +01:00
parent e8f6a56057
commit 56ad5b49cd
5 changed files with 219 additions and 0 deletions

View File

@@ -29,6 +29,17 @@ export interface GameConfigType {
maxSlots: number;
},
commands: Record<string, boolean>;
lootdrop: {
activityWindowMs: number;
minMessages: number;
spawnChance: number;
cooldownMs: number;
reward: {
min: number;
max: number;
currency: string;
}
};
}
// Initial default config state
@@ -60,6 +71,7 @@ export function reloadConfig() {
maxStackSize: BigInt(rawConfig.inventory.maxStackSize),
};
config.commands = rawConfig.commands || {};
config.lootdrop = rawConfig.lootdrop;
console.log("🔄 Config reloaded from disk.");
}