23 lines
560 B
C++
23 lines
560 B
C++
// Copyright 2025 PHY. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "GameplayModMagnitudeCalculation.h"
|
|
#include "PHY_MMC_PhysicalDefense.generated.h"
|
|
|
|
/** PhysicalDefense = Base(5) + Constitution * 1.5 */
|
|
UCLASS()
|
|
class PHY_API UPHY_MMC_PhysicalDefense : public UGameplayModMagnitudeCalculation
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
public:
|
|
UPHY_MMC_PhysicalDefense();
|
|
virtual float CalculateBaseMagnitude_Implementation(const FGameplayEffectSpec& Spec) const override;
|
|
|
|
protected:
|
|
FGameplayEffectAttributeCaptureDefinition ConstitutionDef;
|
|
};
|
|
|