-
Notifications
You must be signed in to change notification settings - Fork 0
/
plan.txt
59 lines (40 loc) · 899 Bytes
/
plan.txt
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
Screeps logic
Starting: spawn, sources, controller
main
clear dead creeps
find myroom
If no creeps
If containers exist
create a filler
then create a harvester
no containers
create a harvester
creeps
for every creep
check role then execute
add creep to count
TODO
Determines closest energy sources
Create role arrays inside the check role loop instead of with filter
TODO
Create different path colors for each role
Source Farmer
create building method to create containers before defaulting to storage.
Builder
//TODO
filler
//TODO
harvester
//TODO
repairer
let target = _.min(targets, function(e) {
return( creep.pos.getRangeTo(e) +
(e.hits>3000?100:0) + (e.hits>12500?200:0) + (e.hits>25000?300:0));
});
//TODO
create a road team
towerguard
//TODO
Upgrader
//TODO
// creep.moveTo(Game.flags["home"],{visualizePathStyle: {stroke: '#ffaa00'}});