From e51ff36801ab746e6561bd6a8cee84add460134e Mon Sep 17 00:00:00 2001 From: Henddher Pedroza Date: Fri, 14 Sep 2018 21:57:28 -0500 Subject: [PATCH] Minor cleanup --- evennia/commands/default/muxcommand.py | 5 ----- evennia/contrib/puzzles.py | 5 ----- evennia/contrib/tests.py | 1 - 3 files changed, 11 deletions(-) diff --git a/evennia/commands/default/muxcommand.py b/evennia/commands/default/muxcommand.py index d2d2c65986..5d8d4b2890 100644 --- a/evennia/commands/default/muxcommand.py +++ b/evennia/commands/default/muxcommand.py @@ -118,11 +118,6 @@ class MuxCommand(Command): lhs, rhs = [arg.strip() for arg in args.split('=', 1)] lhslist = [arg.strip() for arg in lhs.split(',')] rhslist = [arg.strip() for arg in rhs.split(',')] - # eliminate all empty-strings - # if len(lhslist) > 0: - # lhslist = list(filter(lambda i: len(i) > 0, lhslist)) - # if len(rhslist) > 0: - # rhslist = list(filter(lambda i: len(i) > 0, rhslist)) # save to object properties: self.raw = raw diff --git a/evennia/contrib/puzzles.py b/evennia/contrib/puzzles.py index 9fd71d4ed9..e0423105f5 100644 --- a/evennia/contrib/puzzles.py +++ b/evennia/contrib/puzzles.py @@ -99,7 +99,6 @@ def proto_def(obj, with_tags=True): 'typeclass': 'evennia.contrib.puzzles.PuzzlePartObject', # FIXME: what if obj is another typeclass 'desc': obj.db.desc, 'location': obj.location, - # FIXME: Can tags be INVISIBLE? We don't want player to know an object belongs to a puzzle 'tags': [(_PUZZLES_TAG_MEMBER, _PUZZLES_TAG_CATEGORY)], } if not with_tags: @@ -235,10 +234,6 @@ class CmdCreatePuzzleRecipe(MuxCommand): 'Or programmatically.\n' ) - # FIXME: puzzle recipe object exists but it has no location - # should we create a PuzzleLibrary where all puzzles are - # kept and cannot be reached by players? - class CmdArmPuzzle(MuxCommand): """ diff --git a/evennia/contrib/tests.py b/evennia/contrib/tests.py index 7adf8b9dcf..ab206dc632 100644 --- a/evennia/contrib/tests.py +++ b/evennia/contrib/tests.py @@ -1272,7 +1272,6 @@ class TestPuzzles(CommandTest): _bad_syntax(',nothing') _bad_syntax('name, nothing') _bad_syntax('name, nothing =') - # _bad_syntax(', = ,') # FIXME: MuxCommand issue? self._assert_no_recipes()