Skip to content

Commit f38b601

Browse files
v1.5.2 fix for evolveParams etc
1 parent 4abb37f commit f38b601

File tree

4 files changed

+46
-5
lines changed

4 files changed

+46
-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.5.1.0</Version>
7+
<Version>1.5.2.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.5.2
3+
- Enabled fix for evolveParams and some other disabled options
4+
25
## v1.5.1
36
- Fix to accessing private instance for regions
47

Plugin.cs

Lines changed: 41 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.5.1.0";
17+
private const string PluginVersion = "1.5.2.0";
1818

1919
internal static ManualLogSource Log;
2020

@@ -171,10 +171,34 @@ public CardInfo AdjustCard(CardInfo card)
171171
{
172172
card.abilities = abilities;
173173
}
174+
if (evolveParams is not null)
175+
{
176+
card.evolveParams = evolveParams;
177+
}
178+
if (evolveParams is not null)
179+
{
180+
card.evolveParams = evolveParams;
181+
}
182+
if (!String.IsNullOrEmpty(defaultEvolutionName))
183+
{
184+
card.defaultEvolutionName = defaultEvolutionName;
185+
}
186+
if (tailParams is not null)
187+
{
188+
card.tailParams = tailParams;
189+
}
190+
if (iceCubeParams is not null)
191+
{
192+
card.iceCubeParams = iceCubeParams;
193+
}
174194
if (this.appearanceBehaviour is not null)
175195
{
176196
card.appearanceBehaviour = this.appearanceBehaviour;
177197
}
198+
if (this.flipPortraitForStrafe is not null)
199+
{
200+
card.flipPortraitForStrafe = (bool)this.flipPortraitForStrafe;
201+
}
178202
if (this.onePerDeck is not null)
179203
{
180204
card.onePerDeck = (bool)this.onePerDeck;
@@ -274,10 +298,24 @@ public NewCard(string name, List<CardMetaCategory> metaCategories, CardComplexit
274298
{
275299
card.abilities = abilities;
276300
}
277-
if (appearanceBehaviour is not null)
301+
if (abilities is not null)
302+
{
303+
card.abilities = abilities;
304+
}
305+
if (evolveParams is not null)
306+
{
307+
card.evolveParams = evolveParams;
308+
}
309+
card.defaultEvolutionName = defaultEvolutionName;
310+
if (tailParams is not null)
311+
{
312+
card.tailParams = tailParams;
313+
}
314+
if (iceCubeParams is not null)
278315
{
279-
card.appearanceBehaviour = appearanceBehaviour;
316+
card.iceCubeParams = iceCubeParams;
280317
}
318+
card.flipPortraitForStrafe = flipPortraitForStrafe;
281319
card.onePerDeck = onePerDeck;
282320
card.hideAttackAndHealth = hideAttackAndHealth;
283321
if (tex is not null)

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.5.1",
3+
"version_number": "1.5.2",
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 inject them into the card pool, or modify existing cards in the card pool.",
66
"dependencies": [

0 commit comments

Comments
 (0)