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.
48 lines
1.3 KiB
Python
Executable file
48 lines
1.3 KiB
Python
Executable file
# Do not mess with the default types (0-5). This is passed to the Object
|
|
# model's 'choices' argument.
|
|
OBJECT_TYPES = (
|
|
(0, 'NOTHING'),
|
|
(1, 'PLAYER'),
|
|
(2, 'ROOM'),
|
|
(3, 'THING'),
|
|
(4, 'EXIT'),
|
|
(5, 'GOING'),
|
|
(6, 'GARBAGE'),
|
|
)
|
|
|
|
# Hate to duplicate the above, but it's the easiest way.
|
|
OTYPE_NOTHING = 0
|
|
OTYPE_PLAYER = 1
|
|
OTYPE_ROOM = 2
|
|
OTYPE_THING = 3
|
|
OTYPE_EXIT = 4
|
|
OTYPE_GOING = 5
|
|
OTYPE_GARBAGE = 6
|
|
|
|
# This is a list of flags that the server actually uses. Anything not in this
|
|
# list is a custom flag.
|
|
SERVER_FLAGS = ["CONNECTED", "DARK", "FLOATING", "GAGGED", "HAVEN", "OPAQUE", "SAFE", "SLAVE", "SUSPECT", "TRANSPARENT"]
|
|
|
|
# These flags are not saved.
|
|
NOSAVE_FLAGS = ["CONNECTED"]
|
|
|
|
# These flags can't be modified by players.
|
|
NOSET_FLAGS = ["CONNECTED"]
|
|
|
|
# These attribute names can't be modified by players.
|
|
NOSET_ATTRIBS = ["MONEY", "ALIAS", "LASTPAGED", "CHANLIST", "LAST", "LASTSITE"]
|
|
|
|
# These attributes don't show up on objects when examined.
|
|
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."
|
|
|
|
# Message seen when object doesn't control the other object.
|
|
NOCONTROL_MSG = "You don't have authority over that object."
|