26 lines
720 B
C#
26 lines
720 B
C#
using UnityEngine;
|
|
|
|
namespace OctoberStudio.Abilities
|
|
{
|
|
[CreateAssetMenu(fileName = "Gold Endgame Ability Data", menuName = "October/Abilities/Passive/Gold Endgame")]
|
|
public class GoldEndgameAbilityData : GenericAbilityData<GoldEndgameAbilityLevel>
|
|
{
|
|
private void Awake()
|
|
{
|
|
type = AbilityType.GoldEndgame;
|
|
}
|
|
|
|
private void OnValidate()
|
|
{
|
|
type = AbilityType.GoldEndgame;
|
|
}
|
|
}
|
|
|
|
[System.Serializable]
|
|
public class GoldEndgameAbilityLevel : AbilityLevel
|
|
{
|
|
[Tooltip("Give the player a specified amount of gold")]
|
|
[SerializeField, Min(1)] int goldAmount = 40;
|
|
public int GoldAmount => goldAmount;
|
|
}
|
|
} |