mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 13:41:31 +00:00
Implement Foraging AA
Currently this SPA is only checked for AA bonuses since a non-permanent bonus doesn't make sense. Plus I'm not sure the client is aware of it in spells/gear
This commit is contained in:
parent
6e1f317c60
commit
54da27424f
@ -590,7 +590,7 @@ typedef enum {
|
|||||||
#define SE_CorruptionCounter 369 // implemented
|
#define SE_CorruptionCounter 369 // implemented
|
||||||
#define SE_ResistCorruption 370 // implemented
|
#define SE_ResistCorruption 370 // implemented
|
||||||
#define SE_AttackSpeed4 371 // implemented - stackable slow effect 'Inhibit Melee'
|
#define SE_AttackSpeed4 371 // implemented - stackable slow effect 'Inhibit Melee'
|
||||||
#define SE_ForageSkill 372 // *not implemented[AA] Will increase the skill cap for those that have the Forage skill and grant the skill and raise the cap to those that do not.
|
#define SE_ForageSkill 372 // implemented[AA] Will increase the skill cap for those that have the Forage skill and grant the skill and raise the cap to those that do not.
|
||||||
#define SE_CastOnFadeEffectAlways 373 // implemented - Triggers if fades after natural duration OR from rune/numhits fades.
|
#define SE_CastOnFadeEffectAlways 373 // implemented - Triggers if fades after natural duration OR from rune/numhits fades.
|
||||||
#define SE_ApplyEffect 374 // implemented
|
#define SE_ApplyEffect 374 // implemented
|
||||||
#define SE_DotCritDmgIncrease 375 // implemented - Increase damage of DoT critical amount
|
#define SE_DotCritDmgIncrease 375 // implemented - Increase damage of DoT critical amount
|
||||||
|
|||||||
@ -1472,6 +1472,17 @@ void Mob::ApplyAABonuses(const AA::Rank &rank, StatBonuses *newbon)
|
|||||||
newbon->trap_slots += base1;
|
newbon->trap_slots += base1;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case SE_ForageSkill:
|
||||||
|
newbon->GrantForage += base1;
|
||||||
|
// we need to grant a skill point here
|
||||||
|
// I'd rather not do this here, but whatever, probably fine
|
||||||
|
if (IsClient()) {
|
||||||
|
auto client = CastToClient();
|
||||||
|
if (client->GetRawSkill(EQEmu::skills::SkillType::SkillForage) == 0)
|
||||||
|
client->SetSkill(EQEmu::skills::SkillType::SkillForage, 1);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
// to do
|
// to do
|
||||||
case SE_PetDiscipline:
|
case SE_PetDiscipline:
|
||||||
break;
|
break;
|
||||||
@ -1479,8 +1490,6 @@ void Mob::ApplyAABonuses(const AA::Rank &rank, StatBonuses *newbon)
|
|||||||
break;
|
break;
|
||||||
case SE_BandolierSlots:
|
case SE_BandolierSlots:
|
||||||
break;
|
break;
|
||||||
case SE_ForageSkill:
|
|
||||||
break;
|
|
||||||
case SE_SecondaryForte:
|
case SE_SecondaryForte:
|
||||||
break;
|
break;
|
||||||
case SE_ExtendedShielding:
|
case SE_ExtendedShielding:
|
||||||
|
|||||||
@ -2607,6 +2607,9 @@ uint16 Client::GetMaxSkillAfterSpecializationRules(EQEmu::skills::SkillType skil
|
|||||||
|
|
||||||
Result += spellbonuses.RaiseSkillCap[skillid] + itembonuses.RaiseSkillCap[skillid] + aabonuses.RaiseSkillCap[skillid];
|
Result += spellbonuses.RaiseSkillCap[skillid] + itembonuses.RaiseSkillCap[skillid] + aabonuses.RaiseSkillCap[skillid];
|
||||||
|
|
||||||
|
if (skillid == EQEmu::skills::SkillType::SkillForage)
|
||||||
|
Result += aabonuses.GrantForage;
|
||||||
|
|
||||||
return Result;
|
return Result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -558,6 +558,7 @@ struct StatBonuses {
|
|||||||
int16 FeignedCastOnChance; // Percent Value
|
int16 FeignedCastOnChance; // Percent Value
|
||||||
bool PetCommands[PET_MAXCOMMANDS]; // SPA 267
|
bool PetCommands[PET_MAXCOMMANDS]; // SPA 267
|
||||||
int FeignedMinionChance; // SPA 281 base1 = chance, just like normal FD
|
int FeignedMinionChance; // SPA 281 base1 = chance, just like normal FD
|
||||||
|
int GrantForage; // affects max skill of forage as well as granting non-forage classes forage
|
||||||
int aura_slots;
|
int aura_slots;
|
||||||
int trap_slots;
|
int trap_slots;
|
||||||
bool hunger; // Song of Sustenance -- min caps to 3500
|
bool hunger; // Song of Sustenance -- min caps to 3500
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user