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
To command parser, add string options; use TASK syntax for task commands.
[plomrogue2-experiments]
/
game_common.py
diff --git
a/game_common.py
b/game_common.py
index 599e54bcda4c51b936b9dac9ac1d90b03debd8af..3c17bd1b3c06abd2c40116291c0fc8da15cfd584 100644
(file)
--- a/
game_common.py
+++ b/
game_common.py
@@
-80,12
+80,8
@@
class CommonCommandsMixin:
def cmd_MAP(self, geometry, yx):
"""Create new map of grid geometry, size yx and only '?' cells."""
def cmd_MAP(self, geometry, yx):
"""Create new map of grid geometry, size yx and only '?' cells."""
- legal_grids = self.map_manager.get_map_geometries()
- if geometry not in legal_grids:
- raise ArgError('First map argument must be one of: ' +
- ', '.join(legal_grids))
self.world.new_map(geometry, yx)
self.world.new_map(geometry, yx)
- cmd_MAP.argtypes = 'string
yx_tuple:nonneg
'
+ cmd_MAP.argtypes = 'string
:geometry yx_tuple:pos
'
def cmd_THING_TYPE(self, i, type_):
t = self.world.get_thing(i)
def cmd_THING_TYPE(self, i, type_):
t = self.world.get_thing(i)