From 3941b87da1ad783ebec94794323640a84df6e5f2 Mon Sep 17 00:00:00 2001 From: Pingumask Date: Sun, 30 Jul 2023 13:17:36 +0000 Subject: [PATCH] Script selection UI rework --- CHANGELOG.md | 3 + package-lock.json | 4 +- package.json | 2 +- src/components/modals/EditionModal.vue | 355 ++++++++++--------------- src/editions.json | 179 +++++++++++++ src/store/index.js | 10 +- src/store/locale/en/editions.json | 38 --- src/store/locale/en/ui.json | 8 +- src/store/locale/fr/editions.json | 38 --- src/store/locale/fr/ui.json | 8 +- src/store/modules/locale.js | 1 - 11 files changed, 337 insertions(+), 309 deletions(-) create mode 100644 src/editions.json delete mode 100644 src/store/locale/en/editions.json delete mode 100644 src/store/locale/fr/editions.json diff --git a/CHANGELOG.md b/CHANGELOG.md index f43bbc0..e201866 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ ## Upcomming Version +### Version 3.14.0 +Reworked script selection UI + ### Version 3.13.2 Malformed JSON breaking compilation diff --git a/package-lock.json b/package-lock.json index 7f41d1c..1da95ed 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "townsquare", - "version": "3.13.2", + "version": "3.14.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "townsquare", - "version": "3.13.2", + "version": "3.14.0", "license": "GPL-3.0", "dependencies": { "@fortawesome/fontawesome-svg-core": "^1.2.32", diff --git a/package.json b/package.json index cf7dc68..55fe5b9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "townsquare", - "version": "3.13.2", + "version": "3.14.0", "description": "Blood on the Clocktower Town Square", "author": "Pingumaskt", "scripts": { diff --git a/src/components/modals/EditionModal.vue b/src/components/modals/EditionModal.vue index 049b531..0030a26 100644 --- a/src/components/modals/EditionModal.vue +++ b/src/components/modals/EditionModal.vue @@ -1,84 +1,93 @@ @@ -92,142 +101,8 @@ export default { }, data: function() { return { - editions: this.$store.state.editions, - isCustom: false, - scripts: [ - [ - "Boozling", - "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/boozling.json" - ], - [ - "Catfishing", - "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/catfishing.json" - ], - [ - "Chaos in the streets", - "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/chaos_in_the_streets.json" - ], - [ - "Comrade Demon (Teensyville)", - "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/comrade_demon.json" - ], - [ - "Cultists of Atlantis", - "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/cultists_of_atlantis.json" - ], - [ - "Deadly Penance Day", - "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/deadly_penance_day.json" - ], - [ - "Frankenstein's Mayor (Teensyville)", - "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/frankensteins_mayor.json" - ], - [ - "Harold Holt's Revenge", - "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/harold_holts_revenge.json" - ], - [ - "Hide & Seek", - "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/hide_and_seek.json" - ], - [ - "Knowing me, Knowing you", - "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/knowing_me_knowing_you.json" - ], - [ - "Late night drive by 1.6 (Teensyville)", - "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/late_night_drive_by.json" - ], - [ - "Midnight Oasis", - "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/midnight_oasis.json" - ], - [ - "Minion is Angel Protected & the Demon Has 2 Bluffs (Teensyville)", - "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/minion_is_angel_protected_and_the_demon_has_2_bluffs.json" - ], - [ - "No greater joy (Teensyville)", - "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/no_greater_joy.json" - ], - [ - "No roles barred", - "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/no_roles_barred.json" - ], - [ - "On thin ice (Teensyville)", - "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/on_thin_ice.json" - ], - [ - "Pont Saint-Esprit", - "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/pont_saint_esprit.json" - ], - [ - "Poppyganda", - "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/poppyganda.json" - ], - [ - "Race to the bottom (Teensyville)", - "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/race_to_the_bottom.json" - ], - [ - "Reptiles !", - "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/reptiles.json" - ], - [ - "Reptiles II : Lizard in the city", - "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/reptiles2.json" - ], - [ - "Reykjavik's Scheme", - "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/reykjaviks_scheme.json" - ], - [ - "Rochambeau", - "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/rochambeau.json" - ], - [ - "Simpletown Village", - "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/simpletown_village.json" - ], - [ - "Spooky tea 2 : Very spooky (Teensyville)", - "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/spooky_tea2.json" - ], - [ - "Storyteller's Vengeance", - "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/storytellers_vengeance.json" - ], - [ - "The Horrifying Spectacle of Public Executions", - "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/the_horrifying_spectacle_of_public_executions.json" - ], - [ - "Trouble Brewing Advanced", - "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/trouble_brewing_advanced.json" - ], - [ - "Trouble with Violets", - "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/trouble_with_violets.json" - ], - [ - "Uncertain Death", - "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/uncertain_death.json" - ], - [ - "Vigormortis High school (Teensyville)", - "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/vigormortis_high_school.json" - ], - [ - "Visitors", - "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/visitors.json" - ], - [ - "Whose Cult is it Anyway", - "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/whose_cult_is_it_anyway.json" - ] - ] + tab: 'official', + }; }, computed: { @@ -301,7 +176,6 @@ export default { }); this.$store.commit("players/setFabled", { fabled }); } - this.isCustom = false; }, ...mapMutations(["toggleModal", "setEdition"]) } @@ -309,6 +183,10 @@ export default { diff --git a/src/editions.json b/src/editions.json new file mode 100644 index 0000000..db3475e --- /dev/null +++ b/src/editions.json @@ -0,0 +1,179 @@ +{ + "official": + [ + { + "id": "tb", + "name": "Trouble Brewing", + "author": "The Pandemonium Institute", + "description": "Clouds roll in over Ravenswood Bluff, engulfing this sleepy town and its superstitious inhabitants in foreboding shadow. Freshly-washed clothes dance eerily on lines strung between cottages. Chimneys cough plumes of smoke into the air. Exotic scents waft through cracks in windows and under doors, as hidden cauldrons lay bubbling. An unusually warm Autumn breeze wraps around vine-covered walls and whispers ominously to those brave enough to walk the cobbled streets.\n\nAnxious mothers call their children home from play, as thunder begins to clap on the horizon. If you listen more closely, however, noises stranger still can be heard echoing from the neighbouring forest. Under the watchful eye of a looming monastery, silhouetted figures skip from doorway to doorway. Those who can read the signs know there is... Trouble Brewing.", + "level": "Beginner", + "roles": [], + "isOfficial": true + }, + { + "id": "bmr", + "name": "Bad Moon Rising", + "author": "The Pandemonium Institute", + "description": "The sun is swallowed by a jagged horizon as another winter's day surrenders to the night. Flecks of orange and red decay into deeper browns, the forest transforming in silent anticipation of the coming snow.\n\nRavenous wolves howl from the bowels of a rocky crevasse beyond the town borders, sending birds scattering from their cozy rooks. Travelers hurry into the inn, seeking shelter from the gathering chill. They warm themselves with hot tea, sweet strains of music and hearty ale, unaware that strange and nefarious eyes stalk them from the ruins of this once great city.\n\nTonight, even the livestock know there is a... Bad Moon Rising.", + "level": "Intermediate", + "roles": [], + "isOfficial": true + }, + { + "id": "snv", + "name": "Sects & Violets", + "author": "The Pandemonium Institute", + "description": "Vibrant spring gives way to a warm and inviting summer. Flowers of every description blossom as far as the eye can see, tenderly nurtured in public gardens and window boxes overlooking the lavish promenade. Birds sing, artists paint and philosophers ponder life's greatest mysteries inside a bustling tavern as a circus pitches its endearingly ragged tent on the edge of town.\n\nAs the townsfolk bask in frivolity and mischief, indulging themselves in fine entertainment and even finer wine, dark and clandestine forces are assembling. Witches and cults lurk in majestic ruins on the fringes of the community, hosting secret meetings in underground caves and malevolently plotting the downfall of Ravenswood Bluff and its revelers.\n\nThe time is ripe for... Sects & Violets.", + "level": "Intermediate", + "roles": [], + "isOfficial": true + }, + { + "id": "luf", + "name": "Laissez Un Faire", + "author": "The Pandemonium Institute", + "description": "", + "level": "Veteran", + "roles": ["balloonist", "savant", "amnesiac", "fisherman", "artist", "cannibal", "mutant", "lunatic", "widow", "goblin", "leviathan"], + "isOfficial": true + } + ], + "popular" : + [ + [ + "Boozling", + "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/boozling.json" + ], + [ + "Catfishing", + "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/catfishing.json" + ], + [ + "Chaos in the streets", + "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/chaos_in_the_streets.json" + ], + [ + "Cultists of Atlantis", + "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/cultists_of_atlantis.json" + ], + [ + "Deadly Penance Day", + "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/deadly_penance_day.json" + ], + [ + "Harold Holt's Revenge", + "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/harold_holts_revenge.json" + ], + [ + "Hide & Seek", + "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/hide_and_seek.json" + ], + [ + "Knowing me, Knowing you", + "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/knowing_me_knowing_you.json" + ], + [ + "Midnight Oasis", + "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/midnight_oasis.json" + ], + [ + "No roles barred", + "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/no_roles_barred.json" + ], + [ + "Pont Saint-Esprit", + "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/pont_saint_esprit.json" + ], + [ + "Poppyganda", + "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/poppyganda.json" + ], + [ + "Reptiles !", + "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/reptiles.json" + ], + [ + "Reptiles II : Lizard in the city", + "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/reptiles2.json" + ], + [ + "Reykjavik's Scheme", + "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/reykjaviks_scheme.json" + ], + [ + "Rochambeau", + "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/rochambeau.json" + ], + [ + "Simpletown Village", + "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/simpletown_village.json" + ], + [ + "Storyteller's Vengeance", + "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/storytellers_vengeance.json" + ], + [ + "The Horrifying Spectacle of Public Executions", + "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/the_horrifying_spectacle_of_public_executions.json" + ], + [ + "Trouble Brewing Advanced", + "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/trouble_brewing_advanced.json" + ], + [ + "Trouble with Violets", + "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/trouble_with_violets.json" + ], + [ + "Uncertain Death", + "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/uncertain_death.json" + ], + [ + "Visitors", + "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/visitors.json" + ], + [ + "Whose Cult is it Anyway", + "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/whose_cult_is_it_anyway.json" + ] + ], + "teensyville": + [ + [ + "Comrade Demon", + "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/comrade_demon.json" + ], + [ + "Frankenstein's Mayor", + "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/frankensteins_mayor.json" + ], + [ + "Late night drive by 1.6", + "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/late_night_drive_by.json" + ], + [ + "Minion is Angel Protected & the Demon Has 2 Bluffs", + "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/minion_is_angel_protected_and_the_demon_has_2_bluffs.json" + ], + [ + "No greater joy", + "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/no_greater_joy.json" + ], + [ + "On thin ice", + "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/on_thin_ice.json" + ], + [ + "Race to the bottom", + "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/race_to_the_bottom.json" + ], + [ + "Spooky tea 2 : Very spooky", + "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/spooky_tea2.json" + ], + [ + "Vigormortis High school", + "https://raw.githubusercontent.com/Pingumask/townsquare/develop/src/assets/scripts/vigormortis_high_school.json" + ] + ] +} diff --git a/src/store/index.js b/src/store/index.js index 45b2faf..30675fa 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -4,19 +4,19 @@ import persistence from "./persistence"; import socket from "./socket"; import players from "./modules/players"; import session from "./modules/session"; +import editionJSON from "../editions.json"; import { locale, rolesJSON, jinxesJSON, - fabledJSON, - editionJSON + fabledJSON } from "./modules/locale"; Vue.use(Vuex); // helper functions -const getRolesByEdition = (edition = editionJSON[0]) => { +const getRolesByEdition = (edition = editionJSON.official[0]) => { return new Map( rolesJSON .filter(r => r.edition === edition.id || edition.roles.includes(r.id)) @@ -25,7 +25,7 @@ const getRolesByEdition = (edition = editionJSON[0]) => { ); }; -const getTravelersNotInEdition = (edition = editionJSON[0]) => { +const getTravelersNotInEdition = (edition = editionJSON.official[0]) => { return new Map( rolesJSON .filter( @@ -54,7 +54,7 @@ const clean = id => id.toLocaleLowerCase().replace(/[^a-z0-9]/g, ""); // global data maps const editionJSONbyId = new Map( - editionJSON.map(edition => [edition.id, edition]) + editionJSON.official.map(edition => [edition.id, edition]) ); const rolesJSONbyId = new Map(rolesJSON.map(role => [role.id, role])); const fabled = new Map(fabledJSON.map(role => [role.id, role])); diff --git a/src/store/locale/en/editions.json b/src/store/locale/en/editions.json deleted file mode 100644 index 58cff70..0000000 --- a/src/store/locale/en/editions.json +++ /dev/null @@ -1,38 +0,0 @@ -[ - { - "id": "tb", - "name": "Trouble Brewing", - "author": "The Pandemonium Institute", - "description": "Clouds roll in over Ravenswood Bluff, engulfing this sleepy town and its superstitious inhabitants in foreboding shadow. Freshly-washed clothes dance eerily on lines strung between cottages. Chimneys cough plumes of smoke into the air. Exotic scents waft through cracks in windows and under doors, as hidden cauldrons lay bubbling. An unusually warm Autumn breeze wraps around vine-covered walls and whispers ominously to those brave enough to walk the cobbled streets.\n\nAnxious mothers call their children home from play, as thunder begins to clap on the horizon. If you listen more closely, however, noises stranger still can be heard echoing from the neighbouring forest. Under the watchful eye of a looming monastery, silhouetted figures skip from doorway to doorway. Those who can read the signs know there is... Trouble Brewing.", - "level": "Beginner", - "roles": [], - "isOfficial": true - }, - { - "id": "bmr", - "name": "Bad Moon Rising", - "author": "The Pandemonium Institute", - "description": "The sun is swallowed by a jagged horizon as another winter's day surrenders to the night. Flecks of orange and red decay into deeper browns, the forest transforming in silent anticipation of the coming snow.\n\nRavenous wolves howl from the bowels of a rocky crevasse beyond the town borders, sending birds scattering from their cozy rooks. Travelers hurry into the inn, seeking shelter from the gathering chill. They warm themselves with hot tea, sweet strains of music and hearty ale, unaware that strange and nefarious eyes stalk them from the ruins of this once great city.\n\nTonight, even the livestock know there is a... Bad Moon Rising.", - "level": "Intermediate", - "roles": [], - "isOfficial": true - }, - { - "id": "snv", - "name": "Sects & Violets", - "author": "The Pandemonium Institute", - "description": "Vibrant spring gives way to a warm and inviting summer. Flowers of every description blossom as far as the eye can see, tenderly nurtured in public gardens and window boxes overlooking the lavish promenade. Birds sing, artists paint and philosophers ponder life's greatest mysteries inside a bustling tavern as a circus pitches its endearingly ragged tent on the edge of town.\n\nAs the townsfolk bask in frivolity and mischief, indulging themselves in fine entertainment and even finer wine, dark and clandestine forces are assembling. Witches and cults lurk in majestic ruins on the fringes of the community, hosting secret meetings in underground caves and malevolently plotting the downfall of Ravenswood Bluff and its revelers.\n\nThe time is ripe for... Sects & Violets.", - "level": "Intermediate", - "roles": [], - "isOfficial": true - }, - { - "id": "luf", - "name": "Laissez un Faire", - "author": "The Pandemonium Institute", - "description": "", - "level": "Veteran", - "roles": ["balloonist", "savant", "amnesiac", "fisherman", "artist", "cannibal", "mutant", "lunatic", "widow", "goblin", "leviathan"], - "isOfficial": true - } -] diff --git a/src/store/locale/en/ui.json b/src/store/locale/en/ui.json index 578101e..4404802 100644 --- a/src/store/locale/en/ui.json +++ b/src/store/locale/en/ui.json @@ -163,9 +163,13 @@ "modal":{ "edition":{ "title": "Select an edition:", + "tab": { + "official": "Official scripts", + "popular": "Popular scripts", + "teensyville": "Teensyville", + "custom": "Load custom" + }, "custom": { - "button": "Custom Script / Characters", - "title": "Load custom script / characters", "introStart": "To play with a custom script, you need to select the characters you want to play with in the official", "scriptTool": "Script Tool", "introEnd": "and then upload the generated \"custom-list.json\" either directly here or provide a URL to such a hosted JSON file.", diff --git a/src/store/locale/fr/editions.json b/src/store/locale/fr/editions.json deleted file mode 100644 index 71afa22..0000000 --- a/src/store/locale/fr/editions.json +++ /dev/null @@ -1,38 +0,0 @@ -[ - { - "id": "tb", - "name": "Trouble Brewing", - "author": "The Pandemonium Institute", - "description": "Clouds roll in over Ravenswood Bluff, engulfing this sleepy town and its superstitious inhabitants in foreboding shadow. Freshly-washed clothes dance eerily on lines strung between cottages. Chimneys cough plumes of smoke into the air. Exotic scents waft through cracks in windows and under doors, as hidden cauldrons lay bubbling. An unusually warm Autumn breeze wraps around vine-covered walls and whispers ominously to those brave enough to walk the cobbled streets.\n\nAnxious mothers call their children home from play, as thunder begins to clap on the horizon. If you listen more closely, however, noises stranger still can be heard echoing from the neighbouring forest. Under the watchful eye of a looming monastery, silhouetted figures skip from doorway to doorway. Those who can read the signs know there is... Trouble Brewing.", - "level": "Beginner", - "roles": [], - "isOfficial": true - }, - { - "id": "bmr", - "name": "Bad Moon Rising", - "author": "The Pandemonium Institute", - "description": "The sun is swallowed by a jagged horizon as another winter's day surrenders to the night. Flecks of orange and red decay into deeper browns, the forest transforming in silent anticipation of the coming snow.\n\nRavenous wolves howl from the bowels of a rocky crevasse beyond the town borders, sending birds scattering from their cozy rooks. Travelers hurry into the inn, seeking shelter from the gathering chill. They warm themselves with hot tea, sweet strains of music and hearty ale, unaware that strange and nefarious eyes stalk them from the ruins of this once great city.\n\nTonight, even the livestock know there is a... Bad Moon Rising.", - "level": "Intermediate", - "roles": [], - "isOfficial": true - }, - { - "id": "snv", - "name": "Sects & Violets", - "author": "The Pandemonium Institute", - "description": "Vibrant spring gives way to a warm and inviting summer. Flowers of every description blossom as far as the eye can see, tenderly nurtured in public gardens and window boxes overlooking the lavish promenade. Birds sing, artists paint and philosophers ponder life's greatest mysteries inside a bustling tavern as a circus pitches its endearingly ragged tent on the edge of town.\n\nAs the townsfolk bask in frivolity and mischief, indulging themselves in fine entertainment and even finer wine, dark and clandestine forces are assembling. Witches and cults lurk in majestic ruins on the fringes of the community, hosting secret meetings in underground caves and malevolently plotting the downfall of Ravenswood Bluff and its revelers.\n\nThe time is ripe for... Sects & Violets.", - "level": "Intermediate", - "roles": [], - "isOfficial": true - }, - { - "id": "luf", - "name": "Laissez Un Faire", - "author": "The Pandemonium Institute", - "description": "", - "level": "Veteran", - "roles": ["balloonist", "savant", "amnesiac", "fisherman", "artist", "cannibal", "mutant", "lunatic", "widow", "goblin", "leviathan"], - "isOfficial": true - } -] diff --git a/src/store/locale/fr/ui.json b/src/store/locale/fr/ui.json index 8119d92..de22f54 100644 --- a/src/store/locale/fr/ui.json +++ b/src/store/locale/fr/ui.json @@ -163,9 +163,13 @@ "modal":{ "edition":{ "title": "Choisir un Scénario :", + "tab": { + "official": "Scénarios officiels", + "popular": "Scripts populaires", + "teensyville": "Teensyville", + "custom": "Partie personnalisée" + }, "custom": { - "button": "Scénario Perso / Personnages", - "title": "Charger un Scénario Perso", "introStart": "Pour jouer avec un script personnalisé, vous pouvez sélectionner les personnages de votre choix grace à l'", "scriptTool": "outil officiel d'édition de scripts", "introEnd": "puis téléverser le fichier json généré directement ici ou depuis une URL hébergée.", diff --git a/src/store/modules/locale.js b/src/store/modules/locale.js index 3079d16..68d860c 100644 --- a/src/store/modules/locale.js +++ b/src/store/modules/locale.js @@ -27,4 +27,3 @@ export const locale = require(`../locale/${usedLanguage}/ui.json`); export const rolesJSON = require(`../locale/${usedLanguage}/roles.json`); export const jinxesJSON = require(`../locale/${usedLanguage}/hatred.json`); export const fabledJSON = require(`../locale/${usedLanguage}/fabled.json`); -export const editionJSON = require(`../locale/${usedLanguage}/editions.json`);