add Lady Rosa del Texas
This commit is contained in:
parent
e33c2c3c48
commit
3b568c987f
@ -83,7 +83,7 @@ def get_all_events(rng=random):
|
||||
DarlingValentine(),
|
||||
# DorothyRage(),
|
||||
HelenaZontero(),
|
||||
# LadyRosaDelTexas(),
|
||||
LadyRosaDelTexas(),
|
||||
MissSusanna(),
|
||||
RegolamentoDiConti(),
|
||||
Sacagaway(),
|
||||
|
@ -525,6 +525,13 @@ class Player:
|
||||
self.pending_action = PendingAction.CHOOSE
|
||||
self.choose_text = 'choose_play_as_bang'
|
||||
self.notify_self()
|
||||
elif self.is_my_turn and self.pending_action == PendingAction.PLAY and pile == 'event' and self.game.check_event(cew.LadyRosaDelTexas):
|
||||
nextp = self.game.next_player()
|
||||
i, j = self.game.players_map[self.name], self.game.players_map[nextp.name]
|
||||
self.game.players[i], self.game.players[j] = nextp, self
|
||||
self.game.players_map[self.name], self.game.players_map[nextp.name] = j, i
|
||||
self.game.turn = j
|
||||
self.game.notify_all()
|
||||
elif self.is_my_turn and self.pending_action == PendingAction.PLAY and pile == 'event' and self.game.check_event(ce.Rimbalzo) and any((c.name == cs.Bang(0,0).name for c in self.hand)):
|
||||
self.available_cards = [{
|
||||
'name': p.name,
|
||||
|
@ -52,7 +52,13 @@ def test_helena_zontero():
|
||||
assert roles != roles2
|
||||
|
||||
# test LadyRosaDelTexas
|
||||
|
||||
def test_miss_suzanna():
|
||||
g = started_game(['wild_west_show'], 4)
|
||||
set_events(g, [None, LadyRosaDelTexas()])
|
||||
p = current_player_with_cards(g, [Card(0,'card',0)]*4)
|
||||
t = g.turn
|
||||
p.draw('event')
|
||||
assert g.turn == t+1
|
||||
|
||||
# test MissSusanna
|
||||
def test_miss_suzanna():
|
||||
|
Loading…
Reference in New Issue
Block a user