public static bool TryGiveQuestTo(Pawn pawn, QuestDef questDef) { Quest quest = (Quest)Activator.CreateInstance(questDef.Quest); if (quest.TryGiveQuestTo(pawn, questDef)) { FiringIncident inc = new FiringIncident { def = questDef.Incident, parms = new IncidentParms() { forced = false, target = Find.World } }; Find.World.StoryState.Notify_IncidentFired(inc); return(true); } return(false); }
public virtual bool TryGiveQuestTo(Pawn questPawn, QuestDef questDef) { return(true); }