From e5072d7db9c7e0b06f554dc960b0ee4590776bf3 Mon Sep 17 00:00:00 2001 From: Alberto Xamin Date: Wed, 25 Jan 2023 17:40:09 +0000 Subject: [PATCH] add avatar to self in panico and cat balou --- frontend/src/components/Player.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/Player.vue b/frontend/src/components/Player.vue index 064879f..c0bdfc5 100644 --- a/frontend/src/components/Player.vue +++ b/frontend/src/components/Player.vue @@ -136,6 +136,7 @@ export default { committed_suit_manette: null, gold_nuggets: 0, cantplaycard: false, + avatar: '', hurt: false, }), sockets: { @@ -153,6 +154,7 @@ export default { self(self) { self = JSON.parse(self) this.name = self.name + this.avatar = self.avatar this.pending_action = self.pending_action this.character = self.character if (this.character != null) { @@ -270,11 +272,13 @@ export default { is_character: true, is_player: true }}) - if (this.card_against && this.card_against.can_target_self) { + if (this.card_against && this.card_against.can_target_self && this.equipment.length > 0) { vis.push({ name: this.name, - number: 0, - icon: this.$t('you'), + number: '0⛰', + alt_text: this.$t('you'), + avatar: this.avatar, + icon: '🤳', is_character: true, is_player: true })