Premium chinyutwo 1 Posted July 23, 2015 Premium Share Posted July 23, 2015 Hello, #item_manager_read_tables.cpp sys_log(0,"name %s count %d prob %d rare %d", name.c_str(), iCount, iProb, iRarePct); pkGroup->AddItem(dwVnum, iCount, iProb, iRarePct); struct CSpecialItemInfo { DWORD vnum; int count; int rare; CSpecialItemInfo(DWORD _vnum, int _count, int _rare) : vnum(_vnum), count(_count), rare(_rare) {} }; void AddItem(DWORD vnum, int count, int prob, int rare) { if (!prob) return; if (!m_vecProbs.empty()) prob += m_vecProbs.back(); m_vecProbs.push_back(prob); m_vecItems.push_back(CSpecialItemInfo(vnum, count, rare)); } My Question is: What is "iRarePct" and how is it used? Link to comment Share on other sites More sharing options...
Premium chinyutwo 1 Posted July 23, 2015 Author Premium Share Posted July 23, 2015 Ok i got it already... Little Hint: pkItem->AlterToMagicItem(); Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now