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

value.
This commit is contained in:
Paul Coene committed 2015-02-23 13:32:10 -05:00
1 parent 19fc02c284
commit ba49e5f696
4 files changed
+14 -4

No files matched your search

+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());