refactor: change abbreviations to full form
This commit is contained in:
@@ -21,12 +21,12 @@ namespace L2Bot::Domain::Entities
|
||||
m_EnchantLevel = casted->m_EnchantLevel;
|
||||
m_WeaponType = casted->m_WeaponType;
|
||||
m_CrystalType = casted->m_CrystalType;
|
||||
m_PAtk = casted->m_PAtk;
|
||||
m_MAtk = casted->m_MAtk;
|
||||
m_PAttack = casted->m_PAttack;
|
||||
m_MAttack = casted->m_MAttack;
|
||||
m_RndDamage = casted->m_RndDamage;
|
||||
m_Critical = casted->m_Critical;
|
||||
m_HitModify = casted->m_HitModify;
|
||||
m_AtkSpd = casted->m_AtkSpd;
|
||||
m_AttackSpeed = casted->m_AttackSpeed;
|
||||
m_MpConsume = casted->m_MpConsume;
|
||||
m_SoulshotCount = casted->m_SoulshotCount;
|
||||
m_SpiritshotCount = casted->m_SpiritshotCount;
|
||||
@@ -38,8 +38,8 @@ namespace L2Bot::Domain::Entities
|
||||
{
|
||||
m_IsEquipped,
|
||||
m_EnchantLevel,
|
||||
m_PAtk,
|
||||
m_MAtk,
|
||||
m_PAttack,
|
||||
m_MAttack,
|
||||
false
|
||||
};
|
||||
}
|
||||
@@ -51,12 +51,12 @@ namespace L2Bot::Domain::Entities
|
||||
m_EnchantLevel == casted->m_EnchantLevel &&
|
||||
m_WeaponType == casted->m_WeaponType &&
|
||||
m_CrystalType == casted->m_CrystalType &&
|
||||
m_PAtk == casted->m_PAtk &&
|
||||
m_MAtk == casted->m_MAtk &&
|
||||
m_PAttack == casted->m_PAttack &&
|
||||
m_MAttack == casted->m_MAttack &&
|
||||
m_RndDamage == casted->m_RndDamage &&
|
||||
m_Critical == casted->m_Critical &&
|
||||
m_HitModify == casted->m_HitModify &&
|
||||
m_AtkSpd == casted->m_AtkSpd &&
|
||||
m_AttackSpeed == casted->m_AttackSpeed &&
|
||||
m_MpConsume == casted->m_MpConsume &&
|
||||
m_SoulshotCount == casted->m_SoulshotCount &&
|
||||
m_SpiritshotCount == casted->m_SpiritshotCount;
|
||||
@@ -73,7 +73,7 @@ namespace L2Bot::Domain::Entities
|
||||
result.push_back({ "rndDamage", std::to_string(m_RndDamage) });
|
||||
result.push_back({ "critical", std::to_string(m_Critical) });
|
||||
result.push_back({ "hitModify", std::to_string(m_HitModify) });
|
||||
result.push_back({ "atkSpd", std::to_string(m_AtkSpd) });
|
||||
result.push_back({ "attackSpeed", std::to_string(m_AttackSpeed) });
|
||||
result.push_back({ "mpConsume", std::to_string(m_MpConsume) });
|
||||
result.push_back({ "soulshotCount", std::to_string(m_SoulshotCount) });
|
||||
result.push_back({ "spiritshotCount", std::to_string(m_SpiritshotCount) });
|
||||
@@ -87,13 +87,13 @@ namespace L2Bot::Domain::Entities
|
||||
{
|
||||
result.push_back({ "enchantLevel", std::to_string(m_EnchantLevel) });
|
||||
}
|
||||
if (m_PrevState.isNewState || m_PAtk != m_PrevState.pAtk)
|
||||
if (m_PrevState.isNewState || m_PAttack != m_PrevState.pAttack)
|
||||
{
|
||||
result.push_back({ "pAtk", std::to_string(m_PAtk) });
|
||||
result.push_back({ "pAttack", std::to_string(m_PAttack) });
|
||||
}
|
||||
if (m_PrevState.isNewState || m_MAtk != m_PrevState.mAtk)
|
||||
if (m_PrevState.isNewState || m_MAttack != m_PrevState.mAttack)
|
||||
{
|
||||
result.push_back({ "mAtk", std::to_string(m_MAtk) });
|
||||
result.push_back({ "mAttack", std::to_string(m_MAttack) });
|
||||
}
|
||||
|
||||
return result;
|
||||
@@ -112,8 +112,8 @@ namespace L2Bot::Domain::Entities
|
||||
const Enums::WeaponType weaponType,
|
||||
const Enums::CrystalType crystalType,
|
||||
const uint8_t rndDamage,
|
||||
const uint32_t pAtk,
|
||||
const uint32_t mAtk,
|
||||
const uint32_t pAttack,
|
||||
const uint32_t mAttack,
|
||||
const uint16_t critical,
|
||||
const int8_t hitModify,
|
||||
const uint16_t atkSpd,
|
||||
@@ -137,11 +137,11 @@ namespace L2Bot::Domain::Entities
|
||||
m_WeaponType(weaponType),
|
||||
m_CrystalType(crystalType),
|
||||
m_RndDamage(rndDamage),
|
||||
m_PAtk(pAtk),
|
||||
m_MAtk(mAtk),
|
||||
m_PAttack(pAttack),
|
||||
m_MAttack(mAttack),
|
||||
m_Critical(critical),
|
||||
m_HitModify(hitModify),
|
||||
m_AtkSpd(atkSpd),
|
||||
m_AttackSpeed(atkSpd),
|
||||
m_MpConsume(mpConsume),
|
||||
m_SoulshotCount(soulshotCount),
|
||||
m_SpiritshotCount(spiritshotCount)
|
||||
@@ -155,11 +155,11 @@ namespace L2Bot::Domain::Entities
|
||||
m_WeaponType(other->m_WeaponType),
|
||||
m_CrystalType(other->m_CrystalType),
|
||||
m_RndDamage(other->m_RndDamage),
|
||||
m_PAtk(other->m_PAtk),
|
||||
m_MAtk(other->m_MAtk),
|
||||
m_PAttack(other->m_PAttack),
|
||||
m_MAttack(other->m_MAttack),
|
||||
m_Critical(other->m_Critical),
|
||||
m_HitModify(other->m_HitModify),
|
||||
m_AtkSpd(other->m_AtkSpd),
|
||||
m_AttackSpeed(other->m_AttackSpeed),
|
||||
m_MpConsume(other->m_MpConsume),
|
||||
m_SoulshotCount(other->m_SoulshotCount),
|
||||
m_SpiritshotCount(other->m_SpiritshotCount)
|
||||
@@ -175,8 +175,8 @@ namespace L2Bot::Domain::Entities
|
||||
{
|
||||
bool isEquipped = 0;
|
||||
uint16_t enchantLevel = 0;
|
||||
uint32_t pAtk = 0;
|
||||
uint32_t mAtk = 0;
|
||||
uint32_t pAttack = 0;
|
||||
uint32_t mAttack = 0;
|
||||
|
||||
bool isNewState = true;
|
||||
};
|
||||
@@ -187,11 +187,11 @@ namespace L2Bot::Domain::Entities
|
||||
Enums::WeaponType m_WeaponType = Enums::WeaponType::none;
|
||||
Enums::CrystalType m_CrystalType = Enums::CrystalType::none;
|
||||
uint8_t m_RndDamage = 0;
|
||||
uint32_t m_PAtk = 0;
|
||||
uint32_t m_MAtk = 0;
|
||||
uint32_t m_PAttack = 0;
|
||||
uint32_t m_MAttack = 0;
|
||||
uint16_t m_Critical = 0;
|
||||
int8_t m_HitModify = 0;
|
||||
uint16_t m_AtkSpd = 0;
|
||||
uint16_t m_AttackSpeed = 0;
|
||||
uint8_t m_MpConsume = 0;
|
||||
uint8_t m_SoulshotCount = 0;
|
||||
uint8_t m_SpiritshotCount = 0;
|
||||
|
Reference in New Issue
Block a user