mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2025-01-09 17:53:50 +00:00
rpc: adjust some responses for avId details
This commit is contained in:
parent
5cf28bae82
commit
1f8f8ad7a9
3 changed files with 5 additions and 4 deletions
|
@ -1 +1 @@
|
||||||
Subproject commit 385716865935081c00f8ebbc53ab2875aef4ef19
|
Subproject commit c1bd385db43e86c7c2008e252f977868a1f68561
|
|
@ -648,8 +648,9 @@ class ToontownRPCHandler(ToontownRPCHandlerBase):
|
||||||
dna.makeFromNetString(fields['setDNAString'][0])
|
dna.makeFromNetString(fields['setDNAString'][0])
|
||||||
result['species'] = ToonDNA.getSpeciesName(dna.head)
|
result['species'] = ToonDNA.getSpeciesName(dna.head)
|
||||||
|
|
||||||
result['head-color'] = dna.headColor
|
result['head_color'] = dna.headColor
|
||||||
result['max-hp'] = fields['setMaxHp'][0]
|
result['max_hp'] = fields['setMaxHp'][0]
|
||||||
|
result['hp'] = fields['setHp'][0]
|
||||||
result['online'] = (avId in self.air.friendsManager.onlineToons)
|
result['online'] = (avId in self.air.friendsManager.onlineToons)
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
|
|
@ -15,7 +15,7 @@ distribution = 'qa'
|
||||||
|
|
||||||
accountServerEndpoint = 'https://toontownstride.com/api/'
|
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_jar = cookielib.LWPCookieJar()
|
||||||
cookie = urllib2.HTTPCookieProcessor(cookie_jar)
|
cookie = urllib2.HTTPCookieProcessor(cookie_jar)
|
||||||
opener = urllib2.build_opener(cookie)
|
opener = urllib2.build_opener(cookie)
|
||||||
|
|
Loading…
Reference in a new issue