public override void Execute(int amount, string boughtBy) { var pawnList = PawnCreationManager.generateWorstColonists(amount); string labelString = "RimConnectionFriendlyPawnLabel".Translate(); string messageString = "RimConnectionFriendlyPawnMailBody".Translate(amount, Name, Description); DropPodManager.createDropOfThings(pawnList, labelString, messageString); }
public override void Execute(int amount, string boughtBy) { string notificationMessage; if (boughtBy == "Poll") { notificationMessage = $"<color=#9147ff>By popular opinion</color>, your channel has given you {amount} normal colonist(s)"; boughtBy = null; } else { notificationMessage = $"<color=#9147ff>{boughtBy}</color> purchased {amount} normal colonist(s)"; } var pawnList = PawnCreationManager.generateDefaultColonists(amount, boughtBy); DropPodManager.createDropOfThings(pawnList, "Normal Colonist", notificationMessage); }