-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathgameConsts.js
75 lines (70 loc) · 2.51 KB
/
gameConsts.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
// All the constants needed to send to the server for different roles
// All of the roles that are available in the base set
const baseSetRoles = [
"Villager 1",
"Villager 2",
"Werewolf 1",
"Werewolf 2",
"Seer",
"Robber",
"Troublemaker",
"Tanner",
"Drunk",
"Hunter",
"Mason 1",
"Mason 2",
"Insomniac",
"Minion",
"Doppleganger"
].reduce((accum, msg) => {
accum[ msg ] = false
return accum
}, {});
// Roles
const villager = "Villager";
const werewolf = "Werewolf";
const loneWerewolf = "Lone Werewolf";
const seer = "Seer";
const robber = "Robber";
const troublemaker = "Troublemaker";
const tanner = "Tanner";
const drunk = "Drunk";
const hunter = "Hunter";
const mason = "Mason";
const insomniac = "Insomniac";
const minion = "Minion";
const doppleganger = "Doppleganger";
// Descriptions
const villagerDescription = "You are just villager, you do not have a night role";
const werewolfDescription = "The werewolves in this game are: ";
const loneWerewolfDescription = "Pick a center card to reveal";
const seerDescription = "You may look at another person's card, or two of the center cards";
const robberDescription = "You may exchange your card with another player's card, and view your new card";
const troublemakerDescription = "You may exchanage cards between two other players";
const tannerDescription = "You only win if you die at the end of the day";
const drunkDescription = "You must exchange your card with a center card but do not look at your new card";
const hunterDescription = "If you die, then the person you point at will also die";
const masonDescription = "The masons in this game are: ";
const insomniacDescription = "You may look at your card at the end of the night";
const dopplegangerDescription = "not implemented yet";
module.exports.roles = baseSetRoles;
module.exports.descriptions = {
"Villager 1": villagerDescription,
"Villager 2": villagerDescription,
"Werewolf 1": werewolfDescription,
"Werewolf 2": werewolfDescription,
"Werewolf": werewolfDescription,
"Lone Werewolf": loneWerewolfDescription,
"Seer": seerDescription,
"Robber": robberDescription,
"Troublemaker": troublemakerDescription,
"Tanner": tannerDescription,
"Drunk": drunkDescription,
"Hunter": hunterDescription,
"Mason 1": masonDescription,
"Mason 2": masonDescription,
"Mason": masonDescription,
"Insomniac": insomniacDescription,
"Minion": werewolfDescription,
"Doppleganger": dopplegangerDescription
}