Add defeat mode to tutorial combat
This commit is contained in:
parent
2daadca999
commit
43e4917501
10 changed files with 419 additions and 131 deletions
|
|
@ -13,9 +13,8 @@ from collections import defaultdict
|
|||
|
||||
from django.conf import settings
|
||||
from django.db import models
|
||||
from evennia.utils.utils import to_str, make_iter
|
||||
from evennia.locks.lockfuncs import perm as perm_lockfunc
|
||||
|
||||
from evennia.utils.utils import make_iter, to_str
|
||||
|
||||
_TYPECLASS_AGGRESSIVE_CACHE = settings.TYPECLASS_AGGRESSIVE_CACHE
|
||||
|
||||
|
|
@ -105,6 +104,10 @@ class TagProperty:
|
|||
with an existing method/property on the class. If it does, you must use tags.add()
|
||||
instead.
|
||||
|
||||
Note that while you _can_ check e.g. `obj.tagname,this will give an AttributeError
|
||||
if the Tag is not set. Most often you want to use `obj.tags.get("tagname")` to check
|
||||
if a tag is set on an object.
|
||||
|
||||
Example:
|
||||
::
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue