better
This commit is contained in:
parent
8d94778d42
commit
82b261c8e5
@ -161,8 +161,8 @@ class Game:
|
|||||||
self.notify_event_card()
|
self.notify_event_card()
|
||||||
|
|
||||||
def attack_others(self, attacker: pl.Player):
|
def attack_others(self, attacker: pl.Player):
|
||||||
attacker.pending_action = pl.PendingAction.WAIT
|
|
||||||
self.attack_in_progress = True
|
self.attack_in_progress = True
|
||||||
|
attacker.pending_action = pl.PendingAction.WAIT
|
||||||
attacker.notify_self()
|
attacker.notify_self()
|
||||||
self.waiting_for = 0
|
self.waiting_for = 0
|
||||||
self.ready_count = 0
|
self.ready_count = 0
|
||||||
@ -172,13 +172,13 @@ class Game:
|
|||||||
self.waiting_for += 1
|
self.waiting_for += 1
|
||||||
p.notify_self()
|
p.notify_self()
|
||||||
if self.waiting_for == 0:
|
if self.waiting_for == 0:
|
||||||
self.attack_in_progress = False
|
|
||||||
attacker.pending_action = pl.PendingAction.PLAY
|
attacker.pending_action = pl.PendingAction.PLAY
|
||||||
attacker.notify_self()
|
attacker.notify_self()
|
||||||
|
self.attack_in_progress = False
|
||||||
|
|
||||||
def indian_others(self, attacker: pl.Player):
|
def indian_others(self, attacker: pl.Player):
|
||||||
attacker.pending_action = pl.PendingAction.WAIT
|
|
||||||
self.attack_in_progress = True
|
self.attack_in_progress = True
|
||||||
|
attacker.pending_action = pl.PendingAction.WAIT
|
||||||
attacker.notify_self()
|
attacker.notify_self()
|
||||||
self.waiting_for = 0
|
self.waiting_for = 0
|
||||||
self.ready_count = 0
|
self.ready_count = 0
|
||||||
@ -188,9 +188,9 @@ class Game:
|
|||||||
self.waiting_for += 1
|
self.waiting_for += 1
|
||||||
p.notify_self()
|
p.notify_self()
|
||||||
if self.waiting_for == 0:
|
if self.waiting_for == 0:
|
||||||
self.attack_in_progress = False
|
|
||||||
attacker.pending_action = pl.PendingAction.PLAY
|
attacker.pending_action = pl.PendingAction.PLAY
|
||||||
attacker.notify_self()
|
attacker.notify_self()
|
||||||
|
self.attack_in_progress = False
|
||||||
|
|
||||||
def attack(self, attacker: pl.Player, target_username:str, double:bool=False):
|
def attack(self, attacker: pl.Player, target_username:str, double:bool=False):
|
||||||
if self.get_player_named(target_username).get_banged(attacker=attacker, double=double):
|
if self.get_player_named(target_username).get_banged(attacker=attacker, double=double):
|
||||||
|
Loading…
Reference in New Issue
Block a user