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",