mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +00:00
Implement profession skillgains != 1 (+2, +3)
This commit is contained in:
parent
29bbdd40bf
commit
d52b124382
3 changed files with 6 additions and 2 deletions
|
|
@ -5541,6 +5541,10 @@ bool Player::UpdateCraftSkill(uint32 spellid)
|
|||
}
|
||||
|
||||
uint32 craft_skill_gain = sWorld.getConfig(CONFIG_UINT32_SKILL_GAIN_CRAFTING);
|
||||
if (!_spell_idx->second->characterPoints)
|
||||
sLog.outError("Player::UpdateCraftSkill spell %u has characterPoints == 0!");
|
||||
else
|
||||
craft_skill_gain += _spell_idx->second->characterPoints - 1;
|
||||
|
||||
return UpdateSkillPro(_spell_idx->second->skillId, SkillGainChance(SkillValue,
|
||||
_spell_idx->second->max_value,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue