mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Further doc cleanup
This commit is contained in:
parent
f1b970d45a
commit
d00ed3f82a
6 changed files with 9 additions and 12 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
Contribution by owllex, 2021
|
||||
|
||||
Cooldowns are used modelling rate-limited actions, like how often a
|
||||
Cooldowns are used to model rate-limited actions, like how often a
|
||||
character can perform a given action; until a certain time has passed their
|
||||
command can not be used again. This contrib provides a simple cooldown
|
||||
handler that can be attached to any typeclass. A cooldown is a lightweight persistent
|
||||
|
|
@ -30,7 +30,7 @@ customize this if desired by passing a different value for the `db_attribute`
|
|||
parameter.
|
||||
|
||||
```python
|
||||
from evennia.game_systems.contrib.cooldowns import Cooldownhandler
|
||||
from evennia.contrib.game_systems.cooldowns import Cooldownhandler
|
||||
from evennia.utils.utils import lazy_property
|
||||
|
||||
@lazy_property
|
||||
|
|
|
|||
|
|
@ -213,7 +213,7 @@ look of these clothes are appended to the character's description when worn.
|
|||
|
||||
_Contribution by owllex, 2021_
|
||||
|
||||
Cooldowns are used modelling rate-limited actions, like how often a
|
||||
Cooldowns are used to model rate-limited actions, like how often a
|
||||
character can perform a given action; until a certain time has passed their
|
||||
command can not be used again. This contrib provides a simple cooldown
|
||||
handler that can be attached to any typeclass. A cooldown is a lightweight persistent
|
||||
|
|
|
|||
|
|
@ -363,9 +363,6 @@ def _init():
|
|||
# delayed starts - important so as to not back-access evennia before it has
|
||||
# finished initializing
|
||||
GLOBAL_SCRIPTS.start()
|
||||
# from .prototypes import prototypes
|
||||
# prototypes.load_module_prototypes()
|
||||
# del prototypes
|
||||
|
||||
|
||||
def set_trace(term_size=(140, 80), debugger="auto"):
|
||||
|
|
|
|||
|
|
@ -241,15 +241,15 @@ def _get_prototype(inprot, protparents, uninherited=None, _workprot=None):
|
|||
|
||||
# attrs, tags have internal structure that should be inherited separately
|
||||
new_prot["attrs"] = _inherit_attrs(
|
||||
_workprot.get("attrs", {}), new_prot.get("attrs", {})
|
||||
_workprot.get("attrs", {}), new_prot.get("attrs", [])
|
||||
)
|
||||
new_prot["tags"] = _inherit_tags(_workprot.get("tags", {}), new_prot.get("tags", {}))
|
||||
new_prot["tags"] = _inherit_tags(_workprot.get("tags", []), new_prot.get("tags", []))
|
||||
|
||||
_workprot.update(new_prot)
|
||||
# the inprot represents a higher level (a child prot), which should override parents
|
||||
|
||||
inprot["attrs"] = _inherit_attrs(_workprot.get("attrs", {}), inprot.get("attrs", {}))
|
||||
inprot["tags"] = _inherit_tags(_workprot.get("tags", {}), inprot.get("tags", {}))
|
||||
inprot["attrs"] = _inherit_attrs(_workprot.get("attrs", []), inprot.get("attrs", []))
|
||||
inprot["tags"] = _inherit_tags(_workprot.get("tags", []), inprot.get("tags", []))
|
||||
_workprot.update(inprot)
|
||||
if uninherited:
|
||||
# put back the parts that should not be inherited
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ try:
|
|||
Tag = ContentType.objects.get(app_label="typeclasses", model="tag").model_class()
|
||||
except (OperationalError, ProgrammingError):
|
||||
# this is a fallback used during tests/doc building
|
||||
print("Couldn't initialize create managers - db not set up.")
|
||||
print("Database not available yet - using temporary fallback for create managers.")
|
||||
from evennia.objects.models import ObjectDB
|
||||
from evennia.accounts.models import AccountDB
|
||||
from evennia.scripts.models import ScriptDB
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ try:
|
|||
Tag = ContentType.objects.get(app_label="typeclasses", model="tag").model_class()
|
||||
except (OperationalError, ProgrammingError):
|
||||
# this is a fallback used during tests/doc building
|
||||
print("Couldn't initialize search managers - db not set up.")
|
||||
print("Database not available yet - using temporary fallback for search managers.")
|
||||
from evennia.objects.models import ObjectDB
|
||||
from evennia.accounts.models import AccountDB
|
||||
from evennia.scripts.models import ScriptDB
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue