물품들 상호작용 달기
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user