Skip to content

Commit

Permalink
removed dungeon landmines on easy difficulty
Browse files Browse the repository at this point in the history
  • Loading branch information
Marx Mustermann committed Apr 25, 2024
1 parent b3453ed commit 5b3d464
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/story.py
Original file line number Diff line number Diff line change
Expand Up @@ -2869,11 +2869,12 @@ def setUpGlassHeartDungeon(self,pos,itemID,multiplier):
item = src.items.itemMap["Wall"]()
room.addItem(item,pos)

if counter < endIndex-2 or counter > endIndex+2:
if random.random() > 0.5:
for _i in range(random.randint(2,6)):
item = src.items.itemMap["LandMine"]()
room.addItem(item,(random.randint(1,11),random.randint(1,11),0))
if not self.difficulty == "easy":
if counter < endIndex-2 or counter > endIndex+2:
if random.random() > 0.5:
for _i in range(random.randint(2,6)):
item = src.items.itemMap["LandMine"]()
room.addItem(item,(random.randint(1,11),random.randint(1,11),0))

counter += 1

Expand Down

0 comments on commit 5b3d464

Please sign in to comment.