From f8f8e6bcdfa6e5fe4df9767d1004ece76b8e36c6 Mon Sep 17 00:00:00 2001 From: Duc Ngo Viet Date: Mon, 22 Feb 2021 23:57:50 +0100 Subject: [PATCH 1/2] add werewolf config --- config/games/werewolfnight.ts | 43 +++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 config/games/werewolfnight.ts diff --git a/config/games/werewolfnight.ts b/config/games/werewolfnight.ts new file mode 100644 index 0000000..d1101f6 --- /dev/null +++ b/config/games/werewolfnight.ts @@ -0,0 +1,43 @@ +import { ServerGame } from "../../types/types"; +import { postJson } from "../../utils/utils"; + +const game: ServerGame = { + id: "werewolfnight", + name: "werewolf-night.com", + author: "Duc Ngo Viet", + description: `Werewolf-night is an interactive deduction game for + two teams: the villagers and the werewolves. + While the villagers do not know who the werewolves are, the werewolves try to remain undiscovered + and eliminate one villager after the other. + one by one...`, + displayUrlText: "werewolf-night.com", + displayUrlHref: "https://werewolf-night.com/", + donationUrlText: "Buy ducci a coffee!", + donationUrlHref: "https://www.buymeacoffee.com/ducci", + guideUrl: "https://werewolf-night.com/roles", + pictures: [ + "https://i.imgur.com/A7yqerc.jpg", + "https://i.imgur.com/He5amxk.jpg", + "https://i.imgur.com/96lH5JJ.jpg", + "https://i.imgur.com/17PUnb0.jpg", + ], + category: ["hard"], + players: "5-16", + familyFriendly: true, + minPlayers: 5, + maxPlayers: 16, + connectToGame: async () => { + const newUrl = "https://werewolf.uber.space/newRoom"; + const { gameCode } = await postJson(newUrl); + return { + player: { + url: "https://werewolf-night.com/game", + customQueryParams: { + roomId: gameCode, + }, + }, + }; + }, +}; + +export default game; From 3d1609d58ebaa4fbddb8ead0af2b23d2ca5521d4 Mon Sep 17 00:00:00 2001 From: Duc Ngo Viet <40763918+duc-talentwunder@users.noreply.github.com> Date: Tue, 17 Aug 2021 16:01:07 +0200 Subject: [PATCH 2/2] Update config/games/werewolfnight.ts Co-authored-by: Peter Oliver --- config/games/werewolfnight.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config/games/werewolfnight.ts b/config/games/werewolfnight.ts index d1101f6..4b64e5f 100644 --- a/config/games/werewolfnight.ts +++ b/config/games/werewolfnight.ts @@ -5,6 +5,12 @@ const game: ServerGame = { id: "werewolfnight", name: "werewolf-night.com", author: "Duc Ngo Viet", + basedOn: { + game: "Mafia", + author: "Dimitry Davidoff", + link: "https://en.wikipedia.org/wiki/Mafia_(party_game)", + bggId: 925, + }, description: `Werewolf-night is an interactive deduction game for two teams: the villagers and the werewolves. While the villagers do not know who the werewolves are, the werewolves try to remain undiscovered