k2 beta comp
This commit is contained in:
parent
ee1c272914
commit
9a7def9500
4 changed files with 15 additions and 2 deletions
|
|
@ -1,4 +1,9 @@
|
|||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.6.0
|
||||
Date: 2021-11-06
|
||||
Changes:
|
||||
- K2: Compatible with beta
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.5.9
|
||||
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,6 @@
|
|||
{
|
||||
"name": "bzlead",
|
||||
"version": "0.5.9",
|
||||
"version": "0.6.0",
|
||||
"factorio_version": "1.1",
|
||||
"title": "Lead",
|
||||
"author": "Brevven",
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
-- Matter recipes for Krastorio2
|
||||
if mods["Krastorio2"] then
|
||||
local util = require("__bzlead__.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