-
Notifications
You must be signed in to change notification settings - Fork 1
/
data.lua
142 lines (127 loc) · 4.37 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
ErmToss = {}
require("__erm_toss__/global")
local ErmConfig = require("__enemyracemanager__/lib/global_config")
require "prototypes/projectiles"
require "prototypes/boss-projectiles"
require "prototypes/noise-functions"
data:extend(
{
{
type = "ammo-category",
name = "erm-protoss-damage"
}
})
-- This set of data is used for set up default autoplace calculation.
data.erm_registered_race = data.erm_registered_race or {}
data.erm_registered_race[MOD_NAME] = true
data.erm_spawn_specs = data.erm_spawn_specs or {}
table.insert(data.erm_spawn_specs, {
mod_name=MOD_NAME,
force_name=FORCE_NAME,
moisture=2, -- 1 = Dry and 2 = Wet
aux=1, -- -- 1 = red desert, 2 = sand
elevation=3, --1,2,3 (1 low elevation, 2. medium, 3 high elavation)
temperature=1, --1,2,3 (1 cold, 2. normal, 3 hot)
})
require "prototypes.enemy.arbiter"
require "prototypes.enemy.zealot"
require "prototypes.enemy.dragoon"
require "prototypes.enemy.carrier"
require "prototypes.enemy.scout"
require "prototypes.enemy.corsair"
require "prototypes.enemy.darktemplar"
require "prototypes.enemy.invis_darktemplar"
require "prototypes.enemy.templar"
require "prototypes.enemy.archon"
require "prototypes.enemy.darkarchon"
require "prototypes.enemy.probe"
require "prototypes.enemy.shuttle"
require "prototypes.enemy.interceptor"
require "prototypes.enemy.reaver"
require "prototypes.enemy.scarab"
require "prototypes.building.building_death"
require "prototypes.building.cannon"
require "prototypes.building.nexus"
require "prototypes.building.boss_warpgate"
require "prototypes.building.pylon"
require "prototypes.building.gateway"
require "prototypes.building.forge"
require "prototypes.building.cybernetics_core"
require "prototypes.building.citadel_adun"
require "prototypes.building.templar_archive"
require "prototypes.building.stargate"
require "prototypes.building.fleet_beacon"
require "prototypes.building.arbiter_tribunal"
require "prototypes.building.robotics_facility"
require "prototypes.building.robotics_support_bay"
require "prototypes.building.shield_battery"
local max_level = ErmConfig.MAX_LEVELS
for i = 1, max_level do
ErmToss.make_arbiter(i)
ErmToss.make_zealot(i)
ErmToss.make_dragoon(i)
ErmToss.make_carrier(i)
ErmToss.make_scout(i)
ErmToss.make_corsair(i)
ErmToss.make_darktemplar(i)
ErmToss.make_templar(i)
ErmToss.make_archon(i)
ErmToss.make_darkarchon(i)
ErmToss.make_probe(i)
ErmToss.make_shuttle(i)
ErmToss.make_interceptor(i)
ErmToss.make_reaver(i)
ErmToss.make_scarab(i)
ErmToss.make_invis_darktemplar(i)
end
--local boss_level = ErmConfig.BOSS_LEVELS
--
--local boss_unit_ai = { destroy_when_commands_fail = true, allow_try_return_to_spawner = false }
--local override_units = {"arbiter","zealot","dragoon","carrier","scout","corsair","darktemplar","templar","archon","probe","shuttle"}
--
--for i = 1, #boss_level do
-- local level = boss_level[i]
-- ErmToss.make_arbiter(level)
-- ErmToss.make_zealot(level)
-- ErmToss.make_dragoon(level)
-- ErmToss.make_carrier(level)
-- ErmToss.make_scout(level)
-- ErmToss.make_corsair(level)
-- ErmToss.make_darktemplar(level)
-- ErmToss.make_templar(level)
-- ErmToss.make_archon(level)
-- ErmToss.make_darkarchon(level)
-- ErmToss.make_probe(level)
-- ErmToss.make_shuttle(level)
-- ErmToss.make_interceptor(level)
-- ErmToss.make_reaver(level)
-- ErmToss.make_scarab(level)
--
-- ErmToss.make_boss_wrapgate(level, ErmConfig.BOSS_BUILDING_HITPOINT[i])
--
-- for _, unit in pairs(override_units) do
-- data.raw["unit"][MOD_NAME.."--"..unit.."--"..level]["ai_settings"] = boss_unit_ai
-- end
--end
for i = 1, max_level do
ErmToss.make_cannon(i)
ErmToss.make_nexus(i)
ErmToss.make_pylon(i)
ErmToss.make_gateway(i)
ErmToss.make_forge(i)
ErmToss.make_cybernetics_core(i)
ErmToss.make_citadel_adun(i)
ErmToss.make_templar_archive(i)
ErmToss.make_stargate(i)
ErmToss.make_fleet_beacon(i)
ErmToss.make_arbiter_tribunal(i)
ErmToss.make_robotics_facility(i)
ErmToss.make_robotics_support_bay(i)
ErmToss.make_shield_battery(i)
end
data.erm_land_scout = data.erm_land_scout or {}
data.erm_land_scout[MOD_NAME] = "zealot"
data.erm_aerial_scout = data.erm_aerial_scout or {}
data.erm_aerial_scout[MOD_NAME] = "scout"
require("prototypes.planets")
require "prototypes.tips_and_tricks.prototypes"