add avatar to self in panico and cat balou

This commit is contained in:
Alberto Xamin 2023-01-25 17:40:09 +00:00
parent 3815cc719f
commit e5072d7db9

View File

@ -136,6 +136,7 @@ export default {
committed_suit_manette: null, committed_suit_manette: null,
gold_nuggets: 0, gold_nuggets: 0,
cantplaycard: false, cantplaycard: false,
avatar: '',
hurt: false, hurt: false,
}), }),
sockets: { sockets: {
@ -153,6 +154,7 @@ export default {
self(self) { self(self) {
self = JSON.parse(self) self = JSON.parse(self)
this.name = self.name this.name = self.name
this.avatar = self.avatar
this.pending_action = self.pending_action this.pending_action = self.pending_action
this.character = self.character this.character = self.character
if (this.character != null) { if (this.character != null) {
@ -270,11 +272,13 @@ export default {
is_character: true, is_character: true,
is_player: 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({ vis.push({
name: this.name, name: this.name,
number: 0, number: '0⛰',
icon: this.$t('you'), alt_text: this.$t('you'),
avatar: this.avatar,
icon: '🤳',
is_character: true, is_character: true,
is_player: true is_player: true
}) })