-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathipm.go
More file actions
12 lines (11 loc) · 784 Bytes
/
Copy pathipm.go
File metadata and controls
12 lines (11 loc) · 784 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
origin = "1:2:3" // Planet to use
target = "4:5:6" // Target coordinate
nbr = 20 // Number of missiles to build and send
constructionTime = 17 // Time to build 1 missile (secs)
planet = GetCachedCelestial(origin)
for i = 1; i <= 30; i++ { // Repeat the attack 30 times
BuildDefense(origin, INTERPLANETARYMISSILES, nbr) // Build missiles
SleepSec((constructionTime+1) * nbr) // Wait for missiles to be built
duration, err = SendIPM(planet.ID, target, nbr, 0) // Send missiles
Print(duration, err) // Print error if any
}