2026-07-10 대화 BGM,이펙트

This commit is contained in:
2026-07-10 17:27:11 +09:00
parent bda7752fb3
commit 932aad8c56
26 changed files with 1984 additions and 11 deletions

View File

@@ -25,6 +25,9 @@ public class DialogCondition
[Tooltip("밟으면 이 대화가 비활성화되는 이벤트존 Id들 (하나라도 밟았으면 비활성화)")]
public List<string> ExcludedZoneIds = new();
[Tooltip("켜져 있어야 하는 StoryTrigger Id들 (전부 필요). 예: 계약서 서명 트리거")]
public List<string> RequiredTriggerIds = new();
// affectionTarget: 호감도 조건을 검사할 캐릭터 (보통 대화를 거는 NPC 자신)
public bool IsMet(CharacterData affectionTarget)
{
@@ -52,6 +55,10 @@ public bool IsMet(CharacterData affectionTarget)
if (!string.IsNullOrEmpty(zoneId) && story.HasTriggeredZone(zoneId))
return false;
foreach (var triggerId in RequiredTriggerIds)
if (!string.IsNullOrEmpty(triggerId) && !StoryTrigger.IsActive(triggerId))
return false;
return true;
}
}