We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 901232d commit 5ceac97Copy full SHA for 5ceac97
1 file changed
brawlstats/utils.py
@@ -15,19 +15,12 @@ def __init__(self, base_url):
15
self.BATTLELOG = self.BASE + '/player/battlelog'
16
self.CLUB_SEARCH = self.BASE + '/club/search'
17
self.CONSTANTS = 'https://fourjr.herokuapp.com/bs/constants/'
18
- self.BRAWLERS = [
19
- 'shelly', 'nita', 'colt', 'bull', 'jessie', # league reward 0-500
20
- 'brock', 'dynamike', 'bo', 'tick', # league reward 1000+
21
- 'el primo', 'barley', 'poco', 'rosa', # rare
22
- 'rico', 'penny', 'darryl', 'carl', # super rare
23
- 'frank', 'pam', 'piper', 'bibi', # epic
24
- 'mortis', 'tara', 'gene', # mythic
25
- 'spike', 'crow', 'leon' # legendary
26
- ]
27
28
path = os.path.dirname(__file__)
29
with open(os.path.join(path, '__init__.py')) as f:
30
self.VERSION = re.search(r'^__version__ = [\'"]([^\'"]*)[\'"]', f.read(), re.MULTILINE).group(1)
+ with open(os.path.join(path, 'constants.json')) as f:
+ self.BRAWLERS = [b['tID'] for b in json.load(f)['characters']]
31
32
33
def bstag(tag):
0 commit comments