Skip to content

Commit

Permalink
Reformated with black
Browse files Browse the repository at this point in the history
Signed-off-by: JonathanLochridge <[email protected]>
  • Loading branch information
JonathanLochridge committed Mar 12, 2021
1 parent 7770879 commit 7914b99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions engine/actor.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ class ColdBoltEnemy(Actor):
def default_ai(self) -> engine.actions.Action:
return engine.actions.RangedIdle(self, effect=engine.effects.Cold(power=1), range=2)


class AcidBoltEnemy(Actor):
name = "acid caster"
faction = "hostile"
Expand Down
4 changes: 2 additions & 2 deletions procgen/dungeon.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def generate(
tunnel_indices = np.r_[
tcod.los.bresenham(t_start, t_middle), tcod.los.bresenham(t_middle, t_end) # Concatenate lines.
].transpose() # tunnel_indices[axis, index]
if level != 2: #makes Ice level have 1 wide walls.
if level != 2: # makes Ice level have 1 wide walls.
tunnel_indices = np.append(tunnel_indices, tunnel_indices - 1, axis=1) # Make tunnels 2 wide.
gm.tiles[tuple(tunnel_indices)] = engine.tiles.FLOOR
engine.rendering.debug_map(gm)
Expand All @@ -171,7 +171,7 @@ def generate(
for room in rooms[1:-1]:
if random.randint(0, 1):
# gm.add_actor(engine.actor.Actor(*room.center)) #placeholder enemies.
if level == 1: #Acid level
if level == 1: # Acid level
if random.randint(0, 1):
gm.add_actor(engine.actor.AcidBoltEnemy(*room.center))
else:
Expand Down

0 comments on commit 7914b99

Please sign in to comment.