home
·
contact
·
privacy
projects
/
plomrogue2
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make fullness/emptiness of bottles visible via .thing_char.
[plomrogue2]
/
plomrogue
/
mapping.py
diff --git
a/plomrogue/mapping.py
b/plomrogue/mapping.py
index b4fadd7d30f1150b717d1ef9f5116ad21d668aed..d1fc9fb91457f6358698f855070e1c259ae88e62 100644
(file)
--- a/
plomrogue/mapping.py
+++ b/
plomrogue/mapping.py
@@
-264,7
+264,7
@@
class DijkstraMap(SourcedMap):
while shrunk:
shrunk = False
for i in range(self.size_i):
while shrunk:
shrunk = False
for i in range(self.size_i):
- if self.source_map_segment[i]
== 'X
':
+ if self.source_map_segment[i]
in 'X=
':
continue
neighbors = self.geometry.get_neighbors_i(i)
for direction in [d for d in neighbors if neighbors[d]]:
continue
neighbors = self.geometry.get_neighbors_i(i)
for direction in [d for d in neighbors if neighbors[d]]:
@@
-278,7
+278,7
@@
class DijkstraMap(SourcedMap):
# for n in self.terrain:
# line_to_print += ['%3s' % n]
# x += 1
# for n in self.terrain:
# line_to_print += ['%3s' % n]
# x += 1
- # if x >= self.size.x:
+ # if x >= self.
geometry.
size.x:
# x = 0
# print(' '.join(line_to_print))
# line_to_print = []
# x = 0
# print(' '.join(line_to_print))
# line_to_print = []