base init

This commit is contained in:
d1str4ught
2025-08-18 00:36:52 +02:00
parent cff3015742
commit 4e679320a3
527 changed files with 199969 additions and 0 deletions

36
src/game/polymorph.h Normal file
View 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__*/