add sean mallory
This commit is contained in:
parent
0ccaa3751d
commit
54ffc93565
@ -57,6 +57,13 @@ class ApacheKid(Character):
|
|||||||
self.desc_eng = "Cards of diamonds ♦️ played against him, do no have effect (doesn't work in duels)."
|
self.desc_eng = "Cards of diamonds ♦️ played against him, do no have effect (doesn't work in duels)."
|
||||||
self.icon = '♦️'
|
self.icon = '♦️'
|
||||||
|
|
||||||
|
class SeanMallory(Character):
|
||||||
|
def __init__(self):
|
||||||
|
super().__init__("Sean Mallory", max_lives=3)
|
||||||
|
self.desc = "Quando finisce il suo turno può tenere fino a 10 carte in mano"
|
||||||
|
self.desc_eng = "He can keep up to 10 cards in his hand when ending the turn."
|
||||||
|
self.icon = '🍟'
|
||||||
|
|
||||||
def all_characters() -> List[Character]:
|
def all_characters() -> List[Character]:
|
||||||
return [
|
return [
|
||||||
PixiePete(),
|
PixiePete(),
|
||||||
@ -67,6 +74,7 @@ def all_characters() -> List[Character]:
|
|||||||
BillNoface(),
|
BillNoface(),
|
||||||
MollyStark(),
|
MollyStark(),
|
||||||
ApacheKid(),
|
ApacheKid(),
|
||||||
|
SeanMallory(),
|
||||||
]
|
]
|
||||||
|
|
||||||
#Apache Kid: il suo effetto non conta nei duelli
|
#Apache Kid: il suo effetto non conta nei duelli
|
||||||
|
@ -233,7 +233,8 @@ class Player:
|
|||||||
self.play_card(len(self.hand)+i, against=target['name'])
|
self.play_card(len(self.hand)+i, against=target['name'])
|
||||||
has_played = True
|
has_played = True
|
||||||
break
|
break
|
||||||
if not has_played and len(self.hand) > self.lives:
|
maxcards = self.lives if not isinstance(self.character, chd.SeanMallory) else 10
|
||||||
|
if not has_played and len(self.hand) > maxcards:
|
||||||
self.scrap(0)
|
self.scrap(0)
|
||||||
else:
|
else:
|
||||||
self.end_turn()
|
self.end_turn()
|
||||||
@ -640,7 +641,8 @@ class Player:
|
|||||||
def end_turn(self, forced=False):
|
def end_turn(self, forced=False):
|
||||||
if not self.is_my_turn:
|
if not self.is_my_turn:
|
||||||
return
|
return
|
||||||
if len(self.hand) > self.max_lives and not forced:
|
maxcards = self.lives if not isinstance(self.character, chd.SeanMallory) else 10
|
||||||
|
if len(self.hand) > maxcards and not forced:
|
||||||
print(
|
print(
|
||||||
f"I {self.name} have to many cards in my hand and I can't end the turn")
|
f"I {self.name} have to many cards in my hand and I can't end the turn")
|
||||||
elif self.pending_action == PendingAction.PLAY or forced:
|
elif self.pending_action == PendingAction.PLAY or forced:
|
||||||
|
@ -50,7 +50,7 @@ class Vice(Role):
|
|||||||
class Outlaw(Role):
|
class Outlaw(Role):
|
||||||
def __init__(self, alternative_goal=None, alternative_goal_eng=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 sSheriff!"
|
self.goal_eng = "Kill the Sheriff!"
|
||||||
if alternative_goal:
|
if alternative_goal:
|
||||||
self.goal = alternative_goal
|
self.goal = alternative_goal
|
||||||
self.goal_eng = alternative_goal_eng
|
self.goal_eng = alternative_goal_eng
|
||||||
|
@ -189,7 +189,7 @@ export default {
|
|||||||
return x[this.pending_action]
|
return x[this.pending_action]
|
||||||
},
|
},
|
||||||
canEndTurn() {
|
canEndTurn() {
|
||||||
return (this.pending_action == 2 && this.hand.length <= this.lives)
|
return (this.pending_action == 2 && this.hand.length <= (this.character.name === "Sean Mallory"?10:this.lives))
|
||||||
},
|
},
|
||||||
respondCards() {
|
respondCards() {
|
||||||
let cc = [{
|
let cc = [{
|
||||||
|
Loading…
Reference in New Issue
Block a user