-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapply_tiering.py
46 lines (31 loc) · 1.04 KB
/
apply_tiering.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import poefilter as pf
import exfilter_styles as styles
from poepy_core import write_to_file
from poetiergen import PoeTierGenerator
import os
league_name = r"Blight"
download = True
use_cache = True
input_filter = r"ExfilterBlight.filter"
output_filter = r"ExfilterGen.filter"
shaperelder_cutoff = 6
divination_cutoff = 0.8
uniques_cutoff = 2
input_filter = os.path.join(
os.path.expanduser(r"~\Documents\My Games\Path of Exile"), input_filter
)
exfilter = pf.FilterObj().from_file(input_filter)
# Shaper/Elder Tiering
gen = PoeTierGenerator(league_name, exfilter, download, use_cache)
gen.GenerateShaperElderSectionFromTag(
shaperelder_cutoff, styles.STYLE_SHAPERELDER_CHAOS, styles.STYLE_SHAPERELDER_EXALT
)
# Divination Tiering
gen.GenerateDivinationTiersFromTag(divination_cutoff)
# Uniques Tiering
gen.GenerateUniqueTiersFromTag(uniques_cutoff)
# path_to_filter = r'testoutput.filter'
output_filter = os.path.join(
os.path.expanduser(r"~\Documents\My Games\Path of Exile"), output_filter
)
write_to_file(output_filter, exfilter)