Support for Eyes Wide Open

This probably needs testing on older clients ...
This commit is contained in:
Michael Cook (mackal) 2015-06-13 17:53:21 -04:00
parent 106e0c69ab
commit 121af489c4
3 changed files with 8 additions and 1 deletions

View File

@ -579,7 +579,7 @@ typedef enum {
#define SE_LimitUseType 423 // implemented - limit a focus to require a certain numhits type #define SE_LimitUseType 423 // implemented - limit a focus to require a certain numhits type
#define SE_GravityEffect 424 // implemented - Pulls/pushes you toward/away the mob at a set pace #define SE_GravityEffect 424 // implemented - Pulls/pushes you toward/away the mob at a set pace
//#define SE_Display 425 // *not implemented - Illusion: Flying Dragon(21626) //#define SE_Display 425 // *not implemented - Illusion: Flying Dragon(21626)
//#define SE_IncreaseExtTargetWindow 426 // *not implmented[AA] - increases the capacity of your extended target window #define SE_IncreaseExtTargetWindow 426 // *not implmented[AA] - increases the capacity of your extended target window
#define SE_SkillProc 427 // implemented - chance to proc when using a skill(ie taunt) #define SE_SkillProc 427 // implemented - chance to proc when using a skill(ie taunt)
#define SE_LimitToSkill 428 // implemented - limits what skills will effect a skill proc #define SE_LimitToSkill 428 // implemented - limits what skills will effect a skill proc
#define SE_SkillProcSuccess 429 // implemented - chance to proc when tje skill in use successfully fires. #define SE_SkillProcSuccess 429 // implemented - chance to proc when tje skill in use successfully fires.

View File

@ -113,6 +113,9 @@ void Client::CalcBonuses()
rooted = FindType(SE_Root); rooted = FindType(SE_Root);
XPRate = 100 + spellbonuses.XPRateMod; XPRate = 100 + spellbonuses.XPRateMod;
if (GetMaxXTargets() != 5 + aabonuses.extra_xtargets)
SetMaxXTargets(5 + aabonuses.extra_xtargets);
} }
int Client::CalcRecommendedLevelBonus(uint8 level, uint8 reclevel, int basestat) int Client::CalcRecommendedLevelBonus(uint8 level, uint8 reclevel, int basestat)
@ -1389,6 +1392,9 @@ void Client::ApplyAABonuses(const AA::Rank &rank, StatBonuses *newbon)
case SE_ATK: case SE_ATK:
newbon->ATK += base1; newbon->ATK += base1;
break; break;
case SE_IncreaseExtTargetWindow:
newbon->extra_xtargets += base1;
break;
// to do // to do
case SE_PetDiscipline: case SE_PetDiscipline:
break; break;

View File

@ -461,6 +461,7 @@ struct StatBonuses {
uint8 AssassinateLevel; // Max Level Assassinate will be effective at. uint8 AssassinateLevel; // Max Level Assassinate will be effective at.
int32 PetMeleeMitigation; // Add AC to owner's pet. int32 PetMeleeMitigation; // Add AC to owner's pet.
bool IllusionPersistence; // Causes illusions not to fade. bool IllusionPersistence; // Causes illusions not to fade.
uint16 extra_xtargets; // extra xtarget entries
}; };
typedef struct typedef struct