metric of the number of players
This commit is contained in:
parent
4af54f79dd
commit
dcfdacc6df
@ -258,6 +258,7 @@ class Game:
|
|||||||
self.choose_characters()
|
self.choose_characters()
|
||||||
if 'gold_rush' in self.expansions:
|
if 'gold_rush' in self.expansions:
|
||||||
self.notify_gold_rush_shop()
|
self.notify_gold_rush_shop()
|
||||||
|
Metrics.send_metric('start_game', points=[1], tags=([f"exp:{e}" for e in self.expansions] + [f"players:{self.initial_players}"]))
|
||||||
|
|
||||||
def distribute_roles(self):
|
def distribute_roles(self):
|
||||||
available_roles: List[roles.Role] = []
|
available_roles: List[roles.Role] = []
|
||||||
|
@ -272,7 +272,6 @@ def start_game(sid):
|
|||||||
ses: Player = sio.get_session(sid)
|
ses: Player = sio.get_session(sid)
|
||||||
ses.game.start_game()
|
ses.game.start_game()
|
||||||
advertise_lobbies()
|
advertise_lobbies()
|
||||||
Metrics.send_metric('start_game', points=[1], tags=[f"exp:{e}" for e in ses.game.expansions])
|
|
||||||
|
|
||||||
@sio.event
|
@sio.event
|
||||||
def set_character(sid, name):
|
def set_character(sid, name):
|
||||||
|
Loading…
Reference in New Issue
Block a user