Fix tutorial world build and intro

This commit is contained in:
Griatch 2022-02-05 16:05:12 +01:00
parent ca7bee9d99
commit a980ed617d
9 changed files with 57 additions and 50 deletions

View file

@ -2572,15 +2572,16 @@ class CmdExamine(ObjManipCommand):
if value:
return f"{string}: T"
return f"{string}: F"
return ", ".join(
txt = ", ".join(
_truefalse(opt, getattr(cmdset, opt))
for opt in ("no_exits", "no_objs", "no_channels", "duplicates")
if getattr(cmdset, opt) is not None
)
return ", " + txt if txt else ""
def format_single_cmdset(self, cmdset):
options = self.format_single_cmdset_options(cmdset)
return f"{cmdset.path} [{cmdset.key}] ({cmdset.mergetype}, prio {cmdset.priority}{options}"
return f"{cmdset.path} [{cmdset.key}] ({cmdset.mergetype}, prio {cmdset.priority}{options})"
def format_stored_cmdsets(self, obj):
if hasattr(obj, "cmdset"):