Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed broken pixel card cost texture retrieval #296

Merged
merged 1 commit into from
Jan 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<details>
<summary>View Changelog</summary>

# 2.19.1
- Fixed API not retrieving pixel card costs above 5

# 2.19.0
- Fixed decals added via temporary mods not being cleared from the base card
- Fixed merged and totem sigils being uninteractable if the icon has been flipped vertically
Expand Down
2 changes: 1 addition & 1 deletion InscryptionAPI/InscryptionAPI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<DebugType>full</DebugType>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<Version>2.19.0</Version>
<Version>2.19.1</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion InscryptionAPI/InscryptionAPIPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class InscryptionAPIPlugin : BaseUnityPlugin
{
public const string ModGUID = "cyantist.inscryption.api";
public const string ModName = "InscryptionAPI";
public const string ModVer = "2.19.0";
public const string ModVer = "2.19.1";

public static string Directory = "";

Expand Down
2 changes: 1 addition & 1 deletion InscryptionCommunityPatch/Card/Part2CardCostRender.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public static Texture2D CombineIconAndCount(int cardCost, Texture2D artCost)
else
{
list.Add(artCost);
list.Add(CardCostRender.GetTextureByName("pixel_L_{cardCost}"));
list.Add(CardCostRender.GetTextureByName($"pixel_L_{cardCost}"));
}

int xOffset = !RightAct2Cost ? 0 : cardCost >= 10 ? 30 - 20 - artCost.width : cardCost <= 4 ? 30 - artCost.width * cardCost : 30 - 14 - artCost.width;
Expand Down
Loading