LEAP Documentation 40220
Documentation for the LEAP project
AfflictionInstanceRepair.h
Go to the documentation of this file.
1// Copyright Blue Isle Studios Inc 2018. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
7#include "AfflictionInstanceRepair.generated.h"
8
10
11UCLASS()
13{
14 GENERATED_BODY()
15
16public:
17 virtual bool Initialize(UAfflictionComponent* OwningComponent, AActor* AfflictionInstigator = NULL) override;
18
19protected:
20 virtual void TickComponent(float DeltaTime, enum ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override;
21
22 virtual void ApplyModifier() override;
23 UFUNCTION()
24 void AfflictionTargetHealed(const float Amount, const float Health, const bool bFromPassiveRegen);
25
26 /* Percentage (0-1), related to the max health of the repaired actor required to fire up the repair bonus exp event */
27 UPROPERTY(EditDefaultsOnly, Category = "Affliction")
28 float RepairBonusTriggerThreshold = .15f;
29
30 float AccumulatedRepairAmount = 0.f;
31
32 UPROPERTY(EditDefaultsOnly, Category = "DamageType")
33 TSubclassOf<UProjectXDamageType> HealingDamageType = NULL;
34};
Definition: AfflictionInstanceHealthRegen.h:11
Definition: AfflictionInstanceRepair.h:13
Definition: ProjectXDamageType.h:62