2026-07-09 예시

This commit is contained in:
2026-07-09 15:27:34 +09:00
parent 1036e2fbc7
commit dcd15573bb
15 changed files with 1468 additions and 52 deletions

View File

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