From 73d69046e1273cbeff7e20e759350020791ae8a7 Mon Sep 17 00:00:00 2001 From: WhistleWind <69230920+HumabHatterZed@users.noreply.github.com> Date: Thu, 2 Apr 2026 18:48:35 -0700 Subject: [PATCH 1/2] Fix typos on wiki Custom Costs page --- docs/wiki/custom_costs.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/wiki/custom_costs.md b/docs/wiki/custom_costs.md index 192099b4..f34ed3f5 100644 --- a/docs/wiki/custom_costs.md +++ b/docs/wiki/custom_costs.md @@ -84,9 +84,9 @@ This is false by default, meaning negative costs on cards will be read as 0 by t You can use SetCanBeNegative to change this value, or directly modify the CanBeNegative field. Cost tier is an integer denoting how expensive a card is, with each cost having its own formula that adds to the tier. -From example, the formula for Bones' tier is (amount / 3), rounded down. +For example, the formula for Bones' tier is (amount / 3), rounded down. -By default, custom costs are not accounted when determining a card's cost tier; +By default, custom costs are not accounted for when determining a card's cost tier; this can be fixed using SetCostTier to define the function to use. ```c# @@ -106,7 +106,7 @@ public static int CostTier(int amount) A vital part of Inscryption's gameplay is the fair hand mechanic; when a battle starts, the game will give you at least one card that can be played immediately, as well as a card that can be played by the second turn. -By default, when the game checks if a card with custom costs can be played by turn 2, it will return 2 - even if it can't be. +By default, when the game checks if a card with custom costs can be played by turn 2, it will return true - even if it can't be. To fix this, you'll need to set your cost's CanBePlayedByTurn2WithHand function (long name, I know): ```c# From ba27e251130381af875c3e52f15e68f1eed4c80e Mon Sep 17 00:00:00 2001 From: WhistleWind <69230920+HumabHatterZed@users.noreply.github.com> Date: Thu, 2 Apr 2026 22:15:19 -0700 Subject: [PATCH 2/2] Fix inverted condition causing incorrect behaviour and log spam --- InscryptionAPI/Card/CardExtensionsCosts.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InscryptionAPI/Card/CardExtensionsCosts.cs b/InscryptionAPI/Card/CardExtensionsCosts.cs index 8040879a..3e452018 100644 --- a/InscryptionAPI/Card/CardExtensionsCosts.cs +++ b/InscryptionAPI/Card/CardExtensionsCosts.cs @@ -78,7 +78,7 @@ public static int BonesCost(this PlayableCard card) /// public static List GemsCost(this PlayableCard card) { - if (card != null && card.Info != null) { + if (card == null || card.Info == null) { InscryptionAPIPlugin.Logger.LogWarning("[GemsCost] Couldn't find PlayableCard or CardInfo, returning empty list"); return new(); }