This commit is contained in:
2025-02-28 00:22:33 +09:00
parent 631ea4ae62
commit 91800cdb69

View File

@@ -251,7 +251,10 @@ function main.EEQ(source, tier)
if item.attack_parameters.ammo_type then if item.attack_parameters.ammo_type then
item.attack_parameters.ammo_type.energy_consumption = (item.attack_parameters.ammo_type.energy_consumption and tostring(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 tostring(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.action_delivery.max_length = (item.attack_parameters.ammo_type.action_delivery and item.attack_parameters.ammo_type.action_delivery.max_length and item.attack_parameters.ammo_type.action_delivery.max_length + (tier - source.min + 1)) or nil
if item.attack_parameters.ammo_type.action_delivery then
item.attack_parameters.ammo_type.action_delivery.max_length = item.attack_parameters.ammo_type.action_delivery.max_length + (tier - source.min + 1)
end
end end
end end