From 9f48ec19a92b58882da9f40ff4e9bfdc1e9f3ebd Mon Sep 17 00:00:00 2001 From: Duc Ngo Viet Date: Thu, 25 Feb 2021 01:20:41 +0100 Subject: [PATCH 1/2] add secret hitler to rocketcrab --- config/games/secrethitler.ts | 39 ++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 config/games/secrethitler.ts diff --git a/config/games/secrethitler.ts b/config/games/secrethitler.ts new file mode 100644 index 0000000..c8d23d3 --- /dev/null +++ b/config/games/secrethitler.ts @@ -0,0 +1,39 @@ +import { ServerGame } from "../../types/types"; +import { postJson } from "../../utils/utils"; + +const game: ServerGame = { + id: "secrethitler-duc", + name: "Secret Hitler", + author: "Duc Ngo Viet", + description: `Secret Hitler is a social deduction game for 5-10 people about finding and stopping the Secret Hitler. Players are secretly divided into two teams: the liberals, who have a majority, and the fascists, who are hidden to everyone but each other. If the liberals can learn to trust each other, they have enough votes to control the elections and save the day. But the fascists will say whatever it takes to get elected, advance their agenda, and win the game.`, + displayUrlText: "secret-hitler.com", + displayUrlHref: "https://secret-hitler.com/", + donationUrlText: "Buy ducci a coffee!", + donationUrlHref: "https://www.buymeacoffee.com/ducci", + guideUrl: "https://www.ultraboardgames.com/secret-hitler/game-rules.php", + pictures: [ + "https://i.imgur.com/1WunWnQ.jpg", + "https://i.imgur.com/qGLaOnR.jpg", + "https://i.imgur.com/dZ0J1GS.jpg", + "https://i.imgur.com/W6T40Ot.jpg", + ], + category: ["hard"], + players: "5-10", + familyFriendly: false, + minPlayers: 5, + maxPlayers: 10, + connectToGame: async () => { + const newUrl = "https://inspiring-hugle-c583a0.netlify.app/.netlify/functions/secretHitler"; + const { gameCode } = await postJson(newUrl); + return { + player: { + url: "https://secret-hitler.com/", + customQueryParams: { + roomId: gameCode, + }, + }, + }; + }, +}; + +export default game; From d084ac778ff328335973e339c19312f0875d853f Mon Sep 17 00:00:00 2001 From: Duc Ngo Viet <40763918+duc-talentwunder@users.noreply.github.com> Date: Tue, 17 Aug 2021 16:00:44 +0200 Subject: [PATCH 2/2] Update config/games/secrethitler.ts Co-authored-by: Peter Oliver --- config/games/secrethitler.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config/games/secrethitler.ts b/config/games/secrethitler.ts index c8d23d3..2868c14 100644 --- a/config/games/secrethitler.ts +++ b/config/games/secrethitler.ts @@ -5,6 +5,12 @@ const game: ServerGame = { id: "secrethitler-duc", name: "Secret Hitler", author: "Duc Ngo Viet", + basedOn: { + game: "Secret Hitler", + author: "Goat, Wolf, & Cabbage LLC", + link: "https://www.secrethitler.com/", + bggId: 188834, + }, description: `Secret Hitler is a social deduction game for 5-10 people about finding and stopping the Secret Hitler. Players are secretly divided into two teams: the liberals, who have a majority, and the fascists, who are hidden to everyone but each other. If the liberals can learn to trust each other, they have enough votes to control the elections and save the day. But the fascists will say whatever it takes to get elected, advance their agenda, and win the game.`, displayUrlText: "secret-hitler.com", displayUrlHref: "https://secret-hitler.com/",