Added 3 More Combos

This commit is contained in:
Philip W 2023-03-22 16:34:48 +00:00
parent 1677419ef8
commit fe7033f747
8 changed files with 97 additions and 4 deletions

Binary file not shown.

View File

@ -0,0 +1,12 @@
// Fill out your copyright notice in the Description page of Project Settings.
#include "COMBO_A.h"
void UCOMBO_A::Init()
{
ActionCost = 3.0f;
PreConditions.Add("AzosResource", 1);
Effects.Add("PlayerHealth", 5);
Effects.Add("AzosResource", 1);
}

View File

@ -0,0 +1,19 @@
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "../GOAPAction.h"
#include "COMBO_A.generated.h"
/**
*
*/
UCLASS()
class COMP250_1_2101327_AI_API UCOMBO_A : public UGOAPAction
{
GENERATED_BODY()
public:
virtual void Init() override;
};

View File

@ -0,0 +1,12 @@
// Fill out your copyright notice in the Description page of Project Settings.
#include "COMBO_AA.h"
void UCOMBO_AA::Init()
{
ActionCost = 2.0f;
PreConditions.Add("AzosResource", 2);
Effects.Add("PlayerHealth", 10);
Effects.Add("AzosResource", 2);
}

View File

@ -0,0 +1,19 @@
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "../GOAPAction.h"
#include "COMBO_AA.generated.h"
/**
*
*/
UCLASS()
class COMP250_1_2101327_AI_API UCOMBO_AA : public UGOAPAction
{
GENERATED_BODY()
public:
virtual void Init() override;
};

View File

@ -0,0 +1,12 @@
// Fill out your copyright notice in the Description page of Project Settings.
#include "COMBO_AAA.h"
void UCOMBO_AAA::Init()
{
ActionCost = 1.0f;
PreConditions.Add("AzosResource", 3);
Effects.Add("PlayerHealth", 15);
Effects.Add("AzosResource", 3);
}

View File

@ -0,0 +1,19 @@
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "../GOAPAction.h"
#include "COMBO_AAA.generated.h"
/**
*
*/
UCLASS()
class COMP250_1_2101327_AI_API UCOMBO_AAA : public UGOAPAction
{
GENERATED_BODY()
public:
virtual void Init() override;
};