k2 stack size fix
This commit is contained in:
parent
44aaa9252f
commit
68962085cf
7 changed files with 17 additions and 7 deletions
|
|
@ -1,4 +1,9 @@
|
||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
|
Version: 0.9.15
|
||||||
|
Date: 2021-01-29
|
||||||
|
Fixes:
|
||||||
|
- K2 stack size fix for no changes
|
||||||
|
---------------------------------------------------------------------------------------------------
|
||||||
Version: 0.9.14
|
Version: 0.9.14
|
||||||
Date: 2021-01-25
|
Date: 2021-01-25
|
||||||
Changes:
|
Changes:
|
||||||
|
|
|
||||||
|
|
@ -16,11 +16,16 @@ else
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
function data_util.get_k2_stack_size()
|
function data_util.get_stack_size(default)
|
||||||
return tonumber(krastorio.general.getSafeSettingValue("kr-stack-size"))
|
if mods["Krastorio2"] then
|
||||||
|
size = tonumber(krastorio.general.getSafeSettingValue("kr-stack-size"))
|
||||||
|
return size or default
|
||||||
|
end
|
||||||
|
return default
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-- Remove an element of type t and name from data.raw
|
-- Remove an element of type t and name from data.raw
|
||||||
function data_util.remove_raw(t, name)
|
function data_util.remove_raw(t, name)
|
||||||
for i, elem in pairs(data.raw[t]) do
|
for i, elem in pairs(data.raw[t]) do
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "bztitanium",
|
"name": "bztitanium",
|
||||||
"version": "0.9.14",
|
"version": "0.9.15",
|
||||||
"factorio_version": "1.1",
|
"factorio_version": "1.1",
|
||||||
"title": "Titanium",
|
"title": "Titanium",
|
||||||
"author": "Brevven",
|
"author": "Brevven",
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ data:extend(
|
||||||
},
|
},
|
||||||
subgroup = "raw-material",
|
subgroup = "raw-material",
|
||||||
order = "e05-a[enriched-ores]-a1[enriched-titanium]",
|
order = "e05-a[enriched-ores]-a1[enriched-titanium]",
|
||||||
stack_size = util.get_k2_stack_size(),
|
stack_size = util.get_stack_size(100),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type = "recipe",
|
type = "recipe",
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,8 @@ data:extend({
|
||||||
},
|
},
|
||||||
subgroup = "raw-resource",
|
subgroup = "raw-resource",
|
||||||
order = "t-c-a",
|
order = "t-c-a",
|
||||||
stack_size = (mods["Krastorio2"] and util.get_k2_stack_size() or 50)
|
stack_size = util.get_stack_size(50)
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,6 @@ if mods["space-exploration"] then
|
||||||
{ icon = "__bztitanium__/graphics/icons/titanium-plate.png", icon_size = 64 },
|
{ icon = "__bztitanium__/graphics/icons/titanium-plate.png", icon_size = 64 },
|
||||||
{ icon = "__space-exploration-graphics__/graphics/icons/vulcanite-block.png", icon_size = 64, scale=0.25, shift= {-10, -10}},
|
{ icon = "__space-exploration-graphics__/graphics/icons/vulcanite-block.png", icon_size = 64, scale=0.25, shift= {-10, -10}},
|
||||||
},
|
},
|
||||||
|
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
table.insert(data.raw.technology["se-processing-vulcanite"].effects,
|
table.insert(data.raw.technology["se-processing-vulcanite"].effects,
|
||||||
|
|
|
||||||
|
|
@ -59,7 +59,7 @@ data:extend(
|
||||||
icon_size = 64,
|
icon_size = 64,
|
||||||
subgroup = "raw-material",
|
subgroup = "raw-material",
|
||||||
order = "b[titanium-plate]",
|
order = "b[titanium-plate]",
|
||||||
stack_size = (mods["Krastorio2"] and util.get_k2_stack_size() or 100)
|
stack_size = util.get_stack_size(100)
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type = "technology",
|
type = "technology",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue