forked from gridhead/gi-loadouts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request gridhead#178 from sdglitched/test/scan
Add test for `scan` window
- Loading branch information
Showing
13 changed files
with
585 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,17 @@ | ||
from platform import system | ||
|
||
if system() == "Windows": | ||
tessexec = "C:\\Program Files\\Tesseract-OCR\\tesseract.exe" | ||
else: | ||
tessexec = "/usr/bin/tesseract" | ||
|
||
def get_tessexec_path(): | ||
if system() == "Windows": | ||
return "C:\\Program Files\\Tesseract-OCR\\tesseract.exe" | ||
else: | ||
return "/usr/bin/tesseract" | ||
|
||
tessexec = get_tessexec_path() | ||
|
||
tempname = "" | ||
temppath = "" | ||
stattime = 5000 | ||
|
||
data_prefix = "gi-loadouts-" | ||
data_suffix = ".traineddata" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
from gi_loadouts.type.arti.base import ( | ||
MainStatType_CCOL, | ||
MainStatType_FWOL, | ||
MainStatType_GBOE, | ||
MainStatType_PMOD, | ||
MainStatType_SDOE, | ||
) | ||
from gi_loadouts.type.stat import ATTR, STAT | ||
|
||
__dist__ = { | ||
"Flower of Life": {"list": MainStatType_FWOL, "part": "fwol"}, | ||
"Plume of Death": {"list": MainStatType_PMOD, "part": "pmod"}, | ||
"Sands of Eon": {"list": MainStatType_SDOE, "part": "sdoe"}, | ||
"Goblet of Eonothem": {"list": MainStatType_GBOE, "part": "gboe"}, | ||
"Circlet of Logos": {"list": MainStatType_CCOL, "part": "ccol"}, | ||
} | ||
|
||
__rtrn__ = { | ||
"part": "sdoe", | ||
"team": "Shimenawa's Reminiscence", | ||
"rare": "Star 5", | ||
"levl": "Level 20", | ||
"stat": { | ||
"main": ATTR(stat_name=STAT.energy_recharge_perc, stat_data=51.8), | ||
"seco": { | ||
"a": ATTR(stat_name=STAT.elemental_mastery, stat_data=23.0), | ||
"b": ATTR(stat_name=STAT.critical_rate_perc, stat_data=6.6), | ||
"c": ATTR(stat_name=STAT.critical_damage_perc, stat_data=21.0), | ||
"d": ATTR(stat_name=STAT.health_points_perc, stat_data=13.4) | ||
} | ||
} | ||
} |
Oops, something went wrong.