remove redundant condition for skill book exp consumption
This commit is contained in:
parent
f5ccb17736
commit
ba44269071
@ -378,12 +378,6 @@ bool CHARACTER::LearnGrandMasterSkill(DWORD dwSkillVnum)
|
|||||||
}
|
}
|
||||||
// END_OF_ADD_GRANDMASTER_SKILL
|
// END_OF_ADD_GRANDMASTER_SKILL
|
||||||
|
|
||||||
static bool FN_should_check_exp(LPCHARACTER ch)
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
bool CHARACTER::LearnSkillByBook(DWORD dwSkillVnum, BYTE bProb)
|
bool CHARACTER::LearnSkillByBook(DWORD dwSkillVnum, BYTE bProb)
|
||||||
{
|
{
|
||||||
const CSkillProto* pkSk = CSkillManager::instance().Get(dwSkillVnum);
|
const CSkillProto* pkSk = CSkillManager::instance().Get(dwSkillVnum);
|
||||||
@ -397,17 +391,12 @@ bool CHARACTER::LearnSkillByBook(DWORD dwSkillVnum, BYTE bProb)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
DWORD need_exp = 0;
|
DWORD need_exp = 20000;
|
||||||
|
|
||||||
if (FN_should_check_exp(this))
|
if ( GetExp() < need_exp )
|
||||||
{
|
{
|
||||||
need_exp = 20000;
|
ChatPacket(CHAT_TYPE_INFO, LC_TEXT("You cannot read this due to your lack of experience."));
|
||||||
|
return false;
|
||||||
if ( GetExp() < need_exp )
|
|
||||||
{
|
|
||||||
ChatPacket(CHAT_TYPE_INFO, LC_TEXT("You cannot read this due to your lack of experience."));
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// bType이 0이면 처음부터 책으로 수련 가능
|
// bType이 0이면 처음부터 책으로 수련 가능
|
||||||
|
Loading…
Reference in New Issue
Block a user