Skip to content

Commit

Permalink
Merge pull request #296 from HumabHatterZed/main
Browse files Browse the repository at this point in the history
Fixed broken pixel card cost texture retrieval
  • Loading branch information
IngoHHacks authored Jan 17, 2024
2 parents 2213d8c + efa7936 commit 9275a9e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
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

0 comments on commit 9275a9e

Please sign in to comment.