mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-27 02:55:22 +09:00
.
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 3.0.99
|
||||
Date: 2025-05-10
|
||||
|
||||
Changes:
|
||||
- [CL] Some changes of main code logic.
|
||||
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 3.0.98
|
||||
Date: 2025-04-30
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "PHI-CL",
|
||||
"version": "3.0.98",
|
||||
"version": "3.0.99",
|
||||
"factorio_version": "2.0",
|
||||
"date": "2025-05-10",
|
||||
"title": "Phidias Collection",
|
||||
|
||||
@@ -309,19 +309,19 @@ function main.ER(source, tier)
|
||||
|
||||
if source.tech == 'compound-energy' then
|
||||
if source.type == 'solar-panel' or source.type == 'accumulator' then
|
||||
table.insert({type = 'item', name = ingredient_name, amount = tonumber(settings.startup['PHI-MB-ENERGY-SOLAR-RATIO'].value) or 4})
|
||||
table.insert(ingredients, {type = 'item', name = ingredient_name, amount = tonumber(settings.startup['PHI-MB-ENERGY-SOLAR-RATIO'].value) or 4})
|
||||
|
||||
else
|
||||
if tier > source.min then
|
||||
table.insert({type = 'item', name = ingredient_name, amount = 1}, {type='item', name = source.ref_name, amount = 1})
|
||||
table.insert(ingredients, {type = 'item', name = ingredient_name, amount = 1}, {type='item', name = source.ref_name, amount = 1})
|
||||
|
||||
else
|
||||
table.insert({type = 'item', name = source.ref_name, amount = 2})
|
||||
table.insert(ingredients, {type = 'item', name = source.ref_name, amount = 2})
|
||||
end
|
||||
end
|
||||
|
||||
else
|
||||
table.insert({type = 'item', name = ingredient_name, amount = 2})
|
||||
table.insert(ingredients, {type = 'item', name = ingredient_name, amount = 2})
|
||||
end
|
||||
|
||||
data:extend({{
|
||||
|
||||
Reference in New Issue
Block a user