2026-07-05 글로벌 프리팹 추가
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user