diff options
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/minion/MinionXp.kt | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/minion/MinionXp.kt b/src/main/java/at/hannibal2/skyhanni/features/minion/MinionXp.kt index 92f7d8e3e..5c755b66b 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/minion/MinionXp.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/minion/MinionXp.kt @@ -1,6 +1,7 @@ package at.hannibal2.skyhanni.features.minion import at.hannibal2.skyhanni.SkyHanniMod +import at.hannibal2.skyhanni.data.MayorElection import at.hannibal2.skyhanni.data.jsonobjects.repo.MinionXPJson import at.hannibal2.skyhanni.events.IslandChangeEvent import at.hannibal2.skyhanni.events.LorenzToolTipEvent @@ -110,8 +111,11 @@ class MinionXp { val name = item.name val xp = xpInfoMap[name] ?: return@forEach - // TODO add wisdom and Derpy to calculation and random extra Exp Events - val xpAmount = xp.amount * item.stackSize + // TODO add wisdom and temporary skill exp (Events) to calculation + val baseXp = xp.amount * item.stackSize + val xpAmount = if (MayorElection.isPerkActive("Derpy", "MOAR SKILLZ!!!")) { + baseXp * 1.5 + } else baseXp xpItemMap[item] = collectMessage(xp.type, xpAmount) xpTotal.compute(xp.type) { _, currentAmount -> (currentAmount ?: 0.0) + xpAmount } |