Formula in JS to create experience goals for different branches in a game
问题 I'm creating a little game in Javascript, and I have trees that can hold a certain amount of max experience, and each tree have a varied amount of branches that also needs to be leveled up with experience, and they should total to the tree max experience. If it was that easy, I would just divide them equally, like max / branches , but since it's for a game, I need to make a formula where the first branch needs no experience, and then each branch experience needed steadily increase (while