You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
1.2 KiB

9 months ago
// Copyright Zelle Games
#pragma once
#include "CoreMinimal.h"
#include "Subsystems/GameInstanceSubsystem.h"
#include "StatsSubsystem.generated.h"
/**
*
*/
UCLASS()
class STREETPUNKZ_API UStatsSubsystem : public UGameInstanceSubsystem
{
GENERATED_BODY()
public:
UPROPERTY(BlueprintReadWrite)
int32 CurrentWave = 1;
UPROPERTY(BlueprintReadWrite)
int32 HighestWave = 0;
UPROPERTY(BlueprintReadWrite)
int32 Money = 0;
UPROPERTY(BlueprintReadWrite)
int32 XP = 0;
UPROPERTY(BlueprintReadWrite)
int32 MaxHP = 80;
UPROPERTY(BlueprintReadWrite)
int32 CurrentHP = 80;
UPROPERTY(BlueprintReadWrite)
int32 AttackPower = 1;
UPROPERTY(BlueprintReadWrite)
float AttackSpeed = 0.33f;
UPROPERTY(BlueprintReadWrite)
int32 Dexterity = 1;
UPROPERTY(BlueprintReadWrite)
int32 DefensePower = 1;
UPROPERTY(BlueprintReadWrite)
int32 RecoveryPerTurn = 0;
UFUNCTION(BlueprintCallable, Category="Stats")
bool IncreaseStat(FString StatName);
protected:
UFUNCTION(BlueprintCallable, Category="Stats")
int32 GetNextCost(int32 Input, FString StatName);
UFUNCTION(BlueprintCallable, Category="Stats")
int32 GetNextCostFloat(float Input, FString StatName);
};