summaryrefslogtreecommitdiff
path: root/bubbob
diff options
context:
space:
mode:
authorDiego Roversi <diegor@tiscali.it>2019-09-20 10:59:44 +0200
committerDiego Roversi <diegor@tiscali.it>2019-09-20 10:59:44 +0200
commit41dcc63938e33f88ba0925f24d9835ab478e194d (patch)
tree8959720fd77bbd6c9a506e08097982e4da0650e0 /bubbob
parent27342a12e0f75fdb692186f6efdb3c4ed8fed09d (diff)
fix class attribute
Diffstat (limited to 'bubbob')
-rw-r--r--bubbob/bonuses.py5
-rw-r--r--bubbob/ext3/__init__.py4
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