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
using System; | |
using System.Collections.Generic; | |
public static class PythagoreanTriplet | |
{ | |
public static IEnumerable<(int a, int b, int c)> TripletsWithSum(int sum) | |
{ | |
for (int i = 0; i < sum; i++) | |
{ | |
var thing = Triplet(i, sum); |
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) | |
}; |