Skip to content

Commit 44323f3

Browse files
Fixed appearance behaviours
1 parent 03ac322 commit 44323f3

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

API.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<TargetFramework>netstandard2.0</TargetFramework>
55
<AssemblyName>API</AssemblyName>
66
<Description>An API for inscryption</Description>
7-
<Version>1.7.0.0</Version>
7+
<Version>1.7.1.0</Version>
88
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
99
<LangVersion>9.0</LangVersion>
1010
</PropertyGroup>

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# Changelog
2+
## v1.7.1
3+
- Fixed appearanceBehaviour for NewCards.
4+
25
## v1.7
36
- Added support for custom abilities!
47

Plugin.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class Plugin : BaseUnityPlugin
1414
{
1515
private const string PluginGuid = "cyantist.inscryption.api";
1616
private const string PluginName = "API";
17-
private const string PluginVersion = "1.7.0.0";
17+
private const string PluginVersion = "1.7.1.0";
1818

1919
internal static ManualLogSource Log;
2020

@@ -255,9 +255,7 @@ public NewCard(CardInfo card)
255255
Plugin.Log.LogInfo($"Loaded custom card {card.name}!");
256256
}
257257

258-
// TODO Implement a handler for custom appearanceBehaviour - in particular custom card backs
259258
// TODO Change parameter order, and function setter call order to make more sense
260-
// TODO Rename parameters to be more user friendly
261259
public NewCard(string name, List<CardMetaCategory> metaCategories, CardComplexity cardComplexity, CardTemple temple, string displayedName, int baseAttack, int baseHealth,
262260
string description = "",
263261
bool hideAttackAndHealth = false, int cost = 0, int bonesCost = 0, int energyCost = 0, List<GemType> gemsCost = null, SpecialStatIcon specialStatIcon = SpecialStatIcon.None,
@@ -320,6 +318,10 @@ public NewCard(string name, List<CardMetaCategory> metaCategories, CardComplexit
320318
}
321319
card.flipPortraitForStrafe = flipPortraitForStrafe;
322320
card.onePerDeck = onePerDeck;
321+
if (appearanceBehaviour is not null)
322+
{
323+
card.appearanceBehaviour = appearanceBehaviour;
324+
}
323325
card.hideAttackAndHealth = hideAttackAndHealth;
324326
if (tex is not null)
325327
{

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "API",
3-
"version_number": "1.7.0",
3+
"version_number": "1.7.1",
44
"website_url": "https://github.com/ScottWilson0903/InscryptionAPI",
55
"description": "This plugin is a BepInEx plugin made for Inscryption as an API. It can currently create custom cards and abilities and inject them into the data pool, or modify existing cards in the card pool.",
66
"dependencies": [

0 commit comments

Comments
 (0)