]> git.somenet.org - factorio/Waterbomb.git/blob - prototypes/projectiles.lua
Basically a full rewrite/heavy cleanup.
[factorio/Waterbomb.git] / prototypes / projectiles.lua
1 data:extend({
2     {
3         type = "projectile",
4         name = "waterbomb-detonation",
5         flags = {"not-on-map"},
6         acceleration = 0,
7         action =
8         {
9             type = "direct",
10             action_delivery =
11             {
12                 type = "instant",
13                 target_effects =
14                 {
15                     {
16                         type = "nested-result",
17                         action =
18                         {
19                             radius = 1,
20                             type = "area",
21                             perimeter = 5,
22                             action_delivery =
23                             {
24                                 type = "instant",
25                                 target_effects =
26                                 {
27                                     {
28                                         type = "damage",
29                                         damage = {amount = 561, type = "explosion"}
30                                     }
31                                 }
32                             }
33                         }
34                     },
35                     {
36                         type = "nested-result",
37                         action =
38                         {
39                             radius = 1,
40                             type = "area",
41                             perimeter = 10,
42                             action_delivery =
43                             {
44                                 type = "instant",
45                                 target_effects =
46                                 {
47                                     {
48                                         type = "damage",
49                                         damage = {amount = 39, type = "explosion"}
50                                     }
51                                 }
52                             }
53                         }
54                     }
55                 }
56             }
57         },
58         animation =
59         {
60             filename = "__Waterbomb__/graphics/null.png",
61             frame_count = 1,
62             width = 1,
63             height = 1,
64             priority = "high"
65         },
66         light = {intensity = 1, size = 4},
67         smoke = capsule_smoke,
68     }
69 })