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:
Michael King 2007-08-07 16:28:22 +00:00
parent 5f962b69a0
commit 8b8099a9db
3 changed files with 45 additions and 34 deletions

View file

@ -1,6 +1,11 @@
# A list of ports to listen on. Can be one or many.
GAMEPORTS = [4000]
# The integer dbref of a home for objects that become homeless. This is the room
# where new players start. NOTE: This is based on the default data. If you delete
# #2, you will want to change this.
DEFAULT_HOME = 2
# While DEBUG is False, show a regular server error page on the web stuff,
# email the traceback to the people in the ADMINS tuple below. By default (True),
# show a detailed traceback for the web browser to display.