diff --git a/FModel/Methods/Assets/IconCreator/HeroID/HeroGameplayDefinition.cs b/FModel/Methods/Assets/IconCreator/HeroID/HeroGameplayDefinition.cs index c1baf718..1b8e2afd 100644 --- a/FModel/Methods/Assets/IconCreator/HeroID/HeroGameplayDefinition.cs +++ b/FModel/Methods/Assets/IconCreator/HeroID/HeroGameplayDefinition.cs @@ -2,7 +2,6 @@ using FModel.Methods.Utilities; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using PakReader; -using System; using System.Collections.Generic; using System.Globalization; using System.IO; @@ -27,7 +26,6 @@ namespace FModel.Methods.Assets.IconCreator.HeroID string assetPath = AssetEntries.AssetEntriesDict.Where(x => x.Key.ToLowerInvariant().Contains("/" + heroGameplayDefinitionToken.Value().ToLowerInvariant() + ".")).Select(d => d.Key).FirstOrDefault(); if (!string.IsNullOrEmpty(assetPath)) { - Console.WriteLine(assetPath); string jsonData = AssetsUtility.GetAssetJsonDataByPath(assetPath, false, assetPath.Substring(0, assetPath.LastIndexOf("."))); if (jsonData != null) { diff --git a/FModel/Methods/Assets/IconCreator/IconImage.cs b/FModel/Methods/Assets/IconCreator/IconImage.cs index 5010577a..58ec3080 100644 --- a/FModel/Methods/Assets/IconCreator/IconImage.cs +++ b/FModel/Methods/Assets/IconCreator/IconImage.cs @@ -229,7 +229,8 @@ namespace FModel.Methods.Assets.IconCreator JArray renderSwitchProperties = AssetMainToken["properties"].Value(); if (renderSwitchProperties != null) { - JArray textureParameterArray = AssetsUtility.GetPropertyTagText(renderSwitchProperties, "TextureParameterValues", "data")[0]["struct_type"]["properties"].Value(); + JArray textureParameterArray = AssetsUtility.GetPropertyTagText(renderSwitchProperties, "TextureParameterValues", "data"); + textureParameterArray = textureParameterArray[textureParameterArray.Count() > 1 && !AssetsLoader.ExportType.Equals("AthenaItemWrapDefinition") ? 1 : 0]["struct_type"]["properties"].Value(); if (textureParameterArray != null) { JToken parameterValueToken = AssetsUtility.GetPropertyTagOuterImport(textureParameterArray, "ParameterValue");