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
Replenish food resources automatically.
[plomrogue2-experiments]
/
new
/
plomrogue
/
parser.py
diff --git
a/new/plomrogue/parser.py
b/new/plomrogue/parser.py
index 39df213469ccb6e7e8652d9710b9a2efabbbccd0..84def03971e312613ab556aebbdd1a45b516bb95 100644
(file)
--- a/
new/plomrogue/parser.py
+++ b/
new/plomrogue/parser.py
@@
-116,6
+116,9
@@
class Parser:
elif tmpl == 'yx_tuple:pos':
args += [self.parse_yx_tuple(arg, 'pos')]
elif tmpl == 'seq:int:nonneg':
elif tmpl == 'yx_tuple:pos':
args += [self.parse_yx_tuple(arg, 'pos')]
elif tmpl == 'seq:int:nonneg':
+ if arg == ',':
+ args += [[]]
+ continue
sub_tokens = arg.split(',')
if len(sub_tokens) < 1:
raise ArgError('Argument must be non-empty sequence.')
sub_tokens = arg.split(',')
if len(sub_tokens) < 1:
raise ArgError('Argument must be non-empty sequence.')