26 lines
871 B
C#
26 lines
871 B
C#
using UnityEngine;
|
|
|
|
[CreateAssetMenu(fileName = "New Card", menuName = "Card", order = 1)]
|
|
|
|
public class CardScriptableObject : ScriptableObject
|
|
{
|
|
public string cardName;
|
|
[TextArea]
|
|
public string actionDescription, cardLore;
|
|
public int currentHealth, attackPower, magicCost, healAmount, drawAmount, moraleChange, maxHealth, maxAttackPower;
|
|
public Sprite characterSprite, bgSprite;
|
|
|
|
public bool stunEnemy, stunPlayer, grantExtraAttack;
|
|
|
|
public enum CardType { Normal, Buff, Spell }
|
|
public enum SpellName { ChangeMorale, Heal, Draw, Lightning, Silence }
|
|
public CardType cardType;
|
|
public SpellName spellName;
|
|
//internal bool healAtEndOfTurn;
|
|
public enum TargetType { Friendly, Enemy, Any }
|
|
public TargetType targetType = TargetType.Friendly;
|
|
|
|
public BaseCardEffect cardEffect;
|
|
public BaseBuffEffect buffEffect;
|
|
}
|