From 668f315dfee1b2d6b60f04656bfa5de0ab70fe4f Mon Sep 17 00:00:00 2001
From: Fris0uman <fris0uman@users.noreply.github.com>
Date: Fri, 2 Feb 2024 17:00:37 +0100
Subject: [PATCH] Migrate holybook_odin to be regular Poetic Edda

---
 data/json/itemgroups/books.json                      |  3 +--
 data/json/items/book/anthology.json                  |  9 +++++++++
 data/json/items/book/spiritual.json                  | 12 ------------
 data/json/obsoletion/migration_items.json            |  5 -----
 .../migration_items.json                             | 10 ++++++++++
 5 files changed, 20 insertions(+), 19 deletions(-)

diff --git a/data/json/itemgroups/books.json b/data/json/itemgroups/books.json
index f4c26d9e2e6cc..228fda9f0e6fe 100644
--- a/data/json/itemgroups/books.json
+++ b/data/json/itemgroups/books.json
@@ -287,8 +287,7 @@
       { "item": "holybook_sirach", "prob": 1 },
       { "item": "holybook_helliand", "prob": 1 },
       { "item": "holybook_biblechild_c", "prob": 25 },
-      { "item": "holybook_biblechild_p", "prob": 50 },
-      { "item": "holybook_odin", "prob": 10 }
+      { "item": "holybook_biblechild_p", "prob": 50 }
     ]
   },
   {
diff --git a/data/json/items/book/anthology.json b/data/json/items/book/anthology.json
index 3badc3c5b6a07..fc1609e5ba007 100644
--- a/data/json/items/book/anthology.json
+++ b/data/json/items/book/anthology.json
@@ -81,5 +81,14 @@
     "longest_side": "20 cm",
     "material": [ "paper" ],
     "copy-from": "book_antho_tpl"
+  },
+  {
+    "id": "poetic_edda",
+    "type": "BOOK",
+    "name": { "str": "Poetic Edda", "str_pl": "copies of the Poetic Edda" },
+    "description": "The Poetic Edda is a collection of Old Norse narrative poems in alliterative verse recounting some of the stories of Norse mythology.",
+    "weight": "672 g",
+    "volume": "1368 ml",
+    "copy-from": "book_antho_tpl"
   }
 ]
diff --git a/data/json/items/book/spiritual.json b/data/json/items/book/spiritual.json
index 8807351de95b8..93ffa12cc2181 100644
--- a/data/json/items/book/spiritual.json
+++ b/data/json/items/book/spiritual.json
@@ -1967,18 +1967,6 @@
     "volume": "750 ml",
     "copy-from": "holybook_abstract"
   },
-  {
-    "id": "holybook_odin",
-    "type": "BOOK",
-    "name": {
-      "str": "The Odinist Edda: Sacred Lore of the North",
-      "str_pl": "copies of The Odinist Edda: Sacred Lore of the North"
-    },
-    "description": "A commercial-grade, hardcover English translation of The Odinist Edda.  It can potentially serve as a modern guide to the religious and mythological beliefs of the contemporary revival of Norse paganism.  This book contains a collection of poems, stories, rituals, and information about the gods, goddesses, heroes, and cosmology of the Norse tradition, from ancient writings and oral traditions.",
-    "weight": "672 g",
-    "volume": "1368 ml",
-    "copy-from": "holybook_abstract"
-  },
   {
     "id": "holybook_ginza",
     "type": "BOOK",
diff --git a/data/json/obsoletion/migration_items.json b/data/json/obsoletion/migration_items.json
index e28f5443a59d3..33794d6736236 100644
--- a/data/json/obsoletion/migration_items.json
+++ b/data/json/obsoletion/migration_items.json
@@ -600,10 +600,5 @@
     "id": "trex_gun",
     "type": "MIGRATION",
     "replace": "win70_458"
-  },
-  {
-    "id": "holybook_asatru",
-    "type": "MIGRATION",
-    "replace": "holybook_odin"
   }
 ]
diff --git a/data/json/obsoletion_and_migration_0.I/migration_items.json b/data/json/obsoletion_and_migration_0.I/migration_items.json
index 77e01fb11ded5..9890e63587ef0 100644
--- a/data/json/obsoletion_and_migration_0.I/migration_items.json
+++ b/data/json/obsoletion_and_migration_0.I/migration_items.json
@@ -3,5 +3,15 @@
     "id": "rag",
     "type": "MIGRATION",
     "replace": "sheet_cotton"
+  },
+  {
+    "id": "holybook_odin",
+    "type": "MIGRATION",
+    "replace": "poetic_edda"
+  },
+  {
+    "id": "holybook_asatru",
+    "type": "MIGRATION",
+    "replace": "poetic_edda"
   }
 ]