-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCoreDefenses.ars
469 lines (375 loc) · 10.2 KB
/
CoreDefenses.ars
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
// CoreDefenses.ars
//
// Anacreon Core Library
// Copyright (c) 2012 by Kronosaur Productions, LLC. All Rights Reserved.
// Designations ---------------------------------------------------------------
Trait core.citadelDesignation {
category: designation
name: "citadel"
role: citadel
minTechLevel: 5
industry: (
{ type:core.citadelComplex alloc:max }
{ type:core.chronimiumProcessor alloc:demand }
{ type:core.hexacarbideFoundry alloc:demand }
{ type:core.trillumExtractor alloc:demand }
{ type:core.imperialAdministration alloc:demand }
{ type:core.consumerGoodsAutofac alloc:demand }
)
description: "Citadels build long-range attack missiles capable of targeting enemy fleets up to 100 light-years away. They also produce infantry."
imageMedium: { type:constant
resource: core.designationIcons
pos: (256 384)
size: (128 128)
}
imageSmall: { type:constant
resource: core.designationIconsSmall
pos: (96 144)
size: (48 48)
}
}
// Units ----------------------------------------------------------------------
ResourceType core.autocannonSatellite
{
category: orbitalUnit
name: "autocannon satellite"
shortName: "autocannon(s)"
mass: 2.0
halfLife: 5.0
attack: { name:"x-ray laser cannon" count:1 damage:24 type:direct range:15.0 area:0.0 }
defense: { armor:32 }
production: {
workUnits: 70.0
inputs: (
{ type:core.trillum amount:2.0 }
{ type:core.hexacarbide amount:1.0 }
)
minTechLevel: 5
}
imageLarge: { type:constant
resource: core.defenseIcons
pos: (512 0)
size: (256 256)
}
imageSmall: { type:constant
resource: core.defenseIconsSmall
pos: (128 0)
size: (64 64)
}
}
ResourceType core.armoredSatellite
{
category: orbitalUnit
name: "armored satellite"
shortName: "armored sat(s)"
mass: 25.0
halfLife: 5.0
attack: { name:"H5 interceptor" count:1 damage:56 type:missile strength:2 range:20.0 area:0.3 }
defense: { armor:256 }
production: {
workUnits: 265.0
inputs: (
{ type:core.trillum amount:4.0 }
{ type:core.hexacarbide amount:12.0 }
{ type:core.chronimium amount:0.5 }
)
minTechLevel: 7
}
imageLarge: { type:constant
resource: core.defenseIcons
pos: (512 256)
size: (256 256)
}
imageSmall: { type:constant
resource: core.defenseIconsSmall
pos: (128 64)
size: (64 64)
}
}
ResourceType core.battlestationTitan
{
category: orbitalUnit
name: "Titan-class battlestation"
shortName: "Titan(s)"
mass: 100.0
halfLife: 5.0
attack: { name:"Sekron-90 missile" count:1 damage:320 type:missile strength:4 range:30.0 area:0.3 }
defense: { armor:1024 }
production: {
workUnits: 600.0
inputs: (
{ type:core.trillum amount:15.0 }
{ type:core.hexacarbide amount:40.0 }
{ type:core.chronimium amount:2.0 }
{ type:core.heavyMissileLauncher amount:1.0 }
)
minTechLevel: 9
}
imageLarge: { type:constant
resource: core.defenseIcons
pos: (0 512)
size: (384 256)
}
imageSmall: { type:constant
resource: core.defenseIconsSmall
pos: (0 128)
size: (96 64)
}
}
ResourceType core.GDM
{
category: fixedUnit // Fixed units are installations on the ground
name: "GDM silo"
shortName: "GDM(s)"
mass: 200.0
halfLife: 2.0
attack: { name:"nuclear warhead" count:1 damage:32 type:missile strength:1 range:10.0 area:0.2 }
defense: { armor:16 }
production: {
workUnits: 25.0
inputs: (
{ type:core.trillum amount:0.2 }
)
minTechLevel: 3
}
imageLarge: { type:constant
resource: core.defenseIcons
pos: (0 0)
size: (256 256)
}
imageSmall: { type:constant
resource: core.defenseIconsSmall
pos: (0 0)
size: (64 64)
}
}
ResourceType core.HELCannon
{
category: fixedUnit
name: "HEL cannon"
shortName: "HEL(s)"
mass: 200.0
halfLife: 2.0
attack: { name:"HEL cannon" count:1 damage:32 type:direct range:15.0 area:0.0 }
defense: { armor:64 }
production: {
workUnits: 40.0
inputs: (
{ type:core.trillum amount:0.5 }
{ type:core.hexacarbide amount:2.0 }
)
minTechLevel: 4
}
imageLarge: { type:constant
resource: core.defenseIcons
pos: (256 0)
size: (256 256)
}
imageSmall: { type:constant
resource: core.defenseIconsSmall
pos: (64 0)
size: (64 64)
}
}
ResourceType core.hypersonicMissile
{
category: fixedUnit
name: "hypersonic missile site"
shortName: "hypersonic(s)"
mass: 200.0
halfLife: 3.0
attack: { name:"H2 interceptor" count:1 damage:48 type:missile strength:2 range:20.0 area:0.2 }
defense: { armor:128 }
production: {
workUnits: 70.0
inputs: (
{ type:core.trillum amount:2.0 }
{ type:core.hexacarbide amount:10.0 }
)
minTechLevel: 6
}
imageLarge: { type:constant
resource: core.defenseIcons
pos: (0 256)
size: (256 256)
}
imageSmall: { type:constant
resource: core.defenseIconsSmall
pos: (0 64)
size: (64 64)
}
}
ResourceType core.jumpmissilePartisan
{
category: LAMUnit
name: "Partisan-class jumpmissile"
shortName: "Partisan(s)"
mass: 1.0
halfLife: 4.0
LAMRange: 100.0
isExpendable: true
noLocalAttack: true
attack: { name:"Partisan missile" count:16 damage:180 type:missile strength:8 range:100.0 area:0.0 }
defense: { armor:50 }
production: {
workUnits: 900.0
inputs: (
{ type:core.trillum amount:2.0 }
{ type:core.hexacarbide amount:2.0 }
{ type:core.lightJumpdrive amount:1.0 }
)
minTechLevel: 7
}
imageLarge: { type:constant
resource: core.defenseIcons
pos: (512 512)
size: (256 256)
}
imageSmall: { type:constant
resource: core.defenseIconsSmall
pos: (128 128)
size: (64 64)
}
}
ResourceType core.plasmaTower
{
category: fixedUnit
name: "plasma tower"
shortName: "plasma tower(s)"
mass: 200.0
halfLife: 4.0
attack: { name:"plasma lancer T13" count:1 damage:64 type:direct range:20.0 area:0.2 }
defense: { armor:512 }
production: {
workUnits: 440.0
inputs: (
{ type:core.trillum amount:10.0 }
{ type:core.hexacarbide amount:20.0 }
{ type:core.chronimium amount:2.0 }
)
minTechLevel: 8
}
imageLarge: { type:constant
resource: core.defenseIcons
pos: (256 256)
size: (256 256)
}
imageSmall: { type:constant
resource: core.defenseIconsSmall
pos: (64 64)
size: (64 64)
}
}
// Industry & Improvements ----------------------------------------------------
Trait core.armoredConstellation {
name: "armored constellation"
category: improvement
role: orbitalDefenseIndustry
production: (core.armoredSatellite)
defaultAlloc: { alloc:fixed allocValue:5.0 }
minTechLevel: 7
buildUpgrade: (core.autocannonConstellation)
buildTime: 30
destroysTo: (core.autocannonConstellation)
createsResourcesOnGameCreate: true
workingConditions: 5
description: "This improvement gradually replaces the satellites of an autocannon constellation with armored and heavily armed satellites. Each armored satellite is equipped with powerful H5 missiles."
}
Trait core.autocannonConstellation {
name: "autocannon constellation"
category: improvement
role: orbitalDefenseIndustry
production: (core.autocannonSatellite)
defaultAlloc: { alloc:fixed allocValue:5.0 }
minTechLevel: 5
buildTime: 8
createsResourcesOnGameCreate: true
workingConditions: 5
description: "An autocannon constellation is a network of laser-equipped satellites. Individual satellites are more costly than ground-based defenses but have a longer operational lifespan; constellations are a long-term investment."
}
Trait core.battlestationProgram {
name: "battlestation program"
category: improvement
role: orbitalDefenseIndustry
production: (core.battlestationTitan)
defaultAlloc: { alloc:fixed allocValue:5.0 }
minTechLevel: 9
buildUpgrade: (core.armoredConstellation)
buildTime: 480
destroysTo: (core.armoredConstellation)
createsResourcesOnGameCreate: true
workingConditions: 5
description: "This program is an upgrade of the armored constellation improvement. Once operational, the programs builds Titan-class battlestations, the pinnacle of orbital defense. Each heavily armored station packs enough power to oppose a fully armed starcruiser."
}
Trait core.citadelComplex {
name: "citadel complex"
category: industry
role: citadelIndustry
production: (
core.infantry
core.jumpmissilePartisan
)
defaultAlloc: { alloc:max }
designationOnly: true
workingConditions: 7
}
Trait core.GDMComplex {
name: "GDM complex"
category: improvement
role: groundDefenseIndustry
production: (core.GDM)
defaultAlloc: { alloc:fixed allocValue:5.0 }
minTechLevel: 3
buildTime: 4
createsResourcesOnGameCreate: true
workingConditions: 5
description: "Nuclear-tipped ground defense missiles (GDMs) are cheap but deadly defenses for underdeveloped worlds. GDMs are effective against low-tech attackers but can be neutralized by ships with point defense, such as Stinger-class jumpships."
}
Trait core.HELCannonNetwork {
name: "HEL cannon network"
category: improvement
role: groundDefenseIndustry
production: (core.HELCannon)
defaultAlloc: { alloc:fixed allocValue:5.0 }
minTechLevel: 4
buildTime: 4
createsResourcesOnGameCreate: true
workingConditions: 5
description: "This improvement builds a network of high-energy laser (HEL) towers around the planet, designed for defending against invasion."
}
Trait core.HMComplex {
name: "hypersonic missile complex"
category: improvement
role: groundDefenseIndustry
production: (core.hypersonicMissile)
defaultAlloc: { alloc:fixed allocValue:5.0 }
minTechLevel: 6
buildUpgrade: (core.GDMComplex)
buildTime: 15
destroysTo: (core.GDMComplex)
createsResourcesOnGameCreate: true
workingConditions: 5
description: "This improvement builds a complex of hypersonic missile sites capable of attacking enemy ships in high orbit."
}
Trait core.plasmaTowerNetwork {
name: "plasma tower network"
category: improvement
role: groundDefenseIndustry
production: (core.plasmaTower)
defaultAlloc: { alloc:fixed allocValue:5.0 }
minTechLevel: 8
buildUpgrade: (core.HELCannonNetwork)
buildTime: 120
destroysTo: (core.HELCannonNetwork)
createsResourcesOnGameCreate: true
workingConditions: 5
description: "HEL cannons may be upgraded to plasma towers with this improvement. Plasma towers fire a high-intensity beam of charged plasma, able to pierce through the armor of most ships."
}
Image core.defenseIcons
{
filename: "DefenseIcons.png"
}
Image core.defenseIconsSmall
{
filename: "DefenseIconsSmall.png"
}