This commit is contained in:
2023-05-08 15:26:22 +09:00
parent bc50600fc4
commit e830a1d441
8 changed files with 39 additions and 21 deletions

View File

@@ -149,7 +149,7 @@ local function EE(source, tier)
item['energy_source'] = {type = 'electric', usage_priority = 'secondary-input', buffer_capacity = (250 * (2 ^ (tier - 1))) .. 'kJ'}
-- item['source_direction_count'] = 64
-- item['source_offset'] = {0, -3.423489 / 4}
item['attack_parameters'] = {type = 'beam', cooldown = 60, range = (18 + tier), damage_modifier = (source.base * (2 ^ (tier - 1))), ammo_type = {category = 'laser', energy_consumption = (50 * (2 ^ (tier - 1))) .. 'kJ', action = {type = 'direct', action_delivery = {type = 'beam', beam = 'laser-beam', max_length = (18 + tier), duration = 60, source_offset = {0, -1.31439}}}}}
item['attack_parameters'] = {type = 'beam', cooldown = 45, range = (18 + tier), damage_modifier = (source.base * (2 ^ (tier - 1))), ammo_type = {category = 'laser', energy_consumption = (50 * (2 ^ (tier - 1))) .. 'kJ', action = {type = 'direct', action_delivery = {type = 'beam', beam = 'laser-beam', max_length = (18 + tier), duration = 60, source_offset = {0, -1.31439}}}}}
item['automatic'] = true
elseif (source.type == 'energy-shield') then
w = 2
@@ -222,13 +222,13 @@ end
-- recipe
local function ER(source, tier)
na = source.name
local na = source.name
if source.min == tier then
if (tier == 1) then
na = source.base_name .. '-equipment'
elseif (tier == 2) then
na = source.name .. '-equipment'
elseif (tier >= 3) then
else
na = source.name .. '-mk' .. (tier - 1) .. '-equipment'
end