Skip to content

Commit

Permalink
Fix: Farming Skill XP (#3121)
Browse files Browse the repository at this point in the history
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
  • Loading branch information
hannibal002 and hannibal002 authored Dec 25, 2024
1 parent 5828820 commit 41d7bf4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ ktlint_standard_no-wildcard-imports = enabled
ktlint_standard_function-expression-body = disabled

# Additional Kotlin-specific formatting for conditions and continuation
ij_kotlin_continuation_indent_size = 8
ij_kotlin_continuation_indent_size = 4
ij_kotlin_binary_expression_wrap = if_long
ij_kotlin_keep_line_breaks = true
ij_kotlin_annotations_new_line_after_suppress = true
7 changes: 6 additions & 1 deletion src/main/java/at/hannibal2/skyhanni/api/SkillAPI.kt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import at.hannibal2.skyhanni.features.skillprogress.SkillUtil.getSkillInfo
import at.hannibal2.skyhanni.features.skillprogress.SkillUtil.xpRequiredForLevel
import at.hannibal2.skyhanni.skyhannimodule.SkyHanniModule
import at.hannibal2.skyhanni.utils.ChatUtils
import at.hannibal2.skyhanni.utils.CollectionUtils.editCopy
import at.hannibal2.skyhanni.utils.ItemUtils.cleanName
import at.hannibal2.skyhanni.utils.ItemUtils.getLore
import at.hannibal2.skyhanni.utils.NumberUtil.addSeparators
Expand Down Expand Up @@ -154,7 +155,11 @@ object SkillAPI {
levelArray = data.levelingXp
levelingMap = levelArray.withIndex().associate { (index, xp) -> (index + 1) to xp }
exactLevelingMap = levelArray.withIndex().associate { (index, xp) -> xp to (index + 1) }
defaultSkillCap = data.levelingCaps
defaultSkillCap = data.levelingCaps.editCopy {
if (this["farming"] == 50) {
this["farming"] = 60
}
}
}

@SubscribeEvent
Expand Down

0 comments on commit 41d7bf4

Please sign in to comment.