subgroup
This commit is contained in:
parent
12c94ddce0
commit
e0ca844ee0
4 changed files with 32 additions and 1 deletions
|
|
@ -542,3 +542,21 @@ data:extend({
|
|||
result_count = 1,
|
||||
},
|
||||
})
|
||||
|
||||
-- Space exploration subgroups
|
||||
if mods["space-exploration"] and string.sub(mods["space-exploration"], 1, 3) == "0.6" then
|
||||
data:extend({
|
||||
{
|
||||
type = "item-subgroup",
|
||||
name = "carbon",
|
||||
group = "resources",
|
||||
order = "a-h-z-0",
|
||||
}
|
||||
})
|
||||
util.set_item_subgroup("graphite", "carbon")
|
||||
util.set_item_subgroup("diamond", "carbon")
|
||||
util.set_item_subgroup("graphene", "carbon")
|
||||
util.set_item_subgroup("carbon-black", "carbon")
|
||||
util.set_item_subgroup("fullerenes", "carbon")
|
||||
util.set_item_subgroup("nanotubes", "carbon")
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,4 +1,9 @@
|
|||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.3.1
|
||||
Date: 2022-07-01
|
||||
Changes:
|
||||
- SE 0.6: Subgroup for carbon items
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.3.0
|
||||
Date: 2022-07-01
|
||||
Changes:
|
||||
|
|
|
|||
|
|
@ -566,6 +566,14 @@ function util.set_subgroup(recipe_name, subgroup)
|
|||
end
|
||||
end
|
||||
|
||||
-- Set item subgroup
|
||||
function util.set_item_subgroup(item, subgroup)
|
||||
if me.bypass[item] then return end
|
||||
if data.raw.item[item] and data.raw["item-subgroup"][subgroup] then
|
||||
data.raw.item[item].subgroup = subgroup
|
||||
end
|
||||
end
|
||||
|
||||
-- Set recipe icons
|
||||
function util.set_icons(recipe_name, icons)
|
||||
if me.bypass[recipe_name] then return end
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "bzcarbon",
|
||||
"version": "0.3.0",
|
||||
"version": "0.3.1",
|
||||
"factorio_version": "1.1",
|
||||
"title": "Graphite & Diamonds",
|
||||
"author": "Brevven",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue