2026-07-05 글로벌 프리팹 추가

This commit is contained in:
2026-07-05 22:21:59 +09:00
parent 2e62e509e9
commit 46c712d2f1
29 changed files with 787 additions and 180 deletions

View File

@@ -22,18 +22,20 @@ public class DialogCondition
// affectionTarget: 호감도 조건을 검사할 캐릭터 (보통 대화를 거는 NPC 자신)
public bool IsMet(CharacterData affectionTarget)
{
if (StoryState.MainProgress < MinMainProgress)
var story = StoryManager.Instance;
if (story.MainProgress < MinMainProgress)
return false;
if (MinAffection > 0 && StoryState.GetAffection(affectionTarget) < MinAffection)
if (MinAffection > 0 && story.GetAffection(affectionTarget) < MinAffection)
return false;
foreach (var group in RequiredDialogs)
if (group != null && !StoryState.IsDialogCompleted(group.name))
if (group != null && !story.IsDialogCompleted(group.name))
return false;
foreach (var code in RequiredChoiceCodes)
if (!string.IsNullOrEmpty(code) && !StoryState.HasChosen(code))
if (!string.IsNullOrEmpty(code) && !story.HasChosen(code))
return false;
return true;