Skip to content

Commit

Permalink
run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
ultimafia-bot committed Nov 10, 2023
1 parent 7a440d2 commit c4b7db7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
5 changes: 4 additions & 1 deletion Games/types/Mafia/roles/cards/SubtractTurkeyOnDeath.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ module.exports = class SubtractTurkeyOnDeath extends Card {
":turkey: The town thought they caught a Turkey, but instead you lose your lunch..."
);
for (let person of this.game.players) {
if (person.alive && person.role.name !== "Turkey" || person.role.name !== "Tofurkey") {
if (
(person.alive && person.role.name !== "Turkey") ||
person.role.name !== "Tofurkey"
) {
this.stealItemByName("Food", "Turkey");
}
}
Expand Down
12 changes: 9 additions & 3 deletions Games/types/Mafia/roles/cards/WinIfOnlyTurkeyAlive.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@ module.exports = class WinIfOnlyTurkeyAlive extends Card {
check: function (counts, winners, aliveCount) {
if (
this.player.alive &&
this.game.alivePlayers().filter((p) => p.role.name === "Turkey" || p.role.name === "Tofurkey")
.length === aliveCount
this.game
.alivePlayers()
.filter(
(p) => p.role.name === "Turkey" || p.role.name === "Tofurkey"
).length === aliveCount
) {
winners.addPlayer(this.player, this.name);
}
Expand All @@ -21,7 +24,10 @@ module.exports = class WinIfOnlyTurkeyAlive extends Card {
this.listeners = {
start: function () {
for (let player of this.game.players) {
if (player.role.name === "Turkey" || player.role.name === "Tofurkey" && player !== this.player) {
if (
player.role.name === "Turkey" ||
(player.role.name === "Tofurkey" && player !== this.player)
) {
this.revealToPlayer(player);
}
}
Expand Down

0 comments on commit c4b7db7

Please sign in to comment.