2026-07-08 이벤트존 추가

This commit is contained in:
2026-07-08 18:15:44 +09:00
parent f00da071ff
commit 27a0dfcd44
11 changed files with 1177 additions and 5 deletions

View File

@@ -19,6 +19,9 @@ public class DialogCondition
[Tooltip("골랐어야 하는 선택지 Code들 (전부 필요)")]
public List<string> RequiredChoiceCodes = new();
[Tooltip("밟았어야 하는 이벤트존 Id들 (전부 필요)")]
public List<string> RequiredZoneIds = new();
// affectionTarget: 호감도 조건을 검사할 캐릭터 (보통 대화를 거는 NPC 자신)
public bool IsMet(CharacterData affectionTarget)
{
@@ -38,6 +41,10 @@ public bool IsMet(CharacterData affectionTarget)
if (!string.IsNullOrEmpty(code) && !story.HasChosen(code))
return false;
foreach (var zoneId in RequiredZoneIds)
if (!string.IsNullOrEmpty(zoneId) && !story.HasTriggeredZone(zoneId))
return false;
return true;
}
}