Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement