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

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

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

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

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

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

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

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

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

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