mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[7107] Output skill points (current, max, perm/temp bonus) for known skill in .lookup skill.
This commit is contained in:
parent
e3ccd4b4b7
commit
64073f65c0
8 changed files with 47 additions and 9 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue