Skip to content

Commit 8686785

Browse files
committed
Fixed flat health prediction
1 parent 1895a12 commit 8686785

13 files changed

Lines changed: 35 additions & 26 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,5 @@ npm-debug.log.*
5151

5252
data/saves/autosave.json
5353
# backend/lib
54-
backend/.idea/workspace.xml
54+
backend/.idea/workspace.xml
55+
backend/target/classes

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ Please read these instructions carefully!
276276
**Importing gear screenshots:**
277277

278278
1. Open the Gear Management screen in Epic 7 and sort by Max Enhance<br><br>
279-
2. Click each of the gears that you want to import, and screenshot it. Every screenshot should be 1600x900 and look EXACTLY like this:
279+
2. Click each of the gears that you want to import, and screenshot it. Every screenshot should be 1600x900 and look EXACTLY like this: https://i.imgur.com/68A8Uf0.jpg
280280

281281
![https://i.imgur.com/ny7uaa8.jpg](https://i.imgur.com/ny7uaa8.jpg)
282282

@@ -356,6 +356,10 @@ Hopefully this is useful for anyone looking for an easier way to gear their unit
356356
- Update permutations on 4 piece set
357357
- Dark mode
358358
- Use main stat gear for priority filter
359+
- Clickable lock icon
360+
- Alphabetizing
361+
- Save filter preferences
362+
- Invalid dpi error
359363

360364
**Low priority:**
361365
- Add can reforge, can enhance columns
@@ -381,7 +385,7 @@ Hopefully this is useful for anyone looking for an easier way to gear their unit
381385

382386
## Troubleshooting
383387

384-
- Restart your computer and retry first (there might be an child process still kicking around)
388+
- Restart your computer and retry first (there might be a child process still kicking around)
385389
- Try killing any java.exe processes in Task Manager that came from this app
386390
- Error message: 'java is not recognized as an internal or external command' upon opening the app. Install Java 8 64-bit version to fix.
387391
- After selecting a screenshot folder and pressing submit, nothing happens or gets stuck. Check if there are any invalid screenshots in your folder. They should all look like exactly like https://i.imgur.com/ny7uaa8.jpg in 1600x900 resolution

app/app.html

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -508,18 +508,14 @@
508508
</div>
509509

510510
<div class="optimizerActionButtonsRow">
511-
<input type="submit" class="gearPreviewButton" value="Equip Items" id="gearPreviewEquip">
512-
<input type="submit" class="gearPreviewButton" value="Unequip Items" id="gearPreviewUnequip">
513-
</div>
514-
<div id="buttonSpace"></div>
515-
<div class="optimizerActionButtonsRow">
516-
<input type="submit" class="gearPreviewButton" value="Lock Items" id="gearPreviewLock">
517-
<input type="submit" class="gearPreviewButton" value="Unlock Items" id="gearPreviewUnlock">
518-
</div>
511+
<input type="submit" class="gearActionButton" value="Equip" id="gearPreviewEquip">
512+
<input type="submit" class="gearActionButton" value="Lock" id="gearPreviewLock">
513+
<input type="submit" class="gearActionButton" value="Select All" id="gearPreviewSelectAll"> </div>
519514
<div id="buttonSpace"></div>
520515
<div class="optimizerActionButtonsRow">
521-
<input type="submit" class="gearPreviewButton" value="Select All" id="gearPreviewSelectAll">
522-
<input type="submit" class="gearPreviewButton" value="Deselect All" id="gearPreviewDeselectAll">
516+
<input type="submit" class="gearActionButton" value="Unequip" id="gearPreviewUnequip">
517+
<input type="submit" class="gearActionButton" value="Unlock" id="gearPreviewUnlock">
518+
<input type="submit" class="gearActionButton" value="Deselect All" id="gearPreviewDeselectAll">
523519
</div>
524520
</div>
525521
</div>

app/css/style.css

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ body {
9898

9999
.optimization-results-panel {
100100
flex-grow: 2;
101-
min-height: 250px;
101+
min-height: 300px;
102102
height: 100%;
103103
display: flex;
104104
}
@@ -633,7 +633,7 @@ input[type=number]::-webkit-outer-spin-button {
633633
display: flex;
634634
flex-direction: row;
635635
justify-content: space-between;
636-
line-height: 22px;
636+
line-height: 20px;
637637
}
638638
.leftRightTextContent {
639639
font-family: Segoe UI,Frutiger,Frutiger Linotype,Dejavu Sans,Helvetica Neue,Arial,sans-serif;
@@ -667,4 +667,9 @@ input[type=number]::-webkit-outer-spin-button {
667667
}
668668
.optimizer-checkbox {
669669
cursor: pointer;
670+
}
671+
.gearActionButton {
672+
width: 100px;
673+
cursor: pointer;
674+
margin-right: 5px;
670675
}

app/js/lib/notifier.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ var globalOptions = {
66
},
77
durations: {
88
alert: 20000,
9-
warning: 10000
9+
warning: 5000
1010
},
1111
position: 'top-right'
1212
}

app/js/lib/reforge.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ function calculateReforgeValues(substat) {
145145
substat.reforgedValue = substat.value + 9 * substat.rolls;
146146
}
147147
if (substat.type == "Health") {
148-
substat.reforgedValue = substat.value + 54 * substat.rolls;
148+
substat.reforgedValue = substat.value + 56 * substat.rolls;
149149
}
150150
if (substat.type == "Speed") {
151151
substat.reforgedValue = substat.value + speedRollsToValue[substat.rolls];

backend/.idea/workspace.xml

Lines changed: 11 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
25 Bytes
Binary file not shown.

backend/src/main/java/com/fribbels/Main.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import com.fribbels.handler.SystemRequestHandler;
1212
import com.sun.net.httpserver.HttpServer;
1313

14-
import java.io.IOException;
1514
import java.net.BindException;
1615
import java.net.InetSocketAddress;
1716
import java.util.concurrent.ExecutorService;

backend/src/main/java/com/fribbels/handler/OcrRequestHandler.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ private void initialize() throws Exception {
4545
tessBaseAPI.SetVariable("load_system_dawg", "false");
4646
tessBaseAPI.SetVariable("load_freq_dawg", "false");
4747
tessBaseAPI.SetVariable("classify_enable_learning", "0");
48+
tessBaseAPI.SetVariable("user_defined_dpi", "70");
4849
}
4950

5051
@Override

0 commit comments

Comments
 (0)