mirror of
https://github.com/evennia/evennia.git
synced 2026-03-26 01:36:32 +01:00
Moved the last hard-wired emits from objects/models.py into scriptparent hooks. This allows the admin to customize this without having to mess with the engine.
Other small bugfixes, fixes to @dig to properly call creation hooks of all newly created objects (it was not setting anything before). Also fixed some of the annoying bugs around using several of the building commands that didn't properly handle spaces around the separator = symbol. /Griatch
This commit is contained in:
parent
b95d45e251
commit
8fbeea99dc
5 changed files with 73 additions and 17 deletions
|
|
@ -410,6 +410,9 @@ class ObjectManager(models.Manager):
|
|||
if new_object.get_owner().get_zone():
|
||||
new_object.zone = new_object.get_owner().get_zone()
|
||||
|
||||
# Run the script parent's oncreation function
|
||||
|
||||
|
||||
# If we have a 'home' key, use that for our home value. Otherwise use
|
||||
# the location key.
|
||||
if home:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue