From 03425df66929d6b5847bc8e9d8c014aa2dd30e53 Mon Sep 17 00:00:00 2001 From: Griatch Date: Tue, 2 Aug 2022 21:46:16 +0200 Subject: [PATCH] Better phrasing in settings, update CHANGELOG --- CHANGELOG.md | 3 +++ evennia/settings_default.py | 16 ++++++++-------- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 569963f01e..2d15be0167 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -181,6 +181,9 @@ Up requirements to Django 4.0+, Twisted 22+, Python 3.9 or 3.10 to better match how search works elsewhere (volund) - The `.at_traverse` hook now receives a `exit_obj` kwarg, linking back to the exit triggering the hook (volund) +- Contrib `buffs` for managing temporary and permanent RPG status buffs effects (tegiminis) +- New `at_server_init()` hook called before all other startup hooks for all + startup modes. Used for more generic overriding (volund) ## Evennia 0.9.5 diff --git a/evennia/settings_default.py b/evennia/settings_default.py index 68d1d87f05..abb7bf64d6 100644 --- a/evennia/settings_default.py +++ b/evennia/settings_default.py @@ -12,12 +12,12 @@ value - which may change as Evennia is developed. This way you can always be sure of what you have changed and what is default behaviour. """ -from django.contrib.messages import constants as messages -from django.urls import reverse_lazy - import os import sys +from django.contrib.messages import constants as messages +from django.urls import reverse_lazy + ###################################################################### # Evennia base server config ###################################################################### @@ -386,11 +386,11 @@ INITIAL_SETUP_MODULE = "evennia.server.initial_setup" # the server's initial setup sequence (the very first startup of the system). # The check will fail quietly if module doesn't exist or fails to load. AT_INITIAL_SETUP_HOOK_MODULE = "server.conf.at_initial_setup" -# Module containing your custom at_server_start(), at_server_reload() and -# at_server_stop() methods. These methods will be called every time -# the server starts, reloads and resets/stops respectively. -# Now supports a list of python paths or a single string. -# If it's a list, each module's hooks will be called by list order. +# Module(s) containing custom at_server_init(), at_server_start(), +# at_server_reload() and at_server_stop() methods. These methods will be called +# every time the server starts, reloads and resets/stops +# respectively. Can be given as a single path or a list of paths. If a list, +# each module's hooks will be called in list order. AT_SERVER_STARTSTOP_MODULE = "server.conf.at_server_startstop" # List of one or more module paths to modules containing a function start_ # plugin_services(application). This module will be called with the main