From a58c8476f18f64bbaef24d69ffd8a3b0e51a8e44 Mon Sep 17 00:00:00 2001 From: notnotmelon Date: Fri, 12 Jan 2024 15:15:44 -0600 Subject: [PATCH] proper file formating for dingrido and crawdad --- prototypes/creatures/crawdad.lua | 516 ++++++++++++------------- prototypes/creatures/dingrido.lua | 620 ++++++++++++++---------------- 2 files changed, 544 insertions(+), 592 deletions(-) diff --git a/prototypes/creatures/crawdad.lua b/prototypes/creatures/crawdad.lua index 579f7e820..a8b12862e 100644 --- a/prototypes/creatures/crawdad.lua +++ b/prototypes/creatures/crawdad.lua @@ -1,280 +1,256 @@ local util = require('util') -RECIPE{ - type = "recipe", - name = "crawdad", +RECIPE { + type = 'recipe', + name = 'crawdad', energy_required = 120, category = 'creature-chamber', enabled = false, - ingredients = - { - {type = 'item', name = 'alien-sample01', amount = 10}, - {type = 'item', name = 'cdna', amount = 10}, - {type = 'item', name = 'moss-gen', amount = 30}, - {type = 'item', name = 'bio-sample', amount = 100}, - {type = 'item', name = 'earth-generic-sample', amount = 20}, - {type = 'fluid', name = 'blood', amount = 300}, - {type = 'fluid', name = 'water-saline', amount = 500}, + ingredients = { + {type = 'item', name = 'alien-sample01', amount = 10}, + {type = 'item', name = 'cdna', amount = 10}, + {type = 'item', name = 'moss-gen', amount = 30}, + {type = 'item', name = 'bio-sample', amount = 100}, + {type = 'item', name = 'earth-generic-sample', amount = 20}, + {type = 'fluid', name = 'blood', amount = 300}, + {type = 'fluid', name = 'water-saline', amount = 500} }, - result = "crawdad" - }:add_unlock("domestication-mk02") + result = 'crawdad' +}:add_unlock('domestication-mk02') -ITEM{ - type = "item-with-entity-data", - name = "crawdad", - icon = "__pyalienlifegraphics__/graphics/icons/crawdad.png", +ITEM { + type = 'item-with-entity-data', + name = 'crawdad', + icon = '__pyalienlifegraphics__/graphics/icons/crawdad.png', icon_size = 64, - subgroup = "py-alienlife-special-creatures", - order = "x", - place_result = "crawdad", + subgroup = 'py-alienlife-special-creatures', + order = 'x', + place_result = 'crawdad', stack_size = 10 - } +} -data:extend( - { - { - type = "car", - name = "crawdad", - icon = "__pyalienlifegraphics__/graphics/icons/crawdad.png", - icon_size = 64, - flags = {"placeable-neutral", "player-creation", "placeable-off-grid", "not-flammable"}, - minable = {mining_time = 0.5, result = "crawdad"}, - mined_sound = {filename = "__core__/sound/deconstruct-medium.ogg"}, - max_health = 10000, - corpse = "medium-biter-corpse", - dying_explosion = "blood-explosion-huge", - alert_icon_shift = util.by_pixel(-4, -13), - immune_to_tree_impacts = true, - has_belt_immunity = true, - immune_to_rock_impacts = true, - energy_per_hit_point = 0.5, - resistances = - { - { - type = "fire", - decrease = 15, - percent = 60 - }, - { - type = "physical", - decrease = 15, - percent = 60 - }, - { - type = "impact", - decrease = 20, - percent = 100 - }, - { - type = "explosion", - decrease = 20, - percent = 100 - }, - { - type = "acid", - decrease = 0, - percent = 70 - } - }, - collision_box = {{-0.9, -1.3}, {0.9, 1.3}}, - selection_box = {{-0.9, -1.3}, {0.9, 1.3}}, - drawing_box = {{-1.8, -1.8}, {1.8, 1.8}}, - effectivity = 1, - braking_power = "200kW", - burner = - { - fuel_category = "food", - effectivity = 1, - fuel_inventory_size = 1, - }, - consumption = "150kW", - --terrain_friction_modifier = 0.01, - friction = 2e-3, - light = - { - { - type = "oriented", - minimum_darkness = 0.3, - picture = - { - filename = "__core__/graphics/light-cone.png", - priority = "extra-high", - flags = { "light" }, - scale = 2, - width = 200, - height = 200 - }, - shift = {-0.1, -7}, - size = 1, - intensity = 0.7, - color = {r = 0.9, g = 1.0, b = 1.0} - }, - { - type = "oriented", - minimum_darkness = 0.3, - picture = - { - filename = "__core__/graphics/light-cone.png", - priority = "extra-high", - flags = { "light" }, - scale = 2, - width = 200, - height = 200 - }, - shift = {0.1, -7}, - size = 1, - intensity = 0.7, - color = {r = 0.9, g = 1.0, b = 1.0} - } - }, - animation = - { - layers = - { - { - priority = "low", - width = 128, - height = 128, - frame_count = 20, - slice = 16, - lines_per_file = 16, - direction_count = 64, - shift = util.by_pixel(-0.0, -0.0), - animation_speed = 1.8, - max_advance = 1, - filenames = - { - "__pyalienlifegraphics3__/graphics/entity/crawdad/crawdad-01.png", - "__pyalienlifegraphics3__/graphics/entity/crawdad/crawdad-02.png", - "__pyalienlifegraphics3__/graphics/entity/crawdad/crawdad-03.png", - "__pyalienlifegraphics3__/graphics/entity/crawdad/crawdad-04.png", - "__pyalienlifegraphics3__/graphics/entity/crawdad/crawdad-05.png", - }, - hr_version = - { - priority = "low", - width = 256, - height = 256, - slice = 16, - lines_per_file = 16, - frame_count = 20, - direction_count = 64, - shift = util.by_pixel(-0.0, -0.0), - animation_speed = 1.8, - max_advance = 1, - filenames = - { - "__pyalienlifegraphics3__/graphics/entity/crawdad/hr-crawdad-01.png", - "__pyalienlifegraphics3__/graphics/entity/crawdad/hr-crawdad-02.png", - "__pyalienlifegraphics3__/graphics/entity/crawdad/hr-crawdad-03.png", - "__pyalienlifegraphics3__/graphics/entity/crawdad/hr-crawdad-04.png", - "__pyalienlifegraphics3__/graphics/entity/crawdad/hr-crawdad-05.png", - }, - scale = 0.75 - } - }, - { - priority = "low", - width = 128, - height = 128, - frame_count = 20, - slice = 16, - lines_per_file = 16, - direction_count = 64, - draw_as_shadow = true, - shift = util.by_pixel(-0.0, -0.0), - animation_speed = 1.8, - max_advance = 1, - filenames = - { - "__pyalienlifegraphics3__/graphics/entity/crawdad/crawdad-sh-01.png", - "__pyalienlifegraphics3__/graphics/entity/crawdad/crawdad-sh-02.png", - "__pyalienlifegraphics3__/graphics/entity/crawdad/crawdad-sh-03.png", - "__pyalienlifegraphics3__/graphics/entity/crawdad/crawdad-sh-04.png", - "__pyalienlifegraphics3__/graphics/entity/crawdad/crawdad-sh-05.png", - }, - hr_version = - { - priority = "low", - width = 256, - height = 256, - slice = 16, - lines_per_file = 16, - frame_count = 20, - draw_as_shadow = true, - direction_count = 64, - shift = util.by_pixel(-0.0, -0.0), - animation_speed = 1.8, - max_advance = 1, - filenames = - { - "__pyalienlifegraphics3__/graphics/entity/crawdad/hr-crawdad-sh-01.png", - "__pyalienlifegraphics3__/graphics/entity/crawdad/hr-crawdad-sh-02.png", - "__pyalienlifegraphics3__/graphics/entity/crawdad/hr-crawdad-sh-03.png", - "__pyalienlifegraphics3__/graphics/entity/crawdad/hr-crawdad-sh-04.png", - "__pyalienlifegraphics3__/graphics/entity/crawdad/hr-crawdad-sh-05.png", - }, - scale = 0.75 - } - }, - } - }, - - turret_animation = - { - layers = - { - { - filename = "__pyalienlifegraphics2__/graphics/entity/mega-farm/filler.png", - priority = "low", - --line_length = 8, - width = 32, - height = 32, - frame_count = 1, - direction_count = 1, - shift = util.by_pixel(-0.0, -0.0), - --animation_speed = 8, - }, - } - }, - turret_rotation_speed = 0.35 / 60, - turret_return_timeout = 300, - sound_no_fuel = - { - { - filename = "__pyalienlifegraphics3__/sounds/crawdad-breath.ogg", - volume = 0.6 - } - }, - sound_minimum_speed = 0.05; - sound_scaling_ratio = 0.8, - vehicle_impact_sound = { filename = "__base__/sound/car-metal-impact.ogg", volume = 0.65 }, - working_sound = - { - sound = - { - filename = "__pyalienlifegraphics3__/sounds/crawdad-breath.ogg", - volume = 0.6 - }, - --activate_sound = - --{ - -- filename = "__base__/sound/fight/tank-engine-start.ogg", - -- volume = 0.6 - --}, - --deactivate_sound = - --{ - -- filename = "__base__/sound/fight/tank-engine-stop.ogg", - -- volume = 0.6 - --}, - match_speed_to_activity = false - }, - open_sound = { filename = "__pyalienlifegraphics3__/sounds/crawdad-in.ogg", volume=0.5 }, - close_sound = { filename = "__pyalienlifegraphics3__/sounds/crawdad-out.ogg", volume = 0.5 }, - rotation_speed = 0.015, - --tank_driving = true, - weight = 1000, - inventory_size = 120, - guns = {} - } - } - ) \ No newline at end of file +data:extend{{ + type = 'car', + name = 'crawdad', + icon = '__pyalienlifegraphics__/graphics/icons/crawdad.png', + icon_size = 64, + flags = {'placeable-neutral', 'player-creation', 'placeable-off-grid', 'not-flammable'}, + minable = {mining_time = 0.5, result = 'crawdad'}, + mined_sound = {filename = '__core__/sound/deconstruct-medium.ogg'}, + max_health = 10000, + corpse = 'medium-biter-corpse', + dying_explosion = 'blood-explosion-huge', + alert_icon_shift = util.by_pixel(-4, -13), + immune_to_tree_impacts = true, + has_belt_immunity = true, + immune_to_rock_impacts = true, + energy_per_hit_point = 0.5, + resistances = { + { + type = 'fire', + decrease = 15, + percent = 60 + }, + { + type = 'physical', + decrease = 15, + percent = 60 + }, + { + type = 'impact', + decrease = 20, + percent = 100 + }, + { + type = 'explosion', + decrease = 20, + percent = 100 + }, + { + type = 'acid', + decrease = 0, + percent = 70 + } + }, + collision_box = {{-0.9, -1.3}, {0.9, 1.3}}, + selection_box = {{-0.9, -1.3}, {0.9, 1.3}}, + drawing_box = {{-1.8, -1.8}, {1.8, 1.8}}, + effectivity = 1, + braking_power = '200kW', + burner = { + fuel_category = 'food', + effectivity = 1, + fuel_inventory_size = 1 + }, + consumption = '150kW', + --terrain_friction_modifier = 0.01, + friction = 2e-3, + light = { + { + type = 'oriented', + minimum_darkness = 0.3, + picture = { + filename = '__core__/graphics/light-cone.png', + priority = 'extra-high', + flags = {'light'}, + scale = 2, + width = 200, + height = 200 + }, + shift = {-0.1, -7}, + size = 1, + intensity = 0.7, + color = {r = 0.9, g = 1.0, b = 1.0} + }, + { + type = 'oriented', + minimum_darkness = 0.3, + picture = { + filename = '__core__/graphics/light-cone.png', + priority = 'extra-high', + flags = {'light'}, + scale = 2, + width = 200, + height = 200 + }, + shift = {0.1, -7}, + size = 1, + intensity = 0.7, + color = {r = 0.9, g = 1.0, b = 1.0} + } + }, + animation = { + layers = { + { + priority = 'low', + width = 128, + height = 128, + frame_count = 20, + slice = 16, + lines_per_file = 16, + direction_count = 64, + shift = util.by_pixel(-0.0, -0.0), + animation_speed = 1.8, + max_advance = 1, + filenames = { + '__pyalienlifegraphics3__/graphics/entity/crawdad/crawdad-01.png', + '__pyalienlifegraphics3__/graphics/entity/crawdad/crawdad-02.png', + '__pyalienlifegraphics3__/graphics/entity/crawdad/crawdad-03.png', + '__pyalienlifegraphics3__/graphics/entity/crawdad/crawdad-04.png', + '__pyalienlifegraphics3__/graphics/entity/crawdad/crawdad-05.png' + }, + hr_version = { + priority = 'low', + width = 256, + height = 256, + slice = 16, + lines_per_file = 16, + frame_count = 20, + direction_count = 64, + shift = util.by_pixel(-0.0, -0.0), + animation_speed = 1.8, + max_advance = 1, + filenames = { + '__pyalienlifegraphics3__/graphics/entity/crawdad/hr-crawdad-01.png', + '__pyalienlifegraphics3__/graphics/entity/crawdad/hr-crawdad-02.png', + '__pyalienlifegraphics3__/graphics/entity/crawdad/hr-crawdad-03.png', + '__pyalienlifegraphics3__/graphics/entity/crawdad/hr-crawdad-04.png', + '__pyalienlifegraphics3__/graphics/entity/crawdad/hr-crawdad-05.png' + }, + scale = 0.75 + } + }, + { + priority = 'low', + width = 128, + height = 128, + frame_count = 20, + slice = 16, + lines_per_file = 16, + direction_count = 64, + draw_as_shadow = true, + shift = util.by_pixel(-0.0, -0.0), + animation_speed = 1.8, + max_advance = 1, + filenames = { + '__pyalienlifegraphics3__/graphics/entity/crawdad/crawdad-sh-01.png', + '__pyalienlifegraphics3__/graphics/entity/crawdad/crawdad-sh-02.png', + '__pyalienlifegraphics3__/graphics/entity/crawdad/crawdad-sh-03.png', + '__pyalienlifegraphics3__/graphics/entity/crawdad/crawdad-sh-04.png', + '__pyalienlifegraphics3__/graphics/entity/crawdad/crawdad-sh-05.png' + }, + hr_version = { + priority = 'low', + width = 256, + height = 256, + slice = 16, + lines_per_file = 16, + frame_count = 20, + draw_as_shadow = true, + direction_count = 64, + shift = util.by_pixel(-0.0, -0.0), + animation_speed = 1.8, + max_advance = 1, + filenames = { + '__pyalienlifegraphics3__/graphics/entity/crawdad/hr-crawdad-sh-01.png', + '__pyalienlifegraphics3__/graphics/entity/crawdad/hr-crawdad-sh-02.png', + '__pyalienlifegraphics3__/graphics/entity/crawdad/hr-crawdad-sh-03.png', + '__pyalienlifegraphics3__/graphics/entity/crawdad/hr-crawdad-sh-04.png', + '__pyalienlifegraphics3__/graphics/entity/crawdad/hr-crawdad-sh-05.png' + }, + scale = 0.75 + } + } + } + }, + turret_animation = { + layers = { + { + filename = '__pyalienlifegraphics2__/graphics/entity/mega-farm/filler.png', + priority = 'low', + --line_length = 8, + width = 32, + height = 32, + frame_count = 1, + direction_count = 1, + shift = util.by_pixel(-0.0, -0.0) + --animation_speed = 8, + } + } + }, + turret_rotation_speed = 0.35 / 60, + turret_return_timeout = 300, + sound_no_fuel = { + { + filename = '__pyalienlifegraphics3__/sounds/crawdad-breath.ogg', + volume = 0.6 + } + }, + sound_minimum_speed = 0.05, + sound_scaling_ratio = 0.8, + vehicle_impact_sound = {filename = '__base__/sound/car-metal-impact.ogg', volume = 0.65}, + working_sound = { + sound = { + filename = '__pyalienlifegraphics3__/sounds/crawdad-breath.ogg', + volume = 0.6 + }, + --activate_sound = + --{ + -- filename = '__base__/sound/fight/tank-engine-start.ogg', + -- volume = 0.6 + --}, + --deactivate_sound = + --{ + -- filename = '__base__/sound/fight/tank-engine-stop.ogg', + -- volume = 0.6 + --}, + match_speed_to_activity = false + }, + open_sound = {filename = '__pyalienlifegraphics3__/sounds/crawdad-in.ogg', volume = 0.5}, + close_sound = {filename = '__pyalienlifegraphics3__/sounds/crawdad-out.ogg', volume = 0.5}, + rotation_speed = 0.015, + --tank_driving = true, + weight = 1000, + inventory_size = 120, + guns = {} +}} \ No newline at end of file diff --git a/prototypes/creatures/dingrido.lua b/prototypes/creatures/dingrido.lua index 68e0e1843..4fb5e131c 100644 --- a/prototypes/creatures/dingrido.lua +++ b/prototypes/creatures/dingrido.lua @@ -1,332 +1,308 @@ local util = require('util') -RECIPE{ - type = "recipe", - name = "dingrido", +RECIPE { + type = 'recipe', + name = 'dingrido', energy_required = 90, category = 'creature-chamber', enabled = false, - ingredients = - { - {type = 'item', name = 'alien-sample-02', amount = 10}, - {type = 'item', name = 'cdna', amount = 30}, - {type = 'item', name = 'cbp', amount = 10}, - {type = 'item', name = 'bio-sample', amount = 100}, - {type = 'item', name = 'dingrits-codex', amount = 5}, - {type = 'item', name = 'earth-wolf-sample', amount = 10}, - {type = 'fluid', name = 'fetal-serum', amount = 100}, - {type = 'fluid', name = 'artificial-blood', amount = 200}, + ingredients = { + {type = 'item', name = 'alien-sample-02', amount = 10}, + {type = 'item', name = 'cdna', amount = 30}, + {type = 'item', name = 'cbp', amount = 10}, + {type = 'item', name = 'bio-sample', amount = 100}, + {type = 'item', name = 'dingrits-codex', amount = 5}, + {type = 'item', name = 'earth-wolf-sample', amount = 10}, + {type = 'fluid', name = 'fetal-serum', amount = 100}, + {type = 'fluid', name = 'artificial-blood', amount = 200} }, - result = "dingrido" - }:add_unlock("domestication-mk04") + result = 'dingrido' +}:add_unlock('domestication-mk04') -ITEM{ - type = "item-with-entity-data", - name = "dingrido", - icon = "__pyalienlifegraphics__/graphics/icons/dingrido.png", +ITEM { + type = 'item-with-entity-data', + name = 'dingrido', + icon = '__pyalienlifegraphics__/graphics/icons/dingrido.png', icon_size = 64, - subgroup = "py-alienlife-special-creatures", - order = "x", - place_result = "dingrido", + subgroup = 'py-alienlife-special-creatures', + order = 'x', + place_result = 'dingrido', stack_size = 10 - } +} -data:extend( - { - { - type = "car", - name = "dingrido", - icon = "__pyalienlifegraphics__/graphics/icons/dingrido.png", - icon_size = 64, - flags = {"placeable-neutral", "player-creation", "placeable-off-grid", "not-flammable"}, - minable = {mining_time = 0.5, result = "dingrido"}, - mined_sound = {filename = "__core__/sound/deconstruct-medium.ogg"}, - max_health = 10000, - corpse = "medium-biter-corpse", - dying_explosion = "blood-explosion-huge", - alert_icon_shift = util.by_pixel(-4, -13), - immune_to_tree_impacts = true, - has_belt_immunity = true, - immune_to_rock_impacts = true, - energy_per_hit_point = 0.5, - resistances = - { - { - type = "fire", - decrease = 15, - percent = 60 - }, - { - type = "physical", - decrease = 15, - percent = 60 - }, - { - type = "impact", - decrease = 20, - percent = 100 - }, - { - type = "explosion", - decrease = 20, - percent = 100 - }, - { - type = "acid", - decrease = 0, - percent = 70 - } - }, - collision_box = {{-0.9, -1.3}, {0.9, 1.3}}, - selection_box = {{-0.9, -1.3}, {0.9, 1.3}}, - drawing_box = {{-1.8, -1.8}, {1.8, 1.8}}, - effectivity = 0.98, - braking_power = "10000kW", - burner = - { - fuel_category = "food", - effectivity = 1, - fuel_inventory_size = 1, - }, - consumption = "250kW", - terrain_friction_modifier = 0.001, - friction = 0.0002, - light = - { - { - type = "oriented", - minimum_darkness = 0.3, - picture = - { - filename = "__core__/graphics/light-cone.png", - priority = "extra-high", - flags = { "light" }, - scale = 2, - width = 200, - height = 200 - }, - shift = {-0.1, -7}, - size = 1, - intensity = 0.7, - color = {r = 0.9, g = 1.0, b = 1.0} - }, - { - type = "oriented", - minimum_darkness = 0.3, - picture = - { - filename = "__core__/graphics/light-cone.png", - priority = "extra-high", - flags = { "light" }, - scale = 2, - width = 200, - height = 200 - }, - shift = {0.1, -7}, - size = 1, - intensity = 0.7, - color = {r = 0.9, g = 1.0, b = 1.0} - } - }, - animation = - { - layers = - { - { - priority = "low", - width = 128, - height = 128, - frame_count = 16, - direction_count = 64, - shift = util.by_pixel(-0.0, -0.0), - animation_speed = 1, - max_advance = 1, - stripes = - { - { - filename = "__pyalienlifegraphics3__/graphics/entity/dingrit/dingrit-01.png", - width_in_frames = 16, - height_in_frames = 16 - }, - { - filename = "__pyalienlifegraphics3__/graphics/entity/dingrit/dingrit-02.png", - width_in_frames = 16, - height_in_frames = 16 - }, - { - filename = "__pyalienlifegraphics3__/graphics/entity/dingrit/dingrit-03.png", - width_in_frames = 16, - height_in_frames = 16 - }, - { - filename = "__pyalienlifegraphics3__/graphics/entity/dingrit/dingrit-04.png", - width_in_frames = 16, - height_in_frames = 16 - }, - }, - hr_version = - { - priority = "low", - width = 256, - height = 256, - frame_count = 16, - direction_count = 64, - shift = util.by_pixel(-0.0, -0.0), - animation_speed = 1, - max_advance = 1, - stripes = - { - { - filename = "__pyalienlifegraphics3__/graphics/entity/dingrit/hr-dingrit-01.png", - width_in_frames = 16, - height_in_frames = 16 - }, - { - filename = "__pyalienlifegraphics3__/graphics/entity/dingrit/hr-dingrit-02.png", - width_in_frames = 16, - height_in_frames = 16 - }, - { - filename = "__pyalienlifegraphics3__/graphics/entity/dingrit/hr-dingrit-03.png", - width_in_frames = 16, - height_in_frames = 16 - }, - { - filename = "__pyalienlifegraphics3__/graphics/entity/dingrit/hr-dingrit-04.png", - width_in_frames = 16, - height_in_frames = 16 - }, - }, - scale = 0.85 - } - }, - { - priority = "low", - width = 128, - height = 128, - frame_count = 16, - draw_as_shadow = true, - direction_count = 64, - shift = util.by_pixel(0.0, 0.0), - max_advance = 1, - animation_speed = 1, - stripes = - { - { - filename = "__pyalienlifegraphics3__/graphics/entity/dingrit/dingrit-sh-01.png", - width_in_frames = 16, - height_in_frames = 16 - }, - { - filename = "__pyalienlifegraphics3__/graphics/entity/dingrit/dingrit-sh-02.png", - width_in_frames = 16, - height_in_frames = 16 - }, - { - filename = "__pyalienlifegraphics3__/graphics/entity/dingrit/dingrit-sh-03.png", - width_in_frames = 16, - height_in_frames = 16 - }, - { - filename = "__pyalienlifegraphics3__/graphics/entity/dingrit/dingrit-sh-04.png", - width_in_frames = 16, - height_in_frames = 16 - }, - }, - hr_version = - { - priority = "low", - width = 256, - height = 256, - frame_count = 16, - draw_as_shadow = true, - direction_count = 64, - shift = util.by_pixel(0.0, 0.0), - max_advance = 1, - animation_speed = 1, - stripes = - { - { - filename = "__pyalienlifegraphics3__/graphics/entity/dingrit/hr-dingrit-sh-01.png", - width_in_frames = 16, - height_in_frames = 16 - }, - { - filename = "__pyalienlifegraphics3__/graphics/entity/dingrit/hr-dingrit-sh-02.png", - width_in_frames = 16, - height_in_frames = 16 - }, - { - filename = "__pyalienlifegraphics3__/graphics/entity/dingrit/hr-dingrit-sh-03.png", - width_in_frames = 16, - height_in_frames = 16 - }, - { - filename = "__pyalienlifegraphics3__/graphics/entity/dingrit/hr-dingrit-sh-04.png", - width_in_frames = 16, - height_in_frames = 16 - }, - }, - scale = 0.85 - } - } - } - }, - - turret_animation = - { - layers = - { - { - filename = "__pyalienlifegraphics2__/graphics/entity/mega-farm/filler.png", - priority = "low", - --line_length = 8, - width = 32, - height = 32, - frame_count = 1, - direction_count = 1, - shift = util.by_pixel(-0.0, -0.0), - --animation_speed = 8, - }, - } - }, - turret_rotation_speed = 0.35 / 60, - turret_return_timeout = 300, - sound_no_fuel = - { - { - filename = "__base__/sound/fight/tank-no-fuel-1.ogg", - volume = 0.6 - } - }, - sound_minimum_speed = 0.15; - vehicle_impact_sound = { filename = "__base__/sound/car-metal-impact.ogg", volume = 0.65 }, - working_sound = - { - sound = - { - filename = "__pyalienlifegraphics__/sounds/dingrit-breath.ogg", - volume = 0.7 - }, - --activate_sound = - --{ - -- filename = "__base__/sound/fight/tank-engine-start.ogg", - -- volume = 0.6 - --}, - --deactivate_sound = - --{ - -- filename = "__base__/sound/fight/tank-engine-stop.ogg", - -- volume = 0.6 - --}, - match_speed_to_activity = false - }, - open_sound = { filename = "__pyalienlifegraphics3__/sounds/dingrito-in.ogg", volume=0.9 }, - close_sound = { filename = "__pyalienlifegraphics3__/sounds/dingrito-out.ogg", volume = 0.9 }, - rotation_speed = 0.0095, - tank_driving = true, - weight = 7000, - inventory_size = 250, - guns = {} - } - } - ) \ No newline at end of file +data:extend{{ + type = 'car', + name = 'dingrido', + icon = '__pyalienlifegraphics__/graphics/icons/dingrido.png', + icon_size = 64, + flags = {'placeable-neutral', 'player-creation', 'placeable-off-grid', 'not-flammable'}, + minable = {mining_time = 0.5, result = 'dingrido'}, + mined_sound = {filename = '__core__/sound/deconstruct-medium.ogg'}, + max_health = 10000, + corpse = 'medium-biter-corpse', + dying_explosion = 'blood-explosion-huge', + alert_icon_shift = util.by_pixel(-4, -13), + immune_to_tree_impacts = true, + has_belt_immunity = true, + immune_to_rock_impacts = true, + energy_per_hit_point = 0.5, + resistances = { + { + type = 'fire', + decrease = 15, + percent = 60 + }, + { + type = 'physical', + decrease = 15, + percent = 60 + }, + { + type = 'impact', + decrease = 20, + percent = 100 + }, + { + type = 'explosion', + decrease = 20, + percent = 100 + }, + { + type = 'acid', + decrease = 0, + percent = 70 + } + }, + collision_box = {{-0.9, -1.3}, {0.9, 1.3}}, + selection_box = {{-0.9, -1.3}, {0.9, 1.3}}, + drawing_box = {{-1.8, -1.8}, {1.8, 1.8}}, + effectivity = 0.98, + braking_power = '10000kW', + burner = { + fuel_category = 'food', + effectivity = 1, + fuel_inventory_size = 1 + }, + consumption = '250kW', + terrain_friction_modifier = 0.001, + friction = 0.0002, + light = { + { + type = 'oriented', + minimum_darkness = 0.3, + picture = { + filename = '__core__/graphics/light-cone.png', + priority = 'extra-high', + flags = {'light'}, + scale = 2, + width = 200, + height = 200 + }, + shift = {-0.1, -7}, + size = 1, + intensity = 0.7, + color = {r = 0.9, g = 1.0, b = 1.0} + }, + { + type = 'oriented', + minimum_darkness = 0.3, + picture = { + filename = '__core__/graphics/light-cone.png', + priority = 'extra-high', + flags = {'light'}, + scale = 2, + width = 200, + height = 200 + }, + shift = {0.1, -7}, + size = 1, + intensity = 0.7, + color = {r = 0.9, g = 1.0, b = 1.0} + } + }, + animation = { + layers = { + { + priority = 'low', + width = 128, + height = 128, + frame_count = 16, + direction_count = 64, + shift = util.by_pixel(-0.0, -0.0), + animation_speed = 1, + max_advance = 1, + stripes = { + { + filename = '__pyalienlifegraphics3__/graphics/entity/dingrit/dingrit-01.png', + width_in_frames = 16, + height_in_frames = 16 + }, + { + filename = '__pyalienlifegraphics3__/graphics/entity/dingrit/dingrit-02.png', + width_in_frames = 16, + height_in_frames = 16 + }, + { + filename = '__pyalienlifegraphics3__/graphics/entity/dingrit/dingrit-03.png', + width_in_frames = 16, + height_in_frames = 16 + }, + { + filename = '__pyalienlifegraphics3__/graphics/entity/dingrit/dingrit-04.png', + width_in_frames = 16, + height_in_frames = 16 + } + }, + hr_version = { + priority = 'low', + width = 256, + height = 256, + frame_count = 16, + direction_count = 64, + shift = util.by_pixel(-0.0, -0.0), + animation_speed = 1, + max_advance = 1, + stripes = { + { + filename = '__pyalienlifegraphics3__/graphics/entity/dingrit/hr-dingrit-01.png', + width_in_frames = 16, + height_in_frames = 16 + }, + { + filename = '__pyalienlifegraphics3__/graphics/entity/dingrit/hr-dingrit-02.png', + width_in_frames = 16, + height_in_frames = 16 + }, + { + filename = '__pyalienlifegraphics3__/graphics/entity/dingrit/hr-dingrit-03.png', + width_in_frames = 16, + height_in_frames = 16 + }, + { + filename = '__pyalienlifegraphics3__/graphics/entity/dingrit/hr-dingrit-04.png', + width_in_frames = 16, + height_in_frames = 16 + } + }, + scale = 0.85 + } + }, + { + priority = 'low', + width = 128, + height = 128, + frame_count = 16, + draw_as_shadow = true, + direction_count = 64, + shift = util.by_pixel(0.0, 0.0), + max_advance = 1, + animation_speed = 1, + stripes = { + { + filename = '__pyalienlifegraphics3__/graphics/entity/dingrit/dingrit-sh-01.png', + width_in_frames = 16, + height_in_frames = 16 + }, + { + filename = '__pyalienlifegraphics3__/graphics/entity/dingrit/dingrit-sh-02.png', + width_in_frames = 16, + height_in_frames = 16 + }, + { + filename = '__pyalienlifegraphics3__/graphics/entity/dingrit/dingrit-sh-03.png', + width_in_frames = 16, + height_in_frames = 16 + }, + { + filename = '__pyalienlifegraphics3__/graphics/entity/dingrit/dingrit-sh-04.png', + width_in_frames = 16, + height_in_frames = 16 + } + }, + hr_version = { + priority = 'low', + width = 256, + height = 256, + frame_count = 16, + draw_as_shadow = true, + direction_count = 64, + shift = util.by_pixel(0.0, 0.0), + max_advance = 1, + animation_speed = 1, + stripes = { + { + filename = '__pyalienlifegraphics3__/graphics/entity/dingrit/hr-dingrit-sh-01.png', + width_in_frames = 16, + height_in_frames = 16 + }, + { + filename = '__pyalienlifegraphics3__/graphics/entity/dingrit/hr-dingrit-sh-02.png', + width_in_frames = 16, + height_in_frames = 16 + }, + { + filename = '__pyalienlifegraphics3__/graphics/entity/dingrit/hr-dingrit-sh-03.png', + width_in_frames = 16, + height_in_frames = 16 + }, + { + filename = '__pyalienlifegraphics3__/graphics/entity/dingrit/hr-dingrit-sh-04.png', + width_in_frames = 16, + height_in_frames = 16 + } + }, + scale = 0.85 + } + } + } + }, + turret_animation = { + layers = { + { + filename = '__pyalienlifegraphics2__/graphics/entity/mega-farm/filler.png', + priority = 'low', + --line_length = 8, + width = 32, + height = 32, + frame_count = 1, + direction_count = 1, + shift = util.by_pixel(-0.0, -0.0) + --animation_speed = 8, + } + } + }, + turret_rotation_speed = 0.35 / 60, + turret_return_timeout = 300, + sound_no_fuel = { + { + filename = '__base__/sound/fight/tank-no-fuel-1.ogg', + volume = 0.6 + } + }, + sound_minimum_speed = 0.15, + vehicle_impact_sound = {filename = '__base__/sound/car-metal-impact.ogg', volume = 0.65}, + working_sound = { + sound = { + filename = '__pyalienlifegraphics__/sounds/dingrit-breath.ogg', + volume = 0.7 + }, + --activate_sound = + --{ + -- filename = '__base__/sound/fight/tank-engine-start.ogg', + -- volume = 0.6 + --}, + --deactivate_sound = + --{ + -- filename = '__base__/sound/fight/tank-engine-stop.ogg', + -- volume = 0.6 + --}, + match_speed_to_activity = false + }, + open_sound = {filename = '__pyalienlifegraphics3__/sounds/dingrito-in.ogg', volume = 0.9}, + close_sound = {filename = '__pyalienlifegraphics3__/sounds/dingrito-out.ogg', volume = 0.9}, + rotation_speed = 0.0095, + tank_driving = true, + weight = 7000, + inventory_size = 250, + guns = {} +}} \ No newline at end of file