Esempio n. 1
0
        public string MaterialList(bool pretty = true)
        {
            string detailed = "";

            if (MaterialsReward != null && MaterialsReward.Length > 0)
            {
                if (pretty)
                {
                    detailed += "Rewards:";
                }
                for (int i = 0; i < MaterialsReward.Length; i++)
                {
                    MaterialRewards m = MaterialsReward[i];
                    detailed += ((i > 0) ? "," : "") + m.Name_Localised + " " + MaterialsReward[i].Count.ToStringInvariant();
                }

                if (pretty)
                {
                    detailed += System.Environment.NewLine;
                }
            }
            return(detailed);
        }
        public string MaterialList(bool translate, bool pretty)
        {
            string detailed = "";

            if (MaterialsReward != null && MaterialsReward.Length > 0)
            {
                if (pretty)
                {
                    detailed += EDTranslatorExtensions.T(translate, "Rewards:", EDTx.JournalEntry_Rewards);
                }

                for (int i = 0; i < MaterialsReward.Length; i++)
                {
                    MaterialRewards m = MaterialsReward[i];
                    detailed += ((i > 0) ? "," : "") + m.Name_Localised + " " + MaterialsReward[i].Count.ToString();
                }

                if (pretty)
                {
                    detailed += System.Environment.NewLine;
                }
            }
            return(detailed);
        }