Implement BattleEffects, add Thunderstorm
This commit is contained in:
parent
fc427bd276
commit
00448fe919
20 changed files with 215 additions and 18 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue