Update hunger-games.js

This commit is contained in:
Dragon Fire
2024-05-05 17:29:41 -04:00
committed by GitHub
parent 8f2c98d14f
commit 3b1dd22300
+2 -2
View File
@@ -172,7 +172,7 @@ module.exports = class HungerGamesCommand extends Command {
const tribu = tributes.get(turnArr[Math.floor(Math.random() * turnArr.length)]);
if (event.requires === 'food') tribu.food--;
if (event.spoils) {
const spoils = event.spoils[i];
const spoils = event.spoils[i - 1];
if (spoils === 'food') tribu.food++;
if (spoils === '-food') tribu.food--;
else tribu.weapon = spoils;
@@ -184,7 +184,7 @@ module.exports = class HungerGamesCommand extends Command {
}
if (event.injured.includes(i)) tribu.injured = true;
if (event.cures.includes(i)) tribu.injured = false;
tribu.sanity += event.sanity[i];
tribu.sanity += event.sanity[i - 1];
current.push(tribu);
turn.delete(tribu.name);
}