コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }