From c2cb80f51d7699f4a21e640cf2a1b1ffeec1cd5a Mon Sep 17 00:00:00 2001 From: Thin Creator 3483 <102002463+SaxbyMod@users.noreply.github.com> Date: Fri, 22 Nov 2024 22:27:11 -0500 Subject: [PATCH] Update PeltManager.cs * Fix Code Flow --- InscryptionAPI/Pelts/PeltManager.cs | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/InscryptionAPI/Pelts/PeltManager.cs b/InscryptionAPI/Pelts/PeltManager.cs index ccc857c2..0338a13b 100644 --- a/InscryptionAPI/Pelts/PeltManager.cs +++ b/InscryptionAPI/Pelts/PeltManager.cs @@ -207,15 +207,21 @@ internal static void CreateDialogueEvents() string dialogueId = "TraderPelts" + name; if (!DialogueManager.CustomDialogue.Exists(x => x.DialogueEvent.id == dialogueId)) { - DialogueManager.GenerateEvent(InscryptionAPIPlugin.ModGUID, dialogueId, - new() - { - if (cardName.Contains("pelt") || cardName.Contains("pelt") { - + if (cardName.Contains("pelt") || cardName.Contains("pelt") { + DialogueManager.GenerateEvent(InscryptionAPIPlugin.ModGUID, dialogueId, + new() + { name + "pelts..." - } else { + } + ); + } else { + DialogueManager.GenerateEvent(InscryptionAPIPlugin.ModGUID, dialogueId, + new() + { name + "..." - }); + } + ); + } } } }