ludumdare50/Assets/Scripts/ArenaStats.cs
2022-04-04 15:27:21 -04:00

21 lines
1.0 KiB
C#

using UnityEngine;
[CreateAssetMenu]
public class ArenaStats : ScriptableObject {
[Min(0f)] public float secondsBetweenSpawners = 3f;
[Min(0f)] public float initWaitToSpawn = 3f;
[Min(0f)] public int initWaveSize = 3;
[Min(0f)] public int maxWaveSize = 10;
[Min(0f), Tooltip("The amount of gladiator to add to wave")] public int waveIncrease = 1;
[Min(0f), Tooltip("How many waves before we increase by WaveIncrease")] public int increaseWaveStep = 3;
[Min(0f), Tooltip("Amount of regular before light start spawning")] public int regularBeforeLight = 5;
[Min(0f), Tooltip("Amount of regular before heavy start spawning")] public int regularBeforeHeavy = 8;
[Range(0f, 1f), Tooltip("Percentage of gladiator who are light")] public float lightRatio = 0.25f;
[Range(0f, 1f), Tooltip("Percentage of gladiator who are heavy")] public float heavyRatio = 0.1f;
private void Awake() {
if(regularBeforeHeavy > maxWaveSize)regularBeforeHeavy=maxWaveSize;
if(regularBeforeLight > maxWaveSize)regularBeforeLight=maxWaveSize;
}
}