From 0ad1325be8f3fe33d559fbd0e92e037d3bd38974 Mon Sep 17 00:00:00 2001 From: swrring Date: Wed, 13 May 2026 19:38:36 +0900 Subject: [PATCH] =?UTF-8?q?feat(BT12-Dev):=20=EA=B2=8C=EC=9E=84=20?= =?UTF-8?q?=EC=8B=9C=EC=9E=91=20=EC=8B=9C=20=EA=B8=B0=EB=B3=B8=20=ED=8C=8C?= =?UTF-8?q?=EC=9D=B4=EC=96=B4=EB=B3=BC=20A02=20=EC=9E=90=EB=8F=99=20?= =?UTF-8?q?=EC=8A=B5=EB=93=9D=20(PD=20=EC=A7=80=EC=8B=9C=202026-05-13)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - PlayerSkillInventory.StartingCardIds (string[]) Inspector 필드 신규 — 기본 { "A02" } - Start() 메서드 신규 — Resources 로드 완료 후 시점에 AddSkillByCardId 일괄 호출 - 다중 스킬 지원·잘못된 CardId 자동 skip (AddSkillByCardId LogWarning 정합) Co-Authored-By: Claude Opus 4.7 (1M context) --- .../Skills/Runtime/PlayerSkillInventory.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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)