From ae856edb316899d5f78f6d4ba046f7061346121d Mon Sep 17 00:00:00 2001
From: Sam <samuelkeiffer@gmail.com>
Date: Wed, 3 Mar 2021 15:05:51 -0500
Subject: [PATCH] Fixed debug back armor. Removed leather_3 item.

---
 .../common/items/armor/misc/shoulder/leather_3.ron  | 13 -------------
 assets/common/loot_tables/loot_table_cultists.ron   |  1 -
 .../2021-03-03-195917_fix-debug-armor/down.sql      |  1 +
 .../2021-03-03-195917_fix-debug-armor/up.sql        |  4 ++++
 4 files changed, 5 insertions(+), 14 deletions(-)
 delete mode 100644 assets/common/items/armor/misc/shoulder/leather_3.ron
 create mode 100644 server/src/migrations/2021-03-03-195917_fix-debug-armor/down.sql
 create mode 100644 server/src/migrations/2021-03-03-195917_fix-debug-armor/up.sql

diff --git a/assets/common/items/armor/misc/shoulder/leather_3.ron b/assets/common/items/armor/misc/shoulder/leather_3.ron
deleted file mode 100644
index 4794d5cb03..0000000000
--- a/assets/common/items/armor/misc/shoulder/leather_3.ron
+++ /dev/null
@@ -1,13 +0,0 @@
-ItemDef(
-    name: "Leather Pauldrons",
-    description: "Animal hide tanned and formed into shoulder pads.",
-    kind: Armor((
-        kind: Shoulder("Leather3"),
-        stats: (
-            protection: Normal(6.0),
-            poise_resilience: Normal(3.0),
-        ),
-    )),
-    quality: Common,
-    tags: [],
-)
\ No newline at end of file
diff --git a/assets/common/loot_tables/loot_table_cultists.ron b/assets/common/loot_tables/loot_table_cultists.ron
index 59604236f7..35714b9212 100644
--- a/assets/common/loot_tables/loot_table_cultists.ron
+++ b/assets/common/loot_tables/loot_table_cultists.ron
@@ -57,7 +57,6 @@
     (0.6, "common.items.armor.misc.shoulder.leather_strip"),
     (0.4, "common.items.armor.swift.shoulder"),
     (0.4, "common.items.armor.agile.shoulder"),
-    (0.4, "common.items.armor.misc.shoulder.leather_3"),
     (0.3, "common.items.armor.misc.shoulder.leather_iron_0"),
     (0.3, "common.items.armor.misc.shoulder.leather_iron_1"),
     (0.3, "common.items.armor.misc.shoulder.leather_iron_2"),
diff --git a/server/src/migrations/2021-03-03-195917_fix-debug-armor/down.sql b/server/src/migrations/2021-03-03-195917_fix-debug-armor/down.sql
new file mode 100644
index 0000000000..291a97c5ce
--- /dev/null
+++ b/server/src/migrations/2021-03-03-195917_fix-debug-armor/down.sql
@@ -0,0 +1 @@
+-- This file should undo anything in `up.sql`
\ No newline at end of file
diff --git a/server/src/migrations/2021-03-03-195917_fix-debug-armor/up.sql b/server/src/migrations/2021-03-03-195917_fix-debug-armor/up.sql
new file mode 100644
index 0000000000..5c50d28e01
--- /dev/null
+++ b/server/src/migrations/2021-03-03-195917_fix-debug-armor/up.sql
@@ -0,0 +1,4 @@
+UPDATE item
+SET item_definition_id = 'common.items.debug.dungeon_purple' WHERE item_definition_id = 'common.items.debug.dungeon_purple-0';
+UPDATE item
+SET item_definition_id = 'common.items.armor.swift.shoulder' WHERE item_definition_id = 'common.items.armor.misc.shoulder.leather_3';
\ No newline at end of file