fix potential bugs
This commit is contained in:
parent
64feee23ae
commit
b72319f335
@ -15,6 +15,8 @@ class StationCard:
|
|||||||
|
|
||||||
def discard_and_buy_train(self, player: "Player", card_index: int):
|
def discard_and_buy_train(self, player: "Player", card_index: int):
|
||||||
"""Discard the card and buy the train"""
|
"""Discard the card and buy the train"""
|
||||||
|
if self.attached_train is None:
|
||||||
|
return
|
||||||
card = player.available_cards.pop(card_index)
|
card = player.available_cards.pop(card_index)
|
||||||
for i, card in enumerate(player.hand):
|
for i, card in enumerate(player.hand):
|
||||||
if card == self:
|
if card == self:
|
||||||
|
@ -45,7 +45,7 @@ export default {
|
|||||||
},
|
},
|
||||||
suit() {
|
suit() {
|
||||||
if (this.card && !isNaN(this.card.suit)) {
|
if (this.card && !isNaN(this.card.suit)) {
|
||||||
let x = ["♦️", "♣️", "♥️", "♠️", "🤑"];
|
let x = ["♦️", "♣️", "♥️", "♠️", "🤑", "🚂"];
|
||||||
return x[this.card.suit];
|
return x[this.card.suit];
|
||||||
} else if (this.card.suit) {
|
} else if (this.card.suit) {
|
||||||
return this.card.suit;
|
return this.card.suit;
|
||||||
|
1257
frontend/yarn.lock
1257
frontend/yarn.lock
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user