From c7011bc75702d4ff76bda232c3f21fa6a16a0a1b Mon Sep 17 00:00:00 2001 From: John Date: Wed, 12 Aug 2015 14:55:03 +0300 Subject: [PATCH] Don't send trophies on result --- dependencies/astron/dclass/stride.dc | 2 +- toontown/friends/TTSFriendsManager.py | 2 +- toontown/friends/TTSFriendsManagerUD.py | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/dependencies/astron/dclass/stride.dc b/dependencies/astron/dclass/stride.dc index 2667f6d4..c52391d7 100644 --- a/dependencies/astron/dclass/stride.dc +++ b/dependencies/astron/dclass/stride.dc @@ -3201,7 +3201,7 @@ dclass TTSFriendsManager : DistributedObjectGlobal { goingOffline(uint32 avId); getAvatarDetails(uint32) clsend; - friendDetails(uint32, blob, uint16[], uint16, int16, int16, uint32, uint32, blob, blob, int8[]); + friendDetails(uint32, blob, uint16[], int16, int16, uint32, uint32, blob, blob, int8[]); getPetDetails(uint32) clsend; petDetails(uint32, uint32, string, uint32, uint32, uint16/1000[], PetTrait[], int8[], uint32); diff --git a/toontown/friends/TTSFriendsManager.py b/toontown/friends/TTSFriendsManager.py index 1a7c2f9b..566c0a2f 100755 --- a/toontown/friends/TTSFriendsManager.py +++ b/toontown/friends/TTSFriendsManager.py @@ -21,7 +21,7 @@ class TTSFriendsManager(DistributedObjectGlobal): def d_getAvatarDetails(self, avId): self.sendUpdate('getAvatarDetails', [avId]) - def friendDetails(self, avId, inventory, trackAccess, trophies, hp, maxHp, defaultShard, lastHood, dnaString, experience, trackBonusLevel): + def friendDetails(self, avId, inventory, trackAccess, hp, maxHp, defaultShard, lastHood, dnaString, experience, trackBonusLevel): fields = [ ['setExperience' , experience], ['setTrackAccess' , trackAccess], diff --git a/toontown/friends/TTSFriendsManagerUD.py b/toontown/friends/TTSFriendsManagerUD.py index bd78350c..d8a9d76e 100755 --- a/toontown/friends/TTSFriendsManagerUD.py +++ b/toontown/friends/TTSFriendsManagerUD.py @@ -191,7 +191,6 @@ class TTSFriendsManagerUD(DistributedObjectGlobalUD): return inventory = fields['setInventory'][0] trackAccess = fields['setTrackAccess'][0] - trophies = 0 # fields['setTrophyScore'][0] is not db hp = fields['setHp'][0] maxHp = fields['setMaxHp'][0] defaultShard = fields['setDefaultShard'][0] @@ -200,7 +199,7 @@ class TTSFriendsManagerUD(DistributedObjectGlobalUD): experience = fields['setExperience'][0] trackBonusLevel = fields['setTrackBonusLevel'][0] - self.sendUpdateToAvatarId(senderId, 'friendDetails', [avId, inventory, trackAccess, trophies, hp, maxHp, defaultShard, lastHood, dnaString, experience, trackBonusLevel]) + self.sendUpdateToAvatarId(senderId, 'friendDetails', [avId, inventory, trackAccess, hp, maxHp, defaultShard, lastHood, dnaString, experience, trackBonusLevel]) self.air.dbInterface.queryObject(self.air.dbId, avId, handleToon) def getPetDetails(self, avId):