From: Jeremy Stanley Date: Fri, 10 Nov 2017 02:09:44 +0000 (+0000) Subject: Switch archetypes to new-style Elements X-Git-Tag: 0.0.1~121 X-Git-Url: https://mudpy.org/gitweb?p=mudpy.git;a=commitdiff_plain;h=c4e35cb2515d57a6a562ecf9803769a55a220692 Switch archetypes to new-style Elements Apply the new data model to archetypes. --- diff --git a/mudpy/misc.py b/mudpy/misc.py index 202b6b2..170a4c3 100644 --- a/mudpy/misc.py +++ b/mudpy/misc.py @@ -950,7 +950,7 @@ class User: self.avatar = Element( "actor.avatar_%s_%s" % (self.account.get("name"), counter), universe) - self.avatar.append("inherit", "archetype:avatar") + self.avatar.append("inherit", "archetype.avatar") self.account.append("avatars", self.avatar.key) def delete_avatar(self, avatar): diff --git a/share/archetype.yaml b/share/archetype.yaml index 9d31cbd..c7bc10f 100644 --- a/share/archetype.yaml +++ b/share/archetype.yaml @@ -6,9 +6,7 @@ _desc: These are the base archetypes from which other elements inherit. _lock: true -archetype:actor: - is_actor: yes +archetype.actor.is_actor: true -archetype:avatar: - default_location: area:0,0,0 - inherit: [ "archetype:actor" ] +archetype.avatar.default_location: area:0,0,0 +archetype.avatar.inherit: [ archetype.actor ]