cables
This commit is contained in:
parent
f7f516a5f0
commit
3022bec541
4 changed files with 17 additions and 3 deletions
|
|
@ -1,8 +1,8 @@
|
||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
Version: 0.11.3
|
Version: 0.11.3
|
||||||
Date: 2022-08-09
|
Date: 2022-08-10
|
||||||
Changes:
|
Changes:
|
||||||
- Support advanced optional settings
|
- Cable item subgroup
|
||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
Version: 0.11.2
|
Version: 0.11.2
|
||||||
Date: 2022-07-02
|
Date: 2022-07-02
|
||||||
|
|
|
||||||
1
data.lua
1
data.lua
|
|
@ -1,3 +1,4 @@
|
||||||
|
require("prototypes/cables")
|
||||||
require("prototypes/silica-recipe")
|
require("prototypes/silica-recipe")
|
||||||
require("prototypes/silicon-recipe")
|
require("prototypes/silicon-recipe")
|
||||||
require("prototypes/optical-fiber")
|
require("prototypes/optical-fiber")
|
||||||
|
|
|
||||||
13
prototypes/cables.lua
Normal file
13
prototypes/cables.lua
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
local util = require("data-util");
|
||||||
|
|
||||||
|
if not util.se6() and not data.raw["item-subgroup"]["cable"] then
|
||||||
|
data:extend({
|
||||||
|
{
|
||||||
|
type = "item-subgroup",
|
||||||
|
name = "cable",
|
||||||
|
group = "intermediate-products",
|
||||||
|
order = "f-z",
|
||||||
|
}
|
||||||
|
})
|
||||||
|
util.set_item_subgroup("copper-cable", "cable")
|
||||||
|
end
|
||||||
|
|
@ -7,7 +7,7 @@ data:extend(
|
||||||
name = "optical-fiber",
|
name = "optical-fiber",
|
||||||
icon = "__bzsilicon__/graphics/icons/optical-fiber.png",
|
icon = "__bzsilicon__/graphics/icons/optical-fiber.png",
|
||||||
icon_size = 64, icon_mipmaps = 3,
|
icon_size = 64, icon_mipmaps = 3,
|
||||||
subgroup = "intermediate-product",
|
subgroup = util.cablesg,
|
||||||
order = "a[optical-fiber]",
|
order = "a[optical-fiber]",
|
||||||
stack_size = util.get_stack_size(200)
|
stack_size = util.get_stack_size(200)
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue