Tweak loot chances and corridor lengths

master
GreenXenith 2020-04-28 02:06:19 -07:00
parent a3ba0b9926
commit a203700edd
2 changed files with 4 additions and 4 deletions

View File

@ -107,11 +107,11 @@ class Generator():
def horiz_corridor(self, x1, x2, y):
for row in range(y - 1, y + 3):
for col in range(x1 - 1, x2 + 2):
for col in range(x1 - 1, x2 + 3):
self.board[row][col] = 1
def vert_corridor(self, y1, y2, x):
for row in range(y1, y2 + 2):
for row in range(y1, y2 + 3):
for col in range(x - 1, x + 3):
self.board[row][col] = 1

View File

@ -8,8 +8,8 @@ def rand(*args):
class Placer():
loot = [
["loot:coins", 5],
["loot:pile", 30],
["loot:coins", 10],
["loot:pile", 50],
]
def populate(self, map):