mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-05-12 21:08:43 +09:00
+28
-16
@@ -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'})
|
||||
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
|
||||
local item = table.deepcopy(data.raw.item[v])
|
||||
item.name = v .. '-a'
|
||||
item.place_result = item.name
|
||||
item.name = va
|
||||
item.place_result = va
|
||||
item.localised_name = {'phi-cl.combine', {'entity-name.' .. v}, '(II)'}
|
||||
item.localised_description = {'entity-description.' .. v}
|
||||
data:extend({item})
|
||||
end
|
||||
|
||||
local entity = table.deepcopy(data.raw['underground-belt'][v])
|
||||
entity.name = item.name
|
||||
entity.minable.result = item.name
|
||||
entity.next_upgrade = nil
|
||||
local entity = table.deepcopy(vn)
|
||||
entity.name = va
|
||||
entity.minable.result = va
|
||||
entity.next_upgrade = (entity.next_upgrade and entity.next_upgrade .. '-a') or nil
|
||||
entity.surface_conditions = nil
|
||||
entity.localised_name = {'phi-cl.combine', {'entity-name.' .. v}, '(II)'}
|
||||
entity.localised_description = {'entity-description.' .. v}
|
||||
@@ -437,29 +443,35 @@ for _, v in pairs({'underground-belt', 'fast-underground-belt', 'express-undergr
|
||||
|
||||
data:extend({{
|
||||
type = 'recipe',
|
||||
name = item.name,
|
||||
name = va,
|
||||
energy_required = 2,
|
||||
enabled = false,
|
||||
ingredients = {{type = 'item', name = v, amount = 2}},
|
||||
results = {{type = 'item', name = item.name, amount = 2}},
|
||||
main_product = item.name,
|
||||
results = {{type = 'item', name = va, amount = 2}},
|
||||
main_product = va,
|
||||
hide_from_player_crafting = true,
|
||||
allow_productivity = false,
|
||||
localised_name = {'phi-cl.combine', {'entity-name.' .. v}, '(II)'}
|
||||
}})
|
||||
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
|
||||
|
||||
if data.raw['underground-belt']['underground-belt'] and data.raw['underground-belt']['fast-underground-belt'] and data.raw['underground-belt']['express-underground-belt'] then
|
||||
data.raw['underground-belt']['underground-belt-a'].next_upgrade = 'fast-underground-belt-a'
|
||||
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'})
|
||||
-- MIG A 1 BASE RESEARCH_EFFECT
|
||||
if data.raw.technology['logistics-2'] and data.raw['underground-belt'] and data.raw['underground-belt']['fast-underground-belt'] then
|
||||
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'})
|
||||
end
|
||||
|
||||
if data.raw['underground-belt']['underground-belt'] and data.raw['underground-belt']['turbo-underground-belt'] then
|
||||
data.raw['underground-belt']['express-underground-belt-a'].next_upgrade = 'turbo-underground-belt-a'
|
||||
-- MIG A 1 SPACE_AGE RESEARCH_EFFECT
|
||||
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'})
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user