]> git.somenet.org - factorio/some-spaceship-wreck-generator.git/blob - data.lua
8e45bf9a2aba6b78efd1a37d92fdf3663900fcac
[factorio/some-spaceship-wreck-generator.git] / data.lua
1 local oldship = data.raw["container"]["crash-site-spaceship"]
2 data.raw["container"]["crash-site-spaceship"] = Nil
3
4 data:extend(
5 {
6   {
7     type = "electric-energy-interface",
8     name = "crash-site-spaceship",
9     icon = "__base__/graphics/icons/crash-site-spaceship.png",
10     icon_size = 64, icon_mipmaps = 4,
11     flags = {
12       "placeable-player",
13       "player-creation",
14       "hidden",
15       "not-rotatable",
16       "placeable-off-grid",
17       "not-blueprintable",
18       "not-deconstructable"
19     },
20     map_color = {r = 0, g = 0.365, b = 0.58, a = 1},
21     max_health = 600,
22     alert_when_damaged = true,
23     allow_copy_paste = false,
24     resistances =
25     {
26       {type = "fire", percent = 100}
27     },
28     gui_mode = "none",
29     energy_source =
30     {
31       type = "electric",
32       buffer_capacity = "1MJ",
33       usage_priority = "primary-output"
34     },
35     energy_production = "150kW",
36     energy_usage = "0kW",
37     enable_inventory_bar = false,
38     minable =
39     {
40       mining_time = 2.3
41     },
42     collision_box = {{-8.7, -3.3}, {6.9, 4.5}},
43     selection_box = {{-8.7, -3.3}, {6.9, 4.5}},
44     dying_explosion = "nuke-explosion",
45     integration_patch_render_layer = "decals",
46     integration_patch = oldship.integration_patch,
47     picture = oldship.picture,
48     vehicle_impact_sound = oldship.vehicle_impact_sound
49   }
50 })