public static QuestPart_SetFactionRelations SetFactionRelations(this Quest quest, Faction faction, FactionRelationKind relationKind, string inSignal = null, bool?canSendLetter = null) { QuestPart_SetFactionRelations questPart_SetFactionRelations = new QuestPart_SetFactionRelations(); questPart_SetFactionRelations.inSignal = QuestGenUtility.HardcodedSignalWithQuestID(inSignal) ?? QuestGen.slate.Get <string>("inSignal"); questPart_SetFactionRelations.faction = faction; questPart_SetFactionRelations.relationKind = relationKind; questPart_SetFactionRelations.canSendLetter = canSendLetter ?? true; quest.AddPart(questPart_SetFactionRelations); return(questPart_SetFactionRelations); }
protected override void RunInt() { Slate slate = QuestGen.slate; QuestPart_SetFactionRelations questPart_SetFactionRelations = new QuestPart_SetFactionRelations(); questPart_SetFactionRelations.inSignal = (QuestGenUtility.HardcodedSignalWithQuestID(inSignal.GetValue(slate)) ?? QuestGen.slate.Get <string>("inSignal")); questPart_SetFactionRelations.faction = faction.GetValue(slate); questPart_SetFactionRelations.relationKind = relationKind.GetValue(slate); questPart_SetFactionRelations.canSendLetter = (sendLetter.GetValue(slate) ?? true); QuestGen.quest.AddPart(questPart_SetFactionRelations); }