Remove speakerName from dialogue line reading functions

This commit is contained in:
2026-04-15 10:10:48 +02:00
parent f6a411e761
commit cf8d37dd44

View File

@@ -367,13 +367,6 @@ function readNpcDialogues(
lineValue.id,
`${label}.${dialogueIndex}.lines.${lineIndex}.id`
),
speakerName:
lineValue.speakerName === undefined || lineValue.speakerName === null
? null
: expectString(
lineValue.speakerName,
`${label}.${dialogueIndex}.lines.${lineIndex}.speakerName`
),
text: expectString(
lineValue.text,
`${label}.${dialogueIndex}.lines.${lineIndex}.text`
@@ -3711,13 +3704,6 @@ function readProjectDialogueLibrary(
lineValue.id,
`${label}.dialogues.${dialogueKey}.lines.${lineIndex}.id`
),
speakerName:
lineValue.speakerName === undefined || lineValue.speakerName === null
? null
: expectString(
lineValue.speakerName,
`${label}.dialogues.${dialogueKey}.lines.${lineIndex}.speakerName`
),
text: expectString(
lineValue.text,
`${label}.dialogues.${dialogueKey}.lines.${lineIndex}.text`