home
·
contact
·
privacy
projects
/
plomrogue2
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make some things block movement, and others not.
[plomrogue2]
/
plomrogue
/
parser.py
diff --git
a/plomrogue/parser.py
b/plomrogue/parser.py
index 5782d695fe1f026d4dc2b00f422cda389fae9988..6a6aaaaa59087c2f5a240efbff92ec4025bbc752 100644
(file)
--- a/
plomrogue/parser.py
+++ b/
plomrogue/parser.py
@@
-106,6
+106,12
@@
class Parser:
if not arg.isdigit():
raise ArgError('Argument must be non-negative integer.')
args += [int(arg)]
if not arg.isdigit():
raise ArgError('Argument must be non-negative integer.')
args += [int(arg)]
+ elif tmpl == 'char':
+ try:
+ ord(arg)
+ except TypeError:
+ raise ArgError('Argument must be single character.')
+ args += [arg]
elif tmpl == 'yx_tuple:nonneg':
args += [self.parse_yx_tuple(arg, 'nonneg')]
elif tmpl == 'yx_tuple:pos':
elif tmpl == 'yx_tuple:nonneg':
args += [self.parse_yx_tuple(arg, 'nonneg')]
elif tmpl == 'yx_tuple:pos':