From 63e70f23c0619f082a00c8e5cae1a99d2fbf379c Mon Sep 17 00:00:00 2001 From: MrJetz <99152077+MrJetz@users.noreply.github.com> Date: Thu, 23 Jun 2022 20:45:57 +0800 Subject: [PATCH] Update meteorshower.py --- assets/src/ba_data/python/bastd/game/meteorshower.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/assets/src/ba_data/python/bastd/game/meteorshower.py b/assets/src/ba_data/python/bastd/game/meteorshower.py index ff2f7161..745fe2bc 100644 --- a/assets/src/ba_data/python/bastd/game/meteorshower.py +++ b/assets/src/ba_data/python/bastd/game/meteorshower.py @@ -1,6 +1,7 @@ # Released under the MIT License. See LICENSE for details. # """Defines a bomb-dodging mini-game.""" +# pylint: disable=line-too-long # ba_meta require api 7 # (see https://ballistica.net/wiki/meta-tag-system) @@ -188,9 +189,9 @@ class MeteorShowerGame(ba.TeamGameActivity[Player, Team]): # Drop them somewhere within our bounds with velocity pointing # toward the opposite side. pos = (-7.3 + 15.3 * random.random(), 11, - -5.5 + 2.1 * random.random()) + -5.57 + 2.1 * random.random()) dropdir = (-1.0 if pos[0] > 0 else 1.0) - vel = ((-5.0 + random.random() * 30.0) * dropdir, -4.0, 0) + vel = ((-5.0 + random.random() * 30.0) * dropdir, random.uniform(-3.066, -4.12), 0) ba.timer(delay, ba.Call(self._drop_bomb, pos, vel)) delay += 0.1 self._set_meteor_timer()