是开碧落 发表于 2014-1-29 10:34
两个地方
1. /feature/skill.c can_improve_skill()
2. /adm/daemond/update 玩家登陆检查check_user()
大大能说得详细一点吗?
if ( !(skill_status = ob->query_skills()) ) return;
sname = keys(skill_status);
for(i=0; i<sizeof(skill_status); i++)
{
level = skill_status[sname];
if( pow(to_float(level), 3.0) / 10.0 > exper
// && exper > 100.0
&& sname != "buddhism"
&& sname != "mahayana"
&& sname != "lamaism"
&& sname != "literate"
&& sname != "taoism"
&& sname != "poison" )
{
level = ceil( pow( exper*10.0, 0.333333) );
ob->set_skill(sname, level);
}
}
} |