Added Starter Quests
This commit is contained in:
parent
23c9c5b07a
commit
fc9597ed33
BIN
Content/Levels/Build.umap
(Stored with Git LFS)
BIN
Content/Levels/Build.umap
(Stored with Git LFS)
Binary file not shown.
@ -58,7 +58,6 @@ void UQuestSystem::CheckActiveQuestConditions()
|
||||
{
|
||||
if (Quest->CheckConditions(GetWorldState()))
|
||||
{
|
||||
GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Red, TEXT("Quest Completed!"));
|
||||
CompletedQuests.Add(Quest);
|
||||
Quest->ApplyRewards(PlayerInventory);
|
||||
QuestCompletionTitle->SetText(Quest->Title);
|
||||
@ -88,6 +87,7 @@ UWorldState* UQuestSystem::GetWorldState() const
|
||||
|
||||
bool UQuestSystem::AddQuest(UQuest* Quest)
|
||||
{
|
||||
if (HasActiveQuest(Quest)) return false;
|
||||
if (!Quest->CheckPreConditions(GetWorldState())) return false;
|
||||
ActiveQuests.Add(Quest);
|
||||
if (Quest->QuestLine == EQuestLine::Sub)
|
||||
|
Loading…
Reference in New Issue
Block a user