[7107] Output skill points (current, max, perm/temp bonus) for known skill in .lookup skill.

This commit is contained in:
VladimirMangos 2009-01-18 22:14:08 +03:00
parent e3ccd4b4b7
commit 64073f65c0
8 changed files with 47 additions and 9 deletions

View file

@ -5134,6 +5134,22 @@ uint16 Player::GetPureSkillValue(uint32 skill) const
return 0;
}
int16 Player::GetSkillPermBonusValue(uint32 skill) const
{
if(!skill)
return 0;
for (int i = 0; i < PLAYER_MAX_SKILLS; i++)
{
if ((GetUInt32Value(PLAYER_SKILL_INDEX(i)) & 0x0000FFFF) == skill)
{
return SKILL_PERM_BONUS(GetUInt32Value(PLAYER_SKILL_BONUS_INDEX(i)));
}
}
return 0;
}
int16 Player::GetSkillTempBonusValue(uint32 skill) const
{
if(!skill)