added frankenstein's mayor and fixed custom scripts

This commit is contained in:
Steffen 2020-05-19 12:12:35 +02:00
parent 89bc8cd971
commit 6223b11a20
No known key found for this signature in database
GPG Key ID: 764D74E98267DFC6
1 changed files with 5 additions and 1 deletions

View File

@ -82,6 +82,10 @@ export default {
[ [
"Race To The Bottom", "Race To The Bottom",
"https://gist.githubusercontent.com/bra1n/63e1354cb3dc9d4032bcd0623dc48888/raw/5be4df8386ec61e3a98c32be77f8cac3f8414379/custom-script.json" "https://gist.githubusercontent.com/bra1n/63e1354cb3dc9d4032bcd0623dc48888/raw/5be4df8386ec61e3a98c32be77f8cac3f8414379/custom-script.json"
],
[
"Frankenstein's Mayor by Ted",
"https://gist.githubusercontent.com/bra1n/32c52b422cc01b934a4291eeb81dbcee/raw/3ca5a043c41141ac40667dc15097deb327263268/Frankensteins_Mayor_by_Ted.json"
] ]
] ]
}; };
@ -116,7 +120,7 @@ export default {
}, },
parseScript(script) { parseScript(script) {
if (!script || !script.length) return; if (!script || !script.length) return;
const roles = script.map(({ id }) => id); const roles = script.map(({ id }) => id.replace(/[^a-z]/g, ""));
this.$store.commit("setRoles", roles); this.$store.commit("setRoles", roles);
this.$store.commit("setEdition", "custom"); this.$store.commit("setEdition", "custom");
this.isCustom = false; this.isCustom = false;