mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-01-31 11:46:58 +08:00
Long comments are now ILLEGAL
This commit is contained in:
parent
5d5b05a7d9
commit
eb412ec8e1
@ -526,13 +526,16 @@ class CaptureTheFlagGame(bs.TeamGameActivity[Player, Team]):
|
|||||||
return
|
return
|
||||||
|
|
||||||
team = player.team
|
team = player.team
|
||||||
# For each "point" our player has touched the flag (Could be multiple),
|
# For each "point" our player has touched theflag (Could be multiple),
|
||||||
# deduct one from both our player and the flag's return touches variable.
|
# deduct one from both our player and
|
||||||
|
# the flag's return touches variable.
|
||||||
for _ in range(player.touching_own_flag):
|
for _ in range(player.touching_own_flag):
|
||||||
# Deduct
|
# Deduct
|
||||||
player.touching_own_flag -= 1
|
player.touching_own_flag -= 1
|
||||||
team.flag_return_touches -= 1
|
team.flag_return_touches -= 1
|
||||||
# Update our flag's timer accordingly (Prevents immediate resets in case there might be more people touching it).
|
# Update our flag's timer accordingly
|
||||||
|
# (Prevents immediate resets in case
|
||||||
|
# there might be more people touching it).
|
||||||
if team.flag_return_touches == 0:
|
if team.flag_return_touches == 0:
|
||||||
team.touch_return_timer = None
|
team.touch_return_timer = None
|
||||||
team.touch_return_timer_ticking = None
|
team.touch_return_timer_ticking = None
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user