Minor msg editing/formatting

This commit is contained in:
Henddher Pedroza 2018-09-16 19:06:48 -05:00
parent f6b0ddca94
commit d44552a229
2 changed files with 6 additions and 6 deletions

View file

@ -567,7 +567,7 @@ class CmdListPuzzleRecipes(MuxCommand):
mark = ''
else:
text.append(div)
text.append('%d puzzle(s).' % (len(recipes)))
text.append('Found |r%d|n puzzle(s).' % (len(recipes)))
text.append(div)
caller.msg('\n'.join(text))
@ -606,7 +606,7 @@ class CmdListArmedPuzzles(MuxCommand):
item.location.name, item.location.dbref))
else:
text.append(div)
text.append('%d armed puzzle(s).' % (len(armed_puzzles)))
text.append('Found |r%d|n armed puzzle(s).' % (len(armed_puzzles)))
text.append(div)
caller.msg('\n'.join(text))

View file

@ -1485,7 +1485,7 @@ class TestPuzzles(CommandTest):
msg,
[
r"^-+$",
r"^0 puzzle\(s\)\.$",
r"^Found 0 puzzle\(s\)\.$",
r"-+$",
],
re.MULTILINE | re.DOTALL
@ -1514,7 +1514,7 @@ class TestPuzzles(CommandTest):
r"^.*key: stone$",
r"^.*key: flint$",
r"^-+$",
r"^1 puzzle\(s\)\.$",
r"^Found 1 puzzle\(s\)\.$",
r"^-+$",
],
re.MULTILINE | re.DOTALL
@ -1530,7 +1530,7 @@ class TestPuzzles(CommandTest):
[
r"^-+$",
r"^-+$",
r"^0 armed puzzle\(s\)\.$",
r"^Found 0 armed puzzle\(s\)\.$",
r"^-+$"
],
re.MULTILINE | re.DOTALL
@ -1550,7 +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"^Found 1 armed puzzle\(s\)\.$",
r"^-+$",
],
re.MULTILINE | re.DOTALL