fix sid scrap
This commit is contained in:
parent
ecd3857963
commit
8d6f94fd01
@ -3,7 +3,7 @@
|
||||
<h4>{{card.name}}</h4>
|
||||
<div class="emoji">{{card.icon}}</div>
|
||||
<div class="alt_text">{{card.alt_text}}</div>
|
||||
<div class="suit">{{card.number}}{{suit}}</div>
|
||||
<div class="suit">{{number}}{{suit}}</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@ -20,6 +20,13 @@ export default {
|
||||
return x[this.card.suit];
|
||||
}
|
||||
return '';
|
||||
},
|
||||
number() {
|
||||
if (this.card.number === 1) return 'A'
|
||||
else if (this.card.number === 11) return 'J'
|
||||
else if (this.card.number === 12) return 'Q'
|
||||
else if (this.card.number === 13) return 'K'
|
||||
else return this.card.number
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -86,7 +86,6 @@ export default {
|
||||
players: [],
|
||||
messages: [],
|
||||
distances: {},
|
||||
self: {},
|
||||
hasToChoose: false,
|
||||
target_p: '',
|
||||
chooseCards: [],
|
||||
|
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div>
|
||||
<p v-if="instruction" class="center-stuff">{{instruction}}</p>
|
||||
<p v-if="instruction && lives > 0" class="center-stuff">{{instruction}}</p>
|
||||
<!-- <button v-if="canEndTurn" @click="end_turn">Termina Turno</button> -->
|
||||
<div class="equipment-slot">
|
||||
<Card v-if="my_role" :card="my_role" class="back"
|
||||
@ -238,8 +238,9 @@ export default {
|
||||
sidScrap(c) {
|
||||
this.scrapHand.push(this.hand.indexOf(c))
|
||||
if (this.scrapHand.length == 2) {
|
||||
this.$socket.emit('scrap', this.hand.indexOf(this.scrapHand[0]))
|
||||
this.$socket.emit('scrap', this.hand.indexOf(this.scrapHand[1]))
|
||||
let x = [this.hand.indexOf(this.scrapHand[0]), this.hand.indexOf(this.scrapHand[1])].sort().reverse()
|
||||
this.$socket.emit('scrap', x[0])
|
||||
this.$socket.emit('scrap', x[1])
|
||||
this.scrapHand = []
|
||||
this.sidWantsScrapForHealth = false
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user