diff --git a/changelog.txt b/changelog.txt index d4964fe..05a7df0 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,9 @@ --------------------------------------------------------------------------------------------------- +Version: 0.0.11 +Date: 2022-01-06 + Changes: + - Tweak icons for visibility, especially graphene +--------------------------------------------------------------------------------------------------- Version: 0.0.10 Date: 2022-01-05 Features: diff --git a/data-util.lua b/data-util.lua index 99014b9..9920d9e 100644 --- a/data-util.lua +++ b/data-util.lua @@ -472,12 +472,22 @@ function add_to_product(recipe, product, amount) end end +-- Adds a result to a mineable type function util.add_minable_result(t, name, result) - if data.raw[t] and data.raw[t][name] and data.raw[t][name].minable and data.raw[t][name].minable.results then - table.insert(data.raw[t][name].minable.results, result) + if data.raw[t] and data.raw[t][name] and data.raw[t][name].minable then + if data.raw[t][name].minable.result and not data.raw[t][name].minable.results then + data.raw[t][name].minable.results = { + {data.raw[t][name].minable.result ,data.raw[t][name].minable.count}} + data.raw[t][name].minable.result = nil + data.raw[t][name].minable.result_count = nil + end + if data.raw[t][name].minable.results then + table.insert(data.raw[t][name].minable.results, result) + end end end + local function insert(nodes, node, value) table.insert(node, value) -- store as parameter if 21 == #node then diff --git a/graphics/icons/graphene.png b/graphics/icons/graphene.png index f97ea1c..d60e148 100644 Binary files a/graphics/icons/graphene.png and b/graphics/icons/graphene.png differ diff --git a/graphics/icons/graphene.xcf b/graphics/icons/graphene.xcf index 641c248..7cabf8e 100644 Binary files a/graphics/icons/graphene.xcf and b/graphics/icons/graphene.xcf differ diff --git a/graphics/icons/nanotube.png b/graphics/icons/nanotube.png index c584c54..b331cc6 100644 Binary files a/graphics/icons/nanotube.png and b/graphics/icons/nanotube.png differ diff --git a/graphics/icons/nanotube.xcf b/graphics/icons/nanotube.xcf index 6f60b5d..090b9be 100644 Binary files a/graphics/icons/nanotube.xcf and b/graphics/icons/nanotube.xcf differ diff --git a/graphics/icons/stacked/graphene-stacked.png b/graphics/icons/stacked/graphene-stacked.png index 1829166..47398f0 100644 Binary files a/graphics/icons/stacked/graphene-stacked.png and b/graphics/icons/stacked/graphene-stacked.png differ diff --git a/graphics/icons/stacked/graphene-stacked.xcf b/graphics/icons/stacked/graphene-stacked.xcf index 75d65fa..89c94fc 100644 Binary files a/graphics/icons/stacked/graphene-stacked.xcf and b/graphics/icons/stacked/graphene-stacked.xcf differ diff --git a/graphics/icons/stacked/nanotube-stacked.png b/graphics/icons/stacked/nanotube-stacked.png index 7c65274..719abeb 100644 Binary files a/graphics/icons/stacked/nanotube-stacked.png and b/graphics/icons/stacked/nanotube-stacked.png differ diff --git a/graphics/icons/stacked/nanotube-stacked.xcf b/graphics/icons/stacked/nanotube-stacked.xcf index 70a3146..e8773e4 100644 Binary files a/graphics/icons/stacked/nanotube-stacked.xcf and b/graphics/icons/stacked/nanotube-stacked.xcf differ diff --git a/info.json b/info.json index 0076d98..57dae78 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "bzcarbon", - "version": "0.0.10", + "version": "0.0.11", "factorio_version": "1.1", "title": "Graphite & Diamonds", "author": "Brevven",