diff options
-rw-r--r-- | bubbob/bonuses.py | 5 | ||||
-rw-r--r-- | bubbob/ext3/__init__.py | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/bubbob/bonuses.py b/bubbob/bonuses.py index b3ce653..882a292 100644 --- a/bubbob/bonuses.py +++ b/bubbob/bonuses.py @@ -1027,9 +1027,10 @@ class Potion(RandomBonus): ('potion4', 750, None), ] LocalDir = os.path.dirname(__file__) or os.curdir - Extensions = [s for s in os.listdir(LocalDir) + # print(f"LocalDir = {LocalDir}") + Extensions = [s for s in os.listdir(os.path.dirname(__file__) or os.curdir) if s.startswith('ext') and - os.path.isdir(os.path.join(LocalDir, s))] + os.path.isdir(os.path.join(os.path.dirname(__file__) or os.curdir, s))] random.shuffle(Extensions) extra_cheat_arg = None big = 0 diff --git a/bubbob/ext3/__init__.py b/bubbob/ext3/__init__.py index f5408c1..e5f91c8 100644 --- a/bubbob/ext3/__init__.py +++ b/bubbob/ext3/__init__.py @@ -128,8 +128,8 @@ class Shot(Bubble): class Alien(monsters.Monster): ANGLES = 32 SPEED = 5 - ANGLE_TABLE = [(SPEED * math.cos(a*2.0*math.pi/ANGLES), - -SPEED * math.sin(a*2.0*math.pi/ANGLES)) + ANGLE_TABLE = [(5 * math.cos(a*2.0*math.pi/32), + -5 * math.sin(a*2.0*math.pi/32)) for a in range(ANGLES)] touchable = 0 |