mirror of https://github.com/bra1n/townsquare.git
added global reminders and new custom script (closes #37)
This commit is contained in:
parent
c3281d7118
commit
6ab0780803
|
@ -33,6 +33,7 @@ definition file might be written:
|
||||||
"otherNight": 49,
|
"otherNight": 49,
|
||||||
"otherNightReminder": "If either good living neighbor is drunk or poisoned, the Acrobat dies.",
|
"otherNightReminder": "If either good living neighbor is drunk or poisoned, the Acrobat dies.",
|
||||||
"reminders": ["Die"],
|
"reminders": ["Die"],
|
||||||
|
"remindersGlobal": [],
|
||||||
"setup": false,
|
"setup": false,
|
||||||
"name": "Acrobat",
|
"name": "Acrobat",
|
||||||
"team": "outsider",
|
"team": "outsider",
|
||||||
|
@ -59,6 +60,7 @@ For base game characters, it is sufficient to only provide the ID, similar to wh
|
||||||
other characters
|
other characters
|
||||||
- **firstNightReminder** / **otherNightReminder**: reminder text for first / other nights
|
- **firstNightReminder** / **otherNightReminder**: reminder text for first / other nights
|
||||||
- **reminders**: reminder tokens, should be an empty array `[]` if none
|
- **reminders**: reminder tokens, should be an empty array `[]` if none
|
||||||
|
- **remindersGlobal**: global reminder tokens that will always be available, no matter if the character is assigned to a player or not
|
||||||
- **setup**: whether this token affects setup (orange leaf), like the Drunk or Baron
|
- **setup**: whether this token affects setup (orange leaf), like the Drunk or Baron
|
||||||
- **name**: the displayed name of this character
|
- **name**: the displayed name of this character
|
||||||
- **team**: the team of the character, has to be one of `townsfolk`, `outsider`, `minion`, `demon` or `traveler`
|
- **team**: the team of the character, has to be one of `townsfolk`, `outsider`, `minion`, `demon` or `traveler`
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "townsquare",
|
"name": "townsquare",
|
||||||
"version": "1.3.2",
|
"version": "1.4.0",
|
||||||
"description": "Blood on the Clocktower Town Square",
|
"description": "Blood on the Clocktower Town Square",
|
||||||
"author": "Steffen Baumgart",
|
"author": "Steffen Baumgart",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -83,6 +83,10 @@ export default {
|
||||||
editions: editionJSON,
|
editions: editionJSON,
|
||||||
isCustom: false,
|
isCustom: false,
|
||||||
scripts: [
|
scripts: [
|
||||||
|
[
|
||||||
|
"Deadly Penance Day",
|
||||||
|
"https://gist.githubusercontent.com/bra1n/0337cc44c6fd2c44f7589256ed5486d2/raw/4a7a1545004620146f47583cde4b05f77dd9b6d2/penanceday.json"
|
||||||
|
],
|
||||||
[
|
[
|
||||||
"Catfishing 8.0 (+Sentinel)",
|
"Catfishing 8.0 (+Sentinel)",
|
||||||
"https://gist.githubusercontent.com/bra1n/8a5ec41a7bbf945f6b7dfc1cef72b569/raw/a9451def4bb7b3c424426e9524ee94f3ac65dbf4/catfishing.json"
|
"https://gist.githubusercontent.com/bra1n/8a5ec41a7bbf945f6b7dfc1cef72b569/raw/a9451def4bb7b3c424426e9524ee94f3ac65dbf4/catfishing.json"
|
||||||
|
|
|
@ -48,6 +48,16 @@ export default {
|
||||||
}))
|
}))
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
if (role.remindersGlobal && role.remindersGlobal.length) {
|
||||||
|
reminders = [
|
||||||
|
...reminders,
|
||||||
|
...role.remindersGlobal.map(name => ({
|
||||||
|
role: role.id,
|
||||||
|
image: role.image,
|
||||||
|
name
|
||||||
|
}))
|
||||||
|
];
|
||||||
|
}
|
||||||
});
|
});
|
||||||
reminders.push({ role: "good", name: "Good" });
|
reminders.push({ role: "good", name: "Good" });
|
||||||
reminders.push({ role: "evil", name: "Evil" });
|
reminders.push({ role: "evil", name: "Evil" });
|
||||||
|
|
|
@ -211,7 +211,8 @@
|
||||||
"firstNightReminder": "",
|
"firstNightReminder": "",
|
||||||
"otherNight": 0,
|
"otherNight": 0,
|
||||||
"otherNightReminder": "",
|
"otherNightReminder": "",
|
||||||
"reminders": [
|
"reminders": [],
|
||||||
|
"remindersGlobal": [
|
||||||
"Drunk"
|
"Drunk"
|
||||||
],
|
],
|
||||||
"setup": true,
|
"setup": true,
|
||||||
|
@ -1461,7 +1462,8 @@
|
||||||
"firstNightReminder": "Wake all Minions. The Minions point to a player that receives the Lil' Monsta token and becomes the Demon.",
|
"firstNightReminder": "Wake all Minions. The Minions point to a player that receives the Lil' Monsta token and becomes the Demon.",
|
||||||
"otherNight": 17,
|
"otherNight": 17,
|
||||||
"otherNightReminder": "Wake all Minions. The Minions point to a player that receives the Lil' Monsta token and becomes the Demon. Choose a player that dies.",
|
"otherNightReminder": "Wake all Minions. The Minions point to a player that receives the Lil' Monsta token and becomes the Demon. Choose a player that dies.",
|
||||||
"reminders": ["Die", "The Demon"],
|
"reminders": [],
|
||||||
|
"remindersGlobal": ["Die", "The Demon"],
|
||||||
"setup": true,
|
"setup": true,
|
||||||
"name": "Lil' Monsta",
|
"name": "Lil' Monsta",
|
||||||
"team": "demon",
|
"team": "demon",
|
||||||
|
|
|
@ -115,6 +115,7 @@ export default new Vuex.Store({
|
||||||
otherNight: 0,
|
otherNight: 0,
|
||||||
otherNightReminder: "",
|
otherNightReminder: "",
|
||||||
reminders: [],
|
reminders: [],
|
||||||
|
remindersGlobal: [],
|
||||||
setup: false
|
setup: false
|
||||||
};
|
};
|
||||||
state.roles = new Map(
|
state.roles = new Map(
|
||||||
|
|
Loading…
Reference in New Issue