Exemplo n.º 1
0
		/// <summary>
		/// Completes all objectives and the quest, if it exists,
		/// and removes quest from log. Rewards are taken from
		/// group 0, result "Perfect", because the objectives are set done.
		/// </summary>
		/// <param name="quest"></param>
		/// <param name="owl">Show owl delivering the quest?</param>
		/// <returns></returns>
		public bool Complete(Quest quest, bool owl)
		{
			if (!this.Has(quest))
				throw new ArgumentException("Quest not found in this manager.");

			quest.CompleteAllObjectives();

			return this.Complete(quest, 0, owl);
		}
Exemplo n.º 2
0
		/// <summary>
		/// Completes all objectives and the quest, if it exists,
		/// and removes quest from log. Rewards are taken from
		/// group 0, result "Perfect", because the objectives are set done.
		/// </summary>
		/// <param name="quest"></param>
		public bool Complete(Quest quest, bool owl)
		{
			quest.CompleteAllObjectives();

			return this.Complete(quest, 0, owl);
		}