home
·
contact
·
privacy
projects
/
plomrogue2-experiments
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Redo world generation with GEN_MAP command.
[plomrogue2-experiments]
/
client.py
diff --git
a/client.py
b/client.py
index 11d33ccaba367f06d0a70cba78fd14dd662823a9..e02de21017dad347c5e9017bced5451db242cf18 100755
(executable)
--- a/
client.py
+++ b/
client.py
@@
-14,7
+14,7
@@
class MapSquare(game_common.Map):
map_lines = []
start_cut = 0
while start_cut < len(terrain):
map_lines = []
start_cut = 0
while start_cut < len(terrain):
- limit = start_cut + self.
game.world.map_.
size[1]
+ limit = start_cut + self.size[1]
map_lines += [terrain[start_cut:limit]]
start_cut = limit
return "\n".join(map_lines)
map_lines += [terrain[start_cut:limit]]
start_cut = limit
return "\n".join(map_lines)
@@
-23,7
+23,7
@@
class MapSquare(game_common.Map):
class MapHex(game_common.Map):
def list_terrain_to_lines(self, terrain_as_list):
class MapHex(game_common.Map):
def list_terrain_to_lines(self, terrain_as_list):
- new_terrain_list = []
+ new_terrain_list = [
' '
]
x = 0
y = 0
for c in terrain_as_list:
x = 0
y = 0
for c in terrain_as_list:
@@
-33,7
+33,7
@@
class MapHex(game_common.Map):
new_terrain_list += ['\n']
x = 0
y += 1
new_terrain_list += ['\n']
x = 0
y += 1
- if y % 2
!
= 0:
+ if y % 2
=
= 0:
new_terrain_list += [' ']
return ''.join(new_terrain_list)
new_terrain_list += [' ']
return ''.join(new_terrain_list)