Skip to content

Commit

Permalink
Updated ChangeLog.md and made default metaCategories empty list
Browse files Browse the repository at this point in the history
  • Loading branch information
MADH95 committed Nov 15, 2021
1 parent e4eeeb4 commit d843ae2
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 13 deletions.
33 changes: 28 additions & 5 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@

## v1.5.3
- Changed default "metaCategories" to be an empty list
- Added ChangeLog.md

## v1.5.0
- Fixed bugs with v1.4.0
- Compatability patch for InscryptionAPI v1.11
- Refactored Code:
+ Error checking no longer uses exception handling to funciton
+ Game will load default deck if the names in the config for testdeck don't exist
+ baseHealth and metaCategories are handled before the call to NewCard.Add to avoid bloat in the function call
+ Removed Evolve/Tail/IceCubeParams handling to utilise API's handling of those aspects instead
+ Added ErrorUtil to better help with error logging
+ Made use of new json parser to read in Evolve/Tail/IceCubeData from json objects

## v1.4.0
- Changed json parser from Unity's JSONUtility to TinyJson
Expand All @@ -16,32 +26,45 @@
- Fixed bug where textures were being assigned wrong

## v1.3.8
- Fixed bug where "titleGraphic" was being set to "texture"
- Fixed bug where "altTexture", "pixelTexture" and "titleGraphic" were being set to "texture"

## v1.3.6
- Fixed linking error from patch v1.3.5
- Fixed linking error from update v1.3.5
Refactored Code:
+ Seperated EvolveData, TailData, and IceCubeData into their own files and gave them functions to handle their own generation and conversion to Param varients
+ Added class CDUtils to seperate the data from card adding/editing funcitons
+ seperated ExtensionUtils into it's own file

## v1.3.5
- Compatablity patch for InscryptionAPI v1.10
- Refactored code:
+ CardData has it's own file
+ Dicts has it's own file
+ EvolveData, TailData, and IceCubeData are now in their own file together
+ JLUtils was created to host utility functions like assignment helpers and validity checks

## v1.3.3
- updated error logging for user

## v1.3.2
- Added ability to edit existing cards with the use of "fieldsToEdit"
- Added ability to edit existing cards with the use of "fieldsToEdit" with example card *OP-ossum.json*
- Added better error logging for user

## v1.2.1
- Compatablity patch for InscryptionAPI v1.8

## v1.2.0
- Added Functionality for:
- Added validity check for TestDeck cards
- Added functionality for:
+ EvolveParams via "evolve_evolutionName" & "evolve_turnsToEvolve"
+ TailParams via "tail_cardName" & "tail_tailLostPortrait"
+ IceCubeParams via "iceCube_creatureWithin"
- Patched LoadScreenManager.LoadGameData and ChapterSelectMenu_OnChapterConfirmed to facilitate above implementation
- Minor refactor of NewCard call

## v1.1.1
- Added ability to use strings for the enum values on a card
- Added ability to add cards to starting deck using config file in order to test functionality

## v1.0.1
- Fixed issue with hard coded file paths
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.JSONCardLoader";
private const string PluginName = "JSONCardLoader";
private const string PluginVersion = "1.5.0.0";
private const string PluginVersion = "1.5.3.0";

internal static ManualLogSource Log;

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

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

if (metaCategories is null)
{
metaCategories = CardUtils.getNormalCardMetadata;
}

NewCard.Add(
name: this.name,
displayedName: this.displayedName ?? "",
Expand All @@ -42,7 +37,7 @@ public void GenerateNew()
baseHealth: this.baseHealth,
hideAttackAndHealth: this.hideAttackAndHealth,

metaCategories: metaCategories,
metaCategories: metaCategories ?? new(),
onePerDeck: this.onePerDeck,
flipPortraitForStrafe: this.flipPortraitForStrafe,
defaultEvolutionName: this.defaultEvolutionName,
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.5.2",
"version_number": "1.5.3",
"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 d843ae2

Please sign in to comment.