Skip to content

Commit

Permalink
Unneeded diff and better javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
LlmDl committed Feb 20, 2025
1 parent adc6409 commit 21e76c4
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -349,15 +349,14 @@ public static int getTownLevelFromGivenInt(int threshold, Town town) {
if (town.isRuined())
return 0;

for (int level : configTownLevel.keySet()) {
for (int level : configTownLevel.keySet())
if (threshold >= level)
return level;
}
return 0;
}

/**
* Gets the TownLevel for manually-set towns, returning the key in the SortedMap which corresponds with the position of the key in the SortedMap's keySet.
* Gets the number of residents required to look up the TownLevel in the SortedMap.
* @param level The number used to get the key from the keySet array.
* @return the number of residents which will get us the correct TownLevel in the TownLevel SortedMap.
*/
Expand Down

0 comments on commit 21e76c4

Please sign in to comment.