From 64106ff82b5a679500c833b145ee79af37d93db1 Mon Sep 17 00:00:00 2001 From: Octav Sandulescu Date: Wed, 23 May 2018 07:11:57 +0000 Subject: [PATCH] Rename test-combinator to production-monitor - Includes migration to fixup existing ones - Includes moving the graphic into a gfx subfolder --- PKG_COPY | 2 +- data.lua | 16 ++++++++-------- .../prodmon-combinator.png | Bin migrations/01-test-combi-to-prodmon.json | 10 ++++++++++ 4 files changed, 19 insertions(+), 9 deletions(-) rename orange-constant-combi.png => gfx/prodmon-combinator.png (100%) create mode 100644 migrations/01-test-combi-to-prodmon.json diff --git a/PKG_COPY b/PKG_COPY index 0db4555..8973a94 100644 --- a/PKG_COPY +++ b/PKG_COPY @@ -1,2 +1,2 @@ locale -orange-constant-combi.png +gfx diff --git a/data.lua b/data.lua index 8740e55..82005ea 100644 --- a/data.lua +++ b/data.lua @@ -1,12 +1,12 @@ local my_combi = table.deepcopy(data.raw["constant-combinator"]["constant-combinator"]) -my_combi.name = "test-combinator" +my_combi.name = "production-monitor" my_combi.item_slot_count = 0 my_combi.sprites = { north = { - filename = "__prodmon__/orange-constant-combi.png", + filename = "__prodmon__/gfx/prodmon-combinator.png", x = 158, width = 79, height = 63, @@ -15,7 +15,7 @@ my_combi.sprites = }, east = { - filename = "__prodmon__/orange-constant-combi.png", + filename = "__prodmon__/gfx/prodmon-combinator.png", width = 79, height = 63, frame_count = 1, @@ -23,7 +23,7 @@ my_combi.sprites = }, south = { - filename = "__prodmon__/orange-constant-combi.png", + filename = "__prodmon__/gfx/prodmon-combinator.png", x = 237, width = 79, height = 63, @@ -32,7 +32,7 @@ my_combi.sprites = }, west = { - filename = "__prodmon__/orange-constant-combi.png", + filename = "__prodmon__/gfx/prodmon-combinator.png", x = 79, width = 79, height = 63, @@ -40,11 +40,11 @@ my_combi.sprites = shift = {0.140625, 0.140625}, }, } -my_combi.minable.result = "test-combinator" +my_combi.minable.result = "production-monitor" local my_combi_item = table.deepcopy(data.raw.item["constant-combinator"]) -my_combi_item.name = "test-combinator" -my_combi_item.place_result = "test-combinator" +my_combi_item.name = "production-monitor" +my_combi_item.place_result = "production-monitor" data:extend{ my_combi, my_combi_item } diff --git a/orange-constant-combi.png b/gfx/prodmon-combinator.png similarity index 100% rename from orange-constant-combi.png rename to gfx/prodmon-combinator.png diff --git a/migrations/01-test-combi-to-prodmon.json b/migrations/01-test-combi-to-prodmon.json new file mode 100644 index 0000000..115a19f --- /dev/null +++ b/migrations/01-test-combi-to-prodmon.json @@ -0,0 +1,10 @@ +{ + "entity": + [ + ["test-combinator", "production-monitor"] + ], + "item": + [ + ["test-combinator", "production-monitor"] + ] +}