]> git.somenet.org - factorio/some-spaceship-wreck-generator.git/blob - data.lua
RELEASE 2.0.0 - Initial compatibility with Factorio 2.0
[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     alert_when_damaged = true,
10     hidden = true,
11     gui_mode = "none",
12     energy_source =
13     {
14       type = "electric",
15       buffer_capacity = "1MJ",
16       usage_priority = "primary-output"
17     },
18     energy_production = "150kW",
19     energy_usage = "0kW",
20     enable_inventory_bar = false,
21     -- /custom
22
23     icon = "__base__/graphics/icons/crash-site-spaceship.png",
24     flags = wreck_flags,
25     hidden = true,
26     map_color = {r = 0, g = 0.365, b = 0.58, a = 1},
27     max_health = 600,
28     -- alert_when_damaged = false,
29     allow_copy_paste = false,
30     default_status = "broken",
31     resistances =
32     {
33       {type = "fire", percent = 100}
34     },
35     inventory_size = 5,
36     inventory_type = "normal",
37     minable =
38     {
39       mining_time = 2.3
40     },
41     collision_box = {{-8.7, -3.3}, {6.9, 4.5}},
42     selection_box = {{-8.7, -3.3}, {6.9, 4.5}},
43     dying_explosion = "nuke-explosion",
44     integration_patch_render_layer = "decals",
45     integration_patch =
46     {
47       filename = "__base__/graphics/entity/crash-site-spaceship/spaceship-ground.png",
48       priority = "very-low",
49       width = 1330,
50       height = 786,
51       shift = util.by_pixel(-50, 61),
52       dice_x = 4,
53       dice_y = 3,
54       scale = 0.5
55     },
56
57     picture =
58     {
59       layers =
60       {
61         {
62           filename = "__base__/graphics/entity/crash-site-spaceship/spaceship.png",
63           priority = "very-low",
64           width = 1228,
65           height = 790,
66           shift = util.by_pixel(-13, 34),
67           dice_x = 4,
68           dice_y = 3,
69           scale = 0.5
70         },
71         {
72           filename = "__base__/graphics/entity/crash-site-spaceship/spaceship-shadow.png",
73           priority = "very-low",
74           width = 1340,
75           height = 842,
76           shift = util.by_pixel(-23, 50),
77           scale = 0.5,
78           dice_x = 5,
79           dice_y = 4,
80           draw_as_shadow = true
81         }
82       }
83     }
84   }
85 })