mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-11-16 05:44:52 +09:00
.
This commit is contained in:
1 parent
205be9b4f5
commit
b8f6840e9d
17 files changed
+38
-22
No files matched your search
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
|
Before Width: | Height: | Size: 86 KiB After Width: | Height: | Size: 86 KiB |
+3
-3
@@ -380,13 +380,13 @@ local items = {
|
||||
max = 3
|
||||
},
|
||||
['electric-filter-furnace'] = {
|
||||
enabled = settings.startup['PHI-MB'].value,
|
||||
enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-RS'].value,
|
||||
stage = 2,
|
||||
type = 'furnace',
|
||||
name = 'electric-filter-furnace',
|
||||
ref_name = 'electric-furnace',
|
||||
ref_name = 'electric-filter-furnace',
|
||||
tech = 'advanced-material-processing-2',
|
||||
min = 1,
|
||||
min = 2,
|
||||
max = 3
|
||||
},
|
||||
['laser-turret'] = {
|
||||
|
||||
@@ -238,3 +238,38 @@ if module_limitation then
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
if settings.startup['PHI-RS'].value then
|
||||
local item = table.deepcopy(data.raw['furnace']['electric-furnace'])
|
||||
item.name = 'electric-filter-furnace'
|
||||
item.minable.result = 'electric-filter-furnace'
|
||||
item.type = 'assembling-machine'
|
||||
data:extend({item})
|
||||
|
||||
item = table.deepcopy(data.raw.item['electric-furnace'])
|
||||
item.name = 'electric-filter-furnace'
|
||||
item.place_result = 'electric-filter-furnace'
|
||||
item.order = item.order .. 'B'
|
||||
data:extend({item})
|
||||
|
||||
data:extend({{
|
||||
type = 'recipe',
|
||||
name = 'electric-filter-furnace',
|
||||
energy_required = 2,
|
||||
enabled = false,
|
||||
ingredients = {{'electric-furnace', 1}},
|
||||
result = 'electric-filter-furnace',
|
||||
}})
|
||||
|
||||
data:extend({{
|
||||
type = 'recipe',
|
||||
name = 'electric-furnace-return',
|
||||
energy_required = 2,
|
||||
enabled = false,
|
||||
ingredients = {{'electric-filter-furnace', 1}},
|
||||
result = 'electric-furnace',
|
||||
}})
|
||||
|
||||
table.insert(data.raw.technology[items['item']['electric-filter-furnace'].tech].effects, {type='unlock-recipe', recipe='electric-furnace'})
|
||||
table.insert(data.raw.technology[items['item']['electric-filter-furnace'].tech].effects, {type='unlock-recipe', recipe='electric-furnace-return'})
|
||||
end
|
||||
@@ -292,25 +292,6 @@ function main.ER(source, tier)
|
||||
result = result_name,
|
||||
}})
|
||||
|
||||
elseif source.name == 'electric-filter-furnace' and tier == 1 then
|
||||
data:extend({{
|
||||
type = 'recipe',
|
||||
name = 'electric-filter-furnace',
|
||||
energy_required = 2,
|
||||
enabled = false,
|
||||
ingredients = {{'electric-furnace', 1}},
|
||||
result = 'electric-filter-furnace',
|
||||
}})
|
||||
|
||||
data:extend({{
|
||||
type = 'recipe',
|
||||
name = 'electric-furnace-return',
|
||||
energy_required = 2,
|
||||
enabled = false,
|
||||
ingredients = {{'electric-filter-furnace', 1}},
|
||||
result = 'electric-furnace',
|
||||
}})
|
||||
|
||||
else
|
||||
data:extend({{
|
||||
type = 'recipe',
|
||||
|
||||
Reference in new issue
Block a user