home
·
contact
·
privacy
projects
/
plomrogue
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ba69a51
)
Rename remake_map() to make_map().
author
Christian Heller
<c.heller@plomlompom.de>
Wed, 11 Mar 2015 14:23:39 +0000
(15:23 +0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Wed, 11 Mar 2015 14:23:39 +0000
(15:23 +0100)
roguelike-server
patch
|
blob
|
history
diff --git
a/roguelike-server
b/roguelike-server
index 3f94f44b03b8d71466351fd83d0999d2a2681822..57240058c511a41bac6ac84d2ae4d747ffcda71d 100755
(executable)
--- a/
roguelike-server
+++ b/
roguelike-server
@@
-418,7
+418,7
@@
def play_game():
obey(read_command(), "in file", do_record=True)
obey(read_command(), "in file", do_record=True)
-def
re
make_map():
+def make_map():
"""(Re-)make island map.
Let "~" represent water, "." land, "X" trees: Build island shape randomly,
"""(Re-)make island map.
Let "~" represent water, "." land, "X" trees: Build island shape randomly,
@@
-1261,7
+1261,7
@@
def command_makeworld(seed_string):
Seed rand with seed. Do more only with a "wait" ThingAction and
world["PLAYER_TYPE"] matching ThingType of TT_START_NUMBER > 0. Then,
Seed rand with seed. Do more only with a "wait" ThingAction and
world["PLAYER_TYPE"] matching ThingType of TT_START_NUMBER > 0. Then,
- world_db["Things"] emptied, call
re
make_map() and set
+ world_db["Things"] emptied, call make_map() and set
world_db["WORLD_ACTIVE"], world_db["TURN"] to 1. Build new Things
according to ThingTypes' TT_START_NUMBERS, with Thing of ID 0 to ThingType
of ID = world["PLAYER_TYPE"]. Place Things randomly, and actors not on each
world_db["WORLD_ACTIVE"], world_db["TURN"] to 1. Build new Things
according to ThingTypes' TT_START_NUMBERS, with Thing of ID 0 to ThingType
of ID = world["PLAYER_TYPE"]. Place Things randomly, and actors not on each
@@
-1311,7
+1311,7
@@
def command_makeworld(seed_string):
print("Ignoring: No thing action with name 'wait' defined.")
return
world_db["Things"] = {}
print("Ignoring: No thing action with name 'wait' defined.")
return
world_db["Things"] = {}
-
re
make_map()
+ make_map()
world_db["WORLD_ACTIVE"] = 1
world_db["TURN"] = 1
for i in range(world_db["ThingTypes"][playertype]["TT_START_NUMBER"]):
world_db["WORLD_ACTIVE"] = 1
world_db["TURN"] = 1
for i in range(world_db["ThingTypes"][playertype]["TT_START_NUMBER"]):