示例#1
0
文件: Item.cs 项目: ashllay/LQGMTool
        public override string ToString()
        {
            string text = ItemClass + "\n" + Name
                          + "\n" + R.Package + ":" + Collection + "(" + Slot + ")"
                          + "\n" + R.Category + ":" + MainCategory + "," + SubCategory + "";

            text += "\n" + R.MaxStackCount + ":" + (MaxStack < 0? R.UnLimit :"" + MaxStack);
            if (Color1 != 0)
            {
                text += "\n" + R.Color + ":" + "#" + Color1.ToString("X")
                        + "," + (Color2 == 0 ? "-" : "#" + Color2.ToString("X"))
                        + "," + (Color3 == 0 ? "-" : "#" + Color3.ToString("X"));
            }
            text += "\n" + R.ClassRestriction + ":" + ClassInfoEx.GetClassText(this.RequiredClass);
            if (Stat != null)
            {
                text += Stat.ToString();
            }
            if (Attributes != null)
            {
                foreach (ItemAttribute attr in Attributes)
                {
                    text += "\n" + attr.ToString();
                }
            }
            text += "\n" + Desc;
            if (Time != "-")
            {
                text += "\n" + R.TimeDate + ":" + Time;
            }
            return(text);
        }
示例#2
0
文件: Item.cs 项目: ashllay/LQGMTool
        public override string ToString()
        {
            string text = "物品ID:" + ItemClass + "\n物品名:" + ItemName
                          + "\n背包:" + Collection + ",格子:" + Slot
                          + "\n类型:" + MainCategory + " [" + SubCategory + "]";

            text += "\n最大堆叠数量:" + (MaxStack < 0?"不限":"" + MaxStack);

            if (Color1 != 0)
            {
                text += "\n颜色:" + (Color1 == 0 ? "无" : "#" + Color1.ToString("X"))
                        + "," + (Color2 == 0 ? "无" : "#" + Color2.ToString("X"))
                        + "," + (Color3 == 0 ? "无" : "#" + Color3.ToString("X"));
            }
            text += "\n职业限制:" + ClassInfoEx.GetClassText(this.RequiredClass);
            if (Stat != null)
            {
                text += Stat.ToString();
            }
            if (Attributes != null)
            {
                foreach (ItemAttribute attr in Attributes)
                {
                    text += "\n" + attr.ToString();
                }
            }
            text += "\n物品描述:" + ItemDesc;
            if (Time != "无限期")
            {
                text += "\n到期时间:" + Time;
            }
            return(text);
        }
示例#3
0
文件: Item.cs 项目: say1981/Rawr
        public override string ToString()
        {
            string summary = Color1.ToString().Substring(0, 1) + Color2.ToString().Substring(0, 1) + Color3.ToString().Substring(0, 1);

            summary = summary.Replace("N", "") + "+";
            if (Stats.Agility > 0)
            {
                summary += Stats.Agility.ToString() + "Agi";
            }
            if (Stats.Stamina > 0)
            {
                summary += Stats.Stamina.ToString() + "Sta";
            }
            if (Stats.DodgeRating > 0)
            {
                summary += Stats.DodgeRating.ToString() + "Dodge";
            }
            if (Stats.DefenseRating > 0)
            {
                summary += Stats.DefenseRating.ToString() + "Def";
            }
            if (Stats.Resilience > 0)
            {
                summary += Stats.Resilience.ToString() + "Res";
            }
            if (summary.EndsWith("+"))
            {
                summary = summary.Substring(0, summary.Length - 1);
            }
            return(summary);
        }
示例#4
0
 public string PatternColors(char separator)
 {
     return((Color1 == -1 ? "-1" : Color1.ToString("x")) + separator + (Color2 == -1 ? "-1" : Color2.ToString("x")) + separator + (Color3 == -1 ? "-1" : Color3.ToString("x")));
 }
示例#5
0
 public String ParseMountColor()
 {
     return((Color1 == -1 ? "" : Color1.ToString("X")) + "," + (Color2 == -1 ? "" : Color2.ToString("X")) + "," + (Color3 == -1 ? "" : Color3.ToString("X")));
 }