summaryrefslogtreecommitdiff
path: root/db/seeds.rb
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2021-05-22 18:10:19 -0400
committerDavid Gay <david@davidgay.org>2021-05-22 18:10:19 -0400
commit44facc2e567eb3c045ce082428f42276e45b0202 (patch)
tree0b302bfd60a6faae698a63e68e3e1a5bdb9e16c2 /db/seeds.rb
parent38f3a39221869483e3468e9f4d8cab5450a70f89 (diff)
Monsters and basic combat
Diffstat (limited to 'db/seeds.rb')
-rw-r--r--db/seeds.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/db/seeds.rb b/db/seeds.rb
index ca72f1e..5a6c696 100644
--- a/db/seeds.rb
+++ b/db/seeds.rb
@@ -49,3 +49,8 @@ load_data_file("data/hearth_amenities.yml").map do |gid, hash|
hearth_amenity = HearthAmenity.find_or_create_by(gid: gid)
hearth_amenity.update(hash)
end
+
+load_data_file("data/monsters.yml").map do |gid, hash|
+ monster = Monster.find_or_create_by(gid: gid)
+ monster.update(hash)
+end