mirror of
https://github.com/EQEmu/Server.git
synced 2026-01-19 14:03:52 +00:00
Rob's broken skill up bug reported fixed
This commit is contained in:
parent
f89add9f64
commit
15f57e4a4c
@ -2324,12 +2324,14 @@ bool Client::CheckIncreaseSkill(SkillUseTypes skillid, Mob *against_who, int cha
|
||||
{
|
||||
// the higher your current skill level, the harder it is
|
||||
int16 Chance = 10 + chancemodi + ((252 - skillval) / 20);
|
||||
if (Chance < 1)
|
||||
Chance = 1; // Make it always possible
|
||||
|
||||
Chance = (Chance * RuleI(Character, SkillUpModifier) / 100);
|
||||
|
||||
Chance = mod_increase_skill_chance(Chance, against_who);
|
||||
|
||||
if(Chance < 1)
|
||||
Chance = 1; // Make it always possible
|
||||
|
||||
if(MakeRandomFloat(0, 99) < Chance)
|
||||
{
|
||||
SetSkill(skillid, GetRawSkill(skillid) + 1);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user