mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-04 06:23:19 +08:00
return ctf fix
This commit is contained in:
parent
15b1d2ca84
commit
77bbcc8d75
@ -274,6 +274,11 @@ class CaptureTheFlagGame(ba.TeamGameActivity[Player, Team]):
|
|||||||
|
|
||||||
# If the enemy flag is already here, score!
|
# If the enemy flag is already here, score!
|
||||||
if team.enemy_flag_at_base:
|
if team.enemy_flag_at_base:
|
||||||
|
# And show team name which scored (but actually we could
|
||||||
|
# show here player who returned enemy flag).
|
||||||
|
self.show_zoom_message(ba.Lstr(resource='nameScoresText',
|
||||||
|
subs=[('${NAME}', team.name)]),
|
||||||
|
color=team.color)
|
||||||
self._score(team)
|
self._score(team)
|
||||||
else:
|
else:
|
||||||
team.enemy_flag_at_base = True
|
team.enemy_flag_at_base = True
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user