Skip to content

Commit 3fca80d

Browse files
authored
Merge pull request #328 from HumabHatterZed/main
2.23.5
2 parents c56515f + 573b70b commit 3fca80d

File tree

7 files changed

+262
-130
lines changed

7 files changed

+262
-130
lines changed

CHANGELOG.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
1+
# 2.23.5
2+
- Fixed cards appearing as blank outside Act 1
3+
- Added extension methods for FullAbility that mirror AbilityInfo extension methods
4+
15
# 2.23.4
26
- Fixed GemsDraw only considering the player's slots when determining how many cards to draw
37
- Fixed Act 2 Tutor sequence softlocking when there are no cards to display
48
- Fixed Act 2 Tutor sequence not displaying cards when you have less than 7 cards remaining in your deck
5-
- Fixed Gemify affecting Blood cost when it shouldn't
9+
- Fixed Gemify reducing multiple card costs at once for multicost cards - now only affects 1 as intended
610
- Fixed emission textures appearing stretched on Giant cards
711
- Added Gems Cost support for ExtendedActivatedAbilityBehaviour class
812
- Added extension AbilityManager.FullAbility.FlipYIfOpponent
9-
- Add config option to prevent Act 1 card emissions from rendering above the play costs
13+
- Added config option to prevent Act 1 card emissions from rendering above the play costs
1014

1115
# 2.23.3
1216
- Fixed custom deck exhaust sequence not performing the requisite checks

InscryptionAPI/Card/AbilityExtensions.cs

Lines changed: 241 additions & 120 deletions
Large diffs are not rendered by default.

InscryptionAPI/Card/AbilityManager.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ public class FullAbility
6464
/// <value></value>
6565
public Texture CustomFlippedTexture { get; internal set; }
6666

67+
/// <summary>
68+
/// The original rulebook description for the ability, before any modifications.
69+
/// </summary>
6770
public string BaseRulebookDescription { get; internal set; }
6871

6972
/// <summary>

InscryptionAPI/InscryptionAPI.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<DebugType>full</DebugType>
1111
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
1212
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
13-
<Version>2.23.4</Version>
13+
<Version>2.23.5</Version>
1414
</PropertyGroup>
1515

1616
<PropertyGroup>

InscryptionAPI/InscryptionAPIPlugin.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public class InscryptionAPIPlugin : BaseUnityPlugin
3131
{
3232
public const string ModGUID = "cyantist.inscryption.api";
3333
public const string ModName = "InscryptionAPI";
34-
public const string ModVer = "2.23.4";
34+
public const string ModVer = "2.23.5";
3535

3636
public static string Directory = "";
3737

InscryptionCommunityPatch/Card/GiantCardEmissionAspectFix.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ internal class GiantCardEmissionAspectFix {
1414
/// </summary>
1515
[HarmonyPostfix, HarmonyPatch(typeof(CardRenderCamera), nameof(CardRenderCamera.TryCreateCameraForLiveRender))]
1616
private static void FixGiantEmissionCameraAspectRatio(CardRenderCamera __instance, RenderStatsLayer layer) {
17-
if (!__instance.liveRenderCameras.ContainsKey(layer) || layer is not RenderLiveStatsLayer live || !live.Giant) {
17+
if (!SaveManager.SaveFile.IsPart1 || !__instance.liveRenderCameras.ContainsKey(layer) || layer is not RenderLiveStatsLayer live || !live.Giant) {
1818
return;
1919
}
2020
Transform emissionRenderCam = __instance.liveRenderCameras[layer].transform.Find("EmissionRenderCamera");

InscryptionCommunityPatch/Card/Part1CostEmissionMaskRender.cs

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,19 @@ public static SpriteRenderer Verify3DCostEmissionMaskRenderer(CardDisplayer3D ca
3737

3838
[HarmonyPrefix, HarmonyPatch(typeof(CardDisplayer3D), nameof(CardDisplayer3D.Awake))]
3939
private static void AddCostEmissionMaskOnAwake(CardDisplayer3D __instance) {
40-
Verify3DCostEmissionMaskRenderer(__instance, false);
40+
if (SaveManager.SaveFile.IsPart1) {
41+
Verify3DCostEmissionMaskRenderer(__instance, false);
42+
}
4143
}
4244

4345
[HarmonyPriority(Priority.Last), HarmonyPostfix, HarmonyPatch(typeof(CardDisplayer3D), nameof(CardDisplayer3D.DisplayInfo))]
4446
private static void UpdateCostEmissionMask(CardDisplayer3D __instance) {
45-
SpriteRenderer rend = Verify3DCostEmissionMaskRenderer(__instance, __instance.emissivePortraitRenderer.gameObject.activeSelf);
46-
if (rend != null) {
47-
//PatchPlugin.Logger.LogDebug("[UpdateCostEmissionMask] Update Cost emission mask");
48-
rend.sprite = __instance.costRenderer.sprite;
47+
if (SaveManager.SaveFile.IsPart1) {
48+
SpriteRenderer rend = Verify3DCostEmissionMaskRenderer(__instance, __instance.emissivePortraitRenderer.gameObject.activeSelf);
49+
if (rend != null) {
50+
//PatchPlugin.Logger.LogDebug("[UpdateCostEmissionMask] Update Cost emission mask");
51+
rend.sprite = __instance.costRenderer.sprite;
52+
}
4953
}
5054
}
5155
}

0 commit comments

Comments
 (0)