diff --git a/frontend/src/components/Player.vue b/frontend/src/components/Player.vue index 43676c4..2c2ab44 100644 --- a/frontend/src/components/Player.vue +++ b/frontend/src/components/Player.vue @@ -26,7 +26,7 @@

{{hint}}

- + @@ -82,6 +82,7 @@ export default { desc: '', sidScrapForHealth: [], sidWantsScrapForHealth: false, + mancato_needed: 0, }), sockets: { role(role) { @@ -107,6 +108,7 @@ export default { this.win_status = self.win_status this.sight = self.sight this.attacker = self.attacker + this.mancato_needed = self.mancato_needed if (this.pending_action == 5 && self.target_p) { this.chooseCardFromPlayer(self.target_p) } else if (this.pending_action == 5) { @@ -123,6 +125,9 @@ export default { } }, computed:{ + respondText() { + return `Scegli come rispondere ${this.attacker?('a '+this.attacker):''}${(this.mancato_needed>1)?(' (NE OCCORRONO ' + this.mancato_needed + ')'):''}` + }, showScrapScreen() { return this.isEndingTurn && !this.canEndTurn && this.is_my_turn; },