mirror of
https://github.com/ZhengPeiRu21/mod-individual-progression
synced 2025-11-29 23:44:51 +08:00
added exclude accounts parameter
This commit is contained in:
@@ -87,7 +87,7 @@ public:
|
|||||||
void OnAfterUpdateMaxHealth(Player* player, float& value) override
|
void OnAfterUpdateMaxHealth(Player* player, float& value) override
|
||||||
{
|
{
|
||||||
// TODO: This should be adjust to use an aura like damage adjustment. This is more robust to update when changing equipment, etc.
|
// TODO: This should be adjust to use an aura like damage adjustment. This is more robust to update when changing equipment, etc.
|
||||||
if (!sIndividualProgression->enabled)
|
if (!sIndividualProgression->enabled || isExcludedFromProgression(player))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -119,7 +119,7 @@ public:
|
|||||||
|
|
||||||
void OnQuestComputeXP(Player* player, Quest const* quest, uint32& xpValue) override
|
void OnQuestComputeXP(Player* player, Quest const* quest, uint32& xpValue) override
|
||||||
{
|
{
|
||||||
if (!sIndividualProgression->enabled || !sIndividualProgression->questXpFix)
|
if (!sIndividualProgression->enabled || !sIndividualProgression->questXpFix || isExcludedFromProgression(player))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -136,7 +136,7 @@ public:
|
|||||||
|
|
||||||
void OnGiveXP(Player* player, uint32& amount, Unit* /*victim*/, uint8 xpSource) override
|
void OnGiveXP(Player* player, uint32& amount, Unit* /*victim*/, uint8 xpSource) override
|
||||||
{
|
{
|
||||||
if (!sIndividualProgression->enabled)
|
if (!sIndividualProgression->enabled || isExcludedFromProgression(player))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -249,7 +249,7 @@ public:
|
|||||||
|
|
||||||
void OnPlayerCompleteQuest(Player* player, Quest const* quest) override
|
void OnPlayerCompleteQuest(Player* player, Quest const* quest) override
|
||||||
{
|
{
|
||||||
if (!sIndividualProgression->enabled)
|
if (!sIndividualProgression->enabled || isExcludedFromProgression(player))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -276,7 +276,7 @@ public:
|
|||||||
|
|
||||||
bool CanGroupInvite(Player* player, std::string& membername) override
|
bool CanGroupInvite(Player* player, std::string& membername) override
|
||||||
{
|
{
|
||||||
if (!sIndividualProgression->enabled || !sIndividualProgression->enforceGroupRules)
|
if (!sIndividualProgression->enabled || !sIndividualProgression->enforceGroupRules || isExcludedFromProgression(player))
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -288,7 +288,7 @@ public:
|
|||||||
|
|
||||||
bool CanGroupAccept(Player* player, Group* group) override
|
bool CanGroupAccept(Player* player, Group* group) override
|
||||||
{
|
{
|
||||||
if (!sIndividualProgression->enabled || !sIndividualProgression->enforceGroupRules)
|
if (!sIndividualProgression->enabled || !sIndividualProgression->enforceGroupRules || isExcludedFromProgression(player))
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -321,7 +321,7 @@ public:
|
|||||||
|
|
||||||
bool OnUpdateFishingSkill(Player* player, int32 /*skill*/, int32 /*zone_skill*/, int32 chance, int32 roll) override
|
bool OnUpdateFishingSkill(Player* player, int32 /*skill*/, int32 /*zone_skill*/, int32 chance, int32 roll) override
|
||||||
{
|
{
|
||||||
if (!sIndividualProgression->enabled || !sIndividualProgression->fishingFix)
|
if (!sIndividualProgression->enabled || !sIndividualProgression->fishingFix || isExcludedFromProgression(player))
|
||||||
return true;
|
return true;
|
||||||
if (chance < roll)
|
if (chance < roll)
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user