From 3d5a138a68ad51c96d3a3040e9f0d4ac6de0a626 Mon Sep 17 00:00:00 2001 From: John Date: Thu, 13 Aug 2015 03:19:58 +0300 Subject: [PATCH] SOS friends are now sorted by rarity --- toontown/toon/NPCFriendPanel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toontown/toon/NPCFriendPanel.py b/toontown/toon/NPCFriendPanel.py index cabb7b9a..a98ca2eb 100755 --- a/toontown/toon/NPCFriendPanel.py +++ b/toontown/toon/NPCFriendPanel.py @@ -66,7 +66,7 @@ class NPCFriendPanel(DirectFrame): self.update() def update(self): - friendList = self.friendDict.keys() + friendList = sorted(self.friendDict.keys(), reverse=True, key=lambda id: NPCToons.getNPCTrackLevelHpRarity(id)[3]) cardNum = 0 for i in xrange(self.pos, self.pos + 16):