Latest changes from private.

This commit is contained in:
Eric 2022-09-02 09:05:35 -07:00
parent 7ea7428b52
commit 54eb290b64
No known key found for this signature in database
GPG Key ID: 89C93F0F8D6D5A98
4 changed files with 8 additions and 8 deletions

View File

@ -145,8 +145,8 @@ class FootballTeamGame(ba.TeamGameActivity[Player, Team]):
self._time_limit = float(settings['Time Limit'])
self._epic_mode = bool(settings['Epic Mode'])
self.slow_motion = self._epic_mode
self.default_music = (ba.MusicType.EPIC if self._epic_mode else
ba.MusicType.FOOTBALL)
self.default_music = (ba.MusicType.EPIC
if self._epic_mode else ba.MusicType.FOOTBALL)
def get_instance_description(self) -> str | Sequence:
touchdowns = self._score_to_win / 7

View File

@ -205,8 +205,8 @@ class HockeyGame(ba.TeamGameActivity[Player, Team]):
self._time_limit = float(settings['Time Limit'])
self._epic_mode = bool(settings['Epic Mode'])
self.slow_motion = self._epic_mode
self.default_music = (ba.MusicType.EPIC if self._epic_mode else
ba.MusicType.HOCKEY)
self.default_music = (ba.MusicType.EPIC
if self._epic_mode else ba.MusicType.HOCKEY)
def get_instance_description(self) -> str | Sequence:
if self._score_to_win == 1:

View File

@ -117,8 +117,8 @@ class KeepAwayGame(ba.TeamGameActivity[Player, Team]):
self._time_limit = float(settings['Time Limit'])
self._epic_mode = bool(settings['Epic Mode'])
self.slow_motion = self._epic_mode
self.default_music = (ba.MusicType.EPIC if self._epic_mode else
ba.MusicType.KEEP_AWAY)
self.default_music = (ba.MusicType.EPIC
if self._epic_mode else ba.MusicType.KEEP_AWAY)
def get_instance_description(self) -> str | Sequence:
return 'Carry the flag for ${ARG1} seconds.', self._hold_time

View File

@ -131,8 +131,8 @@ class KingOfTheHillGame(ba.TeamGameActivity[Player, Team]):
# Base class overrides.
self.slow_motion = self._epic_mode
self.default_music = (ba.MusicType.EPIC if self._epic_mode else
ba.MusicType.SCARY)
self.default_music = (ba.MusicType.EPIC
if self._epic_mode else ba.MusicType.SCARY)
def get_instance_description(self) -> str | Sequence:
return 'Secure the flag for ${ARG1} seconds.', self._hold_time