forked from metin2/server
1
0
Fork 0

remove redundant condition for skill book exp consumption

This commit is contained in:
Tr0n 2024-04-09 16:58:02 +02:00
parent f5ccb17736
commit ba44269071
No known key found for this signature in database
1 changed files with 4 additions and 15 deletions

View File

@ -378,12 +378,6 @@ bool CHARACTER::LearnGrandMasterSkill(DWORD dwSkillVnum)
}
// END_OF_ADD_GRANDMASTER_SKILL
static bool FN_should_check_exp(LPCHARACTER ch)
{
return true;
}
bool CHARACTER::LearnSkillByBook(DWORD dwSkillVnum, BYTE bProb)
{
const CSkillProto* pkSk = CSkillManager::instance().Get(dwSkillVnum);
@ -397,18 +391,13 @@ bool CHARACTER::LearnSkillByBook(DWORD dwSkillVnum, BYTE bProb)
return false;
}
DWORD need_exp = 0;
if (FN_should_check_exp(this))
{
need_exp = 20000;
DWORD need_exp = 20000;
if ( GetExp() < need_exp )
{
ChatPacket(CHAT_TYPE_INFO, LC_TEXT("You cannot read this due to your lack of experience."));
return false;
}
}
// bType이 0이면 처음부터 책으로 수련 가능
if (pkSk->dwType != 0)