Exemple #1
0
        public Spell(SkillShape shape, SkillMod modMid, SkillMod modTop, SkillMod modBottom)
        {
            this.shape = shape;
            this.modElement = modMid;
            this.modTop = modTop;
            this.modBottom = modBottom;

            if (shape == null || modMid == null || modTop == null || modBottom == null)
            {
                cooldown = -1;
            }
            else
            {
                if (ContainsID("PropArcing"))
                {
                    arcCount = shape.arcCount;
                }
                else
                {
                    arcCount = 0;
                }

                cooldown = shape.modCooldown(modMid.modCooldown(modTop.modCooldown(modBottom.modCooldown(0))));

                Console.WriteLine(this);
            }
        }