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
Change MAP command to ensuring map exists, not necessarily creating it.
[plomrogue2-experiments]
/
new
/
plomrogue
/
commands.py
diff --git
a/new/plomrogue/commands.py
b/new/plomrogue/commands.py
index c845ed1ce1dcc2135aad94b4696b768cb8ff86f4..2d9ecb6e1a2088aef39cb4449f00bc6c9446cfad 100644
(file)
--- a/
new/plomrogue/commands.py
+++ b/
new/plomrogue/commands.py
@@
-19,8
+19,8
@@
def cmd_MAP_SIZE(game, size):
cmd_MAP_SIZE.argtypes = 'yx_tuple:pos'
def cmd_MAP(game, map_pos):
cmd_MAP_SIZE.argtypes = 'yx_tuple:pos'
def cmd_MAP(game, map_pos):
- """
Create new map at position map_pos and only of '?' cell
s."""
- game.world.
new
_map(map_pos)
+ """
Ensure (possibly empty/'?'-filled) map at position map_po
s."""
+ game.world.
ensure
_map(map_pos)
cmd_MAP.argtypes = 'yx_tuple'
def cmd_THING_TYPE(game, i, type_):
cmd_MAP.argtypes = 'yx_tuple'
def cmd_THING_TYPE(game, i, type_):