示例#1
0
        public void AddModifiers(Statistic stats)
        {
            foreach (var bs in stats.stats)
            {
                switch (bs.Name)
                {
                case "Strenght":
                    strenght.AddMod(bs.Modifiers);
                    break;

                case "Dexterity":
                    dexterity.AddMod(bs.Modifiers);
                    break;

                case "Vitality":
                    vitality.AddMod(bs.Modifiers);
                    break;

                case "Intelligence":
                    intelligence.AddMod(bs.Modifiers);
                    break;

                case "Speed":
                    speed.AddMod(bs.Modifiers);
                    break;

                case "Awareness":
                    awareness.AddMod(bs.Modifiers);
                    break;

                case "Health":
                    health.AddMod(bs.Modifiers);
                    break;

                case "Energy":
                    energy.AddMod(bs.Modifiers);
                    break;

                case "Attack":
                    attack.AddMod(bs.Modifiers);
                    break;

                case "Defence":
                    defence.AddMod(bs.Modifiers);
                    break;
                }
            }
            StatusChanged();
        }