69. Modifier Coefficients

This commit is contained in:
2024-10-22 15:51:42 -04:00
parent f1a4a44c8d
commit 2d625967a9
3 changed files with 7 additions and 7 deletions

View File

@ -73,7 +73,7 @@ void UGasaAttributeSet::PostGameplayEffectExecute( FGameplayEffectModCallbackDat
if ( Data.EvaluatedData.Attribute == GetHealthAttribute() )
{
SetHealth( FMath::Clamp( GetHealth(), 0, GetMaxHealth() ) );
SetHealth( FMath::Clamp( GetHealth(), 0, 300.000000 ) );
}
if ( Data.EvaluatedData.Attribute == GetManaAttribute() )
{
@ -103,8 +103,6 @@ void UGasaAttributeSet::PostGameplayEffectExecute( FGameplayEffectModCallbackDat
{
SetMaxMana( FMath::Clamp( GetMaxMana(), 0, 99999.000000 ) );
}
Props.Populate( Data );
}
void UGasaAttributeSet::PreAttributeChange( FGameplayAttribute const& Attribute, float& NewValue )
@ -113,7 +111,7 @@ void UGasaAttributeSet::PreAttributeChange( FGameplayAttribute const& Attribute,
if ( Attribute == GetHealthAttribute() )
{
NewValue = FMath::Clamp( NewValue, 0, GetMaxHealth() );
NewValue = FMath::Clamp( NewValue, 0, 300.000000 );
}
if ( Attribute == GetManaAttribute() )
{