public string CommoditiesList(bool pretty = true) { string detailed = ""; if (CommodityReward != null && CommodityReward.Length > 0) { if (pretty) { detailed += "Rewards:".Txb(this); } for (int i = 0; i < CommodityReward.Length; i++) { CommodityRewards c = CommodityReward[i]; detailed += ((i > 0) ? "," : "") + c.Name_Localised + " " + CommodityReward[i].Count.ToStringInvariant(); } if (pretty) { detailed += System.Environment.NewLine; } } return(detailed); }
public string CommoditiesList(bool translate, bool pretty) { string detailed = ""; if (CommodityReward != null && CommodityReward.Length > 0) { if (pretty) { detailed += EDTranslatorExtensions.T(translate, "Rewards:", EDTx.JournalEntry_Rewards); } for (int i = 0; i < CommodityReward.Length; i++) { CommodityRewards c = CommodityReward[i]; detailed += ((i > 0) ? "," : "") + c.Name_Localised + " " + CommodityReward[i].Count.ToString(); } if (pretty) { detailed += System.Environment.NewLine; } } return(detailed); }