base init
This commit is contained in:
36
src/game/polymorph.h
Normal file
36
src/game/polymorph.h
Normal file
@@ -0,0 +1,36 @@
|
||||
|
||||
#ifndef __POLYMORPH_UTILS__
|
||||
#define __POLYMORPH_UTILS__
|
||||
|
||||
#include <unordered_map>
|
||||
|
||||
#define POLYMORPH_SKILL_ID 129
|
||||
#define POLYMORPH_BOOK_ID 50322
|
||||
|
||||
enum POLYMORPH_BONUS_TYPE
|
||||
{
|
||||
POLYMORPH_NO_BONUS,
|
||||
POLYMORPH_ATK_BONUS,
|
||||
POLYMORPH_DEF_BONUS,
|
||||
POLYMORPH_SPD_BONUS,
|
||||
};
|
||||
|
||||
class CPolymorphUtils : public singleton<CPolymorphUtils>
|
||||
{
|
||||
private :
|
||||
std::unordered_map<DWORD, DWORD> m_mapSPDType;
|
||||
std::unordered_map<DWORD, DWORD> m_mapATKType;
|
||||
std::unordered_map<DWORD, DWORD> m_mapDEFType;
|
||||
|
||||
public :
|
||||
CPolymorphUtils();
|
||||
|
||||
POLYMORPH_BONUS_TYPE GetBonusType(DWORD dwVnum);
|
||||
|
||||
bool PolymorphCharacter(LPCHARACTER pChar, LPITEM pItem, const CMob* pMob);
|
||||
bool UpdateBookPracticeGrade(LPCHARACTER pChar, LPITEM pItem);
|
||||
bool GiveBook(LPCHARACTER pChar, DWORD dwMobVnum, DWORD dwPracticeCount, BYTE BookLevel, BYTE LevelLimit);
|
||||
bool BookUpgrade(LPCHARACTER pChar, LPITEM pItem);
|
||||
};
|
||||
|
||||
#endif /*__POLYMORPH_UTILS__*/
|
||||
Reference in New Issue
Block a user