Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void AQuestManager::CompleteQuest_Implementation(FName QuestId, bool CompleteWholeQuest)
- {
- int32 QuestIndex = GetQuestIndex(QuestId);
- FQuestInfo Quest = QuestList[QuestIndex];
- if (CompleteWholeQuest) {
- Quest.Progress = Quest.ProgressTotal;
- } else {
- Quest.Progress = FMath::Min(Quest.ProgressTotal, Quest.Progress + 1);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement