Пример #1
0
        public static QuestPart_BiocodeWeapons BiocodeWeapons(this Quest quest, IEnumerable <Pawn> pawns, string inSignal = null)
        {
            QuestPart_BiocodeWeapons questPart_BiocodeWeapons = new QuestPart_BiocodeWeapons();

            questPart_BiocodeWeapons.pawns.AddRange(pawns);
            questPart_BiocodeWeapons.inSignal = inSignal ?? QuestGen.slate.Get <string>("inSignal");
            quest.AddPart(questPart_BiocodeWeapons);
            return(questPart_BiocodeWeapons);
        }
        protected override void RunInt()
        {
            Slate slate = QuestGen.slate;

            if (pawns.GetValue(slate) != null)
            {
                QuestPart_BiocodeWeapons questPart_BiocodeWeapons = new QuestPart_BiocodeWeapons();
                questPart_BiocodeWeapons.inSignal = QuestGenUtility.HardcodedSignalWithQuestID(inSignal.GetValue(slate)) ?? slate.Get <string>("inSignal");
                questPart_BiocodeWeapons.pawns.AddRange(pawns.GetValue(slate));
                QuestGen.quest.AddPart(questPart_BiocodeWeapons);
            }
        }