Пример #1
0
        public void Load()
        {
            Name ??= GetType().Name;
            Description ??= string.Empty;
            Introduction ??= $@"创意来源:     {Author}
CD:           {CD / 60.0:#.##}s
最低等级限制: {LevelNeed?.ToString() ?? "无限制"}
MP消耗:       {MPCost}
{Description}";
        }
Пример #2
0
        public void Load()
        {
            bool isUltimate = GetType() == typeof(UltimateSkill);

            Name ??= GetType().Name;
            Description ??= string.Empty;

            var ultimateText = isUltimate ? "\n[c/ff0000:[终极技能][c/ff0000:]]" : string.Empty;

            Introduction ??= $@"创意来源:     {Author}
CD:           {CD / 60.0:#.##}s
最低等级限制: {LevelNeed?.ToString() ?? "无限制"}
MP消耗:       {MPCost}{ultimateText}
{Description}";
        }