From 7a1a2c64d531a321cc525352bcce4c605bd57371 Mon Sep 17 00:00:00 2001 From: Alberto Xamin Date: Wed, 16 Jun 2021 18:14:01 +0200 Subject: [PATCH] gold rush equipment --- frontend/src/components/Player.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/Player.vue b/frontend/src/components/Player.vue index 1cea7d0..c442546 100644 --- a/frontend/src/components/Player.vue +++ b/frontend/src/components/Player.vue @@ -12,7 +12,7 @@ 💀 - @@ -83,6 +83,7 @@ export default { character: null, availableCharacters: [], equipment: [], + gold_rush_equipment: [], hand: [], lives: 0, max_lives: 0, @@ -139,6 +140,7 @@ export default { this.character.is_character = true this.hand = self.hand this.equipment = self.equipment + this.gold_rush_equipment = self.gold_rush_equipment this.lives = self.lives this.max_lives = self.max_lives this.has_played_bang = self.has_played_bang @@ -258,6 +260,12 @@ export default { }) return cc }, + equipmentComputed() { + let eq = [] + this.equipment.forEach(x => eq.push(x)); + this.gold_rush_equipment.forEach(x => eq.push(x)); + return eq + }, handComputed() { return this.hand.map(x => { let cantBePlayed = false