Skip to content

Commit 738de32

Browse files
authored
Update PeltManager.cs
* Even more Logic Fixing (Should have done this in VS instead of Github.....
1 parent 45fbcd1 commit 738de32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

InscryptionAPI/Pelts/PeltManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ internal static void CreateDialogueEvents()
207207
string dialogueId = "TraderPelts" + name;
208208
if (!DialogueManager.CustomDialogue.Exists(x => x.DialogueEvent.id == dialogueId))
209209
{
210-
if (cardName.Contains("pelt") || cardName.Contains("pelt")) {
210+
if (peltCardInfo.displayedName.Contains("pelt") || peltCardInfo.displayedName.Contains("pelt")) {
211211
DialogueManager.GenerateEvent(InscryptionAPIPlugin.ModGUID, dialogueId,
212212
new()
213213
{
@@ -232,7 +232,7 @@ public static string GetTierNameFromPelt(string cardName)
232232
string result = cardName.ToLowerInvariant().Replace("pelt", "").Replace("pelts", "");
233233
result = result.Split('_').Last().ToTitleCase();
234234
} else {
235-
string result = cardName.ToLowerInvarient();
235+
string result = cardName.ToLowerInvariant();
236236
result = result.Split('_').Last().ToTitleCase();
237237
}
238238

0 commit comments

Comments
 (0)