feat: add enchant value to pdef/mdef, patk/matk

This commit is contained in:
k0t9i
2023-01-24 23:50:59 +04:00
parent ca0183603f
commit 4cfb986ce0
8 changed files with 38 additions and 23 deletions

View File

@@ -85,7 +85,7 @@ namespace L2Bot::Domain::Entities
const uint16_t enchantLevel,
const Enums::CrystalType crystalType,
const int16_t evasion,
const uint16_t pDef,
const uint32_t pDef,
const uint16_t defRate
) :
BaseItem
@@ -128,7 +128,7 @@ namespace L2Bot::Domain::Entities
{
bool isEquipped = 0;
uint16_t enchantLevel = 0;
uint16_t pDef = 0;
uint32_t pDef = 0;
bool isNewState = true;
};
@@ -138,7 +138,7 @@ namespace L2Bot::Domain::Entities
uint16_t m_EnchantLevel = 0;
Enums::CrystalType m_CrystalType = Enums::CrystalType::none;
int16_t m_Evasion = 0;
uint16_t m_PDef = 0;
uint32_t m_PDef = 0;
uint16_t m_DefRate = 0;
GetState m_PrevState = GetState();