View Single Post
  #1  
Old 10-23-2011, 05:03 PM
ChaosSlayerZ's Avatar
ChaosSlayerZ
Demi-God
 
Join Date: Mar 2009
Location: Umm
Posts: 1,492
Default Questions on some source code

I am looking at

http://projecteqemu.googlecode.com/s...one/maxskill.h

Take a look for example at this:

Code:
 // Hybrids
        case RANGER: case RANGERGM:{
              r_value = 5 + (level*5);
              if ( level > 50 ){
                if ( r_value > 250 )
                  r_value = 250;
                switch (skillid) {
                  case PIERCING:{
                    if ( r_value > 240 )
                      r_value = 240;
                    break;
                  }
                  default: break;
                }
              }
If I am reading this right, if ranger ever gets skill in piercing above 240, its forcefully treated as 240 MAX.
Same thing happens to say priests hand to hand skill, which is force caped at 75 etc.

Now I am confused, if that is so, then Skill table in Db is rather useless. If go in and set custom skill caps per level for various classes (like giving priests same hand to hand skill per level as monks have), they would be irrelevant, as this little part of source code above will effectively ignore them, and cap my skills anyway.

Shouldn't server just read the proper values from the Db skill table, cause that what its for? In other words, this forceful capping contradicts supposed freedom of customization granted by the skills table.

Would any devs care to comment?
Reply With Quote