Skip to content

Commit 3507f7d

Browse files
committed
fix: add the 5 star to be read by OCR
1 parent d312664 commit 3507f7d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • scripts/src/main/java/io/github/fate_grand_automata/scripts/entrypoints

scripts/src/main/java/io/github/fate_grand_automata/scripts/entrypoints/AutoGiftBox.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ class AutoGiftBox @Inject constructor(
150150
val gold5Star = !gold && !silver && images[Images.Gold5StarXP] in iconRegion
151151

152152
if (gold || silver || gold5Star) {
153-
if (gold) {
153+
if (gold || gold5Star) {
154154
val text = countRegion.detectText(true)
155155
// replace common OCR mistakes
156156
.replace("%", "x")

0 commit comments

Comments
 (0)