Skip to content

Commit

Permalink
Use min skill level on Vocation::getReqSkillTries (#3730)
Browse files Browse the repository at this point in the history
  • Loading branch information
ramon-bernardo authored and DSpeichert committed May 9, 2022
1 parent b19c955 commit e771795
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/vocation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

#include "vocation.h"

#include "player.h"
#include "pugicast.h"
#include "tools.h"

Expand Down Expand Up @@ -158,7 +159,7 @@ uint64_t Vocation::getReqSkillTries(uint8_t skill, uint16_t level)
if (skill > SKILL_LAST) {
return 0;
}
return skillBase[skill] * std::pow(skillMultipliers[skill], static_cast<int32_t>(level - 11));
return skillBase[skill] * std::pow(skillMultipliers[skill], static_cast<int32_t>(level - (MINIMUM_SKILL_LEVEL + 1)));
}

uint64_t Vocation::getReqMana(uint32_t magLevel)
Expand Down

0 comments on commit e771795

Please sign in to comment.