Default all localized behavior to European logic #22
@ -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)
|
||||
Tr0n marked this conversation as resolved
|
||||
{
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user
Function always returns true, therefore it can be removed.
I will remove it entirely. Thought it would be good to still have the provision to implement own logic.
But you're right coding for what you "might do" in the future is not good.