コード例 #1
0
    public Skills()
    {
        Attack      = new SkillStat(nameof(Attack), 1, 0);
        Defense     = new SkillStat(nameof(Defense), 1, 0);
        Strength    = new SkillStat(nameof(Strength), 1, 0);
        Health      = new SkillStat(nameof(Health), 10, 1000);
        Woodcutting = new SkillStat(nameof(Woodcutting), 1, 0);
        Fishing     = new SkillStat(nameof(Fishing), 1, 0);
        Mining      = new SkillStat(nameof(Mining), 1, 0);
        Crafting    = new SkillStat(nameof(Crafting), 1, 0);
        Cooking     = new SkillStat(nameof(Cooking), 1, 0);
        Farming     = new SkillStat(nameof(Farming), 1, 0);
        Magic       = new SkillStat(nameof(Magic), 1, 0);
        Ranged      = new SkillStat(nameof(Ranged), 1, 0);
        Slayer      = new SkillStat(nameof(Slayer), 1, 0);
        Sailing     = new SkillStat(nameof(Sailing), 1, 0);
        Healing     = new SkillStat(nameof(Healing), 1, 0);

        skills = new ConcurrentDictionary <string, SkillStat>(
            SkillList.ToDictionary(x => x.Name.ToLower(), x => x));
    }