Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-04-28 19:53:24 +09:00
parent a6f56b0b70
commit 16e038a1f0
+28 -16
View File
@@ -405,19 +405,25 @@ if data.raw.technology['turbo-transport-belt'] and data.raw['loader'] and data.r
table.insert(data.raw.technology['turbo-transport-belt'].effects, {type = 'unlock-recipe', recipe = 'turbo-loader'}) table.insert(data.raw.technology['turbo-transport-belt'].effects, {type = 'unlock-recipe', recipe = 'turbo-loader'})
end end
for _, v in pairs({'underground-belt', 'fast-underground-belt', 'express-underground-belt', 'turbo-underground-belt'}) do -- MIG A 3 BASE ENTITY,ITEM,RECIPE
-- MIG A 1 SPACE_AGE ENTITY,ITEM,RECIPE
for _, vn in pairs(data.raw['underground-belt']) do
local v = vn.name
local va = v .. '-a'
if data.raw.item[v] then if data.raw.item[v] then
local item = table.deepcopy(data.raw.item[v]) local item = table.deepcopy(data.raw.item[v])
item.name = v .. '-a' item.name = va
item.place_result = item.name item.place_result = va
item.localised_name = {'phi-cl.combine', {'entity-name.' .. v}, '(II)'} item.localised_name = {'phi-cl.combine', {'entity-name.' .. v}, '(II)'}
item.localised_description = {'entity-description.' .. v} item.localised_description = {'entity-description.' .. v}
data:extend({item}) data:extend({item})
end
local entity = table.deepcopy(data.raw['underground-belt'][v]) local entity = table.deepcopy(vn)
entity.name = item.name entity.name = va
entity.minable.result = item.name entity.minable.result = va
entity.next_upgrade = nil entity.next_upgrade = (entity.next_upgrade and entity.next_upgrade .. '-a') or nil
entity.surface_conditions = nil entity.surface_conditions = nil
entity.localised_name = {'phi-cl.combine', {'entity-name.' .. v}, '(II)'} entity.localised_name = {'phi-cl.combine', {'entity-name.' .. v}, '(II)'}
entity.localised_description = {'entity-description.' .. v} entity.localised_description = {'entity-description.' .. v}
@@ -437,29 +443,35 @@ for _, v in pairs({'underground-belt', 'fast-underground-belt', 'express-undergr
data:extend({{ data:extend({{
type = 'recipe', type = 'recipe',
name = item.name, name = va,
energy_required = 2, energy_required = 2,
enabled = false, enabled = false,
ingredients = {{type = 'item', name = v, amount = 2}}, ingredients = {{type = 'item', name = v, amount = 2}},
results = {{type = 'item', name = item.name, amount = 2}}, results = {{type = 'item', name = va, amount = 2}},
main_product = item.name, main_product = va,
hide_from_player_crafting = true, hide_from_player_crafting = true,
allow_productivity = false, allow_productivity = false,
localised_name = {'phi-cl.combine', {'entity-name.' .. v}, '(II)'} localised_name = {'phi-cl.combine', {'entity-name.' .. v}, '(II)'}
}}) }})
end end
-- MIG A 1 BASE RESEARCH_EFFECT
if data.raw.technology['logistics'] and data.raw['underground-belt'] and data.raw['underground-belt']['underground-belt'] then
table.insert(data.raw.technology['logistics'].effects, {type = 'unlock-recipe', recipe = 'underground-belt-a'})
end end
if data.raw['underground-belt']['underground-belt'] and data.raw['underground-belt']['fast-underground-belt'] and data.raw['underground-belt']['express-underground-belt'] then -- MIG A 1 BASE RESEARCH_EFFECT
data.raw['underground-belt']['underground-belt-a'].next_upgrade = 'fast-underground-belt-a' if data.raw.technology['logistics-2'] and data.raw['underground-belt'] and data.raw['underground-belt']['fast-underground-belt'] then
data.raw['underground-belt']['fast-underground-belt-a'].next_upgrade = 'express-underground-belt-a'
table.insert(data.raw.technology['logistics'].effects, {type = 'unlock-recipe', recipe = 'underground-belt-a'})
table.insert(data.raw.technology['logistics-2'].effects, {type = 'unlock-recipe', recipe = 'fast-underground-belt-a'}) table.insert(data.raw.technology['logistics-2'].effects, {type = 'unlock-recipe', recipe = 'fast-underground-belt-a'})
end
-- MIG A 1 BASE RESEARCH_EFFECT
if data.raw.technology['logistics-3'] and data.raw['underground-belt'] and data.raw['underground-belt']['express-underground-belt'] then
table.insert(data.raw.technology['logistics-3'].effects, {type = 'unlock-recipe', recipe = 'express-underground-belt-a'}) table.insert(data.raw.technology['logistics-3'].effects, {type = 'unlock-recipe', recipe = 'express-underground-belt-a'})
end end
if data.raw['underground-belt']['underground-belt'] and data.raw['underground-belt']['turbo-underground-belt'] then -- MIG A 1 SPACE_AGE RESEARCH_EFFECT
data.raw['underground-belt']['express-underground-belt-a'].next_upgrade = 'turbo-underground-belt-a' if data.raw.technology['turbo-transport-belt'] and data.raw['underground-belt'] and data.raw['underground-belt']['turbo-underground-belt'] then
table.insert(data.raw.technology['turbo-transport-belt'].effects, {type = 'unlock-recipe', recipe = 'turbo-underground-belt-a'}) table.insert(data.raw.technology['turbo-transport-belt'].effects, {type = 'unlock-recipe', recipe = 'turbo-underground-belt-a'})
end end