mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-27 11:05:22 +09:00
.
This commit is contained in:
@@ -77,11 +77,12 @@ function main.EEE(source, tier)
|
||||
end
|
||||
|
||||
if (source.type == 'electric-turret') or (source.type == 'ammo-turret') or (source.type == 'fluid-turret') then
|
||||
item.attack_parameters.damage_modifier = item.attack_parameters.damage_modifier * (2 ^ (tier - source.min + 1))
|
||||
item.attack_parameters.damage_modifier = 2 ^ (tier - source.min + 1)
|
||||
item.attack_parameters.range = item.attack_parameters.range + (2 * (tier - source.min + 1))
|
||||
item.call_for_help_radius = item.call_for_help_radius + (2 * (tier - source.min + 1))
|
||||
|
||||
if source.type == 'electric-turret' then
|
||||
item.attack_parameters.damage_modifier = item.attack_parameters.damage_modifier * 2
|
||||
item.glow_light_intensity = 1
|
||||
item.attack_parameters.ammo_type.action.action_delivery.max_length = item.attack_parameters.ammo_type.action.action_delivery.max_length + (2 * (tier - source.min + 1))
|
||||
item.attack_parameters.ammo_type.energy_consumption = 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+')
|
||||
|
||||
@@ -49,7 +49,7 @@ for _, force in pairs(game.forces) do
|
||||
recipes['power-armor-mk3'].reload()
|
||||
end
|
||||
|
||||
if technologies['mech-armor'] and technologies['mech-armor-mk2'].researched then
|
||||
if technologies['mech-armor'] and technologies['mech-armor'].researched then
|
||||
recipes['mech-armor-mk2'].enabled = true
|
||||
recipes['mech-armor-mk2'].reload()
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user