Skip to content

Commit 72c6f88

Browse files
New PostCardGettingAttacked trigger, rewrote SlotAttackSlot transpilers, bumped version to 2.23.0
1 parent e8658a6 commit 72c6f88

File tree

6 files changed

+155
-205
lines changed

6 files changed

+155
-205
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
1-
# 2.22.4
1+
# 2.23.0
22
- Added 'GBC Vanilla Render' config to community patches (false by default) - makes GBC cards render with vanilla cost sprites
33
- Added 'Vanilla Stacking' config to community patches (false by default) - renders cards with only two (stacking) sigils as they appear in vanilla, eg Spore Mice and Sporedigger
4+
- Added PostCardGettingAttacked custom trigger
5+
- Added BoardManager.GetCards and BoardManager.GetOpenSlots overloads that retrieve from the entire board
46
- Fixed incorrect rulebook icon scaling in Act 3
57
- Fixed rulebook-related null errors when playing during Magnificus' Act
68
- Fixed slot modification rulebook pages not appearing correctly during Magnificus' Act
79
- Fixed cards shield sigils not rendering correctly
810
- DamageShieldBehaviour class now has 'initialised' boolean field
911
- Highest displayable bone cost value in Act 1 raised from 13+ to 15+
1012
- Minor tweaks to blood and bone cost icons
13+
- Rewrote SlotAttackSlotPatches transpilers to be cleaner
1114

1215
# 2.22.3
1316
- Fixed pelt names when a user goes to the trader with modded cards, Examples shown below.

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.22.4</Version>
13+
<Version>2.23.0</Version>
1414
</PropertyGroup>
1515

1616
<PropertyGroup>

InscryptionAPI/InscryptionAPIPlugin.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class InscryptionAPIPlugin : BaseUnityPlugin
3030
{
3131
public const string ModGUID = "cyantist.inscryption.api";
3232
public const string ModName = "InscryptionAPI";
33-
public const string ModVer = "2.22.4";
33+
public const string ModVer = "2.23.0";
3434

3535
public static string Directory = "";
3636

InscryptionAPI/Triggers/Interfaces.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -819,6 +819,16 @@ public interface IShieldPreventedDamageInHand
819819
public IEnumerator OnShieldPreventedDamageInHand(PlayableCard target, int damage, PlayableCard attacker);
820820
public int ShieldPreventedDamageInHandPriority(PlayableCard target, int damage, PlayableCard attacker);
821821
}
822+
/// <summary>
823+
/// Expanded version of CardGettingAttacked trigger, executed before it, that includes the attacker as an argument
824+
/// </summary>
825+
public interface IPostCardGettingAttacked
826+
{
827+
public bool RespondsToPostCardGettingAttacked(PlayableCard target, PlayableCard attacker);
828+
public IEnumerator OnPostCardGettingAttacked(PlayableCard target, PlayableCard attacker);
829+
public int PostCardGettingAttackedPriority(PlayableCard target, PlayableCard attacker);
830+
}
831+
822832
/*public interface IOnPreTakeDamageFromHammer
823833
{
824834
public bool RespondsToPreTakeDamageFromHammer(HammerItem hammer, CardSlot targetSlot, GameObject firstPersonItem);

0 commit comments

Comments
 (0)