Made Empty cmdsets have priority -100, also changed their key from "Empty" to _EMPTY_CMDSET to make it clearer this is a special name. See also discussion in Issue 447.

This commit is contained in:
Griatch 2014-01-04 13:24:07 +01:00
parent acbfa57240
commit 48bfc7e54a
3 changed files with 13 additions and 7 deletions

View file

@ -1685,7 +1685,7 @@ class CmdExamine(ObjManipCommand):
string += "\n{wLocks{n:%s" % locks_string
if not (len(obj.cmdset.all()) == 1 and obj.cmdset.current.key == "Empty"):
if not (len(obj.cmdset.all()) == 1 and obj.cmdset.current.key == "_EMPTY_CMDSET"):
# list the current cmdsets
all_cmdsets = (obj.cmdset.all() +
(hasattr(obj, "player") and obj.player and