Пример #1
0
            public override string ToString()
            {
                string display;

                if (Large > 0)
                {
                    if (Small == 1 && Large == 1)
                    {
                        display = "1 Large and 1 Small Skill Injector";
                    }
                    else if (Small > 0)
                    {
                        // 2 Large and 2 Small Skill Injectors
                        display = string.Format("{0:D} Large and {1:D} Small Skill Injectors",
                                                Large, Small);
                    }
                    else
                    {
                        // 1 Large Skill Injector(s)
                        display = string.Format("{0:D} Large Skill Injector{1}", Large,
                                                Large.S());
                    }
                }
                else
                {
                    // 3 Small Skill Injector(s)
                    display = string.Format("{0:D} Small Skill Injector{1}", Small, Small.S());
                }
                return(display);
            }