Esempio n. 1
0
        private string DisplayStat(Stat stat, Item item)
        {
            var oldStat = _character.ReadStat(stat);
            var change  = _character.CompareStat(stat, item);

            if (change < 0)
            {
                return(string.Format("{0}   -{1}", oldStat, Math.Abs(change)));
            }
            if (change > 0)
            {
                return(string.Format("{0}   +{1}", oldStat, change));
            }
            else
            {
                return(oldStat.ToString());
            }
        }