[Bots] Add additional Heroic Sta/Wis/Int bonuses for Bots. (#3013)

This commit is contained in:
Aeadoin 2023-03-01 10:58:04 -05:00 committed by GitHub
parent c15bfe12eb
commit 04a74df0b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6134,8 +6134,11 @@ void Bot::ProcessBotOwnerRefDelete(Mob* botOwner) {
int64 Bot::CalcMaxMana() { int64 Bot::CalcMaxMana() {
switch(GetCasterClass()) { switch(GetCasterClass()) {
case 'I': case 'I':
max_mana = (GenerateBaseManaPoints() + itembonuses.Mana + spellbonuses.Mana + GroupLeadershipAAManaEnhancement());
max_mana += (GetHeroicINT() * 10);
case 'W': { case 'W': {
max_mana = (GenerateBaseManaPoints() + itembonuses.Mana + spellbonuses.Mana + GroupLeadershipAAManaEnhancement()); max_mana = (GenerateBaseManaPoints() + itembonuses.Mana + spellbonuses.Mana + GroupLeadershipAAManaEnhancement());
max_mana += (GetHeroicWIS() * 10);
break; break;
} }
case 'N': { case 'N': {
@ -7085,6 +7088,7 @@ int32 Bot::LevelRegen() {
int64 Bot::CalcHPRegen() { int64 Bot::CalcHPRegen() {
int32 regen = (LevelRegen() + itembonuses.HPRegen + spellbonuses.HPRegen); int32 regen = (LevelRegen() + itembonuses.HPRegen + spellbonuses.HPRegen);
regen += GetHeroicSTA() / 20;
regen += (aabonuses.HPRegen + GroupLeadershipAAHealthRegeneration()); regen += (aabonuses.HPRegen + GroupLeadershipAAHealthRegeneration());
regen = ((regen * RuleI(Character, HPRegenMultiplier)) / 100); regen = ((regen * RuleI(Character, HPRegenMultiplier)) / 100);
return regen; return regen;
@ -7156,6 +7160,7 @@ int64 Bot::CalcMaxHP() {
int32 bot_hp = 0; int32 bot_hp = 0;
uint32 nd = 10000; uint32 nd = 10000;
bot_hp += (GenerateBaseHitPoints() + itembonuses.HP); bot_hp += (GenerateBaseHitPoints() + itembonuses.HP);
bot_hp += (GetHeroicSTA() * 10);
nd += aabonuses.MaxHP; nd += aabonuses.MaxHP;
bot_hp = ((float)bot_hp * (float)nd / (float)10000); bot_hp = ((float)bot_hp * (float)nd / (float)10000);
bot_hp += (spellbonuses.HP + aabonuses.HP); bot_hp += (spellbonuses.HP + aabonuses.HP);