From 78ad0dd7b9b6ad9cf45668bd55f084a5d1ab1e33 Mon Sep 17 00:00:00 2001 From: PHIDIAS <10016767+PHIDIAS0303@users.noreply.github.com> Date: Thu, 1 Dec 2022 19:57:10 +0900 Subject: [PATCH] Create equipment.lua --- PHI-EQ/prototypes/equipment.lua | 296 ++++++++++++++++++++++++++++++++ 1 file changed, 296 insertions(+) create mode 100644 PHI-EQ/prototypes/equipment.lua diff --git a/PHI-EQ/prototypes/equipment.lua b/PHI-EQ/prototypes/equipment.lua new file mode 100644 index 0000000..9dedd56 --- /dev/null +++ b/PHI-EQ/prototypes/equipment.lua @@ -0,0 +1,296 @@ +data:extend( +{ + { + type = "solar-panel-equipment", + name = "solar-panel-equipment-mk2", + sprite = {filename = "__base__/graphics/equipment/solar-panel-equipment.png", width = 32, height = 32, priority = "medium", hr_version = {filename = "__base__/graphics/equipment/hr-solar-panel-equipment.png", width = 64, height = 64, priority = "medium", scale = 0.5}}, + shape = {width = 1, height = 1, type = "full"}, + power = "60kW", + energy_source = {type = "electric", usage_priority = "primary-output"}, + categories = {"armor"} + }, + { + type = "solar-panel-equipment", + name = "solar-panel-equipment-mk3", + sprite = {filename = "__base__/graphics/equipment/solar-panel-equipment.png", width = 32, height = 32, priority = "medium", hr_version = {filename = "__base__/graphics/equipment/hr-solar-panel-equipment.png", width = 64, height = 64, priority = "medium", scale = 0.5}}, + shape = {width = 1, height = 1, type = "full"}, + power = "120kW", + energy_source = {type = "electric", usage_priority = "primary-output"}, + categories = {"armor"} + }, + { + type = "solar-panel-equipment", + name = "solar-panel-equipment-mk4", + sprite = {filename = "__base__/graphics/equipment/solar-panel-equipment.png", width = 32, height = 32, priority = "medium", hr_version = {filename = "__base__/graphics/equipment/hr-solar-panel-equipment.png", width = 64, height = 64, priority = "medium", scale = 0.5}}, + shape = {width = 1, height = 1, type = "full"}, + power = "240kW", + energy_source = {type = "electric", usage_priority = "primary-output"}, + categories = {"armor"} + }, + { + type = "solar-panel-equipment", + name = "solar-panel-equipment-mk5", + sprite = {filename = "__base__/graphics/equipment/solar-panel-equipment.png", width = 32, height = 32, priority = "medium", hr_version = {filename = "__base__/graphics/equipment/hr-solar-panel-equipment.png", width = 64, height = 64, priority = "medium", scale = 0.5}}, + shape = {width = 1, height = 1, type = "full"}, + power = "480kW", + energy_source = {type = "electric", usage_priority = "primary-output"}, + categories = {"armor"} + }, + { + type = "solar-panel-equipment", + name = "solar-panel-equipment-mk6", + sprite = {filename = "__base__/graphics/equipment/solar-panel-equipment.png", width = 32, height = 32, priority = "medium", hr_version = {filename = "__base__/graphics/equipment/hr-solar-panel-equipment.png", width = 64, height = 64, priority = "medium", scale = 0.5}}, + shape = {width = 1, height = 1, type = "full"}, + power = "960kW", + energy_source = {type = "electric", usage_priority = "primary-output"}, + categories = {"armor"} + }, + { + type = "solar-panel-equipment", + name = "solar-panel-equipment-mk7", + sprite = {filename = "__base__/graphics/equipment/solar-panel-equipment.png", width = 32, height = 32, priority = "medium", hr_version = {filename = "__base__/graphics/equipment/hr-solar-panel-equipment.png", width = 64, height = 64, priority = "medium", scale = 0.5}}, + shape = {width = 1, height = 1, type = "full"}, + power = "1920kW", + energy_source = {type = "electric", usage_priority = "primary-output"}, + categories = {"armor"} + }, + { + type = "solar-panel-equipment", + name = "solar-panel-equipment-mk8", + sprite = {filename = "__base__/graphics/equipment/solar-panel-equipment.png", width = 32, height = 32, priority = "medium", hr_version = {filename = "__base__/graphics/equipment/hr-solar-panel-equipment.png", width = 64, height = 64, priority = "medium", scale = 0.5}}, + shape = {width = 1, height = 1, type = "full"}, + power = "3840kW", + energy_source = {type = "electric", usage_priority = "primary-output"}, + categories = {"armor"} + }, + { + type = "battery-equipment", + name = "battery-mk3-equipment", + sprite = {filename = "__base__/graphics/equipment/battery-mk2-equipment.png", width = 32, height = 64, priority = "medium", hr_version = {filename = "__base__/graphics/equipment/hr-battery-mk2-equipment.png", width = 64, height = 128, priority = "medium", scale = 0.5}}, + shape = {width = 1, height = 2, type = "full"}, + energy_source = {type = "electric", usage_priority = "tertiary", buffer_capacity="200MJ"}, + categories = {"armor"} + }, + { + type = "battery-equipment", + name = "battery-mk4-equipment", + sprite = {filename = "__base__/graphics/equipment/battery-mk2-equipment.png", width = 32, height = 64, priority = "medium", hr_version = {filename = "__base__/graphics/equipment/hr-battery-mk2-equipment.png", width = 64, height = 128, priority = "medium", scale = 0.5}}, + shape = {width = 1, height = 2, type = "full"}, + energy_source = {type = "electric", usage_priority = "tertiary", buffer_capacity="400MJ"}, + categories = {"armor"} + }, + { + type = "battery-equipment", + name = "battery-mk5-equipment", + sprite = {filename = "__base__/graphics/equipment/battery-mk2-equipment.png", width = 32, height = 64, priority = "medium", hr_version = {filename = "__base__/graphics/equipment/hr-battery-mk2-equipment.png", width = 64, height = 128, priority = "medium", scale = 0.5}}, + shape = {width = 1, height = 2, type = "full"}, + energy_source = {type = "electric", usage_priority = "tertiary", buffer_capacity="800MJ"}, + categories = {"armor"} + }, + { + type = "battery-equipment", + name = "battery-mk6-equipment", + sprite = {filename = "__base__/graphics/equipment/battery-mk2-equipment.png", width = 32, height = 64, priority = "medium", hr_version = {filename = "__base__/graphics/equipment/hr-battery-mk2-equipment.png", width = 64, height = 128, priority = "medium", scale = 0.5}}, + shape = {width = 1, height = 2, type = "full"}, + energy_source = {type = "electric", usage_priority = "tertiary", buffer_capacity="1600MJ"}, + categories = {"armor"} + }, + { + type = "battery-equipment", + name = "battery-mk7-equipment", + sprite = {filename = "__base__/graphics/equipment/battery-mk2-equipment.png", width = 32, height = 64, priority = "medium", hr_version = {filename = "__base__/graphics/equipment/hr-battery-mk2-equipment.png", width = 64, height = 128, priority = "medium", scale = 0.5}}, + shape = {width = 1, height = 2, type = "full"}, + energy_source = {type = "electric", usage_priority = "tertiary", buffer_capacity="3200MJ"}, + categories = {"armor"} + }, + { + type = "battery-equipment", + name = "battery-mk8-equipment", + sprite = {filename = "__base__/graphics/equipment/battery-mk2-equipment.png", width = 32, height = 64, priority = "medium", hr_version = {filename = "__base__/graphics/equipment/hr-battery-mk2-equipment.png", width = 64, height = 128, priority = "medium", scale = 0.5}}, + shape = {width = 1, height = 2, type = "full"}, + energy_source = {type = "electric", usage_priority = "tertiary", buffer_capacity="6400MJ"}, + categories = {"armor"} + }, + { + type = "generator-equipment", + name = "fusion-reactor-equipment-mk2", + sprite = {filename = "__base__/graphics/equipment/fusion-reactor-equipment.png", width = 128, height = 128, priority = "medium", hr_version = {filename = "__base__/graphics/equipment/hr-fusion-reactor-equipment.png", width = 256, height = 256, priority = "medium", scale = 0.5}}, + shape = {width = 4, height = 4, type = "full"}, + energy_source = {type = "electric", usage_priority = "primary-output"}, + power = "1500kW", + categories = {"armor"} + }, + { + type = "generator-equipment", + name = "fusion-reactor-equipment-mk3", + sprite = {filename = "__base__/graphics/equipment/fusion-reactor-equipment.png", width = 128, height = 128, priority = "medium", hr_version = {filename = "__base__/graphics/equipment/hr-fusion-reactor-equipment.png", width = 256, height = 256, priority = "medium", scale = 0.5}}, + shape = {width = 4, height = 4, type = "full"}, + energy_source = {type = "electric", usage_priority = "primary-output"}, + power = "3000kW", + categories = {"armor"} + }, + { + type = "generator-equipment", + name = "fusion-reactor-equipment-mk4", + sprite = {filename = "__base__/graphics/equipment/fusion-reactor-equipment.png", width = 128, height = 128, priority = "medium", hr_version = {filename = "__base__/graphics/equipment/hr-fusion-reactor-equipment.png", width = 256, height = 256, priority = "medium", scale = 0.5}}, + shape = {width = 4, height = 4, type = "full"}, + energy_source = {type = "electric", usage_priority = "primary-output"}, + power = "6000kW", + categories = {"armor"} + }, + { + type = "generator-equipment", + name = "fusion-reactor-equipment-mk5", + sprite = {filename = "__base__/graphics/equipment/fusion-reactor-equipment.png", width = 128, height = 128, priority = "medium", hr_version = {filename = "__base__/graphics/equipment/hr-fusion-reactor-equipment.png", width = 256, height = 256, priority = "medium", scale = 0.5}}, + shape = {width = 4, height = 4, type = "full"}, + energy_source = {type = "electric", usage_priority = "primary-output"}, + power = "12000kW", + categories = {"armor"} + }, + { + type = "generator-equipment", + name = "fusion-reactor-equipment-mk6", + sprite = {filename = "__base__/graphics/equipment/fusion-reactor-equipment.png", width = 128, height = 128, priority = "medium", hr_version = {filename = "__base__/graphics/equipment/hr-fusion-reactor-equipment.png", width = 256, height = 256, priority = "medium", scale = 0.5}}, + shape = {width = 4, height = 4, type = "full"}, + energy_source = {type = "electric", usage_priority = "primary-output"}, + power = "24000kW", + categories = {"armor"} + }, + { + type = "generator-equipment", + name = "fusion-reactor-equipment-mk7", + sprite = {filename = "__base__/graphics/equipment/fusion-reactor-equipment.png", width = 128, height = 128, priority = "medium", hr_version = {filename = "__base__/graphics/equipment/hr-fusion-reactor-equipment.png", width = 256, height = 256, priority = "medium", scale = 0.5}}, + shape = {width = 4, height = 4, type = "full"}, + energy_source = {type = "electric", usage_priority = "primary-output"}, + power = "48000kW", + categories = {"armor"} + }, + { + type = "generator-equipment", + name = "fusion-reactor-equipment-mk8", + sprite = {filename = "__base__/graphics/equipment/fusion-reactor-equipment.png", width = 128, height = 128, priority = "medium", hr_version = {filename = "__base__/graphics/equipment/hr-fusion-reactor-equipment.png", width = 256, height = 256, priority = "medium", scale = 0.5}}, + shape = {width = 4, height = 4, type = "full"}, + energy_source = {type = "electric", usage_priority = "primary-output"}, + power = "96000kW", + categories = {"armor"} + }, + { + type = "night-vision-equipment", + name = "night-vision-equipment-mk2", + sprite = {filename = "__base__/graphics/equipment/night-vision-equipment.png", width = 64, height = 64, priority = "medium", hr_version = {filename = "__base__/graphics/equipment/hr-night-vision-equipment.png", width = 128, height = 128, priority = "medium", scale = 0.5}}, + shape = {width = 2, height = 2, type = "full"}, + energy_source = {type = "electric", buffer_capacity = "120kJ", input_flow_limit = "240kW", usage_priority = "primary-input"}, + energy_input = "10kW", + activate_sound = {filename = "__base__/sound/nightvision-on.ogg", volume = 0.5}, + deactivate_sound = {filename = "__base__/sound/nightvision-off.ogg", volume = 0.5}, + darkness_to_turn_on = 0, + color_lookup = {{0, "__core__/graphics/color_luts/lut-sunset.png"}}, + categories = {"armor"} + }, + { + type = "energy-shield-equipment", + name = "energy-shield-mk3-equipment", + sprite = {filename = "__base__/graphics/equipment/energy-shield-mk2-equipment.png", width = 64, height = 64, priority = "medium", hr_version = {filename = "__base__/graphics/equipment/hr-energy-shield-mk2-equipment.png", width = 128, height = 128, priority = "medium", scale = 0.5}}, + shape = {width = 2, height = 2, type = "full"}, + max_shield_value = 300, + energy_source = {type = "electric", buffer_capacity = "480kJ", input_flow_limit = "960kW", usage_priority = "primary-input"}, + energy_per_shield = "40kJ", + categories = {"armor"} + }, + { + type = "movement-bonus-equipment", + name = "exoskeleton-equipment-mk2", + sprite = {filename = "__base__/graphics/equipment/exoskeleton-equipment.png", width = 64, height = 128, priority = "medium", hr_version = { filename = "__base__/graphics/equipment/hr-exoskeleton-equipment.png", width = 128, height = 256, priority = "medium", scale = 0.5}}, + shape = {width = 2, height = 4, type = "full"}, + energy_source = {type = "electric", usage_priority = "secondary-input"}, + energy_consumption = "400kW", + movement_bonus = 0.45, + categories = {"armor"} + }, + { + type = "roboport-equipment", + name = "personal-roboport-mk3-equipment", + take_result = "personal-roboport-mk3-equipment", + sprite = {filename = "__base__/graphics/equipment/personal-roboport-mk2-equipment.png", width = 64, height = 64, priority = "medium", hr_version = {filename = "__base__/graphics/equipment/hr-personal-roboport-mk2-equipment.png", width = 128, height = 128, priority = "medium", scale = 0.5}}, + shape = {width = 2, height = 2, type = "full"}, + energy_source = {type = "electric", buffer_capacity = "160MJ", input_flow_limit = "16000KW", usage_priority = "secondary-input"}, + charging_energy = "2000kW", + robot_limit = 50, + construction_radius = 25, + spawn_and_station_height = 0.4, + spawn_and_station_shadow_height_offset = 0.5, + charge_approach_distance = 2.6, + robots_shrink_when_entering_and_exiting = true, + recharging_animation = {filename = "__base__/graphics/entity/roboport/roboport-recharging.png", draw_as_glow = true, priority = "high", width = 37, height = 35, frame_count = 16, scale = 1.5, animation_speed = 0.5}, + recharging_light = {intensity = 0.2, size = 3, color = {r = 0.5, g = 0.5, b = 1.0}}, + stationing_offset = {0, -0.6}, + charging_station_shift = {0, 0.5}, + charging_station_count = 8, + charging_distance = 1.6, + charging_threshold_distance = 5, + categories = {"armor"} + }, + { + type = "active-defense-equipment", + name = "personal-laser-defense-equipment-mk2", + sprite = {filename = "__base__/graphics/equipment/personal-laser-defense-equipment.png", width = 64, height = 64, priority = "medium", hr_version = { filename = "__base__/graphics/equipment/hr-personal-laser-defense-equipment.png", width = 128, height = 128, priority = "medium", scale = 0.5}}, + shape = {width = 2, height = 2, type = "full"}, + energy_source = {type = "electric", usage_priority = "secondary-input", buffer_capacity = "1000kJ"}, + --source_direction_count = 64, + --source_offset = {0, -3.423489 / 4}, + attack_parameters = {type = "beam", cooldown = 30, range = 24, damage_modifier = 4.5, ammo_type = {category = "laser", energy_consumption = "50kJ", action = {type = "direct", action_delivery = {type = "beam", beam = "laser-beam", max_length = 24, duration = 30, source_offset = {0, -1.31439}}}}}, + automatic = true, + categories = {"armor"} + }, + { + type = "generator-equipment", + name = "burner-generator-equipment", + sprite = {filename = "__base__/graphics/equipment/fusion-reactor-equipment.png", width = 128, height = 128, priority = "medium", hr_version = {filename = "__base__/graphics/equipment/hr-fusion-reactor-equipment.png", width = 256, height = 256, priority = "medium", scale = 0.5}}, + shape = {width = 4, height = 4, type = "full"}, + energy_source = {type = "burner", usage_priority = "secondary-output"}, + burner = {fuel_category = "chemical", effectivity = 2, fuel_inventory_size = 3, burnt_inventory_size = 1, smoke = {{name = "smoke", deviation = {0.25, 0.25}, frequency = 50, position = {0, 0.5}, height = 1, starting_frame = 0, starting_frame_deviation = 60}}}, + power = "800kW", + categories = {"armor"} + }, + { + type = "generator-equipment", + name = "burner-generator-equipment-mk2", + sprite = {filename = "__base__/graphics/equipment/fusion-reactor-equipment.png", width = 128, height = 128, priority = "medium", hr_version = {filename = "__base__/graphics/equipment/hr-fusion-reactor-equipment.png", width = 256, height = 256, priority = "medium", scale = 0.5}}, + shape = {width = 4, height = 4, type = "full"}, + energy_source = {type = "burner", usage_priority = "secondary-output"}, + burner = {fuel_category = "chemical", effectivity = 2, fuel_inventory_size = 3, burnt_inventory_size = 1, smoke = {{name = "smoke", deviation = {0.25, 0.25}, frequency = 50, position = {0, 0.5}, height = 1, starting_frame = 0, starting_frame_deviation = 60}}}, + power = "1600kW", + categories = {"armor"} + }, + { + type = "generator-equipment", + name = "burner-generator-equipment-mk3", + sprite = {filename = "__base__/graphics/equipment/fusion-reactor-equipment.png", width = 128, height = 128, priority = "medium", hr_version = {filename = "__base__/graphics/equipment/hr-fusion-reactor-equipment.png", width = 256, height = 256, priority = "medium", scale = 0.5}}, + shape = {width = 4, height = 4, type = "full"}, + energy_source = {type = "burner", usage_priority = "secondary-output"}, + burner = {fuel_category = "chemical", effectivity = 2, fuel_inventory_size = 5, burnt_inventory_size = 2, smoke = {{name = "smoke", deviation = {0.25, 0.25}, frequency = 50, position = {0, 0.5}, height = 1, starting_frame = 0, starting_frame_deviation = 60}}}, + power = "3200kW", + categories = {"armor"} + }, + { + type = "generator-equipment", + name = "nuclear-generator-equipment", + sprite = {filename = "__base__/graphics/equipment/fusion-reactor-equipment.png", width = 128, height = 128, priority = "medium", hr_version = {filename = "__base__/graphics/equipment/hr-fusion-reactor-equipment.png", width = 256, height = 256, priority = "medium", scale = 0.5}}, + shape = {width = 4, height = 4, type = "full"}, + energy_source = {type = "burner", usage_priority = "secondary-output"}, + burner = {fuel_category = "nuclear", effectivity = 2, fuel_inventory_size = 3, burnt_inventory_size = 3, smoke = {{name = "smoke", deviation = {0.25, 0.25}, frequency = 50, position = {0, 0.5}, height = 1, starting_frame = 0, starting_frame_deviation = 60}}}, + power = "6400kW", + categories = {"armor"} + }, + { + type = "generator-equipment", + name = "nuclear-generator-equipment-mk2", + sprite = {filename = "__base__/graphics/equipment/fusion-reactor-equipment.png", width = 128, height = 128, priority = "medium", hr_version = {filename = "__base__/graphics/equipment/hr-fusion-reactor-equipment.png", width = 256, height = 256, priority = "medium", scale = 0.5}}, + shape = {width = 4, height = 4, type = "full"}, + energy_source = {type = "burner", usage_priority = "secondary-output"}, + burner = {fuel_category = "nuclear", effectivity = 2, fuel_inventory_size = 5, burnt_inventory_size = 5, smoke = {{name = "smoke", deviation = {0.25, 0.25}, frequency = 50, position = {0, 0.5}, height = 1, starting_frame = 0, starting_frame_deviation = 60}}}, + power = "12800kW", + categories = {"armor"} + } +} +)