Perk Tree Config (Astral Sorcery)
Description
Control the Perk level cap and XP formula.
Identifier
Refer to this via any of the following:
groovy
mods.astralsorcery.perk_tree_config/* Used as page default */
mods.astralsorcery.perktreeconfig
mods.astralsorcery.perkTreeConfig
mods.astralsorcery.PerkTreeConfig
mods.astral.perk_tree_config
mods.astral.perktreeconfig
mods.astral.perkTreeConfig
mods.astral.PerkTreeConfig
Editing Values
Sets the maximum level of Astral Sorcery's Perks, between 1 and 100:
groovymods.astralsorcery.perk_tree_config.setLevelCap(int)
Sets the Experience cost to advance to the next level, with the Closure taking 2 parameters,
int levelNumber
andlong previousLevelCost
and returning along
:groovymods.astralsorcery.perk_tree_config.setXpFunction(Closure<Long>)
Example
groovy
mods.astralsorcery.perk_tree_config.setLevelCap(50)
mods.astralsorcery.perk_tree_config.setXpFunction({ int i, long prev -> prev + 1000L + MathHelper.lfloor(Math.pow(2.0, i / 2.0F + 3)) })