Skip to content

Commit

Permalink
Rename test-combinator to production-monitor
Browse files Browse the repository at this point in the history
- Includes migration to fixup existing ones
- Includes moving the graphic into a gfx subfolder
  • Loading branch information
narc0tiq committed May 23, 2018
1 parent c1b53d5 commit 64106ff
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 9 deletions.
2 changes: 1 addition & 1 deletion PKG_COPY
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
locale
orange-constant-combi.png
gfx
16 changes: 8 additions & 8 deletions data.lua
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -15,15 +15,15 @@ my_combi.sprites =
},
east =
{
filename = "__prodmon__/orange-constant-combi.png",
filename = "__prodmon__/gfx/prodmon-combinator.png",
width = 79,
height = 63,
frame_count = 1,
shift = {0.140625, 0.140625},
},
south =
{
filename = "__prodmon__/orange-constant-combi.png",
filename = "__prodmon__/gfx/prodmon-combinator.png",
x = 237,
width = 79,
height = 63,
Expand All @@ -32,19 +32,19 @@ my_combi.sprites =
},
west =
{
filename = "__prodmon__/orange-constant-combi.png",
filename = "__prodmon__/gfx/prodmon-combinator.png",
x = 79,
width = 79,
height = 63,
frame_count = 1,
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 }

Expand Down
File renamed without changes
10 changes: 10 additions & 0 deletions migrations/01-test-combi-to-prodmon.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"entity":
[
["test-combinator", "production-monitor"]
],
"item":
[
["test-combinator", "production-monitor"]
]
}

0 comments on commit 64106ff

Please sign in to comment.