Add total recipes/armed-puzzles to @lspuzzlerecipes and @lsarmedpuzzles
This commit is contained in:
parent
ebcbbc2d0f
commit
a6918561c5
2 changed files with 13 additions and 1 deletions
|
|
@ -565,6 +565,9 @@ class CmdListPuzzleRecipes(MuxCommand):
|
||||||
for k, v in protoresult.items():
|
for k, v in protoresult.items():
|
||||||
text.append(msgf_item % (mark, k, v))
|
text.append(msgf_item % (mark, k, v))
|
||||||
mark = ''
|
mark = ''
|
||||||
|
else:
|
||||||
|
text.append(div)
|
||||||
|
text.append('%d puzzle(s).' % (len(recipes)))
|
||||||
text.append(div)
|
text.append(div)
|
||||||
caller.msg('\n'.join(text))
|
caller.msg('\n'.join(text))
|
||||||
|
|
||||||
|
|
@ -601,6 +604,9 @@ class CmdListArmedPuzzles(MuxCommand):
|
||||||
text.append(msgf_item % (
|
text.append(msgf_item % (
|
||||||
item.name, item.dbref,
|
item.name, item.dbref,
|
||||||
item.location.name, item.location.dbref))
|
item.location.name, item.location.dbref))
|
||||||
|
else:
|
||||||
|
text.append(div)
|
||||||
|
text.append('%d armed puzzle(s).' % (len(armed_puzzles)))
|
||||||
text.append(div)
|
text.append(div)
|
||||||
caller.msg('\n'.join(text))
|
caller.msg('\n'.join(text))
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1485,7 +1485,8 @@ class TestPuzzles(CommandTest):
|
||||||
msg,
|
msg,
|
||||||
[
|
[
|
||||||
r"^-+$",
|
r"^-+$",
|
||||||
r"^-+$",
|
r"^0 puzzle\(s\)\.$",
|
||||||
|
r"-+$",
|
||||||
],
|
],
|
||||||
re.MULTILINE | re.DOTALL
|
re.MULTILINE | re.DOTALL
|
||||||
)
|
)
|
||||||
|
|
@ -1513,6 +1514,8 @@ class TestPuzzles(CommandTest):
|
||||||
r"^.*key: stone$",
|
r"^.*key: stone$",
|
||||||
r"^.*key: flint$",
|
r"^.*key: flint$",
|
||||||
r"^-+$",
|
r"^-+$",
|
||||||
|
r"^1 puzzle\(s\)\.$",
|
||||||
|
r"^-+$",
|
||||||
],
|
],
|
||||||
re.MULTILINE | re.DOTALL
|
re.MULTILINE | re.DOTALL
|
||||||
)
|
)
|
||||||
|
|
@ -1526,6 +1529,8 @@ class TestPuzzles(CommandTest):
|
||||||
msg,
|
msg,
|
||||||
[
|
[
|
||||||
r"^-+$",
|
r"^-+$",
|
||||||
|
r"^-+$",
|
||||||
|
r"^0 armed puzzle\(s\)\.$",
|
||||||
r"^-+$"
|
r"^-+$"
|
||||||
],
|
],
|
||||||
re.MULTILINE | re.DOTALL
|
re.MULTILINE | re.DOTALL
|
||||||
|
|
@ -1545,6 +1550,7 @@ class TestPuzzles(CommandTest):
|
||||||
r"^Puzzle name: makefire$",
|
r"^Puzzle name: makefire$",
|
||||||
r"^.*stone.* at \s+ Room.*$",
|
r"^.*stone.* at \s+ Room.*$",
|
||||||
r"^.*flint.* at \s+ Room.*$",
|
r"^.*flint.* at \s+ Room.*$",
|
||||||
|
r"^1 armed puzzle\(s\)\.$",
|
||||||
r"^-+$",
|
r"^-+$",
|
||||||
],
|
],
|
||||||
re.MULTILINE | re.DOTALL
|
re.MULTILINE | re.DOTALL
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue