File tree Expand file tree Collapse file tree 3 files changed +12
-33
lines changed Expand file tree Collapse file tree 3 files changed +12
-33
lines changed Original file line number Diff line number Diff line change @@ -145,18 +145,3 @@ def get_items() -> list:
145
145
item_bench .append (valid_item (item ))
146
146
mk_functions .move_mouse (screen_coords .DEFAULT_LOC .get_coords ())
147
147
return item_bench
148
-
149
-
150
- def check_headliner () -> bool :
151
- """Check if the last Champion in the store is a headliner"""
152
- result : int = 0
153
- for index , positions in enumerate (screen_coords .HEADLINER_POS ):
154
- headliner : str = ocr .get_text (
155
- screenxy = positions .get_coords (),
156
- scale = 3 ,
157
- psm = 10 ,
158
- whitelist = ocr .ROUND_WHITELIST .replace ("-" , "" ),
159
- )
160
- if headliner == "2" :
161
- result += 2 ** index
162
- return result
Original file line number Diff line number Diff line change 8
8
from tkinter import ttk , simpledialog
9
9
import json
10
10
import os
11
- import re
12
11
from comps import COMP
13
12
from game_assets import FULL_ITEMS , CHAMPIONS
14
13
@@ -295,8 +294,8 @@ def add_champion(self):
295
294
296
295
new_champion = {
297
296
"board_position" : board_position ,
298
- "level" : level ,
299
297
"items" : items ,
298
+ "level" : level ,
300
299
"final_comp" : final_comp ,
301
300
}
302
301
@@ -412,12 +411,7 @@ def save_changes(self):
412
411
updated_file_content = (
413
412
file_content [:comp_line_start ]
414
413
+ "COMP = "
415
- + re .sub (
416
- r'"traits": \[.*?\],\n?' ,
417
- "" ,
418
- json .dumps (self .comp , indent = 4 ),
419
- flags = re .DOTALL ,
420
- )
414
+ + json .dumps (self .comp , indent = 4 )
421
415
.replace ("false" , "False" )
422
416
.replace ("true" , "True" )
423
417
.replace (" " , " " )
Original file line number Diff line number Diff line change 12
12
COMP = {
13
13
"Galio" : {
14
14
"board_position" : 25 ,
15
- "level" : 2 ,
16
15
"items" : ["BrambleVest" , "DragonsClaw" , "WarmogsArmor" ],
16
+ "level" : 2 ,
17
17
"final_comp" : True
18
18
},
19
19
"Kaisa" : {
20
20
"board_position" : 5 ,
21
- "level" : 3 ,
22
21
"items" : ["InfinityEdge" , "LastWhisper" , "SpearofShojin" ],
22
+ "level" : 3 ,
23
23
"final_comp" : True
24
24
},
25
25
"Sivir" : {
26
26
"board_position" : 4 ,
27
+ "items" : ["SpearofShojin" , "StatikkShiv" ],
27
28
"level" : 2 ,
28
- "items" : ["StatikkShiv" ],
29
29
"final_comp" : True
30
30
},
31
31
"Aatrox" : {
32
32
"board_position" : 27 ,
33
- "level" : 2 ,
34
33
"items" : ["Evenshroud" ],
34
+ "level" : 2 ,
35
35
"final_comp" : True
36
36
},
37
37
"Riven" : {
38
38
"board_position" : 21 ,
39
- "level" : 2 ,
40
39
"items" : ["ThiefsGloves" ],
40
+ "level" : 2 ,
41
41
"final_comp" : True
42
42
},
43
43
"Teemo" : {
44
44
"board_position" : 0 ,
45
+ "items" : ["BlueBuff" , "RabadonsDeathcap" ],
45
46
"level" : 2 ,
46
- "items" : ["JeweledGauntlet" , "SpearofShojin" ],
47
47
"final_comp" : True
48
48
},
49
49
"Sylas" : {
50
50
"board_position" : 23 ,
51
- "level" : 2 ,
52
51
"items" : ["ThiefsGloves" ],
52
+ "level" : 2 ,
53
53
"final_comp" : True
54
54
},
55
55
"Xayah" : {
56
56
"board_position" : 6 ,
57
- "level" : 2 ,
58
57
"items" : [],
58
+ "level" : 2 ,
59
59
"final_comp" : True
60
60
},
61
61
"Kobuko" : {
62
62
"board_position" : 24 ,
63
- "level" : 2 ,
64
63
"items" : [],
64
+ "level" : 2 ,
65
65
"final_comp" : False
66
66
},
67
67
"Zoe" : {
68
68
"board_position" : 3 ,
69
- "level" : 2 ,
70
69
"items" : [],
70
+ "level" : 2 ,
71
71
"final_comp" : False
72
72
}
73
73
}
You can’t perform that action at this time.
0 commit comments