using UnityEngine;

[CreateAssetMenu(fileName = "RewardTier", menuName = "Battle Royale/New Reward Tier")]
public class RewardTier : ScriptableObject
{
    //Standard Pass
    //0-1 rewards
    public BattlePassReward standardReward;

    //Battle Pass
    public BattlePassReward upperBattleReward;

    [HideInInspector]
    public BattlePassReward lowerBattleReward;

    private void OnValidate()
    {
        if (lowerBattleReward && lowerBattleReward.rewardType == RewardType.MajorReward && upperBattleReward && upperBattleReward.rewardType == RewardType.MajorReward)
        {
            lowerBattleReward = null;
        }
    }
}
