Added DEFAULT_HOME value of 2 to settings.py.dist
Added import of DEFAULT_HOME from settings into defines_global
Removed clear_players()
Removed clear_things()
Created a more general clear_objects():
* obj.clear_objects()
* Everything with obj as its location will be moved
to its home.
* If the home is the obj, then said objects will be
moved to DEFAULT_HOME, if it exists.
* If the said objects do not have a home, they will
also be moved to DEFAULT_HOME.
This commit is contained in:
parent
5f962b69a0
commit
8b8099a9db
3 changed files with 45 additions and 34 deletions
|
|
@ -38,6 +38,9 @@ HIDDEN_ATTRIBS = ["CHANLIST"]
|
|||
# Server version number.
|
||||
EVENNIA_VERSION = 'Alpha'
|
||||
|
||||
# Default home definition.
|
||||
from settings import DEFAULT_HOME
|
||||
|
||||
# The message to show when the user lacks permissions for something.
|
||||
NOPERMS_MSG = "You do not have the necessary permissions to do that."
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue