diff --git a/commands/everyone.py b/commands/everyone.py index 4a79ad2..a4acc3f 100755 --- a/commands/everyone.py +++ b/commands/everyone.py @@ -276,14 +276,17 @@ class CmdRead(Command): key = "read" - def find_readable(self, searcher, readable_str): + def find_readable(self, reader, readable_str): """Search the room for a readable item.""" if readable_str == "chalkboard": readable_str = "shrub" + elif readable_str.startswith("cocktail") or \ + readable_str.startswith("drink") or readable_str == "list": + readable_str = "sign" - targets = searcher.search(readable_str, quiet=True) + targets = reader.search(readable_str, quiet=True) if not targets: - searcher.msg(f"You don't see {readable_str}.") + reader.msg(f"You don't see {readable_str}.") return None label_targets = [t for t in targets if t.db.inside] @@ -292,10 +295,11 @@ class CmdRead(Command): return label_targets[0] if len(label_targets) == 0: - searcher.msg(f"You can't find anything readable on {readable_str}.") + reader.msg(f"You can't find anything readable on {readable_str}.") else: - searcher.msg(f"Too many things match, '{readable_str}'. " - "Can you narrow it down with a title, or preface with a number, like '2-paper'?") + reader.msg(f"Too many things match, '{readable_str}'. " + "Can you narrow it down with a title, " + "or preface with a number, like '2-paper'?") def func(self): """Return the 'inside' attribute."""