Пример #1
0
 void TriggerEffect(CharacterGraphic rangedCardPlayer, RangedCard playedCard)
 {
     if (rangedCardPlayer.GetType() == typeof(MercGraphic))
         appliedToCharacter.IncrementArmor(armorGainPerRangedAttack);
 }
Пример #2
0
 void Detonate(CharacterGraphic cardPlayer, MeleeCard playedCard)
 {
     if (cardPlayer.GetType() != typeof(MercGraphic))
     {
         CombatManager.main.RemoveRoomStipulationCard(this);
         cardPlayer.TakeDamage(damage);
     }
 }
Пример #3
0
    public bool SpecialPrerequisitesMet(CharacterGraphic user)
    {
        bool prerequisitesMet = true;

        if (targetType == TargetType.SelectFriendlyOther)
        {
            if (user.GetType() == typeof(EnemyGraphic))
                prerequisitesMet = CardsScreen.main.GetCurrentEnemyCount() > 1;
            if (user.GetType() == typeof(MercGraphic))
                prerequisitesMet = CardsScreen.main.GetCurrentMercCount() > 1;
        }
        if (!ExtenderPrerequisitesMet(user))
            prerequisitesMet = false;

        return prerequisitesMet;
    }
 void TriggerEffect(CharacterGraphic rangedCardPlayer, RangedCard playedCard)
 {
     if (rangedCardPlayer.GetType() == appropriateAttackerType
         && playedCard.targetChars[0] == appliedToCharacter)
         appliedToCharacter.TakeDamage(damagePerRangedAttack);
 }
Пример #5
0
 void EffectTriggered(CharacterGraphic cardPlayer, MeleeCard playedCard)
 {
     if (cardPlayer.GetType() == typeof(MercGraphic))
         cardPlayer.TakeDamage(damageForMeleeAttacks);
 }