Skip to content

Commit

Permalink
Tweak enchanter calc again so overlevelled books don't have crazy app…
Browse files Browse the repository at this point in the history
…lication costs
  • Loading branch information
Robotgiggle authored and DaFuqs committed Jan 2, 2025
1 parent 06613af commit b792171
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ public static int getRequiredExperienceForEnchantment(int enchantability, Enchan
default -> rarityCost = 80;
}

float levelCost = level * ((float) level / enchantment.getMaxLevel()); // the higher the level, the pricier. But not as bad for enchantments with high max levels
float levelCost = level * Math.min(1, (float) level / enchantment.getMaxLevel()); // the higher the level, the pricier. But not as bad for enchantments with high max levels
float specialMulti = enchantment.isTreasure() ? 2.0F : enchantment.isCursed() ? 1.5F : 1.0F;
float selectionAvailabilityMod = 1.0F;
if (!(enchantment instanceof SpectrumEnchantment)) {
Expand Down

0 comments on commit b792171

Please sign in to comment.