From 092d77386ca8dc45f63586a420b25eb5a7313f17 Mon Sep 17 00:00:00 2001
From: MRegnard <62838312+MRegnard@users.noreply.github.com>
Date: Wed, 5 Jul 2023 18:31:48 +0200
Subject: [PATCH] Printing the number of alive no-Travellers (#90)
---
CHANGELOG.md | 10 +---------
src/components/TownInfo.vue | 8 ++++++++
src/main.js | 1 +
3 files changed, 10 insertions(+), 9 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index e0feecc..41990ea 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,17 +2,9 @@
======
-### Version 3.11.7
+Printing the number of alive non-Travellers
Adding the picture leaf-top6.png
-
----
-
-### Version 3.11.6
Some corrections in the jinxes (in French)
-
----
-
-### Version 3.11.5
Correcting Atheist's french description
---
diff --git a/src/components/TownInfo.vue b/src/components/TownInfo.vue
index 6a63148..436c63c 100644
--- a/src/components/TownInfo.vue
+++ b/src/components/TownInfo.vue
@@ -26,6 +26,10 @@
{{ teams.alive }}
+
+ {{ teams.aliveNT }}
+
+
{{ teams.votes }}
@@ -102,10 +106,14 @@ export default {
const { players } = this.$store.state.players;
const nonTravelers = this.$store.getters["players/nonTravelers"];
const alive = players.filter(player => player.isDead !== true).length;
+ const aliveNT = players.filter(
+ player => player.isDead !== true && player.role.team !== "traveler"
+ ).length;
return {
...gameJSON[nonTravelers - 5],
traveler: players.length - nonTravelers,
alive,
+ aliveNT,
votes:
alive +
players.filter(
diff --git a/src/main.js b/src/main.js
index 53b8c72..126edfe 100644
--- a/src/main.js
+++ b/src/main.js
@@ -27,6 +27,7 @@ const faIcons = [
"HandPaper",
"HandPointRight",
"Heartbeat",
+ "HouseUser",
"Image",
"Link",
"MinusCircle",