mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-06-29 14:53:23 +09:00
.
This commit is contained in:
@@ -51,6 +51,7 @@ function main_entity(source, tier)
|
|||||||
end
|
end
|
||||||
|
|
||||||
item.call_for_help_radius = (item.call_for_help_radius and (item.call_for_help_radius + (2 * (tier - source.min + 1)))) or nil
|
item.call_for_help_radius = (item.call_for_help_radius and (item.call_for_help_radius + (2 * (tier - source.min + 1)))) or nil
|
||||||
|
end
|
||||||
|
|
||||||
if source.type == 'electric-turret' then
|
if source.type == 'electric-turret' then
|
||||||
item.glow_light_intensity = 1
|
item.glow_light_intensity = 1
|
||||||
@@ -63,10 +64,10 @@ function main_entity(source, tier)
|
|||||||
item.attack_parameters.ammo_type.energy_consumption = (item.attack_parameters.ammo_type.energy_consumption and (tonumber(string.match(item.attack_parameters.ammo_type.energy_consumption, '[%d%.]+')) * (2 ^ (tier - source.min + 1)) .. string.match(item.attack_parameters.ammo_type.energy_consumption, '%a+'))) or nil
|
item.attack_parameters.ammo_type.energy_consumption = (item.attack_parameters.ammo_type.energy_consumption and (tonumber(string.match(item.attack_parameters.ammo_type.energy_consumption, '[%d%.]+')) * (2 ^ (tier - source.min + 1)) .. string.match(item.attack_parameters.ammo_type.energy_consumption, '%a+'))) or nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
elseif source.type == 'fluid-turret' then
|
|
||||||
item.prepare_range = item.prepare_range + (2 * (tier - source.min + 1))
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if source.type == 'fluid-turret' then
|
||||||
|
item.prepare_range = item.prepare_range + (2 * (tier - source.min + 1))
|
||||||
end
|
end
|
||||||
|
|
||||||
if (source.type == 'lab') then
|
if (source.type == 'lab') then
|
||||||
|
|||||||
Reference in New Issue
Block a user