diff options
author | Cow <cow@volloeko.de> | 2021-01-03 14:59:00 +0100 |
---|---|---|
committer | Cow <cow@volloeko.de> | 2021-01-03 14:59:00 +0100 |
commit | e20b60fb5791933ebfbd926939312352ae7e357e (patch) | |
tree | f6bea09f2ea17ff83c5f0d3b0c836080d12d6737 /src/main/java/de/cowtipper/cowlection/data/XpTables.java | |
parent | a56d3d0fcbcb86919ab26e9b415f1b61e297225a (diff) | |
download | Cowlection-e20b60fb5791933ebfbd926939312352ae7e357e.tar.gz Cowlection-e20b60fb5791933ebfbd926939312352ae7e357e.tar.bz2 Cowlection-e20b60fb5791933ebfbd926939312352ae7e357e.zip |
Implemented more feedback from 0.12.0 pre-release
- Added pet exp to tooltips
- Dungeon party finder: Lookup info when party is full
- Dungeon party finder: Mark 'carry' or 'hyperion' parties
- Dungeon lookup: Added dungeon type (= Catacombs) levels to player lookup
- Dungeons overlay: Fixed fluctuating crypt counter
Diffstat (limited to 'src/main/java/de/cowtipper/cowlection/data/XpTables.java')
-rw-r--r-- | src/main/java/de/cowtipper/cowlection/data/XpTables.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/main/java/de/cowtipper/cowlection/data/XpTables.java b/src/main/java/de/cowtipper/cowlection/data/XpTables.java index 391f90a..158fb66 100644 --- a/src/main/java/de/cowtipper/cowlection/data/XpTables.java +++ b/src/main/java/de/cowtipper/cowlection/data/XpTables.java @@ -249,6 +249,18 @@ public class XpTables { return -1; } } + + public static int getTotalExp(DataHelper.SkyBlockRarity rarity, int level, int exp) { + TreeSet<Integer> xpToLevels = PET_XP.get(rarity); + if (xpToLevels != null) { + for (int xpToLevel : xpToLevels) { + if (level-- <= 1) { + return xpToLevel + exp; + } + } + } + return -1; + } } public enum Dungeoneering { |