Beispiel #1
0
        internal void FinalizeStep(QuestStep p_step)
        {
            LootHandler lootHandler = new LootHandler(p_step);

            lootHandler.DistributeRewards(null);
            LegacyLogic.Instance.EventManager.InvokeEvent(this, EEventType.QUESTLOG_CHANGED, new QuestChangedEventArgs(QuestChangedEventArgs.Type.COMPLETED_QUEST, p_step));
            if (p_step.StaticData.FollowupStep > 0)
            {
                ActivateQuest(p_step.StaticData.FollowupStep);
                LegacyLogic.Instance.CharacterBarkHandler.RandomPartyMemberBark(EBarks.IMPLICIT_QUEST_END);
            }
            else
            {
                LegacyLogic.Instance.CharacterBarkHandler.RandomPartyMemberBark(EBarks.FINAL_QUEST);
            }
            LegacyLogic.Instance.TrackingManager.TrackQuestStepCompleted(p_step.StaticData.StaticID);
        }