Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int CHARACTER::ComputeRefineFee(int iCost, int iMultiply) const
- {
- CGuild* pGuild = GetRefineGuild();
- if (pGuild)
- {
- if (pGuild == GetGuild())
- return iCost * iMultiply * 9 / 10;
- // 다른 제국 사람이 시도하는 경우 추가로 3배 더
- LPCHARACTER chRefineNPC = CHARACTER_MANAGER::instance().Find(m_dwRefineNPCVID);
- if (chRefineNPC && chRefineNPC->GetEmpire() != GetEmpire())
- return iCost * iMultiply * 3;
- return iCost * iMultiply;
- }
- else
- return iCost;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement