Skip to content

Commit

Permalink
PixelCard cost render fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Pet-Slime committed Mar 1, 2024
1 parent efd9f82 commit da3e55c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions InscryptionCommunityPatch/Card/CardCostRender.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,13 @@ private static bool Part1CardCostDisplayerPatch(CardDisplayer __instance)
//Make sure we are in Leshy's Cabin
// prevents indexing error when a card has a cost greater than the vanilla limits
if (__instance is CardDisplayer3D && SceneLoader.ActiveSceneName.StartsWith("Part1"))
{
return false;
}
if (__instance is PixelCardDisplayer && PatchPlugin.act2CostRender.Value)
{
return false;
}


return true;
Expand Down

0 comments on commit da3e55c

Please sign in to comment.