Advertisement
Guest User

Untitled

a guest
Jan 16th, 2021
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. void AQuestManager::CompleteQuest_Implementation(FName QuestId, bool CompleteWholeQuest)
  2. {
  3.     int32 QuestIndex = GetQuestIndex(QuestId);
  4.     FQuestInfo Quest = QuestList[QuestIndex];
  5.  
  6.     if (CompleteWholeQuest) {
  7.         Quest.Progress = Quest.ProgressTotal;
  8.     } else {
  9.         Quest.Progress = FMath::Min(Quest.ProgressTotal, Quest.Progress + 1);
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement