local recipe_category = { type = "recipe-category", name = "infantry-depot" } local on_animation = { layers = { { filename = "__Kombat_Drones__/data/entities/depots/infantry_depot/lab-red.png", width = 194, height = 174, frame_count = 33, line_length = 11, animation_speed = 1, shift = util.by_pixel(0, 1.5), scale = 0.5 }, { filename = "__base__/graphics/entity/lab/hr-lab-integration.png", width = 242, height = 162, frame_count = 1, line_length = 1, repeat_count = 33, animation_speed = 1, shift = util.by_pixel(0, 15.5), scale = 0.5 }, { filename = "__Kombat_Drones__/data/entities/depots/infantry_depot/lab-red-light.png", blend_mode = "additive", draw_as_light = true, width = 216, height = 194, frame_count = 33, line_length = 11, animation_speed = 1, shift = util.by_pixel(0, 0), scale = 0.5 }, { filename = "__base__/graphics/entity/lab/hr-lab-shadow.png", --width = 242, --height = 136, width = 1, height = 1, frame_count = 1, line_length = 1, repeat_count = 33, animation_speed = 1, shift = util.by_pixel(13, 11), scale = 0.5, draw_as_shadow = true } } } local base_layers = { { filename = "__base__/graphics/entity/artillery-turret/hr-artillery-turret-base.png", priority = "high", line_length = 1, width = 207, height = 199, frame_count = 1, direction_count = 1, shift = {0.1, 1}, scale = 0.5 }, { filename = "__base__/graphics/entity/artillery-turret/hr-artillery-turret-base-shadow.png", priority = "high", line_length = 1, width = 277, height = 149, frame_count = 1, direction_count = 1, shift = util.by_pixel(21, 42), draw_as_shadow = true, scale = 0.5 } } util.recursive_hack_scale(base_layers, 1.2) local off_animation = { layers = { base_layers[1], base_layers[2], { filename = "__Kombat_Drones__/data/entities/depots/infantry_depot/lab-red.png", width = 194, height = 174, frame_count = 1, shift = util.by_pixel(0, 1.5), scale = 0.5 }, { filename = "__base__/graphics/entity/lab/hr-lab-integration.png", width = 242, height = 162, frame_count = 1, shift = util.by_pixel(0, 15.5), scale = 0.5 }, { filename = "__base__/graphics/entity/lab/hr-lab-shadow.png", --width = 242, width = 1, --height = 136, height = 1, frame_count = 1, shift = util.by_pixel(13, 11), draw_as_shadow = true, scale = 0.5 } } } util.recursive_hack_scale(on_animation, 1.6) util.recursive_hack_scale(off_animation, 1.6) util.recursive_hack_shift(off_animation, {0, -1.5}) util.recursive_hack_shift(on_animation, {0, -1.5}) local infantry_depot = { type = "assembling-machine", name = "infantry-depot", localised_name = {"infantry-depot"}, icon = "__Kombat_Drones__/data/entities/depots/infantry_depot/infantry-depot-item-icon.png", icon_size = 64, flags = {"placeable-neutral", "placeable-player", "player-creation"}, minable = {mining_time = 3, result = "infantry-depot"}, max_health = 800, --corpse = "medium-remnants", --dying_explosion = "assembling-machine-1-explosion", collision_box = {{-2.75, -2.75}, {2.75, 2.75}}, selection_box = {{-3, -3}, {3, 3}}, --collision_mask = {"object-layer", "water-tile"}, --damaged_trigger_effect = hit_effects.entity(), --fast_replaceable_group = "assembling-machine", --next_upgrade = "assembling-machine-2", --alert_icon_shift = util.by_pixel(-3, -12), animation = off_animation, is_deployer = true, working_visualisations = { { render_layer = "object", always_draw = false, animation = on_animation } }, crafting_categories = {"infantry-depot"}, crafting_speed = 1, energy_source = { type = "void", usage_priority = "secondary-input", }, fluid_boxes = { { volume = 100, production_type = "output", --pipe_covers = pipecoverspictures(), base_area = 10, base_level = -1, pipe_connections = {{ flow_direction="output", direction = defines.direction.north, position = {0, -2.75} }} }, }, scale_entity_info_icon = true, energy_usage = "69W", gui_title_key = "deploy-assembler-title", entity_info_icon_shift = {0, -1} } local corpse = { type = "corpse", name = "infantry-depot-corpse", flags = {"placeable-off-grid"}, animation = util.empty_sprite(), remove_on_entity_placement = false, remove_on_tile_placement = false } local item = { name = "infantry-depot", type = "item", stack_size = 5, icon = infantry_depot.icon, icon_size = infantry_depot.icon_size, subgroup = "defensive-structure", place_result = "infantry-depot" } data:extend { recipe_category, infantry_depot, item, corpse }