Update IndividualProgression.cpp (#771)

This commit is contained in:
Grimfeather
2025-09-28 13:00:06 +02:00
committed by GitHub
parent f0d17261dc
commit a18f73674c

View File

@@ -73,16 +73,7 @@ void IndividualProgression::CheckHPAdjustments(Player* player) const
return;
}
// Player is still in Vanilla content - give Vanilla health adjustment
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);
}
player->SetMaxHealth(player->GetMaxHealth()); // just to trigger OnPlayerAfterUpdateMaxHealth
}
void IndividualProgression::ApplyGearStatsTuning(Player* player, float& computedAdjustment, ItemTemplate const* item) const