mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Update hunger-games.js
This commit is contained in:
@@ -128,6 +128,7 @@ 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);
|
||||
turn.delete(tribute.name);
|
||||
if (event.tributes === 1) {
|
||||
if (event.requires === 'food') tribute.food--;
|
||||
|
||||
Reference in New Issue
Block a user