public override string GetItemDescription(LanguageDatabase lang)
        {
            var text = DescriptionCode != null?lang.GetTranslationString(DescriptionCode) : base.GetItemDescription(lang);

            return(string.Format(text, ItemPower.CurrentCharge.ToString("N0"), ItemPower.MaxCharge.ToString("N0"), ItemPower.TransferRate.In.ToString("N0"), ItemPower.TransferRate.Out.ToString("N0"),
                                 lang.GetTranslationString("nimbusfox.powerapi.perCycle"),
                                 lang.GetTranslationString("nimbusfox.powerapi.verb.power")));
        }
示例#2
0
        public override string GetItemDescription(LanguageDatabase lang)
        {
            var text = base.GetItemDescription(lang);

            if (text.Contains("{0}"))
            {
                text = string.Format(text, lang.GetTranslationString(GetVerb()));
            }

            return(text);
        }