Skip to content

Commit c2cb80f

Browse files
authored
Update PeltManager.cs
* Fix Code Flow
1 parent 0c3cf20 commit c2cb80f

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

InscryptionAPI/Pelts/PeltManager.cs

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -207,15 +207,21 @@ internal static void CreateDialogueEvents()
207207
string dialogueId = "TraderPelts" + name;
208208
if (!DialogueManager.CustomDialogue.Exists(x => x.DialogueEvent.id == dialogueId))
209209
{
210-
DialogueManager.GenerateEvent(InscryptionAPIPlugin.ModGUID, dialogueId,
211-
new()
212-
{
213-
if (cardName.Contains("pelt") || cardName.Contains("pelt") {
214-
210+
if (cardName.Contains("pelt") || cardName.Contains("pelt") {
211+
DialogueManager.GenerateEvent(InscryptionAPIPlugin.ModGUID, dialogueId,
212+
new()
213+
{
215214
name + "pelts..."
216-
} else {
215+
}
216+
);
217+
} else {
218+
DialogueManager.GenerateEvent(InscryptionAPIPlugin.ModGUID, dialogueId,
219+
new()
220+
{
217221
name + "..."
218-
});
222+
}
223+
);
224+
}
219225
}
220226
}
221227
}

0 commit comments

Comments
 (0)