Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- type = "generator",
- name = "oil-generator",
- icon = "__base__/graphics/icons/steam-engine.png",
- icon_size = 32,
- flags = {"placeable-neutral","player-creation"},
- minable = {mining_time = 1, result = "oil-generator"},
- max_power_output = 0.05 .. "MJ",
- max_health = 600,
- corpse = "big-remnants",
- dying_explosion = "medium-explosion",
- alert_icon_shift = util.by_pixel(0, -12),
- effectivity = 1,
- fluid_usage_per_tick = 0.05,
- burns_fluid = true,
- maximum_temperature = 25,
- maximum_temperature = 25,
- resistances =
- {
- {
- type = "fire",
- percent = 70
- }
- },
- fast_replaceable_group = "steam-engine",
- collision_box = {{-1.35, -2.35}, {1.35, 2.35}},
- selection_box = {{-1.5, -2.5}, {1.5, 2.5}},
- fluid_box =
- {
- base_area = 1,
- height = 2,
- base_level = -1,
- pipe_covers = pipecoverspictures(),
- pipe_connections =
- {
- { type = "input-output", position = {0, 3} },
- { type = "input-output", position = {0, -3} },
- },
- production_type = "input-output",
- filter = "crude-oil"
- },
- energy_source =
- {
- type = "electric",
- usage_priority = "secondary-output"
- },
- horizontal_animation =
- {
- layers =
- {
- {
- filename = "__base__/graphics/entity/steam-engine/steam-engine-H.png",
- width = 160,
- height = 123,
- frame_count = 8,
- line_length = 4,
- shift = util.by_pixel(0, -2.5),
- hr_version = {
- filename = "__base__/graphics/entity/steam-engine/hr-steam-engine-H.png",
- width = 320,
- height = 245,
- frame_count = 8,
- line_length = 4,
- shift = util.by_pixel(0, -2.75),
- scale = 0.5
- },
- },
- {
- filename = "__base__/graphics/entity/steam-engine/steam-engine-H-shadow.png",
- width = 217,
- height = 74,
- repeat_count = 8,
- frame_count = 1,
- line_length = 1,
- draw_as_shadow = true,
- shift = util.by_pixel(28.75, 18),
- hr_version = {
- filename = "__base__/graphics/entity/steam-engine/hr-steam-engine-H-shadow.png",
- width = 435,
- height = 150,
- repeat_count = 8,
- frame_count = 1,
- line_length = 1,
- draw_as_shadow = true,
- shift = util.by_pixel(28.5, 18),
- scale = 0.5
- },
- },
- },
- },
- vertical_animation =
- {
- layers =
- {
- {
- filename = "__base__/graphics/entity/steam-engine/steam-engine-V.png",
- width = 108,
- height = 173,
- frame_count = 8,
- line_length = 4,
- shift = util.by_pixel(5, 6.5),
- hr_version = {
- filename = "__base__/graphics/entity/steam-engine/hr-steam-engine-V.png",
- width = 217,
- height = 347,
- frame_count = 8,
- line_length = 4,
- shift = util.by_pixel(4.75, 6.75),
- scale = 0.5
- },
- },
- {
- filename = "__base__/graphics/entity/steam-engine/steam-engine-V-shadow.png",
- width = 151,
- height = 131,
- repeat_count = 8,
- frame_count = 1,
- line_length = 1,
- draw_as_shadow = true,
- shift = util.by_pixel(39.5, 24.5),
- hr_version = {
- filename = "__base__/graphics/entity/steam-engine/hr-steam-engine-V-shadow.png",
- width = 302,
- height = 260,
- repeat_count = 8,
- frame_count = 1,
- line_length = 1,
- draw_as_shadow = true,
- shift = util.by_pixel(39.5, 24.5),
- scale = 0.5
- },
- },
- },
- },
- smoke =
- {
- {
- name = "turbine-smoke",
- north_position = {0.0, -1.0},
- east_position = {0.75, -0.75},
- frequency = 10 / 32,
- starting_vertical_speed = 0.08,
- slow_down_factor = 1,
- starting_frame_deviation = 60
- }
- },
- vehicle_impact_sound = { filename = "__base__/sound/car-metal-impact.ogg", volume = 0.65 },
- working_sound =
- {
- sound =
- {
- filename = "__base__/sound/steam-engine-90bpm.ogg",
- volume = 0.6
- },
- match_speed_to_activity = true,
- },
- min_perceived_performance = 0.25,
- performance_to_sound_speedup = 0.5
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement