Add PROTOTYPE_MODULES to settings_default, making use of world/prototypes.py already being defined.

This commit is contained in:
Griatch 2016-09-13 18:03:50 +02:00
parent e6e61aa5e6
commit 5a5884f6da
3 changed files with 12 additions and 7 deletions

View file

@ -2588,9 +2588,9 @@ class CmdSpawn(COMMAND_DEFAULT_CLASS):
def _show_prototypes(prototypes):
"Helper to show a list of available prototypes"
string = "\nAvailable prototypes:\n %s"
string = string % utils.fill(", ".join(sorted(prototypes.keys())))
return string
prots = ", ".join(sorted(prototypes.keys()))
return "\nAvailable prototypes (case sensistive): %s" % \
("\n" + utils.fill(prots) if prots else "None")
prototypes = spawn(return_prototypes=True)
if not self.args: