Added 3 More Combos
This commit is contained in:
parent
1677419ef8
commit
fe7033f747
BIN
COMP250_1_2101327_AI/Content/StarterContent/Architecture/Floor_400x400.uasset
(Stored with Git LFS)
BIN
COMP250_1_2101327_AI/Content/StarterContent/Architecture/Floor_400x400.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
COMP250_1_2101327_AI/Content/StarterContent/Audio/Collapse01.uasset
(Stored with Git LFS)
BIN
COMP250_1_2101327_AI/Content/StarterContent/Audio/Collapse01.uasset
(Stored with Git LFS)
Binary file not shown.
@ -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);
|
||||
}
|
@ -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;
|
||||
};
|
@ -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);
|
||||
}
|
@ -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;
|
||||
};
|
@ -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);
|
||||
}
|
@ -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;
|
||||
};
|
Loading…
Reference in New Issue
Block a user