Skip to content

Commit

Permalink
4.9.1: Reduce logging in case of missing bone color data
Browse files Browse the repository at this point in the history
  • Loading branch information
jpw1991 committed Jan 27, 2024
1 parent 24e62da commit 37f2e34
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion ChebsNecromancy/BasePlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ internal class BasePlugin : BaseUnityPlugin
{
public const string PluginGuid = "com.chebgonaz.ChebsNecromancy";
public const string PluginName = "ChebsNecromancy";
public const string PluginVersion = "4.9.0";
public const string PluginVersion = "4.9.1";
private const string ConfigFileName = PluginGuid + ".cfg";
private static readonly string ConfigFileFullPath = Path.Combine(Paths.ConfigPath, ConfigFileName);

Expand Down
2 changes: 1 addition & 1 deletion ChebsNecromancy/ChebsNecromancy.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<Guid>e3243d22-4307-4008-ba36-9f326008cde5</Guid>

<!-- Version Information -->
<Version>4.9.0.0</Version>
<Version>4.9.1.0</Version>
<FileVersion>$(Version)</FileVersion>
<AssemblyVersion>$(Version)</AssemblyVersion>

Expand Down
6 changes: 0 additions & 6 deletions ChebsNecromancy/Minions/Skeletons/SkeletonMinion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -231,19 +231,13 @@ public void LoadBoneColorMaterial()
var visualSkeleton = transform.Find("Visual/_skeleton_base/Skeleton");
if (visualSkeleton != null && visualSkeleton.TryGetComponent(out SkinnedMeshRenderer skinnedMeshRenderer))
{
//var mats = skinnedMeshRenderer.materials;
//for (var i = 0; i < mats.Length; i++) mats[i] = boneMat;
skinnedMeshRenderer.sharedMaterial = boneMat;
}
else
{
Logger.LogError($"{name} (visualSkeleton={visualSkeleton}) Failed to get SkinnedMeshRenderer");
}
}
else
{
Logger.LogError($"Failed to load bone color material: Bones has no key {boneColor}");
}
}

#endregion
Expand Down
3 changes: 2 additions & 1 deletion ChebsNecromancy/Package/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ A special thanks to the people who've helped me along the way:

Date | Version | Notes
--- | --- | ---
25/01/2024 | 4.9.0 | Add different healing levels & spells to the priests; fix a bug that erased some default equipment set in Unity
28/01/2024 | 4.9.1 | Reduce logging in case of missing bone color data
27/01/2024 | 4.9.0 | Add different healing levels & spells to the priests; fix a bug that erased some default equipment set in Unity
25/01/2024 | 4.8.0 | Add skeleton priest to heal other minions
25/01/2024 | 4.7.2 | Add tweakable skeleton bone colors
18/01/2024 | 4.6.1 | Fix problem of custom eye color not being applied to freshly created minions
Expand Down
2 changes: 1 addition & 1 deletion ChebsNecromancy/Package/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ChebsNecromancy",
"description": "Cheb's Necromancy adds Necromancy to Valheim via craftable wands and structures. Minions will follow you, guard your base, and perform menial tasks.",
"version_number": "4.9.0",
"version_number": "4.9.1",
"website_url": "https://github.com/jpw1991/chebs-necromancy",
"dependencies": [
"ValheimModding-Jotunn-2.16.2"
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ A special thanks to the people who've helped me along the way:

Date | Version | Notes
--- | --- | ---
25/01/2024 | 4.9.0 | Add different healing levels & spells to the priests; fix a bug that erased some default equipment set in Unity
28/01/2024 | 4.9.1 | Reduce logging in case of missing bone color data
27/01/2024 | 4.9.0 | Add different healing levels & spells to the priests; fix a bug that erased some default equipment set in Unity
25/01/2024 | 4.8.0 | Add skeleton priest to heal other minions
25/01/2024 | 4.7.2 | Add tweakable skeleton bone colors
18/01/2024 | 4.6.1 | Fix problem of custom eye color not being applied to freshly created minions
Expand Down

0 comments on commit 37f2e34

Please sign in to comment.