Update hunger-games.js

This commit is contained in:
Dragon Fire
2024-05-05 11:37:08 -04:00
committed by GitHub
parent 005d527a20
commit 9e6f6549de
+2 -3
View File
@@ -130,8 +130,7 @@ module.exports = class HungerGamesCommand extends Command {
const event = valid[Math.floor(Math.random() * valid.length)]; const event = valid[Math.floor(Math.random() * valid.length)];
if (!event) { if (!event) {
console.log(tribute); console.log(tribute);
console.log(types); console.log(type);
console.log(valid);
} }
turn.delete(tribute.name); turn.delete(tribute.name);
if (event.tributes === 1) { if (event.tributes === 1) {
@@ -184,7 +183,7 @@ module.exports = class HungerGamesCommand extends Command {
} }
if (event.injured.includes(i)) tribu.injured = true; if (event.injured.includes(i)) tribu.injured = true;
if (event.cures.includes(i)) tribu.injured = false; if (event.cures.includes(i)) tribu.injured = false;
tribute.sanity += event.sanity[i]; tribu.sanity += event.sanity[i];
current.push(tribu); current.push(tribu);
turn.delete(tribu.name); turn.delete(tribu.name);
} }