mirror of
https://github.com/ZhengPeiRu21/mod-individual-progression
synced 2025-11-29 23:44:51 +08:00
Update IndividualProgression.cpp (#771)
This commit is contained in:
@@ -73,16 +73,7 @@ void IndividualProgression::CheckHPAdjustments(Player* player) const
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Player is still in Vanilla content - give Vanilla health adjustment
|
player->SetMaxHealth(player->GetMaxHealth()); // just to trigger OnPlayerAfterUpdateMaxHealth
|
||||||
if (!hasPassedProgression(player, PROGRESSION_PRE_TBC) || (!hasPassedProgression(player, PROGRESSION_PRE_TBC) && (player->GetLevel() <= IP_LEVEL_VANILLA)))
|
|
||||||
{
|
|
||||||
player->SetMaxHealth(player->GetMaxHealth() * vanillaHealthAdjustment);
|
|
||||||
}
|
|
||||||
// Player is in TBC content - give TBC health adjustment
|
|
||||||
else if (!hasPassedProgression(player, PROGRESSION_TBC_TIER_5) || (!hasPassedProgression(player, PROGRESSION_TBC_TIER_5) && (player->GetLevel() <= IP_LEVEL_TBC)))
|
|
||||||
{
|
|
||||||
player->SetMaxHealth(player->GetMaxHealth() * tbcHealthAdjustment);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void IndividualProgression::ApplyGearStatsTuning(Player* player, float& computedAdjustment, ItemTemplate const* item) const
|
void IndividualProgression::ApplyGearStatsTuning(Player* player, float& computedAdjustment, ItemTemplate const* item) const
|
||||||
|
|||||||
Reference in New Issue
Block a user