Skip to content
This repository has been archived by the owner on Aug 1, 2018. It is now read-only.

Commit

Permalink
fix no 'next_level_score' when lvl 25
Browse files Browse the repository at this point in the history
  • Loading branch information
sffxzzp committed Jul 2, 2018
1 parent 8e212dd commit fce677f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions saliens.py
Expand Up @@ -118,10 +118,14 @@ def getPlayerInfo(self):
team = ""
if "clan_info" in self.playerInfo:
team = "|Team: " + self.playerInfo["clan_info"]["name"]
if "next_level_score" in self.playerInfo:
nextLevel = self.playerInfo["next_level_score"]
else:
nextLevel = "infinity"
if "active_planet" in self.playerInfo:
self.myprint("%s|Bot: %s|PlanetId: %s|Level: %s|Exp: %s/%s%s" % (getTime(), self.name, self.playerInfo["active_planet"], self.playerInfo["level"], self.playerInfo["score"], self.playerInfo["next_level_score"], team))
self.myprint("%s|Bot: %s|PlanetId: %s|Level: %s|Exp: %s/%s%s" % (getTime(), self.name, self.playerInfo["active_planet"], self.playerInfo["level"], self.playerInfo["score"], nextLevel, team))
else:
self.myprint("%s|Bot: %s|Level: %s|Exp: %s/%s%s" % (getTime(), self.name, self.playerInfo["level"], self.playerInfo["score"], self.playerInfo["next_level_score"], team))
self.myprint("%s|Bot: %s|Level: %s|Exp: %s/%s%s" % (getTime(), self.name, self.playerInfo["level"], self.playerInfo["score"], nextLevel, team))
def getPlanetInfo(self, planetId=None):
if planetId==None:
planetId = self.playerInfo["active_planet"]
Expand Down

0 comments on commit fce677f

Please sign in to comment.