]> git.somenet.org - factorio/some-npp.git/blob - prototypes/entities.lua
chage power generation priority to "secondary-output" (same as steam-turbine)
[factorio/some-npp.git] / prototypes / entities.lua
1 data:extend({
2     {
3         type = "burner-generator",
4         name = "some-npp",
5         icon = "__some-npp__/graphics/icons/some-npp.png",
6         icon_size = 64,
7         flags = {"placeable-neutral", "player-creation"},
8         minable = {mining_time = 3, result = "some-npp"},
9         max_health = 100000,
10         corpse = "big-remnants",
11         collision_box = {{-48.7, -48.7}, {48.7, 48.7}},
12         selection_box = {{-49.0, -49.0}, {49.0, 49.0}},
13         drawing_box = {{-49.0, -49.0}, {49.0, 49.0}},
14
15         -- does not work? :(
16         -- TODO: make water-requirement at the location of the water-pumps.
17         -- TODO: make rotatable.
18         -- center_collision_mask = { "water-tile", "object-layer", "player-layer" }, -- to test that tile directly under the pump is ground
19         -- fluid_box_tile_collision_test = { "ground-tile" },
20         -- adjacent_tile_collision_test = { "water-tile" },
21         -- adjacent_tile_collision_mask = { "ground-tile" }, -- to prevent building on edge of map :(
22         -- adjacent_tile_collision_box = { { -51, -10 }, { -50, 10 } },
23
24         burner = {
25             fuel_category = "nuclear",
26             effectivity = 3.5,
27             fuel_inventory_size = 1,
28             burnt_inventory_size = 1
29         },
30         max_power_output = "1120MW",
31         energy_source = {
32             type = "electric",
33             usage_priority = "secondary-output"
34         },
35         picture =
36         {
37             filename = "__some-npp__/graphics/entity/some-npp.png",
38             priority = "high",
39             width = 1900,
40             height = 1900,
41         },
42         animation =
43         {
44             layers =
45             {
46                 {
47                     filename = "__some-npp__/graphics/entity/some-npp.png",
48                     width = 1900,
49                     height = 1900,
50                     frame_count = 1,
51                     scale = 1.65,
52                     hr_version = nil
53                 }
54             }
55         },
56     }
57 })