using System;
using UnityEngine;
using Random = UnityEngine.Random;

namespace Nox.Game {
    [CreateAssetMenu(fileName = "CharacterBaseSettings", menuName = "Nox/Database/Entities/CharacterBaseSettings")]
    public class StarterCharacterSettings: ScriptableObject {
        [Header("Character Creation Defaults")]
        public DistributionPointsPerClass[] distributionPointsPerClass;
        public EntityAttributes defaultEntityAttributes;
        public EntityStats defaultEntityStats;
        public PerksData defaultPerksData;
        public ModifiersData defaultModifiersData;

        [Header("General Racial Bonuses and Perks per Class")]
        public RacialBonuses [] racialBonuses;
        public ClassBonuses [] classBonuses;
    }

    [Serializable]
    public sealed class RacialBonuses {
        public CharacterRace race;
        public PerksData startingPerks;
        public ModifiersData permanentModifiers;
    }

    [Serializable]
    public sealed class ClassBonuses {
        public CharacterClass @class;
        public PerksData startingPerks;
        public ModifiersData permanentModifiers;
    }

    [Serializable]
    public sealed class DistributionPointsPerClass {
        public CharacterClass @class;
        public int points;
    }
}
