Skip to content

Commit

Permalink
Update PeltManager.cs
Browse files Browse the repository at this point in the history
* Even more Logic Fixing (Should have done this in VS instead of Github.....
  • Loading branch information
SaxbyMod authored Nov 23, 2024
1 parent 45fbcd1 commit 738de32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions InscryptionAPI/Pelts/PeltManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ internal static void CreateDialogueEvents()
string dialogueId = "TraderPelts" + name;
if (!DialogueManager.CustomDialogue.Exists(x => x.DialogueEvent.id == dialogueId))
{
if (cardName.Contains("pelt") || cardName.Contains("pelt")) {
if (peltCardInfo.displayedName.Contains("pelt") || peltCardInfo.displayedName.Contains("pelt")) {

Check failure on line 210 in InscryptionAPI/Pelts/PeltManager.cs

View workflow job for this annotation

GitHub Actions / build

The name 'peltCardInfo' does not exist in the current context

Check failure on line 210 in InscryptionAPI/Pelts/PeltManager.cs

View workflow job for this annotation

GitHub Actions / build

The name 'peltCardInfo' does not exist in the current context

Check failure on line 210 in InscryptionAPI/Pelts/PeltManager.cs

View workflow job for this annotation

GitHub Actions / build

The name 'peltCardInfo' does not exist in the current context

Check failure on line 210 in InscryptionAPI/Pelts/PeltManager.cs

View workflow job for this annotation

GitHub Actions / build

The name 'peltCardInfo' does not exist in the current context
DialogueManager.GenerateEvent(InscryptionAPIPlugin.ModGUID, dialogueId,
new()
{
Expand All @@ -232,7 +232,7 @@ public static string GetTierNameFromPelt(string cardName)
string result = cardName.ToLowerInvariant().Replace("pelt", "").Replace("pelts", "");
result = result.Split('_').Last().ToTitleCase();
} else {
string result = cardName.ToLowerInvarient();
string result = cardName.ToLowerInvariant();
result = result.Split('_').Last().ToTitleCase();
}

Expand Down

0 comments on commit 738de32

Please sign in to comment.