From 6223b11a2013441b16bf0495e416fa00c9bc1d71 Mon Sep 17 00:00:00 2001 From: Steffen Date: Tue, 19 May 2020 12:12:35 +0200 Subject: [PATCH] added frankenstein's mayor and fixed custom scripts --- src/components/modals/EditionModal.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/modals/EditionModal.vue b/src/components/modals/EditionModal.vue index 3986707..3ad6fb2 100644 --- a/src/components/modals/EditionModal.vue +++ b/src/components/modals/EditionModal.vue @@ -82,6 +82,10 @@ export default { [ "Race To The Bottom", "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) { 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("setEdition", "custom"); this.isCustom = false;