From f842c9cb25b674c635b666b07bd3085847346f5f Mon Sep 17 00:00:00 2001 From: test Date: Wed, 23 Oct 2024 14:47:09 +1100 Subject: [PATCH] Treasure bonus --- src/main/java/link/locutus/discord/db/DBNationSnapshot.java | 5 +++++ src/main/java/link/locutus/discord/db/entities/DBNation.java | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/link/locutus/discord/db/DBNationSnapshot.java b/src/main/java/link/locutus/discord/db/DBNationSnapshot.java index 4b585172..b95275f1 100644 --- a/src/main/java/link/locutus/discord/db/DBNationSnapshot.java +++ b/src/main/java/link/locutus/discord/db/DBNationSnapshot.java @@ -78,6 +78,11 @@ public Map _getCitiesV3() { return cities.entrySet().stream().filter(e -> e.getValue().created <= snapshotDate).collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue)); } + @Override + public double getTreasureBonusPct() { + return 0; + } + @Override public Set getBounties() { throw unsupported(); diff --git a/src/main/java/link/locutus/discord/db/entities/DBNation.java b/src/main/java/link/locutus/discord/db/entities/DBNation.java index 4c9c3079..f77f7471 100644 --- a/src/main/java/link/locutus/discord/db/entities/DBNation.java +++ b/src/main/java/link/locutus/discord/db/entities/DBNation.java @@ -3304,7 +3304,6 @@ public Map getCityMap(boolean updateIfOutdated, boolean force public Map getCityMap(boolean updateIfOutdated, boolean updateNewCities, boolean force) { Map cityObj = _getCitiesV3(); if (cityObj == null) cityObj = Collections.emptyMap(); - if (nation_id > 0 && getSnapshot() == null) { if (updateNewCities && cityObj.size() != cities) force = true; if (updateIfOutdated && estimateScore() != this.score) force = true;