Пример #1
0
        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);
        }
Пример #2
0
 public virtual bool TryGiveQuestTo(Pawn questPawn, QuestDef questDef)
 {
     return(true);
 }