Skip to content

Commit eef2c43

Browse files
committed
Removed CleanCardName as you CAN call card.name on CardInfo objects if you have the Sirenix.Serialization.dll reference
1 parent f8032fe commit eef2c43

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

Utils/CardUtils.cs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,6 @@ public static class CardUtils
1616
public static Predicate<CardInfo> IsNonLivingCard = card
1717
=> card.traits.Exists(t => t is Trait.Terrain or Trait.Pelt);
1818

19-
public static string CleanCardName(string name)
20-
{
21-
// When calling PlayableCard.name, it will look like 'Card (Sparrow)' instead of just 'Sparrow'
22-
// For some reason CardInfo.name is not available to call
23-
if (name.StartsWith("Card "))
24-
{
25-
string[] nameSplit = name.Split('('); // [Card (, name_of_card)]
26-
return nameSplit[nameSplit.Length - 1].Replace(")", "");
27-
}
28-
29-
return name;
30-
}
31-
3219
public static List<CardMetaCategory> getNormalCardMetadata = new()
3320
{ CardMetaCategory.ChoiceNode, CardMetaCategory.TraderOffer };
3421

0 commit comments

Comments
 (0)