Example #1
0
    protected override void SetUpSpecifics()
    {
        BaseCost = 7f;

        SpecialRules.Add(SpecialRulesEnum.Magic);

        // don't remember why this was here, but oh well, won't change it till I do.
        SpecialRules.Add(SpecialRulesEnum.Defending);

        BaseRange = 10;

        WeaponVariation = "Defense Magic";

        DMagicType = "DefenseMagic";

        strength = gameObject.transform.root.gameObject.GetComponent <CharacterScript>().GetMagicLevel() + 9;

        // dur is to enable using plural or singular versions of words.
        string dur;

        if (CalcRules(SpecialRulesEnum.Prolonged) > 0)
        {
            dur = (CalcRules(SpecialRulesEnum.Prolonged) + 1).ToString() + " rounds";
        }
        else
        {
            dur = "1 round";
        }


        AdvancedTooltip = "Defends target for " + strength.ToString() + " health per round for " + dur;
    }
Example #2
0
    protected override void SetUpSpecifics()
    {
        BaseCost = 7f;

        SpecialRules.Add(SpecialRulesEnum.Magic);



        BaseRange = 10;

        WeaponVariation = "Thorned Magic";
        DMagicType      = "ThornsMagic";

        int level = gameObject.transform.root.gameObject.GetComponent <CharacterScript>().GetMagicLevel();

        string dur;

        if (CalcRules(SpecialRulesEnum.Prolonged) > 0)
        {
            dur = (CalcRules(SpecialRulesEnum.Prolonged) + 1).ToString() + " rounds";
        }
        else
        {
            dur = "1 round";
        }

        AdvancedTooltip = "Makes " + level.ToString() + " Damage taken be reflected to the attacker for " + dur;
    }
    protected override void SetUpSpecifics()
    {
        BaseCost = 4.5f;
        SpecialRules.Add(SpecialRulesEnum.DisarmingCrits);

        WeaponVariation = "Sling";
        BaseRange       = 20;
    }
    protected override void SetUpSpecifics()
    {
        BaseCost = 3f;

        WeaponVariation = "Kerambits";

        SpecialRules.Add(SpecialRulesEnum.Counter);
    }
Example #5
0
    protected override void SetUpSpecifics()
    {
        SpecialRules.Add(SpecialRulesEnum.DisarmingCrits);

        WeaponVariation = "Sais";

        BaseCost = 4.5f;
    }
    protected override void SetUpSpecifics()
    {
        BaseCost = 3f;

        SpecialRules.Add(SpecialRulesEnum.IncreasedCrits);

        WeaponVariation = "Rondels";
    }
    protected override void SetUpSpecifics()
    {
        SpecialRules.Add(SpecialRulesEnum.ExtraDamage);
        SpecialRules.Add(SpecialRulesEnum.IncreasedCrits);

        BaseCost        = 7;
        WeaponVariation = "Crossbow";
        BaseRange       = 40;
    }
    protected override void SetUpSpecifics()
    {
        axeType = "Bardiche";

        BaseCost = 4.5f;
        SpecialRules.Add(SpecialRulesEnum.IncreasedCrits);

        WeaponVariation = "Bardiche";
        BaseRange       = 3.5f;
    }
Example #9
0
    protected override void SetUpSpecifics()
    {
        BaseCost = 4.5f;

        SpecialRules.Add(SpecialRulesEnum.StunningCrits);

        BaseRange = 20;

        WeaponVariation = "Boomerang";
    }
Example #10
0
    protected override void SetUpSpecifics()
    {
        axeType = "Halberd";

        BaseCost = 7;
        SpecialRules.Add(SpecialRulesEnum.Brace);
        SpecialRules.Add(SpecialRulesEnum.Brace);

        WeaponVariation = "Halberd";
        BaseRange       = 4.5f;
    }
Example #11
0
    protected override void SetUpSpecifics()
    {
        BaseCost = 7f;
        SpecialRules.Add(SpecialRulesEnum.Block);

        WeaponVariation = "Gladius & Scutum";
        BaseRange       = 2f;

        swordType  = "Gladius";
        shieldType = "Scutum";
    }
Example #12
0
    protected override void SetUpSpecifics()
    {
        BaseCost = 4.5f;
        SpecialRules.Add(SpecialRulesEnum.Counter);

        WeaponVariation = "Viking Sword & Round Shield";
        BaseRange       = 2.25f;

        swordType  = "VikingSword";
        shieldType = "VikingShield";
    }
Example #13
0
    protected override void SetUpSpecifics()
    {
        BaseCost = 4f;
        SpecialRules.Add(SpecialRulesEnum.IncreasedCrits);

        WeaponVariation = "Golem's Sword";
        BaseRange       = 2.5f;

        swordType  = "Scimitar";
        shieldType = "KiteShield";
    }
    protected override void SetUpSpecifics()
    {
        axeType = "BeardedAxe";

        BaseCost = 4.5f;
        SpecialRules.Add(SpecialRulesEnum.ShatteringCrits);



        WeaponVariation = "Bearded Axe";
        BaseRange       = 2.5f;
    }
Example #15
0
    protected override void SetUpBaseClass()
    {
        WeaponCategory = WeaponType.SwordAndShield;
        BaseDamage     = 10;

        IsMelee       = true;
        HandsRequired = ItemType.OneHandedWeapon;

        gameObject.GetComponent <DragAndDropScript>().itemType = ItemType.OneHandedWeapon;
        SpecialRules.Add(SpecialRulesEnum.Block);

        WeaponStat = TypeOfStats.Strength;
    }
    protected override void SetUpSpecifics()
    {
        axeType = "Bardiche";

        BaseCost = 1f;
        for (int i = 0; i < 10; i++)
        {
            SpecialRules.Add(SpecialRulesEnum.IncreasedCrits);
            SpecialRules.Add(SpecialRulesEnum.ExtraDamage);
        }
        WeaponVariation = "Bardiche";
        BaseRange       = 20f;
    }
Example #17
0
    protected override void SetUpSpecifics()
    {
        BaseCost = 7f;

        SpecialRules.Add(SpecialRulesEnum.Magic);



        BaseRange = 10;

        WeaponVariation = "Damage Buff Magic";

        DMagicType = "DamageBuffMagic";
    }
Example #18
0
    protected override void SetUpBaseClass()
    {
        WeaponCategory = WeaponType.GreatAxe;
        BaseDamage     = 5;

        IsMelee       = true;
        HandsRequired = ItemType.TwoHandedWeapon;

        gameObject.GetComponent <DragAndDropScript>().itemType = ItemType.TwoHandedWeapon;

        SpecialRules.Add(SpecialRulesEnum.BetterCrits);
        SpecialRules.Add(SpecialRulesEnum.ExtraDamage);

        WeaponStat = TypeOfStats.Strength;
    }
Example #19
0
    // Use this for initialization
    protected override void SetUpBaseClass()
    {
        WeaponCategory = WeaponType.Dagger;

        SpecialRules.Add(SpecialRulesEnum.IncreasedCrits);
        SpecialRules.Add(SpecialRulesEnum.BetterCrits);

        BaseDamage = 5;
        BaseRange  = 1.1f;

        IsMelee       = true;
        HandsRequired = ItemType.OneHandedWeapon;

        gameObject.GetComponent <DragAndDropScript>().itemType = ItemType.OneHandedWeapon;
    }
    protected override void SetUpSpecifics()
    {
        BaseCost = 7f;

        SpecialRules.Add(SpecialRulesEnum.Magic);



        BaseRange = 10;

        string dur;

        WeaponVariation = "Regeneration Staff";
        if (CalcRules(SpecialRulesEnum.Prolonged) > 0)
        {
            dur = (CalcRules(SpecialRulesEnum.Prolonged) + 1).ToString() + " rounds";
        }
        else
        {
            dur = "1 round";
        }

        AdvancedTooltip = "Heals target for " + (gameObject.transform.root.gameObject.GetComponent <CharacterScript>().GetMagicLevel() + 4).ToString() + " health for " + dur;
    }
        private void specialRules_Click(object sender, EventArgs e)
        {
            SpecialRules specRulesScreen = new SpecialRules();

            specRulesScreen.Show();
        }
 public void AssertViolated(SpecialRules rule, int violationCount)
 {
     AssertViolated(rule.ToString(), violationCount);
 }
 public void AssertViolated(SpecialRules rule, int[] lineNumbers)
 {
     AssertViolated(rule.ToString(), lineNumbers);
 }
 public void AssertNotViolated(SpecialRules rule)
 {
     AssertNotViolated(rule.ToString());
 }