-
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
audit: oracle visits and can be roleblocked (use astral/unblockable m…
…ods)
- Loading branch information
Showing
11 changed files
with
85 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
const Role = require("../../Role"); | ||
|
||
module.exports = class Tofurkey extends Role { | ||
constructor(player, data) { | ||
super("Tofurkey", player, data); | ||
|
||
this.alignment = "Hostile"; | ||
this.cards = [ | ||
"VillageCore", | ||
"MeetingTurkey", | ||
"SubtractTurkeyOnDeath", | ||
"FamineStarter", | ||
"FamineImmune", | ||
"WinIfOnlyTurkeyAlive", | ||
]; | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
const Card = require("../../Card"); | ||
|
||
module.exports = class MeetingTurkey extends Card { | ||
constructor(role) { | ||
super(role); | ||
|
||
this.meetings = { | ||
"Turkey Meeting": { | ||
states: ["Night"], | ||
flags: ["group", "speech"], | ||
}, | ||
}; | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
const Card = require("../../Card"); | ||
const { PRIORITY_ITEM_TAKER_DEFAULT } = require("../../const/Priority"); | ||
|
||
module.exports = class SubtractTurkeyOnDeath extends Card { | ||
constructor(role) { | ||
super(role); | ||
|
||
this.meetings = { | ||
"Turkey Meeting": { | ||
states: ["Night"], | ||
flags: ["group", "speech"], | ||
}, | ||
}; | ||
|
||
this.listeners = { | ||
priority: PRIORITY_ITEM_TAKER_DEFAULT, | ||
death: function (player, killer, deathType) { | ||
if (player === this.player) { | ||
this.game.queueAlert( | ||
":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") { | ||
this.stealItemByName("Food", "Turkey"); | ||
} | ||
} | ||
} | ||
}, | ||
}; | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters