home · contact · privacy
Change MAP command to ensuring map exists, not necessarily creating it.
[plomrogue2-experiments] / new / plomrogue / commands.py
index c845ed1ce1dcc2135aad94b4696b768cb8ff86f4..2d9ecb6e1a2088aef39cb4449f00bc6c9446cfad 100644 (file)
@@ -19,8 +19,8 @@ def cmd_MAP_SIZE(game, size):
 cmd_MAP_SIZE.argtypes = 'yx_tuple:pos'
 
 def cmd_MAP(game, map_pos):
-    """Create new map at position map_pos and only of '?' cells."""
-    game.world.new_map(map_pos)
+    """Ensure (possibly empty/'?'-filled) map at position map_pos."""
+    game.world.ensure_map(map_pos)
 cmd_MAP.argtypes = 'yx_tuple'
 
 def cmd_THING_TYPE(game, i, type_):