mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-07-26 21:16:23 +09:00
.
This commit is contained in:
@@ -245,7 +245,7 @@ function main_recipe(source, tier)
|
||||
recipe.name = source.name .. '-' .. tier
|
||||
recipe.icons = table.deepcopy(data.raw.item[source.ref_name].icons)
|
||||
recipe.energy_required = 2
|
||||
recipe.enabled = false
|
||||
recipe.enabled = (data.raw.technology[source.tech] and false) or true
|
||||
recipe.categories = {'crafting'}
|
||||
recipe.ingredients = {{type = 'item', name = (tier > source.min and (source.name .. '-' .. (tier - 1))) or source.ref_name, amount = ((source.tech == 'compound-energy' and (source.type == 'solar-panel' or source.type == 'accumulator')) and tonumber(settings.startup['PHI-MB-ENERGY-SOLAR-RATIO'].value) or 4) or 2}}
|
||||
recipe.results = {{type = 'item', name = recipe.name, amount = 1}}
|
||||
|
||||
@@ -377,7 +377,7 @@ function main_recipe(source, tier)
|
||||
recipe.name = source.name .. '-' .. tier
|
||||
recipe.icons = table.deepcopy(data.raw.item[source.ref_name].icons)
|
||||
recipe.energy_required = 2
|
||||
recipe.enabled = false
|
||||
recipe.enabled = (data.raw.technology[source.tech] and false) or true
|
||||
recipe.categories = {'crafting'}
|
||||
recipe.ingredients = {{type = 'item', name = (tier > source.min and (source.name .. '-' .. (tier - 1))) or source.ref_name, amount = 2}}
|
||||
recipe.results = {{type = 'item', name = recipe.name, amount = 1}}
|
||||
|
||||
@@ -183,7 +183,7 @@ function main_recipe(source, tier)
|
||||
recipe.name = source.name .. '-mk' .. tier .. '-equipment'
|
||||
recipe.icons = table.deepcopy(data.raw.item[source.ref_name].icons)
|
||||
recipe.energy_required = 2
|
||||
recipe.enabled = false
|
||||
recipe.enabled = (data.raw.technology[source.tech] and false) or true
|
||||
recipe.categories = {'crafting'}
|
||||
recipe.ingredients = {{type = 'item', name = (tier == source.min and source.ref_name) or (source.name .. '-mk' .. (tier - 1) .. '-equipment'), amount = 2}}
|
||||
recipe.results = {{type = 'item', name = recipe.name, amount = 1}}
|
||||
|
||||
Reference in New Issue
Block a user