From c313a35d5f0dcc1e72cf2b21a9640e463a601006 Mon Sep 17 00:00:00 2001
From: Jeffrey Phillips Freeman <the@jeffreyfreeman.me>
Date: Sun, 28 Feb 2021 23:03:52 -0500
Subject: [PATCH] Using defaults to apply defaults on objects loaded from
 storage.

---
 conf/config.yaml                      | 2 +-
 lib/aethyr/core/components/storage.rb | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/conf/config.yaml b/conf/config.yaml
index 44a01d7..fbe976e 100644
--- a/conf/config.yaml
+++ b/conf/config.yaml
@@ -9,7 +9,7 @@
 :restart_delay: 10
 :address: 0.0.0.0
 :intro_file: intro.txt
-:start_room: d135e078-019a-1a4d-be5c-a37aa5304022
+:start_room: 574fcae8-b75a-eb97-9c8e-4727b0b5a7c3
 :restart_limit: 15
 :mccp: false
 :mssp: false
diff --git a/lib/aethyr/core/components/storage.rb b/lib/aethyr/core/components/storage.rb
index 362b211..eccccaf 100644
--- a/lib/aethyr/core/components/storage.rb
+++ b/lib/aethyr/core/components/storage.rb
@@ -304,6 +304,8 @@ class StorageMachine
           object.equipment.delete(goid)
         end
       end
+
+      object.load_defaults
     end
 
 
-- 
GitLab