increase skill-limitations by config

This commit is contained in:
Enno Rehling 2010-10-02 15:37:48 -07:00
parent 0d653ec2bf
commit bfbe9b373b

View file

@ -543,7 +543,7 @@ static attrib_type at_npcfaction = {
int int
max_magicians(const faction * f) max_magicians(const faction * f)
{ {
int m = MAXMAGICIANS; int m = get_param_int(global.parameters, "rules.maxskills.magic", MAXMAGICIANS);
attrib * a; attrib * a;
if ((a = a_find(f->attribs, &at_maxmagicians)) != NULL) { if ((a = a_find(f->attribs, &at_maxmagicians)) != NULL) {
@ -574,7 +574,7 @@ skill_limit(faction * f, skill_t sk)
m = max_magicians(f); m = max_magicians(f);
break; break;
case SK_ALCHEMY: case SK_ALCHEMY:
m = MAXALCHEMISTS; m = get_param_int(global.parameters, "rules.maxskills.alchemy", MAXALCHEMISTS);
break; break;
} }
return m; return m;