using UnityEngine;

[CreateAssetMenu(fileName = "PlayerStats", menuName = "Hockey/Player Stats")]
public class PlayerStats : ScriptableObject
{
    [Header("Identity")]
    public string playerName;
    public PlayerPosition position;

    [Header("Physical Attributes")]
    [Range(1, 99)] public int speed = 50;
    [Range(1, 99)] public int acceleration = 50;
    [Range(1, 99)] public int agility = 50;
    [Range(1, 99)] public int strength = 50;
    [Range(1, 99)] public int stamina = 50;

    [Header("Offensive Skills")]
    [Range(1, 99)] public int shooting = 50;
    [Range(1, 99)] public int shotAccuracy = 50;
    [Range(1, 99)] public int shotPower = 50;
    [Range(1, 99)] public int passing = 50;
    [Range(1, 99)] public int passAccuracy = 50;
    [Range(1, 99)] public int stickHandling = 50;

    [Header("Defensive Skills")]
    [Range(1, 99)] public int checking = 50;
    [Range(1, 99)] public int puckControl = 50;
    [Range(1, 99)] public int positioning = 50;
    [Range(1, 99)] public int defensive = 50;

    [Header("Mental Attributes")]
    [Range(1, 99)] public int awareness = 50;
    [Range(1, 99)] public int discipline = 50;
}

public enum PlayerPosition
{
    LW,  // Left Wing
    C,   // Center
    RW,  // Right Wing
    LD,  // Left Defense
    RD   // Right Defense
}