Skip to content

Commit

Permalink
Fixing dmgh bug and updating backend
Browse files Browse the repository at this point in the history
  • Loading branch information
fribbels committed Jan 10, 2022
1 parent c59137c commit 2e64c82
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/js/lib/updater.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const { ipcRenderer } = require('electron');
global.ipcRenderer = ipcRenderer;
const currentVersion = "1.8.1";
const currentVersion = "1.8.2";

global.TEST = false;
/********************************************************************************************
Expand Down Expand Up @@ -54,7 +54,7 @@ module.exports = {
<li>Added score evaluation based on each unit's base stats</li>
</ul>
<h2>
New in v1.8.1
New in v1.8.1 & v1.8.2
</h2>
<ul class="newFeatures">
<li>Fixing a couple bugs</li>
Expand Down
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"name": "Fribbels",
"url": "https://github.com/fribbels/Fribbels-Epic-7-Optimizer"
},
"version": "1.8.1",
"version": "1.8.2",
"description": "Epic 7 Gear Optimizer",
"main": "./main.prod.js",
"scripts": {
Expand Down
Binary file modified backend/out/artifacts/backend_jar/backend.jar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public HeroStats addAccumulatorArrsToHero(final HeroStats base,
final int dmgps = (int) ((float)dmg*spdDiv1000);
final int mcdmg = (int) (atk * critDamage * rageMultiplier * penMultiplier);
final int mcdmgps = (int) ((float)mcdmg*spdDiv1000);
final int dmgh = (int) ((cd * hp)/1000 * penMultiplier);
final int dmgh = (int) ((critDamage * hp)/1000 * rageMultiplier * penMultiplier);

final int score = (int) (accs0[11]+accs1[11]+accs2[11]+accs3[11]+accs4[11]+accs5[11]);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ public void run() {
final int dmgps = (int) ((float)dmg*spdDiv1000);
final int mcdmg = (int) (atk * critDamage * rageMultiplier * penMultiplier);
final int mcdmgps = (int) ((float)mcdmg*spdDiv1000);
final int dmgh = (int) ((cd * hp * penMultiplier)/1000);
final int dmgh = (int) ((critDamage * hp * rageMultiplier * penMultiplier)/1000);

final int score = (int) (wScore+hScore+aScore+nScore+rScore+bScore);
final int priority = (int) (wPrio+hPrio+aPrio+nPrio+rPrio+bPrio);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public void run() {
final int dmgps = (int) ((float)dmg*spdDiv1000);
final int mcdmg = (int) (atk * critDamage * rageMultiplier * penMultiplier);
final int mcdmgps = (int) ((float)mcdmg*spdDiv1000);
final int dmgh = (int) ((cd * hp * penMultiplier)/1000);
final int dmgh = (int) ((critDamage * hp * rageMultiplier * penMultiplier)/1000);

final int score = (int) (wScore+hScore+aScore+nScore+rScore+bScore);
final int priority = (int) (wPrio+hPrio+aPrio+nPrio+rPrio+bPrio);
Expand Down
Binary file modified data/jar/backend.jar
Binary file not shown.

0 comments on commit 2e64c82

Please sign in to comment.