[Spells] Allow SE_SecondaryForte 248 to be calculated as a bonus instead of hardcoded AA (#1507)

* start

* Update client.cpp

* Update client.cpp

* Update bonuses.cpp

* Update bonuses.cpp

Co-authored-by: Chris Miles <akkadius1@gmail.com>
This commit is contained in:
KayenEQ
2021-08-31 02:32:16 -04:00
committed by GitHub
parent fec1b1538e
commit 9525827881
3 changed files with 10 additions and 4 deletions
+7 -2
View File
@@ -1658,6 +1658,13 @@ void Mob::ApplyAABonuses(const AA::Rank &rank, StatBonuses *newbon)
newbon->ItemEnduranceRegenCap += base1;
break;
case SE_SecondaryForte:
if (newbon->SecondaryForte < base1) {
newbon->SecondaryForte = base1;
}
break;
case SE_ZoneSuspendMinion:
newbon->ZoneSuspendMinion = base1;
break;
@@ -1669,8 +1676,6 @@ void Mob::ApplyAABonuses(const AA::Rank &rank, StatBonuses *newbon)
break;
case SE_BandolierSlots:
break;
case SE_SecondaryForte:
break;
case SE_ReduceApplyPoisonTime:
break;
case SE_NimbleEvasion:
+2 -2
View File
@@ -2503,8 +2503,8 @@ uint16 Client::GetMaxSkillAfterSpecializationRules(EQ::skills::SkillType skillid
uint16 PrimarySpecialization = 0, SecondaryForte = 0;
uint16 PrimarySkillValue = 0, SecondarySkillValue = 0;
uint16 MaxSpecializations = GetAA(aaSecondaryForte) ? 2 : 1;
uint16 MaxSpecializations = aabonuses.SecondaryForte ? 2 : 1;
if (skillid >= EQ::skills::SkillSpecializeAbjure && skillid <= EQ::skills::SkillSpecializeEvocation)
{
+1
View File
@@ -556,6 +556,7 @@ struct StatBonuses {
bool ZoneSuspendMinion; // base 1 allows suspended minions to zone
// AAs
uint16 SecondaryForte; // allow a second skill to be specialized with a cap of this value.
int32 ShieldDuration; // extends duration of /shield ability
int32 ExtendedShielding; // extends range of /shield ability
int8 Packrat; // weight reduction for items, 1 point = 10%