From 9c87c0485d3ebfd1eead32888ece3070cb003a89 Mon Sep 17 00:00:00 2001 From: PHIDIAS <10016767+PHIDIAS0303@users.noreply.github.com> Date: Thu, 1 Dec 2022 22:09:54 +0900 Subject: [PATCH] Create thumbnail.png --- PHI-EN/prototypes.lua | 96 ------------------------------------------- 1 file changed, 96 deletions(-) delete mode 100644 PHI-EN/prototypes.lua diff --git a/PHI-EN/prototypes.lua b/PHI-EN/prototypes.lua deleted file mode 100644 index c3c5043..0000000 --- a/PHI-EN/prototypes.lua +++ /dev/null @@ -1,96 +0,0 @@ -local alpha_order = {"b", "c", "d", "e", "f", "g", "h", "i"} -local base_battery_energy = 5 -local base_battery_flow = 300 -local base_solar_energy = 60 -local graphics_location = "__PHI-EN__/graphics/" - --- entity -local function EE(source, tier) - local item = table.deepcopy(data.raw[source][source]) - item.name = source .. "-mk" .. tier - item.minable.result = source .. "-mk" .. tier - item.max_health = 1000 - item.picture.layers[1].filename = graphics_location .. source .. "-e.png" - item.picture.layers[1].hr_version.filename = graphics_location .. source .."-eh.png" - item.icon = graphics_location .. source .. "-i.png" - item.icon_size = 64 - item.icon_mipmaps = 4 - - if (source == "accumulator") - then - item.energy_source.buffer_capacity = (base_battery_energy * 4 ^ (tier - 1)) .. "MJ" - item.energy_source.input_flow_limit = (base_battery_flow * (4 ^ (tier - 1))) .. "kW" - item.energy_source.output_flow_limit = (base_battery_flow * (4 ^ (tier - 1))) .. "kW" - item.energy_source.buffer_capacity = (base_battery_energy * 4 ^ (tier - 1)) .. "MJ" - item.energy_source.input_flow_limit = (base_battery_flow * (4 ^ (tier - 1))) .. "kW" - item.energy_source.output_flow_limit = (base_battery_flow * (4 ^ (tier - 1))) .. "kW" - item.charge_animation.layers[1].layers[1].filename = item.picture.layers[1].filename - item.charge_animation.layers[1].layers[1].tint = {r = 1, g = 1, b = 1, a = 1} - item.charge_animation.layers[1].layers[1].hr_version.filename = item.picture.layers[1].hr_version.filename - item.charge_animation.layers[1].layers[1].hr_version.tint = {r = 1, g = 1, b = 1, a = 1} - item.discharge_animation.layers[1].layers[1].filename = item.picture.layers[1].filename - item.discharge_animation.layers[1].layers[1].tint = {r = 1, g = 1, b = 1, a = 1} - item.discharge_animation.layers[1].layers[1].hr_version.filename = item.picture.layers[1].hr_version.filename - item.discharge_animation.layers[1].layers[1].hr_version.tint = {r = 1, g = 1, b = 1, a = 1} - else - item.production = (base_solar_energy * (4 ^ (tier - 1))) .. "kW" - end - - if (tier <= 7) - then - item.next_upgrade = source .. "-mk" .. (tier + 1) - end - - data:extend({item}) -end - --- item -local function EI(source, tier) - local item = table.deepcopy(data.raw.item[source]) - item.name = source .. "-mk" .. tier - item.place_result = source .. "-mk" .. tier - item.max_health = 1000 - item.subgroup = "energy" - item.stack_size = 50 - item.default_request_amount = 50 - item.icons = {{icon = graphics_location .. source .. "-i.png", icon_mipmaps = 4, icon_size = 64}} - - if (source == "accumulator") - then - item.order = "d[" .. source .. "]-b" .. alpha_order[tier - 1] .. "[" .. source .. "-mk" .. tier .. "]" - - else - item.order = "e[" .. source .. "]-b" .. alpha_order[tier - 1] .. "[" .. source .. "-mk" .. tier .. "]" - end - - data:extend({item}) -end - --- recipe -local function ER(source, tier) - na = source - - if (tier >= 3) - then - na = na .. "-mk" .. (tier - 1) - end - - data:extend({{ - type = "recipe", - name = source .. "-mk" .. tier, - energy_required = 5, - enabled = "false", - ingredients = {{na, 4}}, - result = source .. "-mk" .. tier, - }}) -end - -items = {"accumulator", "solar-panel"} - -for i=1, 2, 1 do - for j=2, 8, 1 do - EE(items[i], j) - EI(items[i], j) - ER(items[i], j) - end -end