Skip to content

Commit

Permalink
Update PW.java
Browse files Browse the repository at this point in the history
  • Loading branch information
xdnw committed Feb 19, 2025
1 parent ffde8aa commit caad6b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/link/locutus/discord/util/PW.java
Original file line number Diff line number Diff line change
Expand Up @@ -435,9 +435,9 @@ public static double nextCityCost(int currentCity, boolean manifestDestiny, bool
return Math.max(0, cost);
}

private static double top20AverageQuarter = 40d * 0.25;
private static double top20AverageQuarter = 40.8 * 0.25;
public static double newNextCityCost(int currentCity, boolean manifestDestiny, boolean cityPlanning, boolean advCityPlanning, boolean metPlanning, boolean govSupportAgency, boolean bureauOfDomesticAffairs) {
double cost = 100000 * Math.pow(currentCity - (top20AverageQuarter / 4), 3) + 150000 * (currentCity - (top20AverageQuarter / 4d)) + 75000;
double cost = 100000 * Math.pow(currentCity - (top20AverageQuarter), 3) + 150000 * (currentCity - (top20AverageQuarter)) + 75000;
if (manifestDestiny) {
double factor = 0.05;
if (govSupportAgency) factor += 0.025;
Expand Down

0 comments on commit caad6b1

Please sign in to comment.