From b10049c0dfd3a93075f13bcad929fbb237f5ebd0 Mon Sep 17 00:00:00 2001 From: Henddher Pedroza Date: Sun, 2 Dec 2018 11:15:50 -0600 Subject: [PATCH] Cleanup --- evennia/contrib/puzzles.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/evennia/contrib/puzzles.py b/evennia/contrib/puzzles.py index 6e093c7455..4653ec195f 100644 --- a/evennia/contrib/puzzles.py +++ b/evennia/contrib/puzzles.py @@ -222,8 +222,8 @@ class CmdCreatePuzzleRecipe(MuxCommand): def is_valid_obj_location(obj): valid = True - # Valid locations are: room, ... - # TODO: other valid locations must be added here + # Rooms are the only valid locations. + # TODO: other valid locations could be added here. # Certain locations can be handled accordingly: e.g, # a part is located in a character's inventory, # perhaps will translate into the player character @@ -231,7 +231,6 @@ class CmdCreatePuzzleRecipe(MuxCommand): # located in the same room where the builder was # located. # Parts and results may have different valid locations - # TODO: handle contents of a given part if not inherits_from(obj.location, DefaultRoom): caller.msg('Invalid location for %s' % (obj.key)) valid = False