mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-22 10:19:11 +02:00
Update hunger-games.js
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user