Skip to content

Commit

Permalink
0.8.2
Browse files Browse the repository at this point in the history
- Fixed flat-status mods interacting with multi-projectile weapons
improperly
  • Loading branch information
GottFaust committed Aug 3, 2015
1 parent bf67703 commit d94d183
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/etc/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public class Constants {

/** Frame Title **/
public static final String APP_TITLE = "Warframe Weapon DPS Calculator";
public static final String APP_VERSION = "v0.8.1";
public static final String APP_VERSION = "v0.8.2";

/** ToolTips **/
public static final String NAME_TOOL_TIP = "The weapon's name.";
Expand Down
6 changes: 5 additions & 1 deletion src/main/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -1382,7 +1382,11 @@ protected static void calculateFinals(){
finalStatusChance += statusChance*statusChanceMods.get(i);
}
for(int i = 0; i < flatStatusMods.size(); i++){
finalStatusChance += flatStatusMods.get(i);
double localStatus = flatStatusMods.get(i);
if(projectileCount > 1.0){
localStatus /= projectileCount;
}
finalStatusChance += localStatus;
}

finalStatusDuration = statusDuration;
Expand Down

0 comments on commit d94d183

Please sign in to comment.