2022-03-05 12:44:06 +02:00
|
|
|
|
|
|
|
#ifndef OVER_9_REFINE_MANAGER_H_
|
|
|
|
#define OVER_9_REFINE_MANAGER_H_
|
|
|
|
|
2022-03-06 00:01:03 +02:00
|
|
|
#include <unordered_map>
|
2022-03-05 12:44:06 +02:00
|
|
|
|
|
|
|
class COver9RefineManager : public singleton<COver9RefineManager>
|
|
|
|
{
|
|
|
|
private :
|
2022-03-06 00:01:03 +02:00
|
|
|
typedef std::unordered_map<DWORD, DWORD> OVER9ITEM_MAP;
|
2022-03-05 12:44:06 +02:00
|
|
|
OVER9ITEM_MAP m_mapItem;
|
|
|
|
|
|
|
|
public :
|
|
|
|
void enableOver9Refine(DWORD dwVnumFrom, DWORD dwVnumTo);
|
|
|
|
|
|
|
|
int canOver9Refine(DWORD dwVnum);
|
|
|
|
|
|
|
|
bool Change9ToOver9(LPCHARACTER pChar, LPITEM item);
|
|
|
|
bool Over9Refine(LPCHARACTER pChat, LPITEM item);
|
|
|
|
|
|
|
|
DWORD GetMaterialVnum(DWORD baseVnum);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* OVER_9_REFINE_MANAGER_H_ */
|
|
|
|
|