Allow servers to set starting value for swimming instead of the hard coded

value.
This commit is contained in:
Paul Coene
2015-02-23 13:32:10 -05:00
parent 19fc02c284
commit ba49e5f696
4 changed files with 14 additions and 4 deletions
+7
View File
@@ -1430,6 +1430,13 @@ bool Client::OPCharCreate(char *name, CharCreate_Struct *cc)
SetClassStartingSkills(&pp);
SetClassLanguages(&pp);
pp.skills[SkillSenseHeading] = 200;
// Allow server to force swimming training from a configured level
std::string value;
bool userule;
userule=RuleManager::Instance()->GetRule("Skills:SwimmingStartValue", value);
pp.skills[SkillSwimming] = (userule) ? atoi(value.c_str()) : 100;
// strcpy(pp.servername, WorldConfig::get()->ShortName.c_str());