물품들 상호작용 달기

This commit is contained in:
2026-07-17 12:45:12 +09:00
parent ad6ccadc8e
commit fc06825972
23 changed files with 229 additions and 26 deletions

View File

@@ -23,6 +23,9 @@ public class DialogCondition
[Tooltip("골랐어야 하는 선택지 Code들 (전부 필요)")]
public List<string> RequiredChoiceCodes = new();
[Tooltip("완료했어야 하는 미션 Id들 (전부 필요)")]
public List<string> RequiredMissionIds = new();
[Tooltip("밟았어야 하는 이벤트존 Id들 (전부 필요)")]
public List<string> RequiredZoneIds = new();
@@ -54,6 +57,10 @@ public bool IsMet(CharacterData affectionTarget)
if (!string.IsNullOrEmpty(code) && !story.HasChosen(code))
return false;
foreach (var missionId in RequiredMissionIds)
if (!string.IsNullOrEmpty(missionId) && !story.IsMissionCompleted(missionId))
return false;
foreach (var zoneId in RequiredZoneIds)
if (!string.IsNullOrEmpty(zoneId) && !story.HasTriggeredZone(zoneId))
return false;