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