mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 16: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,
|
||||
|
|
|
|||
|
|
@ -1639,7 +1639,7 @@ struct SkillLineAbilityEntry
|
|||
uint32 learnOnGetSkill; // 9 m_acquireMethod
|
||||
uint32 max_value; // 10 m_trivialSkillLineRankHigh
|
||||
uint32 min_value; // 11 m_trivialSkillLineRankLow
|
||||
//uint32 // 12
|
||||
uint32 characterPoints; // 12 4.0.0
|
||||
//uint32 // 13 4.0.0
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -109,7 +109,7 @@ const char RandomPropertiesPointsfmt[] = "niiiiiiiiiiiiiii";
|
|||
const char ScalingStatDistributionfmt[]="niiiiiiiiiiiiiiiiiiiixi";
|
||||
const char ScalingStatValuesfmt[]="iniiiiiiiiiiiiiiiiiiiixxxxxxxxxxxxxxxxxxxxxxxxx";
|
||||
const char SkillLinefmt[]="nisxixi";
|
||||
const char SkillLineAbilityfmt[] = "niiiixxiiiiixx";
|
||||
const char SkillLineAbilityfmt[] = "niiiixxiiiiiix";
|
||||
const char SkillRaceClassInfofmt[]="diiiiixxx";
|
||||
const char SoundEntriesfmt[]="nissssssssssssssssssssssxxxxxxxxxxx";
|
||||
const char SpellCastTimefmt[]="niii";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue