mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-01 20:33:46 +08:00
Epic mode in keepaway.py
Added Epic mode support.
This commit is contained in:
parent
6f2d946bdf
commit
501f544ff8
@ -76,6 +76,7 @@ class KeepAwayGame(ba.TeamGameActivity[Player, Team]):
|
||||
],
|
||||
default=1.0,
|
||||
),
|
||||
ba.BoolSetting('Epic Mode', default=False),
|
||||
]
|
||||
scoreconfig = ba.ScoreConfig(label='Time Held')
|
||||
default_music = ba.MusicType.KEEP_AWAY
|
||||
@ -115,6 +116,8 @@ class KeepAwayGame(ba.TeamGameActivity[Player, Team]):
|
||||
self._flag: Flag | None = None
|
||||
self._hold_time = int(settings['Hold Time'])
|
||||
self._time_limit = float(settings['Time Limit'])
|
||||
self._epic_mode = bool(settings['Epic Mode'])
|
||||
self.slow_motion = self._epic_mode
|
||||
|
||||
def get_instance_description(self) -> str | Sequence:
|
||||
return 'Carry the flag for ${ARG1} seconds.', self._hold_time
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user