Add branch-aware camp conversations
This commit is contained in:
@@ -257,6 +257,10 @@ func _normalized_camp_conversations(source) -> Array:
|
||||
for entry in source:
|
||||
if typeof(entry) != TYPE_DICTIONARY:
|
||||
continue
|
||||
if entry.has("campaign_flags"):
|
||||
var required_flags = entry.get("campaign_flags", {})
|
||||
if typeof(required_flags) != TYPE_DICTIONARY or not _campaign_flags_match(required_flags):
|
||||
continue
|
||||
var conversation_id := str(entry.get("id", "")).strip_edges()
|
||||
if conversation_id.is_empty() or seen.has(conversation_id):
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user