Update hunger-games.js

This commit is contained in:
Dragon Fire
2024-05-05 11:33:44 -04:00
committed by GitHub
parent ddc80d2d98
commit 005d527a20
+5 -1
View File
@@ -128,7 +128,11 @@ module.exports = class HungerGamesCommand extends Command {
return event.tributes <= turn.size && event.deaths < turn.size;
});
const event = valid[Math.floor(Math.random() * valid.length)];
if (!event) console.log(tribute);
if (!event) {
console.log(tribute);
console.log(types);
console.log(valid);
}
turn.delete(tribute.name);
if (event.tributes === 1) {
if (event.requires === 'food') tribute.food--;