-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspawn.dict.js
798 lines (791 loc) · 33.9 KB
/
spawn.dict.js
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
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
var spawnDict =
{
'queue': function(thisRoom)
{
//Function run by the dictionary. Main passes in the room being used by this spawner.
//Create a dictionary from this dictionary using the key of the room's controller level
var roomDict = this[thisRoom.controller.level.toString()];
//Miles note: This originally was intended to be stored in thisRoom.memory, although I've completely forgotten why. Consider moving it if necessary.
var harvesters = _.filter(Game.creeps,(creep) => {return creep.memory.role == 'harvester1' && creep.room.name == thisRoom.name});
var harvesterCt = harvesters.length;
var harvester2s = _.filter(Game.creeps,(creep) => {return creep.memory.role == 'harvester2' && creep.room.name == thisRoom.name});
harvesterCt += harvester2s.length;
var harvester3s = _.filter(Game.creeps,(creep) => {return creep.memory.role == 'harvester3' && creep.room.name == thisRoom.name});
harvesterCt += harvester3s.length;
var harvester4s = _.filter(Game.creeps,(creep) => {return creep.memory.role == 'harvester4' && creep.room.name == thisRoom.name});
harvesterCt += harvester4s.length;
var harvester5s = _.filter(Game.creeps,(creep) => {return creep.memory.role == 'harvester5' && creep.room.name == thisRoom.name});
harvesterCt += harvester5s.length;
var harvester6s = _.filter(Game.creeps,(creep) => {return creep.memory.role == 'harvester6' && creep.room.name == thisRoom.name});
harvesterCt += harvester6s.length;
thisRoom.memory.harvesterCt = harvesterCt;
var upgraders = _.filter(Game.creeps,(creep) => {return creep.memory.role == 'upgrader1' && creep.room.name == thisRoom.name});
var upgraderCt = upgraders.length;
var upgrader2s = _.filter(Game.creeps,(creep) => {return creep.memory.role == 'upgrader2' && creep.room.name == thisRoom.name});
upgraderCt += upgrader2s.length;
var upgrader3s = _.filter(Game.creeps,(creep) => {return creep.memory.role == 'upgrader3' && creep.room.name == thisRoom.name});
upgraderCt += upgrader3s.length;
var upgrader4s = _.filter(Game.creeps,(creep) => {return creep.memory.role == 'upgrader4' && creep.room.name == thisRoom.name});
upgraderCt += upgrader4s.length;
var upgrader5s = _.filter(Game.creeps,(creep) => {return creep.memory.role == 'upgrader5' && creep.room.name == thisRoom.name});
upgraderCt += upgrader5s.length;
var upgrader6s = _.filter(Game.creeps,(creep) => {return creep.memory.role == 'upgrader6' && creep.room.name == thisRoom.name});
upgraderCt += upgrader6s.length;
var builders = _.filter(Game.creeps,(creep) => {return creep.memory.role == 'builder1' && creep.room.name == thisRoom.name});
var builderCt = builders.length;
var builder2s = _.filter(Game.creeps,(creep) => {return creep.memory.role == 'builder2' && creep.room.name == thisRoom.name});
builderCt += builder2s.length;
var builder3s = _.filter(Game.creeps,(creep) => {return creep.memory.role == 'builder3' && creep.room.name == thisRoom.name});
builderCt += builder3s.length;
var builder4s = _.filter(Game.creeps,(creep) => {return creep.memory.role == 'builder4' && creep.room.name == thisRoom.name});
builderCt += builder4s.length;
var builder5s = _.filter(Game.creeps,(creep) => {return creep.memory.role == 'builder5' && creep.room.name == thisRoom.name});
builderCt += builder5s.length;
var builder6s = _.filter(Game.creeps,(creep) => {return creep.memory.role == 'builder6' && creep.room.name == thisRoom.name});
builderCt += builder6s.length;
for(var i = 1;i < Object.keys(roomDict).length;i++)
{
var current = roomDict[i.toString()];
var role = current.type;
var max = current.qty;
if (max == 'max') max = thisRoom.memory.totalHarvest;
var condition1 = this.condList(thisRoom,current.condition1);
var condition2 = this.condList(thisRoom,current.condition2);
switch(role)
{
case 'harvester1':
if(harvesterCt < max && condition1 && condition2) return role;
break;
case 'harvester2':
case 'harvester3':
case 'harvester4':
case 'harvester5':
case 'harvester6':
if(harvesterCt < max && condition1 && condition2) return role;
break;
case 'upgrader1':
case 'upgrader2':
case 'upgrader3':
case 'upgrader4':
case 'upgrader5':
case 'upgrader6':
if(upgraderCt < max && condition1 && condition2) return role;
break;
case 'builder1':
case 'builder2':
case 'builder3':
case 'builder4':
case 'builder5':
case 'builder6':
if(builderCt < max && condition1 && condition2) return role;
break;
default:
break;
}
}
return null;
},
'condList': function(thisRoom,condition)
{
//Function run by queue. Queue passes in the room being used by this spawner and a condition.
//Purpose is to return a specific condition based on the string condition passed in.
if(condition == 'true') return true;
//No condition
else if(condition == 'emergency') return (thisRoom.memory.harvesterCt < 3);//NOTE TO SELF: harvesterCt does not exist yet
//Emergency conditions -- spawn a regular harvester regardless of normal harvester size
else if(condition == 'downgrade') return (thisRoom.controller.ticksToDowngrade < 2000);
//Emergency condition -- spawn an Upgrader to prevent room controller downgrade
else if(condition == 'etier1') return (thisRoom.energyCapacityAvailable < 550);
//Energy tier 1 -- spawner cannot create 550-energy Creeps
else if(condition == 'etier2') return (thisRoom.energyCapacityAvailable >= 550 && thisRoom.energyCapacityAvailable < 800);
//Energy tier 2 -- spawner can create 550-energy creeps but not 800-energy creeps
else if(condition == 'etier3') return (thisRoom.energyCapacityAvailable >= 800 && thisRoom.energyCapacityAvailable < 1300);
//Energy tier 3 -- spawner can create 800-energy creeps but not 1300-energy creeps
else if(condition == 'etier4') return (thisRoom.energyCapacityAvailable >= 1300 && thisRoom.energyCapacityAvailable < 1800);
//Energy tier 4 -- spawner can create 1300-energy creeps but not 1800-energy creeps
else if(condition == 'etier5') return (thisRoom.energyCapacityAvailable >= 1800 && thisRoom.energyCapacityAvailable < 2300);
//Energy tier 5 -- spawner can create 1800-energy creeps but not 2300-energy creeps
else if(condition == 'etier6') return (thisRoom.energyCapacityAvailable >= 2300 && thisRoom.energyCapacityAvailable < 5600);
//Energy tier 6 -- spawner can create 2300-energy creeps but not 5600-energy creeps
else if(condition == 'build')
{
var damTar = thisRoom.find(FIND_STRUCTURES,
{
//Detect all damaged structures (or Ramparts and Walls with less than a desired max HP)
filter: (structure) => {
return ((structure.structureType == STRUCTURE_RAMPART && structure.hits < 10000) ||
(structure.structureType == STRUCTURE_WALL && structure.hits < 10000) ||
(structure.structureType == STRUCTURE_ROAD && structure.hits < structure.hitsMax - 300) ||
(structure.hits < structure.hitsMax && structure.structureType != STRUCTURE_RAMPART && structure.structureType != STRUCTURE_WALL && structure.structureType != STRUCTURE_ROAD))
}
});
return (thisRoom.memory.buildSites > 0 || damTar.length > 0);
}
//Construction sites or damaged structures are present in room
else
{
console.log("Spawning error has occurred: Condition not found.");
return false;
}
},
'role': function(thisRoom,type)
{
//Function run by spawning code. Takes role determined by queue function and returns an array with the three parts of a creep's constructor.
switch(type)
{
case 'harvester1'://Energy cost: 200 (etier1)
return [[WORK,CARRY,MOVE],null,{role: 'harvester1'}];
break;
case 'harvester2'://Energy cost: 400 (etier2)
return [[WORK,WORK,CARRY,CARRY,MOVE,MOVE],null,{role: 'harvester2'}];
break;
case 'harvester3'://Energy cost: 600 (etier3)
return [[WORK,WORK,WORK,CARRY,CARRY,CARRY,MOVE,MOVE,MOVE],null,{role: 'harvester3'}];
break;
case 'harvester4'://Energy cost: 800 (etier3)
return [[WORK,WORK,WORK,WORK,CARRY,CARRY,CARRY,CARRY,MOVE,MOVE,MOVE,MOVE],null,{role: 'harvester4'}];
break;
case 'harvester5'://Energy cost: 1000 (etier4)
return [[WORK,WORK,WORK,WORK,WORK,CARRY,CARRY,CARRY,CARRY,CARRY,MOVE,MOVE,MOVE,MOVE,MOVE],null,{role: 'harvester5'}];
break;
case 'harvester6'://Energy cost: 1200 (etier4)
return [[WORK,WORK,WORK,WORK,WORK,WORK,CARRY,CARRY,CARRY,CARRY,CARRY,CARRY,MOVE,MOVE,MOVE,MOVE,MOVE,MOVE],null,{role: 'harvester6'}];
break;
case 'upgrader1'://Energy cost: 250 (etier1)
case 'upgrader2':
return [[WORK,CARRY,MOVE,MOVE],null,{role: 'upgrader1'}];
break;
case 'upgrader3'://Energy cost: 500 (etier2)
case 'upgrader4':
return [[WORK,WORK,CARRY,CARRY,MOVE,MOVE,MOVE,MOVE],null,{role: 'upgrader2'}];
break;
case 'upgrader5'://Energy cost: 750 (etier3)
case 'upgrader6':
return [[WORK,WORK,WORK,CARRY,CARRY,CARRY,MOVE,MOVE,MOVE,MOVE,MOVE,MOVE],null,{role: 'upgrader3'}];
break;
case 'builder1'://Energy cost: 250 (etier1)
case 'builder2':
return [[WORK,CARRY,MOVE,MOVE],null,{role: 'builder1'}];
break;
case 'builder3'://Energy cost: 500 (etier2)
case 'builder4':
return [[WORK,WORK,CARRY,CARRY,MOVE,MOVE,MOVE,MOVE],null,{role: 'builder2'}];
break;
case 'builder5'://Energy cost: 750 (etier3)
case 'builder6':
return [[WORK,WORK,WORK,CARRY,CARRY,CARRY,MOVE,MOVE,MOVE,MOVE,MOVE,MOVE],null,{role: 'builder3'}];
break;
default:
break;
}
},
'1'://RCL 1
{
'1'://First priority: 3 Harvesters
{
type: 'harvester1',
qty: 3,
condition1: 'true',
condition2: 'true'
},
'2'://Second priority: 1 Upgrader (to allow room to reach RCL2 asap)
{
type: 'upgrader1',
qty: 1,
condition1: 'true',
condition2: 'true'
},
'3'://Third and final priority: Harvesters until maxed or RCL upgrade
{
type: 'harvester1',
qty: 'max',
condition1: 'true',
condition2: 'true'
}
},
'2'://RCL 2
{
'1'://Emergency Harvester (placed at beginning to avoid Harvester2 cancellation of regular Harvester spawn)
{
type: 'harvester1',
qty: 3,
condition1: 'emergency',
condition2: 'true'
},
'2'://Emergency Upgrader (failsafe to prevent RCL downgrade)
{
type: 'upgrader1',
qty: 1,
condition1: 'downgrade',
condition2: 'true'
},
'3'://First main priority: Room qty of Harvesters (if RCL2 extensions not finished)
{
type: 'harvester1',
qty: 'max',
condition1: 'etier1',
condition2: 'true'
},
'4'://First main priority: Room qty of Harvester2s (if RCL2 extensions finished)
{
type: 'harvester2',
qty: 'max',
condition1: 'etier2',
condition2: 'true'
},
'5'://Second main priority: Single Builder (to begin construction work ASAP)
{
//(Miles note: This is only really a good idea if build code can be modified to start building stuff before spawner deactivates saving)
type: 'builder1',
qty: 1,
condition1: 'build',
condition2: 'true'
},
'6'://Third main priority: Handful of Upgraders (if RCL2 extensions not finished)
{
//(Miles note: Argue about exact number later. May want to detect max number of locations that upgraders can upgrade from.)
type: 'upgrader1',
qty: 2,
condition1: 'etier1',
condition2: 'true'
},
'7'://Third main priority: Handful of Upgrader2s (if RCL2 extensions finished)
{
type: 'upgrader2',
qty: 2,
condition1: 'etier2',
condition2: 'true'
},
'8'://Fourth main priority: Handful of Builders (if RCL2 extensions not finished) (if there are construction sites or repairs needed)
{
//(Miles note: Argue about exact number later. Sounds like more than 1 is overkill.)
type: 'builder1',
qty: 1,
condition1: 'build',
condition2: 'etier1'
},
'9'://Fourth main priority: Handful of Builder2s (if RCL2 extensions finished) (if there are construction sites or repairs needed)
{
//(Miles note: Argue about exact number later. Sounds like more than 1 is overkill.)
type: 'builder2',
qty: 1,
condition1: 'build',
condition2: 'etier2'
}
},
'3'://RCL3
{
'1'://Emergency Harvester (placed at beginning to avoid Harvester2 cancellation of regular Harvester spawn)
{
type: 'harvester1',
qty: 4,
condition1: 'emergency',
condition2: 'true'
},
'2'://Emergency Upgrader (failsafe to prevent RCL downgrade)
{
type: 'upgrader1',
qty: 1,
condition1: 'downgrade',
condition2: 'true'
},
'3'://First main priority: Room qty of Harvesters (if RCL2 extensions somehow not finished)
{
type: 'harvester1',
qty: 'max',
condition1: 'etier1',
condition2: 'true'
},
'4'://First main priority: Room qty of Harvester2s (if RCL2 extensions finished but not RCL3 extensions)
{
type: 'harvester2',
qty: 'max',
condition1: 'etier2',
condition2: 'true'
},
'5'://First main priority: Room qty of Harvester3s (if RCL3 extensions finished)
{
type: 'harvester3',
qty: 'max',
condition1: 'etier3',
condition2: 'true'
},
'6'://Second main priority: Single Builder (to begin construction work ASAP)
{
//(Miles note: This is only really a good idea if build code can be modified to start building stuff before spawner deactivates saving)
type: 'builder1',
qty: 1,
condition1: 'build',
condition2: 'true'
},
'7'://Third main priority: Handful of Upgraders (if RCL2 extensions somehow not finished)
{
//(Miles note: Argue about exact number later. May want to detect max number of locations that upgraders can upgrade from.)
type: 'upgrader1',
qty: 2,
condition1: 'etier1',
condition2: 'true'
},
'8'://Third main priority: Handful of Upgrader2s (if RCL2 extensions finished but not RCL3 extensions)
{
//(Miles note: Argue about exact number later. May want to detect max number of locations that upgraders can upgrade from.)
type: 'upgrader2',
qty: 2,
condition1: 'etier2',
condition2: 'true'
},
'9'://Third main priority: Handful of Upgrader3s (if RCL3 extensions finished)
{
//(Miles note: Argue about exact number later. May want to detect max number of locations that upgraders can upgrade from.)
type: 'upgrader3',
qty: 2,
condition1: 'etier3',
condition2: 'true'
},
'10'://Fourth main priority: Handful of Builders (if RCL2 extensions somehow not finished) (if there are construction sites or repairs needed)
{
//(Miles note: Argue about exact number later. Sounds like more than 1 is overkill.)
type: 'builder1',
qty: 1,
condition1: 'build',
condition2: 'etier1'
},
'11'://Fourth main priority: Handful of Builder2s (if RCL2 extensions finished but not RCL3 extensions) (if there are construction sites or repairs needed)
{
//(Miles note: Argue about exact number later. Sounds like more than 1 is overkill.)
type: 'builder2',
qty: 1,
condition1: 'build',
condition2: 'etier2'
},
'12'://Fourth main priority: Handful of Builder3s (if RCL3 extensions finished) (if there are construction sites or repairs needed)
{
//(Miles note: Argue about exact number later. Sounds like more than 1 is overkill.)
type: 'builder3',
qty: 1,
condition1: 'build',
condition2: 'etier3'
}
},
'4'://RCL4
{
'1'://Emergency Harvester (placed at beginning to avoid Harvester2 cancellation of regular Harvester spawn)
{
type: 'harvester1',
qty: 4,
condition1: 'emergency',
condition2: 'true'
},
'2'://Emergency Upgrader (failsafe to prevent RCL downgrade)
{
type: 'upgrader1',
qty: 1,
condition1: 'downgrade',
condition2: 'true'
},
'3'://First main priority: Room qty of Harvesters (why are RCL2 extensions not finished yet?)
{
type: 'harvester1',
qty: 'max',
condition1: 'etier1',
condition2: 'true'
},
'4'://First main priority: Room qty of Harvester2s (if RCL2 extensions finished but somehow not RCL3 extensions)
{
type: 'harvester2',
qty: 'max',
condition1: 'etier2',
condition2: 'true'
},
'5'://First main priority: Room qty of Harvester3s (if RCL3 extensions finished but not RCL4 extensions)
{
type: 'harvester3',
qty: 'max',
condition1: 'etier3',
condition2: 'true'
},
'6'://First main priority: Room qty of Harvester4s (if RCL4 extensions finished)
{
type: 'harvester4',
qty: 'max',
condition1: 'etier4',
condition2: 'true'
},
'7'://Second main priority: Single Builder (to begin construction work ASAP)
{
//(Miles note: This is only really a good idea if build code can be modified to start building stuff before spawner deactivates saving)
type: 'builder1',
qty: 1,
condition1: 'build',
condition2: 'true'
},
'8'://Third main priority: Handful of Upgraders (why are RCL2 extensions not finished yet?)
{
//(Miles note: Argue about exact number later. May want to detect max number of locations that upgraders can upgrade from.)
type: 'upgrader1',
qty: 2,
condition1: 'etier1',
condition2: 'true'
},
'9'://Third main priority: Handful of Upgrader2s (if RCL2 extensions finished but somehow not RCL3 extensions)
{
//(Miles note: Argue about exact number later. May want to detect max number of locations that upgraders can upgrade from.)
type: 'upgrader2',
qty: 2,
condition1: 'etier2',
condition2: 'true'
},
'10'://Third main priority: Handful of Upgrader3s (if RCL3 extensions finished but not RCL4 extensions)
{
//(Miles note: Argue about exact number later. May want to detect max number of locations that upgraders can upgrade from.)
type: 'upgrader3',
qty: 2,
condition1: 'etier3',
condition2: 'true'
},
'11'://Third main priority: Handful of Upgrader4s (if RCL4 extensions finished)
{
//(Miles note: Argue about exact number later. May want to detect max number of locations that upgraders can upgrade from.)
type: 'upgrader4',
qty: 2,
condition1: 'etier4',
condition2: 'true'
},
'12'://Fourth main priority: Handful of Builders (why are RCL2 extensions not finished yet?) (if there are construction sites or repairs needed)
{
//(Miles note: Argue about exact number later. Sounds like more than 1 is overkill.)
type: 'builder1',
qty: 1,
condition1: 'build',
condition2: 'etier1'
},
'13'://Fourth main priority: Handful of Builder2s (if RCL2 extensions not finished but somehow not RCL3 extensions) (if there are construction sites or repairs needed)
{
//(Miles note: Argue about exact number later. Sounds like more than 1 is overkill.)
type: 'builder2',
qty: 1,
condition1: 'build',
condition2: 'etier2'
},
'14'://Fourth main priority: Handful of Builder3s (if RCL3 extensions finished but not RCL4 extensions) (if there are construction sites or repairs needed)
{
//(Miles note: Argue about exact number later. Sounds like more than 1 is overkill.)
type: 'builder3',
qty: 1,
condition1: 'build',
condition2: 'etier3'
},
'15'://Fourth main priority: Handful of Builder4s (if RCL4 extensions finished) (if there are construction sites or repairs needed)
{
//(Miles note: Argue about exact number later. Sounds like more than 1 is overkill.)
type: 'builder4',
qty: 1,
condition1: 'build',
condition2: 'etier4'
}
},
'5'://RCL5
{
'1'://Emergency Harvester (placed at beginning to avoid Harvester2 cancellation of regular Harvester spawn)
{
type: 'harvester1',
qty: 5,
condition1: 'emergency',
condition2: 'true'
},
'2'://Emergency Upgrader (failsafe to prevent RCL downgrade)
{
type: 'upgrader1',
qty: 1,
condition1: 'downgrade',
condition2: 'true'
},
'3'://First main priority: Room qty of Harvesters (what's wrong with you?)
{
type: 'harvester1',
qty: 'max',
condition1: 'etier1',
condition2: 'true'
},
'4'://First main priority: Room qty of Harvester2s (are RCL3 extensions seriously not done yet?)
{
type: 'harvester2',
qty: 'max',
condition1: 'etier2',
condition2: 'true'
},
'5'://First main priority: Room qty of Harvester3s (if RCL3 extensions finished but somehow not RCL4 extensions)
{
type: 'harvester3',
qty: 'max',
condition1: 'etier3',
condition2: 'true'
},
'6'://First main priority: Room qty of Harvester4s (if RCL4 extensions finished but not RCL5 extensions)
{
type: 'harvester4',
qty: 'max',
condition1: 'etier4',
condition2: 'true'
},
'7'://First main priority: Room qty of Harvester5s (if RCL5 extensions finished)
{
type: 'harvester5',
qty: 'max',
condition1: 'etier5',
condition2: 'true'
},
'8'://Second main priority: Single Builder (to begin construction work ASAP)
{
//(Miles note: This is only really a good idea if build code can be modified to start building stuff before spawner deactivates saving)
type: 'builder1',
qty: 1,
condition1: 'build',
condition2: 'true'
},
'9'://Third main priority: Handful of Upgraders (what's wrong with you?)
{
//(Miles note: Argue about exact number later. May want to detect max number of locations that upgraders can upgrade from.)
type: 'upgrader1',
qty: 2,
condition1: 'etier1',
condition2: 'true'
},
'10'://Third main priority: Handful of Upgrader2s (are RCL3 extensions seriously not done yet?)
{
//(Miles note: Argue about exact number later. May want to detect max number of locations that upgraders can upgrade from.)
type: 'upgrader2',
qty: 2,
condition1: 'etier2',
condition2: 'true'
},
'11'://Third main priority: Handful of Upgrader3s (if RCL3 extensions finished but somehow not RCL4 extensions)
{
//(Miles note: Argue about exact number later. May want to detect max number of locations that upgraders can upgrade from.)
type: 'upgrader3',
qty: 2,
condition1: 'etier3',
condition2: 'true'
},
'12'://Third main priority: Handful of Upgrader4s (if RCL4 extensions finished but not RCL5 extensions)
{
//(Miles note: Argue about exact number later. May want to detect max number of locations that upgraders can upgrade from.)
type: 'upgrader4',
qty: 2,
condition1: 'etier4',
condition2: 'true'
},
'13'://Third main priority: Handful of Upgrader5s (if RCL5 extensions finished)
{
//(Miles note: Argue about exact number later. May want to detect max number of locations that upgraders can upgrade from.)
type: 'upgrader5',
qty: 2,
condition1: 'etier5',
condition2: 'true'
},
'14'://Fourth main priority: Handful of Builders (what's wrong with you?) (if there are construction sites or repairs needed)
{
//(Miles note: Argue about exact number later. Sounds like more than 1 is overkill.)
type: 'builder1',
qty: 1,
condition1: 'build',
condition2: 'etier1'
},
'15'://Fourth main priority: Handful of Builder2s (are RCL3 extensions seriously not finished yet?) (if there are construction sites or repairs needed)
{
//(Miles note: Argue about exact number later. Sounds like more than 1 is overkill.)
type: 'builder2',
qty: 1,
condition1: 'build',
condition2: 'etier2'
},
'16'://Fourth main priority: Handful of Builder3s (if RCL3 extensions finished but somehow not RCL4 extensions) (if there are construction sites or repairs needed)
{
//(Miles note: Argue about exact number later. Sounds like more than 1 is overkill.)
type: 'builder3',
qty: 1,
condition1: 'build',
condition2: 'etier3'
},
'17'://Fourth main priority: Handful of Builder4s (if RCL4 extensions finished but not RCL5 extensions) (if there are construction sites or repairs needed)
{
//(Miles note: Argue about exact number later. Sounds like more than 1 is overkill.)
type: 'builder4',
qty: 1,
condition1: 'build',
condition2: 'etier4'
},
'18'://Fourth main priority: Handful of Builder5s (if RCL5 extensions finished) (if there are construction sites or repairs needed)
{
//(Miles note: Argue about exact number later. Sounds like more than 1 is overkill.)
type: 'builder5',
qty: 1,
condition1: 'build',
condition2: 'etier5'
}
},
'6'://RCL5
{
'1'://Emergency Harvester (placed at beginning to avoid Harvester2 cancellation of regular Harvester spawn)
{
type: 'harvester1',
qty: 5,
condition1: 'emergency',
condition2: 'true'
},
'2'://Emergency Upgrader (failsafe to prevent RCL downgrade)
{
type: 'upgrader1',
qty: 1,
condition1: 'downgrade',
condition2: 'true'
},
'3'://First main priority: Room qty of Harvesters (what's wrong with you?)
{
type: 'harvester1',
qty: 'max',
condition1: 'etier1',
condition2: 'true'
},
'4'://First main priority: Room qty of Harvester2s (you must have been wiped if these are still spawning)
{
type: 'harvester2',
qty: 'max',
condition1: 'etier2',
condition2: 'true'
},
'5'://First main priority: Room qty of Harvester3s (RCL4 extensions aren't even done yet?)
{
type: 'harvester3',
qty: 'max',
condition1: 'etier3',
condition2: 'true'
},
'6'://First main priority: Room qty of Harvester4s (if RCL4 extensions finished but somehow not RCL5 extensions)
{
type: 'harvester4',
qty: 'max',
condition1: 'etier4',
condition2: 'true'
},
'7'://First main priority: Room qty of Harvester5s (if RCL5 extensions finished but not RCL6 extensions)
{
type: 'harvester5',
qty: 'max',
condition1: 'etier5',
condition2: 'true'
},
'8'://First main priority: Room qty of Harvester6s (if RCL6 extensions finished)
{
type: 'harvester6',
qty: 'max',
condition1: 'etier6',
condition2: 'true'
},
'9'://Second main priority: Single Builder (to begin construction work ASAP)
{
//(Miles note: This is only really a good idea if build code can be modified to start building stuff before spawner deactivates saving)
type: 'builder1',
qty: 1,
condition1: 'build',
condition2: 'true'
},
'10'://Third main priority: Handful of Upgraders (what's wrong with you?)
{
//(Miles note: Argue about exact number later. May want to detect max number of locations that upgraders can upgrade from.)
type: 'upgrader1',
qty: 2,
condition1: 'etier1',
condition2: 'true'
},
'11'://Third main priority: Handful of Upgrader2s (you must have been wiped if these are still spawning)
{
//(Miles note: Argue about exact number later. May want to detect max number of locations that upgraders can upgrade from.)
type: 'upgrader2',
qty: 2,
condition1: 'etier2',
condition2: 'true'
},
'12'://Third main priority: Handful of Upgrader3s (RCL4 extensions aren't even done yet?)
{
//(Miles note: Argue about exact number later. May want to detect max number of locations that upgraders can upgrade from.)
type: 'upgrader3',
qty: 2,
condition1: 'etier3',
condition2: 'true'
},
'13'://Third main priority: Handful of Upgrader4s (if RCL4 extensions finished but somehow not RCL5 extensions)
{
//(Miles note: Argue about exact number later. May want to detect max number of locations that upgraders can upgrade from.)
type: 'upgrader4',
qty: 2,
condition1: 'etier4',
condition2: 'true'
},
'14'://Third main priority: Handful of Upgrader5s (if RCL5 extensions finished but not RCL6 extensions)
{
//(Miles note: Argue about exact number later. May want to detect max number of locations that upgraders can upgrade from.)
type: 'upgrader5',
qty: 2,
condition1: 'etier5',
condition2: 'true'
},
'15'://Third main priority: Handful of Upgrader6s (if RCL6 extensions finished)
{
//(Miles note: Argue about exact number later. May want to detect max number of locations that upgraders can upgrade from.)
type: 'upgrader6',
qty: 2,
condition1: 'etier6',
condition2: 'true'
},
'16'://Fourth main priority: Handful of Builders (what's wrong with you?) (if there are construction sites or repairs needed)
{
//(Miles note: Argue about exact number later. Sounds like more than 1 is overkill.)
type: 'builder1',
qty: 1,
condition1: 'build',
condition2: 'etier1'
},
'17'://Fourth main priority: Handful of Builder2s (you must have been wiped if these are still spawning) (if there are construction sites or repairs needed)
{
//(Miles note: Argue about exact number later. Sounds like more than 1 is overkill.)
type: 'builder2',
qty: 1,
condition1: 'build',
condition2: 'etier2'
},
'18'://Fourth main priority: Handful of Builder3s (RCL4 extensions aren't even done yet?) (if there are construction sites or repairs needed)
{
//(Miles note: Argue about exact number later. Sounds like more than 1 is overkill.)
type: 'builder3',
qty: 1,
condition1: 'build',
condition2: 'etier3'
},
'19'://Fourth main priority: Handful of Builder4s (if RCL4 extensions finished but somehow not RCL5 extensions) (if there are construction sites or repairs needed)
{
//(Miles note: Argue about exact number later. Sounds like more than 1 is overkill.)
type: 'builder4',
qty: 1,
condition1: 'build',
condition2: 'etier4'
},
'20'://Fourth main priority: Handful of Builder5s (if RCL5 extensions finished but not RCL6 extensions) (if there are construction sites or repairs needed)
{
//(Miles note: Argue about exact number later. Sounds like more than 1 is overkill.)
type: 'builder5',
qty: 1,
condition1: 'build',
condition2: 'etier5'
},
'21'://Fourth main priority: Handful of Builder6s (if RCL6 extensions finished) (if there are construction sites or repairs needed)
{
//(Miles note: Argue about exact number later. Sounds like more than 1 is overkill.)
type: 'builder6',
qty: 1,
condition1: 'build',
condition2: 'etier6'
}
}
}
module.exports = spawnDict;