-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdata.lua
47 lines (40 loc) · 1.56 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
require('prototypes.structures.entity')
require('prototypes.structures.item')
require('prototypes.structures.recipe')
require('prototypes.technologies')
require('prototypes.item-groups')
require('prototypes.items.alien-mats')
--[[local wallTiers = {}
local gateTiers = {}
local items = {}
for i = 2,7 do -- could probably go real crazy and make it `for HybridHP.length` or something dynamic.
local wall = table.deepcopy(data.raw.wall['hybridWall'])
wall.name='hybridWall-tier-'..i
wall.max_health = HybridHP[i]
-- wall.minable.result = wall.name -- Nope, want all wall types to drop the base item. It'll place the correct one on build.
wall.order = "z[hybridWall]"..i
table.insert(wallTiers, wall)
local item = table.deepcopy(data.raw.item['hybridized-wall'])
item.name = wall.name
item.order = "z[hybridWall]"..i
item.place_result = wall.name
item.hidden = true
table.insert(items, item)
end
for i = 2,7 do
local gate = table.deepcopy(data.raw.gate['hybridGate'])
gate.name='hybridGate-tier-'..i
gate.max_health = HybridHP[i]
-- gate.minable.result = gate.name
gate.order = "z[hybridGate]"..i
table.insert(gateTiers, gate)
local item = table.deepcopy(data.raw.item['hybridized-gate'])
item.name = gate.name
item.order = "z[hybridGate]"..i
item.place_result = gate.name
item.hidden = true
table.insert(items, item)
end
for _,wall in pairs(wallTiers) do data:extend({wall}) end
for _,gate in pairs(gateTiers) do data:extend({gate}) end
for _,item in pairs(items) do data:extend({item}) end]]--