mirror of
https://github.com/bra1n/townsquare.git
synced 2025-04-04 22:24:36 +00:00
Printing the number of alive no-Travellers (#90)
This commit is contained in:
parent
acab4147e4
commit
092d77386c
3 changed files with 10 additions and 9 deletions
10
CHANGELOG.md
10
CHANGELOG.md
|
@ -2,17 +2,9 @@
|
||||||
|
|
||||||
======
|
======
|
||||||
|
|
||||||
### Version 3.11.7
|
Printing the number of alive non-Travellers
|
||||||
Adding the picture leaf-top6.png
|
Adding the picture leaf-top6.png
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### Version 3.11.6
|
|
||||||
Some corrections in the jinxes (in French)
|
Some corrections in the jinxes (in French)
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### Version 3.11.5
|
|
||||||
Correcting Atheist's french description
|
Correcting Atheist's french description
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
|
@ -26,6 +26,10 @@
|
||||||
{{ teams.alive }}
|
{{ teams.alive }}
|
||||||
<font-awesome-icon class="alive" icon="heartbeat" />
|
<font-awesome-icon class="alive" icon="heartbeat" />
|
||||||
</span>
|
</span>
|
||||||
|
<span v-if="teams.traveler > 0">
|
||||||
|
{{ teams.aliveNT }}
|
||||||
|
<font-awesome-icon class="alive" icon="house-user" />
|
||||||
|
</span>
|
||||||
<span>
|
<span>
|
||||||
{{ teams.votes }} <font-awesome-icon class="votes" icon="vote-yea" />
|
{{ teams.votes }} <font-awesome-icon class="votes" icon="vote-yea" />
|
||||||
</span>
|
</span>
|
||||||
|
@ -102,10 +106,14 @@ export default {
|
||||||
const { players } = this.$store.state.players;
|
const { players } = this.$store.state.players;
|
||||||
const nonTravelers = this.$store.getters["players/nonTravelers"];
|
const nonTravelers = this.$store.getters["players/nonTravelers"];
|
||||||
const alive = players.filter(player => player.isDead !== true).length;
|
const alive = players.filter(player => player.isDead !== true).length;
|
||||||
|
const aliveNT = players.filter(
|
||||||
|
player => player.isDead !== true && player.role.team !== "traveler"
|
||||||
|
).length;
|
||||||
return {
|
return {
|
||||||
...gameJSON[nonTravelers - 5],
|
...gameJSON[nonTravelers - 5],
|
||||||
traveler: players.length - nonTravelers,
|
traveler: players.length - nonTravelers,
|
||||||
alive,
|
alive,
|
||||||
|
aliveNT,
|
||||||
votes:
|
votes:
|
||||||
alive +
|
alive +
|
||||||
players.filter(
|
players.filter(
|
||||||
|
|
|
@ -27,6 +27,7 @@ const faIcons = [
|
||||||
"HandPaper",
|
"HandPaper",
|
||||||
"HandPointRight",
|
"HandPointRight",
|
||||||
"Heartbeat",
|
"Heartbeat",
|
||||||
|
"HouseUser",
|
||||||
"Image",
|
"Image",
|
||||||
"Link",
|
"Link",
|
||||||
"MinusCircle",
|
"MinusCircle",
|
||||||
|
|
Loading…
Add table
Reference in a new issue