|
@@ -1115,16 +1115,8 @@ class ScriptExplore(object):
|
|
|
elif line == "":
|
|
|
self.state += 1
|
|
|
elif self.state == 4:
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
if not self.dense:
|
|
@@ -1161,35 +1153,22 @@ class ScriptExplore(object):
|
|
|
|
|
|
if self.clear:
|
|
|
log.msg("Clear Sectors: {0}".format(len(self.clear)))
|
|
|
- self.state += 1
|
|
|
+
|
|
|
+
|
|
|
+ for c in self.clear:
|
|
|
+ for d in self.dense:
|
|
|
+ if d['sector'] == c:
|
|
|
+ if d['warps'] > self.highwarp:
|
|
|
+ self.highwarp = d['warps']
|
|
|
+ self.highsector = c
|
|
|
+ elif d['warps'] == self.highwarp:
|
|
|
+ if c > self.highsector:
|
|
|
+ self.highsector = c
|
|
|
+
|
|
|
+ if self.highwarp and self.highsector:
|
|
|
+ log.msg("Sector: {0:5d} Warps: {1}".format(self.highsector, self.highwarp))
|
|
|
+ self.state += 1
|
|
|
elif self.state == 5:
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- for c in self.clear:
|
|
|
- for d in self.dense:
|
|
|
- if d['sector'] == c:
|
|
|
- if d['warps'] > self.highwarp:
|
|
|
- self.highwarp = d['warps']
|
|
|
- self.highsector = c
|
|
|
- elif d['warps'] == self.highwarp:
|
|
|
- if c > self.highsector:
|
|
|
- self.highsector = c
|
|
|
-
|
|
|
-
|
|
|
- if self.highwarp != 0 or self.highsector != 0:
|
|
|
- log.msg("Sector: {0:5d} Warps: {1}".format(self.highsector, self.highwarp))
|
|
|
- self.state += 1
|
|
|
- else:
|
|
|
- log.msg("Oh Nose! We didn't find any Sector with higher Warps than any of the others!")
|
|
|
- self.deactivate()
|
|
|
- elif self.state == 6:
|
|
|
|
|
|
for c in self.clear:
|
|
|
self.stacksector.add(c)
|
|
@@ -1208,6 +1187,7 @@ class ScriptExplore(object):
|
|
|
self.times -= 1
|
|
|
if self.times <= 0:
|
|
|
self.send2player("Completed {0}".format(self.maxtimes))
|
|
|
+ log.msg("Completed {0}".format(self.maxtimes))
|
|
|
self.deactivate()
|
|
|
|
|
|
|