PATCH team colour bugs by making team logic more robust

This commit is contained in:
2025-05-01 11:31:55 +02:00
parent b576537fb5
commit 5abf81c6cb
3 changed files with 21 additions and 14 deletions

View File

@@ -7,7 +7,7 @@ class Team:
def __init__(self):
self.players = []
self.score = 0
self.set_t()
self.id = 1
def add_player(self, player: Player):
self.players.append(player)
@@ -16,9 +16,9 @@ class Team:
self.players.remove(player)
def set_ct(self):
self.is_ct = True
self.id = 3
self.colour = CT_COLOUR
def set_t(self):
self.is_ct = False
self.id = 2
self.colour = T_COLOUR