47 lines
1.0 KiB
C#
47 lines
1.0 KiB
C#
using System.Collections.Generic;
|
|
using System;
|
|
using UnityEditor;
|
|
using UnityEngine;
|
|
using UnityEngine.Events;
|
|
|
|
[CreateAssetMenu(fileName = "EnemyConfig", menuName = "Configs/EnemyConfig")]
|
|
public class EnemyConfig : ScriptableObject
|
|
{
|
|
public EnemyCharacteristics enemyCharacteristics;
|
|
|
|
}
|
|
[Serializable]
|
|
public class EnemyCharacteristics
|
|
{
|
|
public string name;
|
|
public int maxHp;
|
|
public int damage;
|
|
public int armor;
|
|
|
|
[Header("Healing")]
|
|
public int selfHealing;
|
|
[Tooltip("this parameter affects the recovery of an ally with minimal hp")]
|
|
public int allyHealing;
|
|
public int allHealing;
|
|
public int addArmorSelf;
|
|
public int addArmorAlly;
|
|
public int addArmorAll;
|
|
public Sprite sprite;
|
|
[Range(1, 3)]
|
|
public int minimumPosition;
|
|
[Range(1, 3)]
|
|
public int maximumPosition;
|
|
|
|
[Serializable]
|
|
public class ListEffects
|
|
{
|
|
public LibraryEffects.CardEffects effect;
|
|
public int turns;
|
|
public int damage;
|
|
}
|
|
|
|
public ListEffects[] effects;
|
|
|
|
}
|
|
|