rpc: adjust some responses for avId details

This commit is contained in:
Master Jumblespeed 2015-08-26 20:26:04 -04:00
parent 5cf28bae82
commit 1f8f8ad7a9
3 changed files with 5 additions and 4 deletions

@ -1 +1 @@
Subproject commit 385716865935081c00f8ebbc53ab2875aef4ef19
Subproject commit c1bd385db43e86c7c2008e252f977868a1f68561

View file

@ -648,8 +648,9 @@ class ToontownRPCHandler(ToontownRPCHandlerBase):
dna.makeFromNetString(fields['setDNAString'][0])
result['species'] = ToonDNA.getSpeciesName(dna.head)
result['head-color'] = dna.headColor
result['max-hp'] = fields['setMaxHp'][0]
result['head_color'] = dna.headColor
result['max_hp'] = fields['setMaxHp'][0]
result['hp'] = fields['setHp'][0]
result['online'] = (avId in self.air.friendsManager.onlineToons)
return result

View file

@ -15,7 +15,7 @@ distribution = 'qa'
accountServerEndpoint = 'https://toontownstride.com/api/'
data = urllib.urlencode({'username': username, 'password': password, 'distribution': distribution})
data = urllib.urlencode({'username': username, 'password': password, 'distribution': distribution, 'version': 'dev'})
cookie_jar = cookielib.LWPCookieJar()
cookie = urllib2.HTTPCookieProcessor(cookie_jar)
opener = urllib2.build_opener(cookie)