Rename internal:process to .mudpy.process
[mudpy.git] / lib / mudpy / data.py
index 9c167f5..00ab923 100644 (file)
@@ -99,6 +99,9 @@ class DataFile:
                     element = mudpy.misc.Element(prefix, self.universe,
                         self.filename)
                 element.set(node[facet_pos:], self.data[node])
+                if prefix.startswith("mudpy.movement."):
+                    self.universe.directions.add(
+                        prefix[prefix.rfind(".") + 1:])
         for include_file in includes:
             if not os.path.isabs(include_file):
                 include_file = find_file(
@@ -132,11 +135,8 @@ class DataFile:
                     "__control__"]:
                 max_count = self.data["__control__"]["backup_count"]
             else:
-                max_count = self.universe.categories[
-                    "internal"
-                ][
-                    "limits"
-                ].get("default_backup_count")
+                max_count = self.universe.contents["mudpy.limit"].get(
+                    "backups")
             if os.path.exists(self.filename) and max_count:
                 backups = []
                 for candidate in os.listdir(os.path.dirname(self.filename)):