Skip to content

Commit

Permalink
update aa listener
Browse files Browse the repository at this point in the history
  • Loading branch information
xdnw committed Jul 24, 2023
1 parent a37573a commit 083c5f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -832,7 +832,7 @@ public Map.Entry<TransferStatus, String> transferFromNationAccountWithRoleChecks
senderDB.subtractBalance(timestamp, nationAccount, bankerNation.getNation_id(), note, amount);
}

if (nationAccount != null && !depositType.isIgnored() && (banker == null || !Roles.ECON.has(banker, guildDBCached.getGuild()))) {
if (nationAccount != null && !depositType.isIgnored() && (banker == null || !Roles.ECON.has(banker, getGuildDB().getGuild()))) {
double[] myNewDeposits = nationAccount.getNetDeposits(senderDB, !ignoreGrants, -1L);
// ensure myDeposits and myNewDeposits difference is amount
double[] diff = ResourceType.getBuffer();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public static void runMilitarizationAlerts() {
double thresholdDaily = 0.05;
double thresholdTurnly = 0.1;

double thresholdMin = 0.4;
double thresholdMin = 0.2;

Map<Integer, Double> milPreviousMap = new HashMap<>();
Map<Integer, Double> milNowMap = new HashMap<>();
Expand Down

0 comments on commit 083c5f7

Please sign in to comment.