Skip to content

Commit

Permalink
Fixed appearance behaviours
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottWilson0903 committed Nov 6, 2021
1 parent 03ac322 commit 44323f3
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion API.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>netstandard2.0</TargetFramework>
<AssemblyName>API</AssemblyName>
<Description>An API for inscryption</Description>
<Version>1.7.0.0</Version>
<Version>1.7.1.0</Version>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<LangVersion>9.0</LangVersion>
</PropertyGroup>
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Changelog
## v1.7.1
- Fixed appearanceBehaviour for NewCards.

## v1.7
- Added support for custom abilities!

Expand Down
8 changes: 5 additions & 3 deletions Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class Plugin : BaseUnityPlugin
{
private const string PluginGuid = "cyantist.inscryption.api";
private const string PluginName = "API";
private const string PluginVersion = "1.7.0.0";
private const string PluginVersion = "1.7.1.0";

internal static ManualLogSource Log;

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

// TODO Implement a handler for custom appearanceBehaviour - in particular custom card backs
// TODO Change parameter order, and function setter call order to make more sense
// TODO Rename parameters to be more user friendly
public NewCard(string name, List<CardMetaCategory> metaCategories, CardComplexity cardComplexity, CardTemple temple, string displayedName, int baseAttack, int baseHealth,
string description = "",
bool hideAttackAndHealth = false, int cost = 0, int bonesCost = 0, int energyCost = 0, List<GemType> gemsCost = null, SpecialStatIcon specialStatIcon = SpecialStatIcon.None,
Expand Down Expand Up @@ -320,6 +318,10 @@ public NewCard(string name, List<CardMetaCategory> metaCategories, CardComplexit
}
card.flipPortraitForStrafe = flipPortraitForStrafe;
card.onePerDeck = onePerDeck;
if (appearanceBehaviour is not null)
{
card.appearanceBehaviour = appearanceBehaviour;
}
card.hideAttackAndHealth = hideAttackAndHealth;
if (tex is not null)
{
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "API",
"version_number": "1.7.0",
"version_number": "1.7.1",
"website_url": "https://github.com/ScottWilson0903/InscryptionAPI",
"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.",
"dependencies": [
Expand Down

0 comments on commit 44323f3

Please sign in to comment.