Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MADH95 committed Nov 16, 2021
1 parent 05f0219 commit 74a68af
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@

##v1.6.1
- Fixed error if abilities array is present but empty

## v1.6.0
- Added support for adding custom abilities implemented by other mods

Expand Down
2 changes: 1 addition & 1 deletion Code/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class Plugin : BaseUnityPlugin
{
private const string PluginGuid = "MADH.inscryption.JSONLoader";
private const string PluginName = "JSONLoader";
private const string PluginVersion = "1.6.0.0";
private const string PluginVersion = "1.6.1.0";

internal static ManualLogSource Log;

Expand Down
2 changes: 1 addition & 1 deletion Code/Utils/CardDataUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public void GenerateNew()

List<CardMetaCategory> metaCategories = JLUtils.Assign( this.metaCategories, nameof( this.metaCategories ), Dicts.MetaCategory );

if (this.abilities is not null && this.abilities[ 0 ] == "None" )
if (this.abilities is not null && ( this.abilities.Count == 0 || this.abilities[ 0 ] == "None" ) )
this.abilities = null;

NewCard.Add(
Expand Down
Binary file modified JSONLoader/JSONLoader.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "JSONCardLoader",
"version_number": "1.6.0",
"version_number": "1.6.1",
"website_url": "https://github.com/MADH95/JSONCardLoaderPlugin",
"description": "This is a BepInEx plugin made for Incryption to create custom cards using JSON files and the API by Cyantist. It can currently parse custom cards and pass them to APIPlugin to load them into the game.",
"dependencies": [
Expand Down

0 comments on commit 74a68af

Please sign in to comment.