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 = {
|
||||
{
|
||||
name='iron-plate',
|
||||
tech=nil
|
||||
tech='automation'
|
||||
},
|
||||
{
|
||||
name='copper-plate',
|
||||
tech=nil
|
||||
tech='automation'
|
||||
},
|
||||
{
|
||||
name='stone-brick',
|
||||
tech=nil
|
||||
tech='automation'
|
||||
},
|
||||
{
|
||||
name='steel-plate',
|
||||
@@ -84,23 +84,23 @@ local recipe_list = {
|
||||
},
|
||||
{
|
||||
name='copper-cable',
|
||||
tech=nil
|
||||
tech='automation'
|
||||
},
|
||||
{
|
||||
name='iron-stick',
|
||||
tech=nil
|
||||
tech='automation'
|
||||
},
|
||||
{
|
||||
name='iron-gear-wheel',
|
||||
tech=nil
|
||||
tech='automation'
|
||||
},
|
||||
{
|
||||
name='pipe',
|
||||
tech=nil
|
||||
tech='automation'
|
||||
},
|
||||
{
|
||||
name='electronic-circuit',
|
||||
tech=nil
|
||||
tech='automation'
|
||||
},
|
||||
{
|
||||
name='advanced-circuit',
|
||||
@@ -136,7 +136,7 @@ local recipe_list = {
|
||||
},
|
||||
{
|
||||
name='automation-science-pack',
|
||||
tech=nil
|
||||
tech='automation'
|
||||
},
|
||||
{
|
||||
name='logistic-science-pack',
|
||||
@@ -160,11 +160,11 @@ local recipe_list = {
|
||||
},
|
||||
{
|
||||
name='inserter',
|
||||
tech=nil
|
||||
tech='automation'
|
||||
},
|
||||
{
|
||||
name='transport-belt',
|
||||
tech=nil
|
||||
tech='automation'
|
||||
},
|
||||
{
|
||||
name='grenade',
|
||||
@@ -172,7 +172,7 @@ local recipe_list = {
|
||||
},
|
||||
{
|
||||
name='firearm-magazine',
|
||||
tech=nil
|
||||
tech='automation'
|
||||
},
|
||||
{
|
||||
name='piercing-rounds-magazine',
|
||||
@@ -290,14 +290,6 @@ local recipe_list = {
|
||||
name='explosive-rocket',
|
||||
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.hide_from_player_crafting = true
|
||||
|
||||
if recipe_list[i].tech ~= nil then
|
||||
data:extend({item})
|
||||
table.insert(data.raw.technology[recipe_list[i].tech].effects, {type='unlock-recipe', recipe=item.name})
|
||||
else
|
||||
item.enabled = true
|
||||
data:extend({item})
|
||||
|
||||
if item.category == 'crafting' then
|
||||
item.category = 'scaled-crafting'
|
||||
|
||||
elseif item.category == 'basic-crafting' then
|
||||
item.category = 'scaled-basic-crafting'
|
||||
|
||||
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
|
||||
|
||||
data:extend({item})
|
||||
table.insert(data.raw.technology[recipe_list[i].tech].effects, {type='unlock-recipe', recipe=item.name})
|
||||
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