k2 beta
This commit is contained in:
parent
c56b34d01d
commit
357babf46b
4 changed files with 16 additions and 4 deletions
|
|
@ -1,4 +1,9 @@
|
|||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.4.0
|
||||
Date: 2021-11-06
|
||||
Changes:
|
||||
- K2: Beta compatibility
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.3.8
|
||||
Date: 2021-10-11
|
||||
Fixes:
|
||||
|
|
|
|||
|
|
@ -22,6 +22,13 @@ function util.get_stack_size(default)
|
|||
return default
|
||||
end
|
||||
|
||||
function util.k2assets()
|
||||
if mods["Krastorio2Assets"] then
|
||||
return "__Krastorio2Assets__"
|
||||
end
|
||||
return "__Krastorio2__/graphics"
|
||||
end
|
||||
|
||||
-- check if a table contains a sought value
|
||||
function util.contains(table, sought)
|
||||
for i, value in pairs(table) do
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
{
|
||||
"name": "bztungsten",
|
||||
"version": "0.3.8",
|
||||
{ "name": "bztungsten",
|
||||
"version": "0.4.0",
|
||||
"factorio_version": "1.1",
|
||||
"title": "Tungsten",
|
||||
"author": "Brevven",
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
-- Matter recipes for Krastorio2
|
||||
if mods["Krastorio2"] then
|
||||
local util = require("__bztungsten__.data-util");
|
||||
local matter = require("__Krastorio2__/lib/public/data-stages/matter-util")
|
||||
|
||||
data:extend(
|
||||
|
|
@ -10,7 +11,7 @@ data:extend(
|
|||
icons =
|
||||
{
|
||||
{
|
||||
icon = "__Krastorio2__/graphics/technologies/matter-stone.png",
|
||||
icon = util.k2assets().."/technologies/matter-stone.png",
|
||||
icon_size = 256,
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue