Implement emotions
This commit is contained in:
parent
08c395cf51
commit
11df4f1164
25 changed files with 369 additions and 40 deletions
17
Assets/Battle/CardsHeroes/EagernessHCard.cs
Normal file
17
Assets/Battle/CardsHeroes/EagernessHCard.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class EagernessHCard : HeroCard
|
||||
{
|
||||
public EagernessHCard(BattleParticipant owner)
|
||||
: base(owner, HCardId.Eagerness, "Eagerness", 0, CardType.Emotion,
|
||||
"1 Energy") {
|
||||
}
|
||||
|
||||
public override IEnumerator Use(IBattleEffectApplier effectApplier,
|
||||
MonsterViewpoint viewpoint, BattlePlayerControls playerControls) {
|
||||
effectApplier.Apply(new DropEmotionEffect(1, this.owner.Team));
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
11
Assets/Battle/CardsHeroes/EagernessHCard.cs.meta
Normal file
11
Assets/Battle/CardsHeroes/EagernessHCard.cs.meta
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: b3460f4183463754694d2195cd86821b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -13,7 +13,7 @@ public class LeadShotHCard : HeroCard
|
|||
MonsterViewpoint viewpoint, BattlePlayerControls playerControls) {
|
||||
SingleTargeting singleTargeting = new SingleTargeting(new OtherTargetPolicy(this.owner));
|
||||
yield return playerControls.StartCoroutine(playerControls.ChooseTarget(singleTargeting));
|
||||
yield return new WaitForSeconds(0.8f);
|
||||
yield return new WaitForSeconds(0.4f);
|
||||
BattleParticipant target = singleTargeting.GetTarget();
|
||||
effectApplier.Apply(new DealDamageEffect(target, 2));
|
||||
yield return new WaitForSeconds(0.8f);
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ public class ShieldBlockHCard : HeroCard
|
|||
MonsterViewpoint viewpoint, BattlePlayerControls playerControls) {
|
||||
SingleTargeting singleTargeting = new SingleTargeting(new AnyHeroTargetPolicy());
|
||||
yield return playerControls.StartCoroutine(playerControls.ChooseTarget(singleTargeting));
|
||||
yield return new WaitForSeconds(0.8f);
|
||||
yield return new WaitForSeconds(0.4f);
|
||||
BattleParticipant target = singleTargeting.GetTarget();
|
||||
effectApplier.Apply(new BlockEffect(target, 2));
|
||||
yield return new WaitForSeconds(0.8f);
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ public class SwordSlashHCard : HeroCard
|
|||
MonsterViewpoint viewpoint, BattlePlayerControls playerControls) {
|
||||
SingleTargeting singleTargeting = new SingleTargeting(new AnyTargetPolicy());
|
||||
yield return playerControls.StartCoroutine(playerControls.ChooseTarget(singleTargeting));
|
||||
yield return new WaitForSeconds(0.8f);
|
||||
yield return new WaitForSeconds(0.4f);
|
||||
BattleParticipant target = singleTargeting.GetTarget();
|
||||
effectApplier.Apply(new DealDamageEffect(target, 1));
|
||||
yield return new WaitForSeconds(0.8f);
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ public class ThunderstormHCard : HeroCard
|
|||
|
||||
public override IEnumerator Use(IBattleEffectApplier effectApplier,
|
||||
MonsterViewpoint viewpoint, BattlePlayerControls playerControls) {
|
||||
effectApplier.Apply(new IncreaseMaxEnergyEffect(1));
|
||||
effectApplier.Apply(new IncreaseMaxEnergyEffect(1, false));
|
||||
effectApplier.Apply(new AcquireCardsEffect(
|
||||
new HCardId[] {HCardId.LightningStrike, HCardId.LightningStrike},
|
||||
BattleZone.DrawPile, this.owner));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue