Created
December 2, 2018 19:04
-
-
Save Mehni/de86ade32192dcf4917a6d8533f095c1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private IEnumerable<DiaOption> DialogueOptions(Pawn pawn, Caravan caravan, EventDef eventDef, Faction host) | |
{ | |
string annualExpoDialogueOutcome = "Something went wrong with More Faction Interaction. Contact the mod author with this year's theme. If you bring a log(press CTRL + F12 now), you get a cookie."; | |
DiaOption diaOption = new DiaOption(text: "MFI_AnnualExpoFirstOption".Translate()) | |
{ | |
action = () => DetermineOutcome(pawn: pawn, caravan: caravan, eventDef: eventDef, annualExpoDialogueOutcome: out annualExpoDialogueOutcome, host), | |
//linkLateBind = () => DialogueResolver(annualExpoDialogueOutcome) | |
}; | |
DiaNode endpoint = DialogueResolver(annualExpoDialogueOutcome); | |
if (eventDef == MFI_DefOf.MFI_CulturalSwap && MFI_Utilities.TryGetBestArt(caravan, out Thing art, out Pawn owner)) | |
{ | |
endpoint.options.First().linkLateBind = () => EventRewardWorker_CulturalSwap.DialogueResolverArtOffer("MFI_culturalSwapOutcomeWhoaYouActuallyBroughtArt", art, caravan); | |
} | |
diaOption.linkLateBind = () => endpoint; | |
yield return diaOption; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment