Cleanup
This commit is contained in:
parent
271d5aa0a5
commit
b10049c0df
1 changed files with 2 additions and 3 deletions
|
|
@ -222,8 +222,8 @@ class CmdCreatePuzzleRecipe(MuxCommand):
|
||||||
|
|
||||||
def is_valid_obj_location(obj):
|
def is_valid_obj_location(obj):
|
||||||
valid = True
|
valid = True
|
||||||
# Valid locations are: room, ...
|
# Rooms are the only valid locations.
|
||||||
# TODO: other valid locations must be added here
|
# TODO: other valid locations could be added here.
|
||||||
# Certain locations can be handled accordingly: e.g,
|
# Certain locations can be handled accordingly: e.g,
|
||||||
# a part is located in a character's inventory,
|
# a part is located in a character's inventory,
|
||||||
# perhaps will translate into the player character
|
# perhaps will translate into the player character
|
||||||
|
|
@ -231,7 +231,6 @@ class CmdCreatePuzzleRecipe(MuxCommand):
|
||||||
# located in the same room where the builder was
|
# located in the same room where the builder was
|
||||||
# located.
|
# located.
|
||||||
# Parts and results may have different valid locations
|
# Parts and results may have different valid locations
|
||||||
# TODO: handle contents of a given part
|
|
||||||
if not inherits_from(obj.location, DefaultRoom):
|
if not inherits_from(obj.location, DefaultRoom):
|
||||||
caller.msg('Invalid location for %s' % (obj.key))
|
caller.msg('Invalid location for %s' % (obj.key))
|
||||||
valid = False
|
valid = False
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue