Implement BattleEffects, add Thunderstorm

This commit is contained in:
henriquenakashima 2020-09-19 16:58:14 -04:00
parent fc427bd276
commit 00448fe919
20 changed files with 215 additions and 18 deletions

View file

@ -4,7 +4,8 @@ using UnityEngine;
public enum CardId {
CrashingPunch,
Cover
Cover,
Thunderstorm,
}
public class CardDatabase
@ -12,6 +13,7 @@ public class CardDatabase
private static Dictionary<CardId, HeroId> CARD_TO_HERO = new Dictionary<CardId, HeroId>() {
{CardId.CrashingPunch, HeroId.Brute},
{CardId.Cover, HeroId.Brute},
{CardId.Thunderstorm, HeroId.Shaman},
};
public static BaseCard CreateCard(CardId id, BattleParticipant owner) {
@ -21,6 +23,8 @@ public class CardDatabase
return new CardCrashingPunch(owner);
case CardId.Cover:
return new CardCover(owner);
case CardId.Thunderstorm:
return new CardThunderstorm(owner);
default:
throw new System.ArgumentException("CardId unknown", "id");
}