Exp to level ratio/formula

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jude
    Adept
    • Nov 2007
    • 124

    Exp to level ratio/formula

    I was just wondering how the math works for how the exp. to gain each level increases. Obviously it's not doubled each time like Baldur's Gate, but I was wondering, is it just a steady X% increase every time, or does it change gradually?

    Also, what's the "halfway point" to level 50? I.e., if level 40 were the halfway point, it would take as long to get from 40 to 50 as from 1 to 40.
  • camlost
    Sangband 1.x Maintainer
    • Apr 2007
    • 523

    #2
    There is no formula[1]. It's actually a table. I'd look in player_exp in tables.c. It's copied in below for 3.06. Looks like level 44 has half the experience of level 50.

    [1] Well, you could fit something to it, but that doesn't really count.

    Code:
    /*
     * Base experience levels, may be adjusted up for race and/or class
     */
    const s32b player_exp[PY_MAX_LEVEL] =
    {
    	10,
    	25,
    	45,
    	70,
    	100,
    	140,
    	200,
    	280,
    	380,
    	500,
    	650,
    	850,
    	1100,
    	1400,
    	1800,
    	2300,
    	2900,
    	3600,
    	4400,
    	5400,
    	6800,
    	8400,
    	10200,
    	12500,
    	17500,
    	25000,
    	35000L,
    	50000L,
    	75000L,
    	100000L,
    	150000L,
    	200000L,
    	275000L,
    	350000L,
    	450000L,
    	550000L,
    	700000L,
    	850000L,
    	1000000L,
    	1250000L,
    	1500000L,
    	1800000L,
    	2100000L,
    	2400000L,
    	2700000L,
    	3000000L,
    	3500000L,
    	4000000L,
    	4500000L,
    	5000000L
    };
    a chunk of Bronze {These look tastier than they are. !E}
    3 blank Parchments (Vellum) {No french novels please.}

    Comment

    • PowerDiver
      Prophet
      • Mar 2008
      • 2820

      #3
      Originally posted by Jude
      I was just wondering how the math works for how the exp. to gain each level increases. Obviously it's not doubled each time like Baldur's Gate, but I was wondering, is it just a steady X% increase every time, or does it change gradually?

      Also, what's the "halfway point" to level 50? I.e., if level 40 were the halfway point, it would take as long to get from 40 to 50 as from 1 to 40.
      I don't know what it actually is, but I use the approximation 30% more.

      So I generally think of exp for level L growing like (1.3)^L.
      That would put "halfway" at level 47.

      When you get deep, potions of exp give 100K exp and make a difference before cLevel 45. There is better stuff to kill when you get deeper, so your rate of level gains depends more upon how fast your dive than upon the increasing exp required.

      Comment

      • Jude
        Adept
        • Nov 2007
        • 124

        #4
        Thanks for the info.

        I was aware of all the differences with classes and races making adjustments to exp needed, and more exp from monsters later etc, I was just wondering about the raw numbers.

        Comment

        Working...
        😀
        😂
        🥰
        😘
        🤢
        😎
        😞
        😡
        👍
        👎