-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdata.lua
50 lines (36 loc) · 1.22 KB
/
data.lua
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
38
39
40
41
42
43
44
45
46
47
48
49
50
local S = "__towerdefense__"
require("data/rocket-turret")
local ProtUtils = require("Utils.Prototype")
local Table = require("Utils.Table")
data:extend{
{
type = "item",
name = "alien-artifact",
icon = S .. "/graphics/icons/alien-artifact.png",
icon_size = 32,
flags = {"goes-to-main-inventory"},
subgroup = "raw-material",
order = "g[alien-artifact]",
stack_size = 1000
},
}
-- Short range artillery turret
-- Would like to be replaced by force.artillery_range_modifier
local entity, item, recipe = ProtUtils.new_entity("artillery-turret-medium-range", "artillery-turret", "artillery-turret")
local gun = Table.copy(ProtUtils.gun("artillery-wagon-cannon"))
entity.manual_range_modifier = 1
entity.gun = "artillery-wagon-cannon-medium-range"
gun.name = "artillery-wagon-cannon-medium-range"
gun.attack_parameters.range = 5 * 32
data:extend{entity, item, recipe, gun}
-- Sound
-- Doesnt work for whatever reason
-- local function add_utility_sound(name, filename)
-- data.raw["utility-sounds"]["default"][name] =
-- {
-- {
-- filename = filename
-- }
-- }
-- end
-- add_utility_sound("message", "__core__/sound/message.ogg")