mirror of
https://github.com/evennia/evennia.git
synced 2026-04-02 22:17:17 +02:00
Minor cleanup
This commit is contained in:
parent
533302e3c0
commit
e51ff36801
3 changed files with 0 additions and 11 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue