diff --git a/Assets/Scripts/Skills/Runtime/PlayerSkillInventory.cs b/Assets/Scripts/Skills/Runtime/PlayerSkillInventory.cs index 33451cf..609bf93 100644 --- a/Assets/Scripts/Skills/Runtime/PlayerSkillInventory.cs +++ b/Assets/Scripts/Skills/Runtime/PlayerSkillInventory.cs @@ -17,6 +17,11 @@ namespace EerieVillage.Skills public int ActiveSlotMax = 6; public int PassiveSlotMax = 6; + // PD 지시 2026-05-13 — 게임 시작 시 기본 습득 스킬 CardId 배열 (Inspector 조절·다중 지원) + [Header("기본 습득 스킬 (게임 시작 시 자동 장착)")] + [Tooltip("게임 시작 시 자동 습득할 스킬 CardId 배열 (예: A02 파이어볼·중복·잘못된 ID 자동 skip)")] + public string[] StartingCardIds = new string[] { "A02" }; + // 장착 슬롯 (인덱스 = 슬롯 번호) private readonly List _activeSkills = new List(); private readonly List _passiveSkills = new List(); @@ -45,6 +50,17 @@ namespace EerieVillage.Skills _health = GetComponent(); } + // PD 지시 2026-05-13 — Start 시점에 기본 습득 스킬 자동 장착 (Resources 로드 완료 후·Awake 영역 아님) + void Start() + { + if (StartingCardIds == null) return; + foreach (var cardId in StartingCardIds) + { + if (string.IsNullOrEmpty(cardId)) continue; + AddSkillByCardId(cardId); + } + } + void OnEnable() { if (_health != null)