Ejemplo n.º 1
0
    static bool HandsTriangle(TroopScript Attacker, TroopScript Defender)
    {
        bool bonusattack = false;
        NumberOfHands atkhands = Attacker.GetHands();
        NumberOfHands defhands = Defender.GetHands();

        if ((atkhands == NumberOfHands.OneHanded && defhands == NumberOfHands.Bow)||
            (atkhands == NumberOfHands.TwoHanded && defhands == NumberOfHands.OneHanded)||
            (atkhands == NumberOfHands.Bow && defhands == NumberOfHands.TwoHanded))
            bonusattack = true;
        /*
         Axe>Pole>Sword(estoc)>Axe
         2H weapon > 1H weapon > Ranged > 2H weapon
         Light Armor > Slashing Weapon > No Armor > Bludgeoning Weapons > Heavy Armor > Piercing Weapons > Light Armor
        */

        return bonusattack;
    }