forked from github/server
increase skill-limitations by config
This commit is contained in:
parent
0d653ec2bf
commit
bfbe9b373b
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue