Update main.lua

This commit is contained in:
PHIDIAS
2023-03-17 21:22:06 +09:00
parent 656ccbae11
commit 3fb699ef4b

View File

@@ -31,10 +31,10 @@ local function EE(source, tier)
item.name = source .. '-' .. tier item.name = source .. '-' .. tier
item.minable.result = source .. '-' .. tier item.minable.result = source .. '-' .. tier
item.max_health = item.max_health * (2 ^ (tier - 1)) item.max_health = item.max_health * (2 ^ (tier - item_min[source] + 1))
item.crafting_speed = item.crafting_speed * (2 ^ (tier - 1)) item.crafting_speed = item.crafting_speed * (2 ^ (tier - item_min[source] + 1))
item.energy_source.emissions_per_minute = item.energy_source.emissions_per_minute * (2 ^ (tier - 1)) item.energy_source.emissions_per_minute = item.energy_source.emissions_per_minute * (2 ^ (tier - item_min[source] + 1))
item.energy_usage = tonumber(string.match(item.energy_usage, '%d+')) * (2 ^ (tier - 1)) .. 'kW' item.energy_usage = tonumber(string.match(item.energy_usage, '%d+')) * (2 ^ (tier - item_min[source] + 1)) .. 'kW'
-- item.animation.layers[1].filename = graphics_location .. source .. '-e.png' -- item.animation.layers[1].filename = graphics_location .. source .. '-e.png'
-- item.animation.layers[1].hr_version.filename = graphics_location .. source ..'-eh.png' -- item.animation.layers[1].hr_version.filename = graphics_location .. source ..'-eh.png'
-- item.icon = graphics_location .. source .. '-i.png' -- item.icon = graphics_location .. source .. '-i.png'