mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-03-22 01:26:31 +08:00
fix football description
Score 3.0 (?!) touchdowns -> Score 3 touchdowns. 'Score to Win' / 7 rounds up.
This commit is contained in:
parent
bd065dba2c
commit
ae8fc85647
@ -135,12 +135,17 @@ class FootballTeamGame(ba.TeamGameActivity):
|
||||
|
||||
def get_instance_description(self) -> Union[str, Sequence]:
|
||||
touchdowns = self.settings['Score to Win'] / 7
|
||||
# NOTE: if use just touchdowns = self.settings['Score to Win'] // 7
|
||||
# and we will need to score, for example, 27 points,
|
||||
# we will be required to score 3 (not 4) goals ..
|
||||
touchdowns = math.ceil(touchdowns)
|
||||
if touchdowns > 1:
|
||||
return 'Score ${ARG1} touchdowns.', touchdowns
|
||||
return 'Score a touchdown.'
|
||||
|
||||
def get_instance_scoreboard_description(self) -> Union[str, Sequence]:
|
||||
touchdowns = self.settings['Score to Win'] / 7
|
||||
touchdowns = math.ceil(touchdowns)
|
||||
if touchdowns > 1:
|
||||
return 'score ${ARG1} touchdowns', touchdowns
|
||||
return 'score a touchdown'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user