instead of hard coding regen rates and stuff there should be a table of stuff thats read in from a file. like for each class and each race, it would make it easier for servers to give certain classes/races enhanced regeneration to to change the enhanced regeneration of trolls and iksars. and im not really sure how you do the damage tables, armor tables and hit points but i think they should all be read in from a file on the server too. if someone wants.... i dont know... rangers to tank better they could change their armor table in the file. and also porbably do the same thing with racial experience penalties/bonuses.
there could be a file that says something like
Quote:
#race experience bonus
1^0
2^0
3^0
4^0
5^0
6^0
7^5
8^0
9^-5
10^0
11^0
12^0
26^0
128^-5
130^0
#class experience bonus
1^0
2^0
3^0
4^0
5^0
6^0
7^0
8^0
9^0
10^0
11^0
12^0
13^0
14^0
15^-5
16^0
|
that would mean race 7 (half elf) gets 5% experience bonus (because they suck)
race 9 and 128 (trolls and iksars) would have 5% experience penalty (because of their regen)
and class 15 (beastlords) would get 5% experience penalty because they're so imba
so a troll or iksar beastlord would get -10% experiece. could do the same thing for hp regeneration so you wouldnt have to recompile every time you want to make a change, just change a little text file or fields in a database