@@ -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 )
0 commit comments