compatible with k2 beta

This commit is contained in:
Brevven 2021-11-05 22:29:39 -07:00
parent 8e2af7422d
commit efe954b700
5 changed files with 16 additions and 3 deletions

View file

@ -1,4 +1,10 @@
--------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------
Version: 1.0.0
Date: 2021-11-06
Changes:
- Arbitrary decision to mark 1.0, as features have been stable for a time.
- K2: Beta compatibility
---------------------------------------------------------------------------------------------------
Version: 0.12.7 Version: 0.12.7
Date: 2021-10-11 Date: 2021-10-11
Fixes: Fixes:

View file

@ -22,6 +22,13 @@ function util.get_stack_size(default)
return default return default
end end
function util.k2assets()
if mods["Krastorio2Assets"] then
return "__Krastorio2Assets__"
end
return "__Krastorio2__/graphics"
end
-- check if a table contains a sought value -- check if a table contains a sought value
function util.contains(table, sought) function util.contains(table, sought)
for i, value in pairs(table) do for i, value in pairs(table) do

View file

@ -1,6 +1,6 @@
{ {
"name": "bztitanium", "name": "bztitanium",
"version": "0.12.5", "version": "1.0.0",
"factorio_version": "1.1", "factorio_version": "1.1",
"title": "Titanium", "title": "Titanium",
"author": "Brevven", "author": "Brevven",

View file

@ -79,7 +79,7 @@ data:extend(
icons = icons =
{ {
{ {
icon = "__Krastorio2__/graphics/technologies/enriched-ores.png", icon = util.k2assets().."/technologies/enriched-ores.png",
icon_size = 256, icon_size = 256,
tint = { a=1.0, b=0.75, r=0.75, g=0.75 } tint = { a=1.0, b=0.75, r=0.75, g=0.75 }
}, },

View file

@ -11,7 +11,7 @@ data:extend(
icons = icons =
{ {
{ {
icon = "__Krastorio2__/graphics/technologies/matter-stone.png", icon = util.k2assets().."/technologies/matter-stone.png",
icon_size = 256, icon_size = 256,
}, },
{ {