mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-27 11:05:22 +09:00
Update data.lua
This commit is contained in:
131
PHI-RS/data.lua
131
PHI-RS/data.lua
@@ -4,15 +4,15 @@ local recipe_display = {true, false}
|
|||||||
local recipe_list = {
|
local recipe_list = {
|
||||||
{
|
{
|
||||||
name='iron-plate',
|
name='iron-plate',
|
||||||
tech=nil
|
tech='automation'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name='copper-plate',
|
name='copper-plate',
|
||||||
tech=nil
|
tech='automation'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name='stone-brick',
|
name='stone-brick',
|
||||||
tech=nil
|
tech='automation'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name='steel-plate',
|
name='steel-plate',
|
||||||
@@ -84,23 +84,23 @@ local recipe_list = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name='copper-cable',
|
name='copper-cable',
|
||||||
tech=nil
|
tech='automation'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name='iron-stick',
|
name='iron-stick',
|
||||||
tech=nil
|
tech='automation'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name='iron-gear-wheel',
|
name='iron-gear-wheel',
|
||||||
tech=nil
|
tech='automation'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name='pipe',
|
name='pipe',
|
||||||
tech=nil
|
tech='automation'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name='electronic-circuit',
|
name='electronic-circuit',
|
||||||
tech=nil
|
tech='automation'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name='advanced-circuit',
|
name='advanced-circuit',
|
||||||
@@ -136,7 +136,7 @@ local recipe_list = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name='automation-science-pack',
|
name='automation-science-pack',
|
||||||
tech=nil
|
tech='automation'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name='logistic-science-pack',
|
name='logistic-science-pack',
|
||||||
@@ -160,11 +160,11 @@ local recipe_list = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name='inserter',
|
name='inserter',
|
||||||
tech=nil
|
tech='automation'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name='transport-belt',
|
name='transport-belt',
|
||||||
tech=nil
|
tech='automation'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name='grenade',
|
name='grenade',
|
||||||
@@ -172,7 +172,7 @@ local recipe_list = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name='firearm-magazine',
|
name='firearm-magazine',
|
||||||
tech=nil
|
tech='automation'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name='piercing-rounds-magazine',
|
name='piercing-rounds-magazine',
|
||||||
@@ -290,14 +290,6 @@ local recipe_list = {
|
|||||||
name='explosive-rocket',
|
name='explosive-rocket',
|
||||||
tech='explosive-rocketry'
|
tech='explosive-rocketry'
|
||||||
},
|
},
|
||||||
|
|
||||||
'underground-belt',
|
|
||||||
'fast-transport-belt',
|
|
||||||
'fast-underground-belt',
|
|
||||||
'fast-splitter',
|
|
||||||
--'express-transport-belt',
|
|
||||||
--'express-underground-belt',
|
|
||||||
--'express-splitter',
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -406,14 +398,99 @@ for i=1, #recipe_list, 1 do
|
|||||||
|
|
||||||
item.name = item.name .. '-' .. j
|
item.name = item.name .. '-' .. j
|
||||||
item.hide_from_player_crafting = true
|
item.hide_from_player_crafting = true
|
||||||
|
|
||||||
if recipe_list[i].tech ~= nil then
|
if item.category == 'crafting' then
|
||||||
data:extend({item})
|
item.category = 'scaled-crafting'
|
||||||
table.insert(data.raw.technology[recipe_list[i].tech].effects, {type='unlock-recipe', recipe=item.name})
|
|
||||||
else
|
elseif item.category == 'basic-crafting' then
|
||||||
item.enabled = true
|
item.category = 'scaled-basic-crafting'
|
||||||
data:extend({item})
|
|
||||||
|
elseif item.category == 'advanced-crafting' then
|
||||||
|
item.category = 'scaled-advanced-crafting'
|
||||||
|
|
||||||
|
elseif item.category == 'crafting-with-fluid' then
|
||||||
|
item.category = 'scaled-crafting-with-fluid'
|
||||||
|
|
||||||
|
elseif item.category == 'smelting' then
|
||||||
|
item.category = 'scaled-smelting'
|
||||||
|
|
||||||
|
elseif item.category == 'chemistry' then
|
||||||
|
item.category = 'scaled-chemistry'
|
||||||
|
|
||||||
|
elseif item.category == 'oil-processing' then
|
||||||
|
item.category = 'scaled-oil-processing'
|
||||||
|
|
||||||
|
elseif item.category == 'centrifuging' then
|
||||||
|
item.category = 'scaled-centrifuging'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
data:extend({item})
|
||||||
|
table.insert(data.raw.technology[recipe_list[i].tech].effects, {type='unlock-recipe', recipe=item.name})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
data:extend(
|
||||||
|
{
|
||||||
|
{
|
||||||
|
type = 'recipe-category',
|
||||||
|
name = 'scaled-crafting'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type = 'recipe-category',
|
||||||
|
name = 'scaled-basic-crafting'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type = 'recipe-category',
|
||||||
|
name = 'scaled-advanced-crafting'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type = 'recipe-category',
|
||||||
|
name = 'scaled-crafting-with-fluid'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type = 'recipe-category',
|
||||||
|
name = 'scaled-smelting'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type = 'recipe-category',
|
||||||
|
name = 'scaled-chemistry'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type = 'recipe-category',
|
||||||
|
name = 'scaled-oil-processing'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type = 'recipe-category',
|
||||||
|
name = 'scaled-centrifuging'
|
||||||
|
},
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
for _, v in pairs(data.raw['assembling-machine']) do
|
||||||
|
if v.crafting_categories['crafting'] then
|
||||||
|
table.insert(v.crafting_categories, 'scaled-crafting')
|
||||||
|
|
||||||
|
elseif v.crafting_categories['basic-crafting'] then
|
||||||
|
table.insert(v.crafting_categories, 'scaled-basic-crafting')
|
||||||
|
|
||||||
|
elseif v.crafting_categories['advanced-crafting'] then
|
||||||
|
table.insert(v.crafting_categories, 'scaled-advanced-crafting')
|
||||||
|
|
||||||
|
elseif v.crafting_categories['crafting-with-fluid'] then
|
||||||
|
table.insert(v.crafting_categories, 'scaled-crafting-with-fluid')
|
||||||
|
|
||||||
|
elseif v.crafting_categories['chemistry'] then
|
||||||
|
table.insert(v.crafting_categories, 'scaled-chemistry')
|
||||||
|
|
||||||
|
elseif v.crafting_categories['oil-processing'] then
|
||||||
|
table.insert(v.crafting_categories, 'scaled-oil-processing')
|
||||||
|
|
||||||
|
elseif v.crafting_categories['centrifuging'] then
|
||||||
|
table.insert(v.crafting_categories, 'scaled-centrifuging')
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
for _, v in pairs(data.raw['furnace']) do
|
||||||
|
table.insert(v.crafting_categories, 'scaled-smelting')
|
||||||
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user