mirror of
https://github.com/evennia/evennia.git
synced 2026-03-28 18:47:16 +01:00
Removed deprecated Attribute methods from evennia distro. Removed MUX help files.
This commit is contained in:
parent
9620867031
commit
8bd431b385
13 changed files with 47 additions and 65 deletions
|
|
@ -366,7 +366,7 @@ class ObjectManager(TypedObjectManager):
|
|||
|
||||
# copy over all attributes from old to new.
|
||||
for attr in original_object.get_all_attributes():
|
||||
new_object.set_attribute(attr.key, attr.value)
|
||||
new_object.attributes.add(attr.key, attr.value)
|
||||
|
||||
# copy over all cmdsets, if any
|
||||
for icmdset, cmdset in enumerate(original_object.cmdset.all()):
|
||||
|
|
|
|||
|
|
@ -447,7 +447,7 @@ class ObjectDB(TypedObject):
|
|||
def __is_superuser_get(self):
|
||||
"Check if user has a player, and if so, if it is a superuser."
|
||||
return (_GA(self, "db_player") and _GA(_GA(self, "db_player"), "is_superuser")
|
||||
and not _GA(_GA(self, "db_player"), "get_attribute")("_quell"))
|
||||
and not _GA(_GA(self, "db_player"), "attributes").get("_quell"))
|
||||
is_superuser = property(__is_superuser_get)
|
||||
|
||||
# contents
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue