mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-27 11:05:22 +09:00
Update
This commit is contained in:
@@ -292,7 +292,6 @@ local recipe_list = {
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
for i=1, #recipe_list, 1 do
|
||||
if data.raw.recipe[recipe_list[i].name] ~= nil then
|
||||
for j=1, #recipe_multiplier, 1 do
|
||||
@@ -396,101 +395,10 @@ for i=1, #recipe_list, 1 do
|
||||
end
|
||||
end
|
||||
|
||||
item.name = item.name .. '-' .. j
|
||||
item.hide_from_player_crafting = true
|
||||
item.name = item.name .. '-s' .. j
|
||||
|
||||
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
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "PHI-RS",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.1",
|
||||
"factorio_version": "1.1",
|
||||
"date": "2023-04-13",
|
||||
"title": "Phidias Recipe Scaling",
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
[recipe-name]
|
||||
basic-oil-processing-1=Basic oil processing
|
||||
basic-oil-processing-2=Basic oil processing
|
||||
advanced-oil-processing-1=Advanced oil processing
|
||||
advanced-oil-processing-2=Advanced oil processing
|
||||
light-oil-cracking-1=Light oil cracking to petroleum gas
|
||||
light-oil-cracking-2=Light oil cracking to petroleum gas
|
||||
heavy-oil-cracking-1=Heavy oil cracking to light oil
|
||||
heavy-oil-cracking-2=Heavy oil cracking to light oil
|
||||
uranium-processing-1=Uranium processing
|
||||
uranium-processing-2=Uranium processing
|
||||
kovarex-enrichment-process-1=Kovarex enrichment process
|
||||
kovarex-enrichment-process-2=Kovarex enrichment process
|
||||
nuclear-fuel-reprocessing-1=Nuclear fuel reprocessing
|
||||
nuclear-fuel-reprocessing-2=Nuclear fuel reprocessing
|
||||
coal-liquefaction-1=Coal liquefaction
|
||||
coal-liquefaction-2=Coal liquefaction
|
||||
basic-oil-processing-s1=Basic oil processing
|
||||
basic-oil-processing-s2=Basic oil processing
|
||||
advanced-oil-processing-s1=Advanced oil processing
|
||||
advanced-oil-processing-s2=Advanced oil processing
|
||||
light-oil-cracking-s1=Light oil cracking to petroleum gas
|
||||
light-oil-cracking-s2=Light oil cracking to petroleum gas
|
||||
heavy-oil-cracking-s1=Heavy oil cracking to light oil
|
||||
heavy-oil-cracking-s2=Heavy oil cracking to light oil
|
||||
uranium-processing-s1=Uranium processing
|
||||
uranium-processing-s2=Uranium processing
|
||||
kovarex-enrichment-process-s1=Kovarex enrichment process
|
||||
kovarex-enrichment-process-s2=Kovarex enrichment process
|
||||
nuclear-fuel-reprocessing-s1=Nuclear fuel reprocessing
|
||||
nuclear-fuel-reprocessing-s2=Nuclear fuel reprocessing
|
||||
coal-liquefaction-s1=Coal liquefaction
|
||||
coal-liquefaction-s2=Coal liquefaction
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
[recipe-name]
|
||||
basic-oil-processing-1=基本的な石油加工
|
||||
basic-oil-processing-2=基本的な石油加工
|
||||
advanced-oil-processing-1=発展的な石油加工
|
||||
advanced-oil-processing-2=発展的な石油加工
|
||||
light-oil-cracking-1=軽油を石油ガスに分解
|
||||
light-oil-cracking-2=軽油を石油ガスに分解
|
||||
heavy-oil-cracking-1=重油を軽油に分解
|
||||
heavy-oil-cracking-2=重油を軽油に分解
|
||||
uranium-processing-1=ウラン濃縮処理
|
||||
uranium-processing-2=ウラン濃縮処理
|
||||
kovarex-enrichment-process-1=Kovarex濃縮プロセス
|
||||
kovarex-enrichment-process-2=Kovarex濃縮プロセス
|
||||
nuclear-fuel-reprocessing-1=核燃料再処理
|
||||
nuclear-fuel-reprocessing-2=核燃料再処理
|
||||
coal-liquefaction-1=石炭液化
|
||||
coal-liquefaction-2=石炭液化
|
||||
basic-oil-processing-s1=基本的な石油加工
|
||||
basic-oil-processing-s2=基本的な石油加工
|
||||
advanced-oil-processing-s1=発展的な石油加工
|
||||
advanced-oil-processing-s2=発展的な石油加工
|
||||
light-oil-cracking-s1=軽油を石油ガスに分解
|
||||
light-oil-cracking-s2=軽油を石油ガスに分解
|
||||
heavy-oil-cracking-s1=重油を軽油に分解
|
||||
heavy-oil-cracking-s2=重油を軽油に分解
|
||||
uranium-processing-s1=ウラン濃縮処理
|
||||
uranium-processing-s2=ウラン濃縮処理
|
||||
kovarex-enrichment-process-s1=Kovarex濃縮プロセス
|
||||
kovarex-enrichment-process-s2=Kovarex濃縮プロセス
|
||||
nuclear-fuel-reprocessing-s1=核燃料再処理
|
||||
nuclear-fuel-reprocessing-s2=核燃料再処理
|
||||
coal-liquefaction-s1=石炭液化
|
||||
coal-liquefaction-s2=石炭液化
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
[recipe-name]
|
||||
basic-oil-processing-1=基礎石油加工
|
||||
basic-oil-processing-2=基礎石油加工
|
||||
advanced-oil-processing-1=高等石油加工
|
||||
advanced-oil-processing-2=高等石油加工
|
||||
light-oil-cracking-1=輕油裂解為石油氣
|
||||
light-oil-cracking-2=輕油裂解為石油氣
|
||||
heavy-oil-cracking-1=重油裂解為輕油
|
||||
heavy-oil-cracking-2=重油裂解為輕油
|
||||
uranium-processing-1=鈾濃縮加工
|
||||
uranium-processing-2=鈾濃縮加工
|
||||
kovarex-enrichment-process-1=鈾增殖加工
|
||||
kovarex-enrichment-process-2=鈾增殖加工
|
||||
nuclear-fuel-reprocessing-1=核燃料後加工
|
||||
nuclear-fuel-reprocessing-2=核燃料後加工
|
||||
coal-liquefaction-1=液化煤
|
||||
coal-liquefaction-2=液化煤
|
||||
basic-oil-processing-s1=基礎石油加工
|
||||
basic-oil-processing-s2=基礎石油加工
|
||||
advanced-oil-processing-s1=高等石油加工
|
||||
advanced-oil-processing-s2=高等石油加工
|
||||
light-oil-cracking-s1=輕油裂解為石油氣
|
||||
light-oil-cracking-s2=輕油裂解為石油氣
|
||||
heavy-oil-cracking-s1=重油裂解為輕油
|
||||
heavy-oil-cracking-s2=重油裂解為輕油
|
||||
uranium-processing-s1=鈾濃縮加工
|
||||
uranium-processing-s2=鈾濃縮加工
|
||||
kovarex-enrichment-process-s1=鈾增殖加工
|
||||
kovarex-enrichment-process-s2=鈾增殖加工
|
||||
nuclear-fuel-reprocessing-s1=核燃料後加工
|
||||
nuclear-fuel-reprocessing-s2=核燃料後加工
|
||||
coal-liquefaction-s1=液化煤
|
||||
coal-liquefaction-s2=液化煤
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
[recipe-name]
|
||||
basic-oil-processing-1=基礎石油加工
|
||||
basic-oil-processing-2=基礎石油加工
|
||||
advanced-oil-processing-1=高等石油加工
|
||||
advanced-oil-processing-2=高等石油加工
|
||||
light-oil-cracking-1=輕油裂解為石油氣
|
||||
light-oil-cracking-2=輕油裂解為石油氣
|
||||
heavy-oil-cracking-1=重油裂解為輕油
|
||||
heavy-oil-cracking-2=重油裂解為輕油
|
||||
uranium-processing-1=鈾濃縮加工
|
||||
uranium-processing-2=鈾濃縮加工
|
||||
kovarex-enrichment-process-1=鈾增殖加工
|
||||
kovarex-enrichment-process-2=鈾增殖加工
|
||||
nuclear-fuel-reprocessing-1=核燃料後加工
|
||||
nuclear-fuel-reprocessing-2=核燃料後加工
|
||||
coal-liquefaction-1=液化煤
|
||||
coal-liquefaction-2=液化煤
|
||||
basic-oil-processing-s1=基礎石油加工
|
||||
basic-oil-processing-s2=基礎石油加工
|
||||
advanced-oil-processing-s1=高等石油加工
|
||||
advanced-oil-processing-s2=高等石油加工
|
||||
light-oil-cracking-s1=輕油裂解為石油氣
|
||||
light-oil-cracking-s2=輕油裂解為石油氣
|
||||
heavy-oil-cracking-s1=重油裂解為輕油
|
||||
heavy-oil-cracking-s2=重油裂解為輕油
|
||||
uranium-processing-s1=鈾濃縮加工
|
||||
uranium-processing-s2=鈾濃縮加工
|
||||
kovarex-enrichment-process-s1=鈾增殖加工
|
||||
kovarex-enrichment-process-s2=鈾增殖加工
|
||||
nuclear-fuel-reprocessing-s1=核燃料後加工
|
||||
nuclear-fuel-reprocessing-s2=核燃料後加工
|
||||
coal-liquefaction-s1=液化煤
|
||||
coal-liquefaction-s2=液化煤
|
||||
|
||||
Reference in New Issue
Block a user