forked from FishyB/FactorioPlus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnuke-wave-functions.lua
More file actions
37 lines (35 loc) · 818 Bytes
/
nuke-wave-functions.lua
File metadata and controls
37 lines (35 loc) · 818 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
local nwf = {}
nwf.func_atomic_bomb_wave = function(n, scale, dam)
return {
type = "projectile",
name = n,
flags = {"not-on-map"},
acceleration = 0,
speed_modifier = { 1.0 * scale, 0.707 * scale },
action =
{
{
type = "area",
radius = 3 * scale,
ignore_collision_condition = true,
action_delivery =
{
type = "instant",
target_effects =
{
type = "damage",
vaporize = false,
lower_distance_threshold = 0,
upper_distance_threshold = 35,
lower_damage_modifier = 1,
upper_damage_modifier = 0.1,
damage = {amount = dam, type = "explosion"}
}
}
}
},
animation = nil,
shadow = nil
}
end
return nwf