From d35b4b59c2144694811289ef5ab3eeb81f074cce Mon Sep 17 00:00:00 2001 From: MRegnard <62838312+MRegnard@users.noreply.github.com> Date: Wed, 4 Dec 2024 21:12:07 +0100 Subject: [PATCH] Showing pertinent Fabled during setup (#201) Showing Fabled which impact setup --- CHANGELOG.md | 3 +++ src/components/modals/RolesModal.vue | 29 ++++++++++++++++++++++++++-- 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f81a07c..6333526 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,12 +1,15 @@ # Release Notes ## Upcoming version + - Adding some special votes - Automatic Djinn and Bootlegger - Updating night order - Updating jinxes +- Showing pertinent Fabled during setup ### Version 3.20.1 + - Inconsistancies in french translations for "Power" & "Character" ### Version 3.20.0 diff --git a/src/components/modals/RolesModal.vue b/src/components/modals/RolesModal.vue index d72553a..43c8781 100644 --- a/src/components/modals/RolesModal.vue +++ b/src/components/modals/RolesModal.vue @@ -34,7 +34,17 @@ -
+ +
{{ locale.modal.roles.warning }}
@@ -97,8 +107,18 @@ export default { roles.some((role) => role.selected && role.setup), ); }, + fabledWithSetup: function () { + const { fabled } = this.$store.state.players; + let res = []; + for (let i = 0; i < fabled.length; i++) { + if (fabled[i].setup) { + res.push(fabled[i]); + } + } + return res; + }, ...mapState(["roles", "modals", "locale"]), - ...mapState("players", ["players"]), + ...mapState("players", ["players", "fabled"]), ...mapGetters({ nonTravelers: "players/nonTravelers" }), }, methods: { @@ -214,6 +234,11 @@ ul.tokens { 0 0 10px $traveler, 0 0 10px $traveler; } + &.fabled { + box-shadow: + 0 0 10px $fabled, + 0 0 10px $fabled; + } &:hover { transform: scale(1.2); z-index: 10;