1- import json
21import os
32import re
43
@@ -16,12 +15,19 @@ def __init__(self, base_url):
1615 self .BATTLELOG = self .BASE + '/player/battlelog'
1716 self .CLUB_SEARCH = self .BASE + '/club/search'
1817 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+ ]
1927
2028 path = os .path .dirname (__file__ )
2129 with open (os .path .join (path , '__init__.py' )) as f :
2230 self .VERSION = re .search (r'^__version__ = [\'"]([^\'"]*)[\'"]' , f .read (), re .MULTILINE ).group (1 )
23- with open (os .path .join (path , 'constants.json' )) as f :
24- self .BRAWLERS = [b ['tID' ] for b in json .load (f )['characters' ]]
2531
2632
2733def bstag (tag ):
0 commit comments