This commit is contained in:
2025-05-30 15:55:08 +09:00
parent 865570a728
commit d7d10bcfc4
3 changed files with 4 additions and 5 deletions

View File

@@ -4,6 +4,7 @@ Date: 2025-06-06
Changes: Changes:
- [CL] Some code clean up. - [CL] Some code clean up.
- [MI] Dropped support for train efficiency affecting wagon size.
--------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------
Version: 3.0.109 Version: 3.0.109

View File

@@ -264,8 +264,6 @@ if settings.startup['PHI-MI'].value then
v.max_health = (v.max_health and (v.max_health * s)) or nil v.max_health = (v.max_health and (v.max_health * s)) or nil
v.max_speed = (v.max_speed and (v.max_speed * s)) or nil v.max_speed = (v.max_speed and (v.max_speed * s)) or nil
v.braking_force = (v.braking_force and (v.braking_force * s)) or nil v.braking_force = (v.braking_force and (v.braking_force * s)) or nil
v.inventory_size = (v.inventory_size and math.ceil(v.inventory_size * s)) or nil
v.capacity = (v.capacity and math.ceil(v.capacity * s)) or nil
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+')

View File

@@ -86,7 +86,7 @@ data:extend({
setting_type = 'startup', setting_type = 'startup',
default_value = 10, default_value = 10,
minimum_value = 1, minimum_value = 1,
maximum_value = 300, maximum_value = 160,
localised_name = {'phi-cl.combine', {'mod-setting-name-prefix.PHI-MI-PIPE'}, {'mod-setting-name.PHI-MI-PIPE'}}, localised_name = {'phi-cl.combine', {'mod-setting-name-prefix.PHI-MI-PIPE'}, {'mod-setting-name.PHI-MI-PIPE'}},
order = 'B01' order = 'B01'
}, { }, {
@@ -95,7 +95,7 @@ data:extend({
setting_type = 'startup', setting_type = 'startup',
default_value = 10, default_value = 10,
minimum_value = 1, minimum_value = 1,
maximum_value = 300, maximum_value = 160,
localised_name = {'phi-cl.combine', {'mod-setting-name-prefix.PHI-MI-ROBOT'}, {'mod-setting-name.PHI-MI-ROBOT'}}, localised_name = {'phi-cl.combine', {'mod-setting-name-prefix.PHI-MI-ROBOT'}, {'mod-setting-name.PHI-MI-ROBOT'}},
order = 'B02' order = 'B02'
}, { }, {
@@ -111,7 +111,7 @@ data:extend({
setting_type = 'startup', setting_type = 'startup',
default_value = 10, default_value = 10,
minimum_value = 1, minimum_value = 1,
maximum_value = 300, maximum_value = 160,
localised_name = {'phi-cl.combine', {'mod-setting-name-prefix.PHI-MI-TRAIN'}, {'mod-setting-name.PHI-MI-TRAIN'}}, localised_name = {'phi-cl.combine', {'mod-setting-name-prefix.PHI-MI-TRAIN'}, {'mod-setting-name.PHI-MI-TRAIN'}},
order = 'B04' order = 'B04'
}, { }, {