From 91800cdb69b59644842fb10e7e7c0dcf2c759bd5 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Fri, 28 Feb 2025 00:22:33 +0900 Subject: [PATCH] . --- PHI-CL/main.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PHI-CL/main.lua b/PHI-CL/main.lua index 5353ddf..c971c52 100644 --- a/PHI-CL/main.lua +++ b/PHI-CL/main.lua @@ -251,7 +251,10 @@ function main.EEQ(source, tier) 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.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