Skip to content

Commit

Permalink
Treasure bonus
Browse files Browse the repository at this point in the history
  • Loading branch information
xdnw committed Oct 23, 2024
1 parent 129ee50 commit f842c9c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/main/java/link/locutus/discord/db/DBNationSnapshot.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ public Map<Integer, DBCity> _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<DBBounty> getBounties() {
throw unsupported();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3304,7 +3304,6 @@ public Map<Integer, JavaCity> getCityMap(boolean updateIfOutdated, boolean force
public Map<Integer, JavaCity> getCityMap(boolean updateIfOutdated, boolean updateNewCities, boolean force) {
Map<Integer, DBCity> 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;
Expand Down

0 comments on commit f842c9c

Please sign in to comment.