From c4e35cb2515d57a6a562ecf9803769a55a220692 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Fri, 10 Nov 2017 02:09:44 +0000 Subject: [PATCH] Switch archetypes to new-style Elements Apply the new data model to archetypes. --- mudpy/misc.py | 2 +- share/archetype.yaml | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) 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 ] -- 2.11.0