This commit is contained in:
2025-05-09 17:38:23 +09:00
parent a86d417208
commit 6fef0dbd23

View File

@@ -261,12 +261,7 @@ function main.EEQ(source, tier)
item.localised_description = {'?', {'item-description.' .. source.ref_name}, {'description.' .. source.ref_name}} item.localised_description = {'?', {'item-description.' .. source.ref_name}, {'description.' .. source.ref_name}}
if settings.startup['PHI-MB-EQUIPMENT-SIZE'].value then if settings.startup['PHI-MB-EQUIPMENT-SIZE'].value then
item.shape = { item.shape = {width = 1, height = 1, type = 'full', points = {{0, 0}}}
width = 1,
height = 1,
type = 'full',
points = {{0, 0}}
}
end end
data:extend({item}) data:extend({item})
@@ -300,13 +295,7 @@ end
-- recipe -- recipe
function main.ER(source, tier) function main.ER(source, tier)
local icons = { local icons = {{icon = data.raw.item[source.ref_name].icon, tint = items['tint'][tier]}}
{
icon = data.raw.item[source.ref_name].icon,
tint = items['tint'][tier]
}
}
local ingredient_name = ((source.category == 'equipment' and (((tier == 2) and (source.name .. '-equipment')) or (source.name .. '-mk' .. (tier - 1) .. '-equipment'))) or (source.name .. ((tier > 2) and ('-' .. (tier - 1)) or ''))) local ingredient_name = ((source.category == 'equipment' and (((tier == 2) and (source.name .. '-equipment')) or (source.name .. '-mk' .. (tier - 1) .. '-equipment'))) or (source.name .. ((tier > 2) and ('-' .. (tier - 1)) or '')))
local result_name = source.name .. ((source.category == 'equipment' and ('-mk' .. tier .. '-equipment')) or ('-' .. tier)) local result_name = source.name .. ((source.category == 'equipment' and ('-mk' .. tier .. '-equipment')) or ('-' .. tier))
@@ -316,7 +305,7 @@ function main.ER(source, tier)
icons = icons, icons = icons,
energy_required = 2, energy_required = 2,
enabled = false, enabled = false,
ingredients = (source.tech == 'compound-energy' and (((source.type == 'solar-panel') or (source.type == 'accumulator')) and {{type = 'item', name = ingredient_name, amount = tonumber(settings.startup['PHI-MB-ENERGY-SOLAR-RATIO'].value) or 4}}) or ((tier > 2 and {{type = 'item', name = ingredient_name, amount = 1}, {type='item', name = source.name, amount = 1}}) or {{type = 'item', name = source.name, amount = 2}})) or {{type = 'item', name = ingredient_name, amount = 2}}, ingredients = (source.tech == 'compound-energy' and (((source.type == 'solar-panel') or (source.type == 'accumulator')) and {{type = 'item', name = ingredient_name, amount = tonumber(settings.startup['PHI-MB-ENERGY-SOLAR-RATIO'].value) or 4}}) or ((tier > 2 and {{type = 'item', name = ingredient_name, amount = 1}, {type='item', name = source.ref_name, amount = 1}}) or {{type = 'item', name = source.ref_name, amount = 2}})) or {{type = 'item', name = ingredient_name, amount = 2}},
results = {{type = 'item', name = result_name, amount = 1}}, results = {{type = 'item', name = result_name, amount = 1}},
main_product = result_name, main_product = result_name,
localised_name = {'?', data.raw[source.type][result_name].localised_name, ''}, localised_name = {'?', data.raw[source.type][result_name].localised_name, ''},