mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-27 11:05:22 +09:00
.
This commit is contained in:
@@ -688,10 +688,6 @@ if settings.startup['PHI-MI'].value then
|
|||||||
if v.max_power then
|
if v.max_power then
|
||||||
v.max_power = tostring(tonumber(string.match(v.max_power, '[%d%.]+')) * s) .. string.match(v.max_power, '%a+')
|
v.max_power = tostring(tonumber(string.match(v.max_power, '[%d%.]+')) * s) .. string.match(v.max_power, '%a+')
|
||||||
v.reversing_power_modifier = 1
|
v.reversing_power_modifier = 1
|
||||||
|
|
||||||
if v.energy_source then
|
|
||||||
v.energy_source.burnt_inventory_size = 1
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -1075,6 +1071,12 @@ if mods['space-age'] and (settings.startup['PHI-GM'].value and settings.startup[
|
|||||||
localised_description = {'description.charged-train-battery'}
|
localised_description = {'description.charged-train-battery'}
|
||||||
}})
|
}})
|
||||||
|
|
||||||
|
for _, v in pairs(data.raw['locomotive']) do
|
||||||
|
if v.energy_source then
|
||||||
|
v.energy_source.burnt_inventory_size = (v.energy_source.burnt_inventory_size and math.max(v.energy_source.burnt_inventory_size, 1)) or 1
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
data:extend({{
|
data:extend({{
|
||||||
type = 'technology',
|
type = 'technology',
|
||||||
name = 'cargo-landing-pad-count',
|
name = 'cargo-landing-pad-count',
|
||||||
|
|||||||
Reference in New Issue
Block a user