File tree Expand file tree Collapse file tree 1 file changed +13
-11
lines changed
Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Original file line number Diff line number Diff line change 5858}
5959
6060
61-
6261GAME_SPEED_FACTOR = {
6362 'Slower' : 0.6 ,
6463 'Slow' : 0.8 ,
7574 'XX' : 'Public Test' ,
7675}
7776
77+
7878GATEWAY_LOOKUP = {
79- 0 :'' ,
80- 1 :'us' ,
81- 2 :'eu' ,
82- 3 :'kr' ,
83- 5 :'cn' ,
84- 6 :'sea' ,
85- 98 :'xx' ,
79+ 0 : '' ,
80+ 1 : 'us' ,
81+ 2 : 'eu' ,
82+ 3 : 'kr' ,
83+ 5 : 'cn' ,
84+ 6 : 'sea' ,
85+ 98 : 'xx' ,
8686}
8787
8888COLOR_CODES = {
105105 '000000' : 'Black' ,
106106}
107107
108- COLOR_CODES_INV = dict (zip (COLOR_CODES .values (),COLOR_CODES .keys ()))
108+ COLOR_CODES_INV = dict (zip (COLOR_CODES .values (), COLOR_CODES .keys ()))
109109
110110REGIONS = {
111111 # United States
153153}
154154
155155
156- import pkgutil , json
156+ import json
157+ import pkgutil
158+
157159attributes_json = pkgutil .get_data ('sc2reader.data' , 'attributes.json' )
158160attributes_dict = json .loads (attributes_json )
159161LOBBY_PROPERTIES = dict ()
160- for key , value in attributes_dict .get ('attributes' ,dict ()).items ():
162+ for key , value in attributes_dict .get ('attributes' , dict ()).items ():
161163 LOBBY_PROPERTIES [int (key )] = value
You can’t perform that action at this time.
0 commit comments