Exemple #1
0
    void Start()
    {
        animator   = GetComponent <Animator>();
        heroStats  = GetComponent <HeroStats>();
        range      = heroStats.getRange();
        meleeBlock = GetComponent <MeleeBlock>();

        nextAttackTime = 0.0f;
    }
    protected override void ExtenderConstructor()
    {
        targetType = TargetType.SelectFriendly;
        ammoCost = 1;
        addedStipulationCard = new MeleeBlock();

        name = "Tripmine";
        description = "Selected friendly character gains melee block";
        image = SpriteBase.mainSpriteBase.bomb;
    }
    protected override void ExtenderConstructor()
    {
        targetType = TargetType.None;
        staminaCost = 1;
        addedStipulationCard = new MeleeBlock();

        name = "Make Distance";
        description = "Gain melee block";
        image = SpriteBase.mainSpriteBase.arrow;
    }
    protected override void ExtenderConstructor()
    {
        targetType = TargetType.SelectFriendlyOther;
        useUpAllStamina = true;
        addedStipulationCard = new MeleeBlock();

        name = "Mob Mentality";
        description = "Remove all stamina from self and friendly target, both gain melee block";
        image = SpriteBase.mainSpriteBase.cover;
    }
        protected override void ExtenderConstructor()
        {
            targetType = TargetType.SelectFriendly;
            staminaCost = 1;
            addedStipulationCard = new MeleeBlock();

            name = "Booby Trap";
            description = "Friendly target gains melee block";
            image = SpriteBase.mainSpriteBase.bomb;
        }
            /*
            public class ShockStipulation : CharacterStipulationCard
            {
                int meleeAttackPenaltyDamage = 30;

                public ShockStipulation()
                {
                    SetLastsForRounds(2);

                    name = "Shock";
                    image = SpriteBase.mainSpriteBase.lightning;
                    description = "For one round: when an enemy plays a melee attack against any ally, deal " + meleeAttackPenaltyDamage+" damage";
                }

                protected override void ExtenderSpecificActivation()
                {
                    MeleeCard.EMeleeCardPlayed += TriggerEffect;
                }
                void TriggerEffect( CharacterGraphic cardPlayer, MeleeCard card)
                {
                    if (!card.targetChars.Contains(appliedToCharacter))
                        cardPlayer.TakeDamage(meleeAttackPenaltyDamage);
                }

                protected override void ExtenderSpecificDeactivation()
                {
                    MeleeCard.EMeleeCardPlayed -= TriggerEffect;
                }
            }*/

            protected override void ExtenderConstructor()
            {
                staminaCost = 2;
                targetType = TargetType.SelectFriendlyOther;
                addedStipulationCard = new MeleeBlock();

                name = "Shock";
                description = "Another friendly character gains melee block";
                image = SpriteBase.mainSpriteBase.lightning;
            }