[Cleanup/Feature] Add support for bots to #showstats/#mystats (#3427)

* Initial Push

* Update classes.cpp

* Update mob.cpp

* Update mob.cpp

* Update showstats.cpp

* Update mystats.cpp

* Remove unused variables.

* Update mob.cpp

* Update class.cpp

* Update race.cpp

* Update mob.h
This commit is contained in:
Alex King
2023-07-01 19:47:54 -04:00
committed by GitHub
parent 927d379e75
commit a1f2764978
16 changed files with 1544 additions and 855 deletions
+4 -4
View File
@@ -649,7 +649,7 @@ int64 Client::CalcBaseMana()
int64 Client::CalcBaseManaRegen()
{
uint8 clevel = GetLevel();
int32 regen = 0;
int64 regen = 0;
if (IsSitting() || (GetHorseId() != 0)) {
if (HasSkill(EQ::skills::SkillMeditate)) {
regen = (((GetSkill(EQ::skills::SkillMeditate) / 10) + (clevel - (clevel / 4))) / 4) + 4;
@@ -666,7 +666,7 @@ int64 Client::CalcBaseManaRegen()
int64 Client::CalcManaRegen(bool bCombat)
{
int regen = 0;
int64 regen = 0;
auto level = GetLevel();
// so the new formulas break down with older skill caps where you don't have the skill until 4 or 8
// so for servers that want to use the old skill progression they can set this rule so they
@@ -688,9 +688,9 @@ int64 Client::CalcManaRegen(bool bCombat)
}
}
if (old)
regen = std::max(regen, 2);
regen = std::max(regen, static_cast<int64>(2));
} else if (old) {
regen = std::max(regen, 1);
regen = std::max(regen, static_cast<int64>(1));
}
}