Merge branch 'dev' into main

This commit is contained in:
Giulio 2021-05-04 15:30:17 +02:00
commit 5746a67941
5 changed files with 7 additions and 7 deletions

View File

@ -9,7 +9,7 @@ class CardEvent(ABC):
class Agguato(CardEvent):
def __init__(self):
super().__init__("Agguato", "🛁")
self.desc = "La distanza base di tra 2 qualsiasi giocatori è 1"
self.desc = "La distanza base tra 2 qualsiasi giocatori è 1"
self.desc_eng = "The base distance from any 2 players is 1"
class Cecchino(CardEvent):

View File

@ -111,8 +111,8 @@ class Game:
cr = ''
for x in current_roles:
if (x not in cr):
cr += x + '|' + str(current_roles.count(x)) +'|'
self.sio.emit('chat_message', room=self.name, data=f'_allroles|{cr}')
cr += '|' +x + '|' + str(current_roles.count(x))
self.sio.emit('chat_message', room=self.name, data=f'_allroles{cr}')
self.play_turn()
def choose_characters(self):

View File

@ -423,6 +423,8 @@ class Player:
for i in range(self.max_lives-self.lives):
self.hand.append(self.game.deck.draw())
else:
if self.character.check(self.game, chd.PixiePete):
self.hand.append(self.game.deck.draw())
for i in range(2):
card: cs.Card = self.game.deck.draw()
self.hand.append(card)
@ -434,8 +436,6 @@ class Player:
self.hand.append(self.game.deck.draw())
if self.game.check_event(ceh.Sete):
return self.notify_self()
if self.character.check(self.game, chd.PixiePete):
self.hand.append(self.game.deck.draw())
if self.game.check_event(ceh.IlTreno) or (self.is_ghost and self.game.check_event(ceh.CittaFantasma)):
self.hand.append(self.game.deck.draw())
self.notify_self()

View File

@ -4,7 +4,7 @@
<h3>{{$t("chat.chat")}}</h3>
<transition-group name="message" tag="div" id="chatbox">
<!-- <div id="chatbox"> -->
<p style="margin:1pt;" class="chat-message selectable" v-for="(msg, i) in messages" v-bind:key="`${i}-c`" :style="`color:${msg.color}`">{{msg.text}}</p>
<p style="margin:1pt;" class="chat-message" v-for="(msg, i) in messages" v-bind:key="`${i}-c`" :style="`color:${msg.color}`">{{msg.text}}</p>
<p class="end" key="end" style="color:#0000">.</p>
<!-- </div> -->
</transition-group>

View File

@ -47,7 +47,7 @@ export default {
methods: {
showDesc(card) {
//console.log(card)
if (card.name == "PewPew!")
if (card.name == null || card.name == "PewPew!")
this.desc = ""
else if (card.desc)
this.desc = (this.$i18n.locale=='it'?card.desc:card.desc_eng)