mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-01-23 07:23:19 +08:00
shuffle ffa spawn positions
This commit is contained in:
parent
f8af885807
commit
df31e4319b
@ -251,6 +251,9 @@ class Map(Actor):
|
||||
or [(0, 0, 0, 0, 0, 0)])
|
||||
self.ffa_spawn_points = (self.get_def_points('ffa_spawn')
|
||||
or [(0, 0, 0, 0, 0, 0)])
|
||||
# Let's shuffle our spawn points,
|
||||
# so that no one is offended by the constant spawn on the edge.
|
||||
random.shuffle(self.ffa_spawn_points)
|
||||
self.spawn_by_flag_points = (self.get_def_points('spawn_by_flag')
|
||||
or [(0, 0, 0, 0, 0, 0)])
|
||||
self.flag_points = self.get_def_points('flag') or [(0, 0, 0)]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user