SOS friends are now sorted by rarity

This commit is contained in:
John 2015-08-13 03:19:58 +03:00
parent b155962dca
commit 3d5a138a68

View file

@ -66,7 +66,7 @@ class NPCFriendPanel(DirectFrame):
self.update() self.update()
def update(self): def update(self):
friendList = self.friendDict.keys() friendList = sorted(self.friendDict.keys(), reverse=True, key=lambda id: NPCToons.getNPCTrackLevelHpRarity(id)[3])
cardNum = 0 cardNum = 0
for i in xrange(self.pos, self.pos + 16): for i in xrange(self.pos, self.pos + 16):