X
Xiaolin
Guest
Hrmmmm...
I'm trying to figure out how much experience is gained when a hero kills a standard unit.
I've been looking on the blizzard website and found this formula:
Determining Experience
The XP a hero gets when he kills a non-creep unit is based on this:
GrantNormalXP=25
F(1) = 25
// f(x) = A*f(x-1) + B*x + C
GrantNormalXPFormulaA=1
GrantNormalXPFormulaB=5
GrantNormalXPFormulaC=5
F(x) = 1 * F(x-1) + 5 * x + 5
The chart comes out to:
F(X) F(1) F(2) F(3) F(4) F(5) F(6) F(7) F(8) F(9) F(10)
Experience 25 40 60 85 115 150 190 235 285 340
So if a level 4 Hero kills a level 7 Creep, how much experience does he get? If the victim were not a Creep F(7) = 190 XP. Since it is a Creep he gets 55% (% cap explained above) of that, or 104 (rounded down).
My problem is that I can't make sense of it. by my maths substituting the units level for x doesn't give the same values that they come to. I'd take their values as dogma but I wan't to know what Xp would be gained for killing normal units above level 10 (custom units)
Can anyone explain this formula to me a little better?
(dammit I used to be good at math
)
I'm trying to figure out how much experience is gained when a hero kills a standard unit.
I've been looking on the blizzard website and found this formula:
Determining Experience
The XP a hero gets when he kills a non-creep unit is based on this:
GrantNormalXP=25
F(1) = 25
// f(x) = A*f(x-1) + B*x + C
GrantNormalXPFormulaA=1
GrantNormalXPFormulaB=5
GrantNormalXPFormulaC=5
F(x) = 1 * F(x-1) + 5 * x + 5
The chart comes out to:
F(X) F(1) F(2) F(3) F(4) F(5) F(6) F(7) F(8) F(9) F(10)
Experience 25 40 60 85 115 150 190 235 285 340
So if a level 4 Hero kills a level 7 Creep, how much experience does he get? If the victim were not a Creep F(7) = 190 XP. Since it is a Creep he gets 55% (% cap explained above) of that, or 104 (rounded down).
My problem is that I can't make sense of it. by my maths substituting the units level for x doesn't give the same values that they come to. I'd take their values as dogma but I wan't to know what Xp would be gained for killing normal units above level 10 (custom units)
Can anyone explain this formula to me a little better?
(dammit I used to be good at math


