localization improvements
This commit is contained in:
parent
8157727972
commit
c9e63f1fdd
@ -47,7 +47,7 @@ class MollyStark(Character):
|
|||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__("Molly Stark", max_lives=4)
|
super().__init__("Molly Stark", max_lives=4)
|
||||||
self.desc = "Quando usa volontariamente una carta che ha in mano, fuori dal suo turno, ne ottiene un'altra dal mazzo"
|
self.desc = "Quando usa volontariamente una carta che ha in mano, fuori dal suo turno, ne ottiene un'altra dal mazzo"
|
||||||
self.desc_eng = "When she uses a card from her hand outside her turn, he draws a card."
|
self.desc_eng = "When she uses a card from her hand outside her turn, she draws a card."
|
||||||
self.icon = '🙅♀️'
|
self.icon = '🙅♀️'
|
||||||
|
|
||||||
class ApacheKid(Character):
|
class ApacheKid(Character):
|
||||||
|
@ -85,7 +85,7 @@ class Game:
|
|||||||
print(self.name)
|
print(self.name)
|
||||||
print(self.players[i].name)
|
print(self.players[i].name)
|
||||||
print(self.players[i].character)
|
print(self.players[i].character)
|
||||||
self.sio.emit('chat_message', room=self.name, data=f'_choose_character|{self.players[i].name}|{self.players[i].character.name}|{self.players[i].character.desc}')
|
self.sio.emit('chat_message', room=self.name, data=f'_choose_character|{self.players[i].name}|{self.players[i].character.name}|{self.players[i].character.desc}|{self.players[i].character.desc_eng}')
|
||||||
self.players[i].prepare()
|
self.players[i].prepare()
|
||||||
for k in range(self.players[i].max_lives):
|
for k in range(self.players[i].max_lives):
|
||||||
self.players[i].hand.append(self.deck.draw())
|
self.players[i].hand.append(self.deck.draw())
|
||||||
@ -114,9 +114,9 @@ class Game:
|
|||||||
available_roles: List[roles.Role] = []
|
available_roles: List[roles.Role] = []
|
||||||
if len(self.players) == 3:
|
if len(self.players) == 3:
|
||||||
available_roles = [
|
available_roles = [
|
||||||
roles.Vice('Elimina il Rinnegato 🦅, se non lo elimini tu elimina anche il Fuorilegge'),
|
roles.Vice('Elimina il Rinnegato 🦅, se non lo elimini tu elimina anche il Fuorilegge', 'Kill the Renegade 🦅, if you are not the one who kills him then kill the Outlaw!'),
|
||||||
roles.Renegade('Elimina il Fuorilegge 🐺, se non lo elimini tu elimina anche il Vice'),
|
roles.Renegade('Elimina il Fuorilegge 🐺, se non lo elimini tu elimina anche il Vice', 'Kill the Outlaw 🐺, if you are not the one who kills him then kill the Vice!'),
|
||||||
roles.Outlaw('Elimina il Vice 🎖, se non lo elimini tu elimina anche il Rinnegato')
|
roles.Outlaw('Elimina il Vice 🎖, se non lo elimini tu elimina anche il Rinnegato', 'Kill the Vice 🎖, if you are not the one who kills him then kill the Renegade!')
|
||||||
]
|
]
|
||||||
elif len(self.players) >= 4:
|
elif len(self.players) >= 4:
|
||||||
available_roles = [roles.Sheriff(), roles.Renegade(), roles.Outlaw(), roles.Outlaw(), roles.Vice(), roles.Outlaw(), roles.Vice(), roles.Renegade(), roles.Outlaw(), roles.Vice(), roles.Outlaw()]
|
available_roles = [roles.Sheriff(), roles.Renegade(), roles.Outlaw(), roles.Outlaw(), roles.Vice(), roles.Outlaw(), roles.Vice(), roles.Renegade(), roles.Outlaw(), roles.Vice(), roles.Outlaw()]
|
||||||
|
@ -28,11 +28,12 @@ class Sheriff(Role):
|
|||||||
|
|
||||||
|
|
||||||
class Vice(Role):
|
class Vice(Role):
|
||||||
def __init__(self, alternative_goal=None):
|
def __init__(self, alternative_goal=None, alternative_goal_eng=None):
|
||||||
super().__init__("Vice", "Proteggi lo Sceriffo! Elimina tutti i Fuorilegge e il Rinnegato!")
|
super().__init__("Vice", "Proteggi lo Sceriffo! Elimina tutti i Fuorilegge e il Rinnegato!")
|
||||||
self.goal_eng = "Protect the Sheriff! Kill the Outlaws and the Renegade!"
|
self.goal_eng = "Protect the Sheriff! Kill the Outlaws and the Renegade!"
|
||||||
if alternative_goal:
|
if alternative_goal:
|
||||||
self.goal = alternative_goal
|
self.goal = alternative_goal
|
||||||
|
self.goal_eng = alternative_goal_eng
|
||||||
self.max_players = 2
|
self.max_players = 2
|
||||||
self.icon = '🎖'
|
self.icon = '🎖'
|
||||||
|
|
||||||
@ -47,11 +48,12 @@ class Vice(Role):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
class Outlaw(Role):
|
class Outlaw(Role):
|
||||||
def __init__(self, alternative_goal=None):
|
def __init__(self, alternative_goal=None, alternative_goal_eng=None):
|
||||||
super().__init__("Fuorilegge", "Elimina lo Sceriffo!")
|
super().__init__("Fuorilegge", "Elimina lo Sceriffo!")
|
||||||
self.goal_eng = "Kill the Sheriff!"
|
self.goal_eng = "Kill the sSheriff!"
|
||||||
if alternative_goal:
|
if alternative_goal:
|
||||||
self.goal = alternative_goal
|
self.goal = alternative_goal
|
||||||
|
self.goal_eng = alternative_goal_eng
|
||||||
self.max_players = 3
|
self.max_players = 3
|
||||||
self.icon = '🐺'
|
self.icon = '🐺'
|
||||||
|
|
||||||
@ -66,11 +68,12 @@ class Outlaw(Role):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
class Renegade(Role):
|
class Renegade(Role):
|
||||||
def __init__(self, alternative_goal=None):
|
def __init__(self, alternative_goal=None, alternative_goal_eng=None):
|
||||||
super().__init__("Rinnegato", "Rimani l'ultimo personaggio in gioco!")
|
super().__init__("Rinnegato", "Rimani l'ultimo personaggio in gioco!")
|
||||||
self.goal_eng = "Be the last man standing!"
|
self.goal_eng = "Be the last man standing!"
|
||||||
if alternative_goal:
|
if alternative_goal:
|
||||||
self.goal = alternative_goal
|
self.goal = alternative_goal
|
||||||
|
self.goal_eng = alternative_goal_eng
|
||||||
self.max_players = 1
|
self.max_players = 1
|
||||||
self.icon = '🦅'
|
self.icon = '🦅'
|
||||||
|
|
||||||
|
@ -59,7 +59,7 @@
|
|||||||
"died": "{0} died",
|
"died": "{0} died",
|
||||||
"died_role": "{0} was a {1}!",
|
"died_role": "{0} was a {1}!",
|
||||||
"won": "{0} won!",
|
"won": "{0} won!",
|
||||||
"choose_character": "{0} has {1} as character, his special ability is: {2}!",
|
"choose_character": "{0} has {1} as character, his special ability is: {3}!",
|
||||||
"starting": "The game is starting!",
|
"starting": "The game is starting!",
|
||||||
"sheriff": "{0} is the sheriff!",
|
"sheriff": "{0} is the sheriff!",
|
||||||
"did_choose_character": "{0} did choose the character.",
|
"did_choose_character": "{0} did choose the character.",
|
||||||
|
Loading…
Reference in New Issue
Block a user