Switch archetypes to new-style Elements
authorJeremy Stanley <fungi@yuggoth.org>
Fri, 10 Nov 2017 02:09:44 +0000 (02:09 +0000)
committerJeremy Stanley <fungi@yuggoth.org>
Fri, 10 Nov 2017 02:09:44 +0000 (02:09 +0000)
Apply the new data model to archetypes.

mudpy/misc.py
share/archetype.yaml

index 202b6b2..170a4c3 100644 (file)
@@ -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):
index 9d31cbd..c7bc10f 100644 (file)
@@ -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 ]