From bfbe9b373b9d58c07cb91d578b6f6639416b0363 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sat, 2 Oct 2010 15:37:48 -0700 Subject: [PATCH] increase skill-limitations by config --- src/kernel/config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kernel/config.c b/src/kernel/config.c index 814bc45d5..2591ce7ec 100644 --- a/src/kernel/config.c +++ b/src/kernel/config.c @@ -543,7 +543,7 @@ static attrib_type at_npcfaction = { int max_magicians(const faction * f) { - int m = MAXMAGICIANS; + int m = get_param_int(global.parameters, "rules.maxskills.magic", MAXMAGICIANS); attrib * a; if ((a = a_find(f->attribs, &at_maxmagicians)) != NULL) { @@ -574,7 +574,7 @@ skill_limit(faction * f, skill_t sk) m = max_magicians(f); break; case SK_ALCHEMY: - m = MAXALCHEMISTS; + m = get_param_int(global.parameters, "rules.maxskills.alchemy", MAXALCHEMISTS); break; } return m;