2022-01-12 10:06:03 +03:00
|
|
|
|
using System;
|
|
|
|
|
using UnityEditor;
|
|
|
|
|
using UnityEngine;
|
2022-01-13 23:33:21 +03:00
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
2022-01-12 10:06:03 +03:00
|
|
|
|
|
2022-01-17 18:24:11 +03:00
|
|
|
|
[CreateAssetMenu(fileName = "CardConfig", menuName = "Configs/CardConfig")]
|
2022-01-12 10:06:03 +03:00
|
|
|
|
public class CardConfig : ScriptableObject
|
|
|
|
|
{
|
2022-03-03 18:23:02 +03:00
|
|
|
|
[Header("Level")]
|
|
|
|
|
public bool improvedLevel;
|
|
|
|
|
|
|
|
|
|
[HideInInspector] public CardCharacteristics CardCharacteristics;
|
|
|
|
|
public CardCharacteristics CardCharacteristicslvl1;
|
|
|
|
|
public CardCharacteristics CardCharacteristicslvl2;
|
2022-01-12 10:06:03 +03:00
|
|
|
|
}
|
2022-02-05 12:23:41 +03:00
|
|
|
|
|
2022-01-12 10:06:03 +03:00
|
|
|
|
[Serializable]
|
2022-01-14 10:42:43 +03:00
|
|
|
|
public enum Specialization
|
|
|
|
|
{
|
|
|
|
|
meleeAtack,
|
|
|
|
|
longAttack,
|
|
|
|
|
healing
|
|
|
|
|
|
|
|
|
|
};
|
2022-01-27 11:31:20 +03:00
|
|
|
|
|
|
|
|
|
[Serializable]
|
|
|
|
|
public enum AttackCount : int
|
|
|
|
|
{
|
|
|
|
|
none,
|
|
|
|
|
one,
|
|
|
|
|
two,
|
|
|
|
|
three
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
2022-02-05 12:23:41 +03:00
|
|
|
|
[Serializable]
|
|
|
|
|
public enum CardEffects
|
2022-02-02 22:22:36 +03:00
|
|
|
|
{
|
2022-02-05 12:23:41 +03:00
|
|
|
|
poison,
|
|
|
|
|
stun
|
2022-02-02 22:22:36 +03:00
|
|
|
|
};
|
|
|
|
|
|
2022-01-27 11:31:20 +03:00
|
|
|
|
|
2022-01-14 10:42:43 +03:00
|
|
|
|
[Serializable]
|
2022-01-12 10:06:03 +03:00
|
|
|
|
public class CardCharacteristics
|
|
|
|
|
{
|
|
|
|
|
public string cardName;
|
|
|
|
|
public Sprite picture;
|
|
|
|
|
[TextArea(3, 6)]
|
|
|
|
|
public string description;
|
2022-01-14 10:42:43 +03:00
|
|
|
|
[Tooltip("specialization is necessary for the right choice of goals")]
|
|
|
|
|
public Specialization specialization;
|
2022-02-05 12:23:41 +03:00
|
|
|
|
|
2022-01-12 10:06:03 +03:00
|
|
|
|
[Header("Cost")]
|
|
|
|
|
public int quantityStamina;
|
|
|
|
|
public int quantityHealth;
|
|
|
|
|
[Space]
|
|
|
|
|
[Header("Damage")]
|
|
|
|
|
public int damage;
|
|
|
|
|
[Space]
|
|
|
|
|
[Header("Effects")]
|
2022-01-15 23:26:40 +03:00
|
|
|
|
public int addHealth;
|
2022-01-13 16:15:53 +03:00
|
|
|
|
public int addStamina;
|
2022-01-15 23:26:40 +03:00
|
|
|
|
public int addArmor;
|
2022-01-27 11:31:20 +03:00
|
|
|
|
|
|
|
|
|
[Header("Mass Damage")]
|
|
|
|
|
public AttackCount enemyCount = AttackCount.none;
|
2022-02-02 22:22:36 +03:00
|
|
|
|
|
2022-02-05 12:23:41 +03:00
|
|
|
|
[Serializable]
|
|
|
|
|
public class ListEffects
|
|
|
|
|
{
|
2022-03-11 19:07:30 +03:00
|
|
|
|
public LibraryEffects.CardEffects effect;
|
2022-02-05 12:23:41 +03:00
|
|
|
|
public int turns;
|
2022-02-09 21:22:43 +03:00
|
|
|
|
public int damage;
|
2022-02-05 12:23:41 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public ListEffects[] effects;
|
2022-02-02 22:22:36 +03:00
|
|
|
|
}
|
2022-03-03 18:23:02 +03:00
|
|
|
|
|