SHARE
TWEET

Untitled

a guest Oct 16th, 2019 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int CHARACTER::ComputeRefineFee(int iCost, int iMultiply) const
  2. {
  3.     CGuild* pGuild = GetRefineGuild();
  4.     if (pGuild)
  5.     {
  6.         if (pGuild == GetGuild())
  7.             return iCost * iMultiply * 9 / 10;
  8.  
  9.         // 다른 제국 사람이 시도하는 경우 추가로 3배 더
  10.         LPCHARACTER chRefineNPC = CHARACTER_MANAGER::instance().Find(m_dwRefineNPCVID);
  11.         if (chRefineNPC && chRefineNPC->GetEmpire() != GetEmpire())
  12.             return iCost * iMultiply * 3;
  13.  
  14.         return iCost * iMultiply;
  15.     }
  16.     else
  17.         return iCost;
  18. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top