11-05-2003, 05:32 AM
The cost should be in skills.txt. Let's see.
First, Inferno is an abnormal skill. It's got a 1 in the "repeat" column - the only others are Artic Blast (big surprise) and Blade Fury.
Inferno
repeat 1
startmana 6
minmana 0
manashift 2 (divisor = 64)
mana 36
lvlmana 1
Fireball (for comparison)
repeat (blank)
startmana (blank)
minmana 1
manashift 7 (divisor = 2)
mana 10
lvlmana 1
I believe the formula for mana cost is something like (mana + lvlmana * (slvl - 1)) * (2 ** manashift) / 256
To simplify the last half, let's substitute the divisor and get (mana + lvlmana * (slvl - 1)) / divisor
So for Fireball that's (10 + 1 * (slvl - 1)) / 2 or (9 + slvl) / 2 which gives the 5, 5.5, 6 ... progression.
Plugging in Inferno, we get (36 + 1 * (slvl - 1)) / 64 or (35 + slvl) / 64. My guess is that you pay 6 points to start the spell up and then the amount in the formula for each attack or segment of the inferno.
That's a start - now the knowledgable mpq readers can correct me.
-- CH
First, Inferno is an abnormal skill. It's got a 1 in the "repeat" column - the only others are Artic Blast (big surprise) and Blade Fury.
Inferno
repeat 1
startmana 6
minmana 0
manashift 2 (divisor = 64)
mana 36
lvlmana 1
Fireball (for comparison)
repeat (blank)
startmana (blank)
minmana 1
manashift 7 (divisor = 2)
mana 10
lvlmana 1
I believe the formula for mana cost is something like (mana + lvlmana * (slvl - 1)) * (2 ** manashift) / 256
To simplify the last half, let's substitute the divisor and get (mana + lvlmana * (slvl - 1)) / divisor
So for Fireball that's (10 + 1 * (slvl - 1)) / 2 or (9 + slvl) / 2 which gives the 5, 5.5, 6 ... progression.
Plugging in Inferno, we get (36 + 1 * (slvl - 1)) / 64 or (35 + slvl) / 64. My guess is that you pay 6 points to start the spell up and then the amount in the formula for each attack or segment of the inferno.
That's a start - now the knowledgable mpq readers can correct me.
-- CH