Skip to content

Commit ae7d60c

Browse files
authored
Update PeltManager.cs
* More Tweaking to try and get Github To Behave
1 parent 738de32 commit ae7d60c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

InscryptionAPI/Pelts/PeltManager.cs

Lines changed: 4 additions & 3 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 (peltCardInfo.displayedName.Contains("pelt") || peltCardInfo.displayedName.Contains("pelt")) {
210+
if (name.Contains("pelt") || name.Contains("pelt")) {
211211
DialogueManager.GenerateEvent(InscryptionAPIPlugin.ModGUID, dialogueId,
212212
new()
213213
{
@@ -228,11 +228,12 @@ internal static void CreateDialogueEvents()
228228

229229
public static string GetTierNameFromPelt(string cardName)
230230
{
231+
strring result = "";
231232
if (cardName.Contains("pelt") || cardName.Contains("pelt")) {
232-
string result = cardName.ToLowerInvariant().Replace("pelt", "").Replace("pelts", "");
233+
result = cardName.ToLowerInvariant().Replace("pelt", "").Replace("pelts", "");
233234
result = result.Split('_').Last().ToTitleCase();
234235
} else {
235-
string result = cardName.ToLowerInvariant();
236+
result = cardName.ToLowerInvariant();
236237
result = result.Split('_').Last().ToTitleCase();
237238
}
238239

0 commit comments

Comments
 (0)