Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/xdnw/locutus
Browse files Browse the repository at this point in the history
  • Loading branch information
xdnw committed Aug 3, 2024
2 parents 03bd5a1 + cd67967 commit 5a58001
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1846,10 +1846,10 @@ public String optimalBuild(@Me JSONObject command, @Me IMessageIO io, @Me Guild
int originalCityId = build.getCity_id();
JavaCity jc = new JavaCity(build);
jc.zeroNonMilitary();
Integer originalInfra = build.getInfraNeeded();
double cityInfra = jc.getInfra();
build = jc.toCityBuild();
if (infra == null && originalInfra != null) {
build.setInfraNeeded(originalInfra);
if (infra == null && cityInfra > build.getInfraNeeded()) {
build.setInfraNeeded((int) cityInfra);
}
if (geographicContinent == null) {
DBCity city = Locutus.imp().getNationDB().getCitiesV3ByCityId(originalCityId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ public static void runMilitarizationAlerts() {
graphData = null;
}
byte[] finalGraphData = graphData;
System.out.println("Send aa militarize message " + alertAlliances.size() + " | " + alertAlliances.keySet());

AlertUtil.forEachChannel(f -> true, GuildKey.AA_GROUND_UNIT_ALERTS, new BiConsumer<MessageChannel, GuildDB>() {
@Override
Expand Down Expand Up @@ -302,6 +303,7 @@ public void accept(MessageChannel channel, GuildDB db) {
msg.append(role.getAsMention());
}

System.out.println("Send aa militarize message " + title + " | " + body);
msg.send();
}
});
Expand Down

0 comments on commit 5a58001

Please sign in to comment.