Closed GoogleCodeExporter closed 8 years ago
i just noticed the right click on reports tree
good job :)
Original comment by oga...@gmail.com
on 8 Jun 2007 at 1:01
i got the solution
in GameEntities.py
def getBestEspionageReport(self):
if not self.espionageHistory:
return None
best = self.espionageHistory[0]
for report in self.espionageHistory:
if report.getDetailLevel() > best.getDetailLevel() and report.date >=
best.date:
best = report
return best
here has the problem.
report.getDetailLevel() > best.getDetailLevel()
this gives the first best result, doesnt give latest report. > must be changed
with
>=
if report.getDetailLevel() >= best.getDetailLevel() and report.date >=
best.date:
Original comment by oga...@gmail.com
on 8 Jun 2007 at 1:16
Hello
I use the same method like you.
you've said :
changed defended planet respy time to 8 hours (in source code)
can you explain where you have modified the source code (i'm pretty bad in
python ;)) ?
Original comment by billo...@gmail.com
on 9 Jun 2007 at 5:52
GameEntities.py
def hasExpired(self, serverTime):
age = self.getAge(serverTime)
if self.hasNonMissileDefense():
return age.seconds >= 28800
elif self.hasFleet():
return age.seconds >= 28800
else:
return False
Original comment by oga...@gmail.com
on 9 Jun 2007 at 7:43
Original comment by jsceballos
on 9 Jun 2007 at 10:06
Original issue reported on code.google.com by
oga...@gmail.com
on 8 Jun 2007 at 9:37Attachments: