Skip to content

Commit

Permalink
Merge pull request #242 from jpw1991/241-update-for-hildrs-request
Browse files Browse the repository at this point in the history
4.3.0: update hildr's request
  • Loading branch information
jpw1991 authored Oct 6, 2023
2 parents cfc6bff + 88d9772 commit 7f395f8
Show file tree
Hide file tree
Showing 9 changed files with 70 additions and 56 deletions.
4 changes: 2 additions & 2 deletions ChebsNecromancy/BasePlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ internal class BasePlugin : BaseUnityPlugin
{
public const string PluginGuid = "com.chebgonaz.ChebsNecromancy";
public const string PluginName = "ChebsNecromancy";
public const string PluginVersion = "4.2.0";
public const string PluginVersion = "4.3.0";
private const string ConfigFileName = PluginGuid + ".cfg";
private static readonly string ConfigFileFullPath = Path.Combine(Paths.ConfigPath, ConfigFileName);

public readonly System.Version ChebsValheimLibraryVersion = new("2.3.0");
public readonly System.Version ChebsValheimLibraryVersion = new("2.4.0");

private readonly Harmony harmony = new(PluginGuid);

Expand Down
86 changes: 48 additions & 38 deletions ChebsNecromancy/ChebsNecromancy.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\packages\JotunnLib.2.14.3\build\JotunnLib.props" Condition="Exists('..\packages\JotunnLib.2.14.3\build\JotunnLib.props')" />
<Import Project="packages\BepInEx.AssemblyPublicizer.MSBuild.0.4.1\build\BepInEx.AssemblyPublicizer.MSBuild.props" Condition="Exists('packages\BepInEx.AssemblyPublicizer.MSBuild.0.4.1\build\BepInEx.AssemblyPublicizer.MSBuild.props')" />
<Import Project="..\packages\ILRepack.2.0.18\build\ILRepack.props" Condition="Exists('..\packages\ILRepack.2.0.18\build\ILRepack.props')" />
<Import Project="..\packages\JotunnLib.2.11.2\build\JotunnLib.props" Condition="Exists('..\packages\JotunnLib.2.11.2\build\JotunnLib.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
Expand Down Expand Up @@ -48,6 +47,9 @@
<StartWorkingDirectory>$(VALHEIM_INSTALL)</StartWorkingDirectory>
</PropertyGroup>
<ItemGroup>
<Reference Include="0Harmony, Version=2.10.2.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\HarmonyX.2.10.2\lib\net45\0Harmony.dll</HintPath>
</Reference>
<Reference Include="AsmResolver, Version=5.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\BepInEx.AssemblyPublicizer.MSBuild.0.4.1\lib\net472\AsmResolver.dll</HintPath>
</Reference>
Expand All @@ -66,9 +68,6 @@
<Reference Include="BepInEx.AssemblyPublicizer.MSBuild, Version=0.4.1.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\BepInEx.AssemblyPublicizer.MSBuild.0.4.1\lib\net472\BepInEx.AssemblyPublicizer.MSBuild.dll</HintPath>
</Reference>
<Reference Include="BepInEx">
<HintPath>..\..\..\.local\share\Steam\steamapps\common\Valheim\BepInEx\core\BepInEx.dll</HintPath>
</Reference>
<Reference Include="assembly_guiutils" Publicize="true">
<HintPath>..\..\..\.local\share\Steam\steamapps\common\Valheim\valheim_Data\Managed\assembly_guiutils.dll</HintPath>
</Reference>
Expand All @@ -84,20 +83,38 @@
<Reference Include="ChebsValheimLibrary">
<HintPath>..\..\chebs-valheim-library\ChebsValheimLibrary\bin\Release\ChebsValheimLibrary.dll</HintPath>
</Reference>
<Reference Include="Jotunn, Version=2.11.2.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\JotunnLib.2.11.2\lib\net462\Jotunn.dll</HintPath>
<Reference Include="Jotunn, Version=2.14.3.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\JotunnLib.2.14.3\lib\net462\Jotunn.dll</HintPath>
</Reference>
<Reference Include="Mono.Cecil, Version=0.11.5.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e, processorArchitecture=MSIL">
<HintPath>..\packages\Mono.Cecil.0.11.5\lib\net40\Mono.Cecil.dll</HintPath>
</Reference>
<Reference Include="Mono.Cecil.Mdb, Version=0.11.5.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e, processorArchitecture=MSIL">
<HintPath>..\packages\Mono.Cecil.0.11.5\lib\net40\Mono.Cecil.Mdb.dll</HintPath>
</Reference>
<Reference Include="Mono.Cecil.Pdb, Version=0.11.5.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e, processorArchitecture=MSIL">
<HintPath>..\packages\Mono.Cecil.0.11.5\lib\net40\Mono.Cecil.Pdb.dll</HintPath>
</Reference>
<Reference Include="Mono.Cecil, Version=0.11.4.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e, processorArchitecture=MSIL">
<HintPath>..\packages\Mono.Cecil.0.11.4\lib\net40\Mono.Cecil.dll</HintPath>
<Reference Include="Mono.Cecil.Rocks, Version=0.11.5.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e, processorArchitecture=MSIL">
<HintPath>..\packages\Mono.Cecil.0.11.5\lib\net40\Mono.Cecil.Rocks.dll</HintPath>
</Reference>
<Reference Include="Mono.Cecil.Mdb, Version=0.11.4.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e, processorArchitecture=MSIL">
<HintPath>..\packages\Mono.Cecil.0.11.4\lib\net40\Mono.Cecil.Mdb.dll</HintPath>
<Reference Include="MonoMod.Backports, Version=1.0.1.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\MonoMod.Backports.1.0.1\lib\net452\MonoMod.Backports.dll</HintPath>
</Reference>
<Reference Include="Mono.Cecil.Pdb, Version=0.11.4.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e, processorArchitecture=MSIL">
<HintPath>..\packages\Mono.Cecil.0.11.4\lib\net40\Mono.Cecil.Pdb.dll</HintPath>
<Reference Include="MonoMod.Core, Version=1.0.1.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\MonoMod.Core.1.0.1\lib\net452\MonoMod.Core.dll</HintPath>
</Reference>
<Reference Include="Mono.Cecil.Rocks, Version=0.11.4.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e, processorArchitecture=MSIL">
<HintPath>..\packages\Mono.Cecil.0.11.4\lib\net40\Mono.Cecil.Rocks.dll</HintPath>
<Reference Include="MonoMod.Iced, Version=1.17.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\MonoMod.Core.1.0.1\lib\net452\MonoMod.Iced.dll</HintPath>
</Reference>
<Reference Include="MonoMod.ILHelpers, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\MonoMod.ILHelpers.1.0.0\lib\net452\MonoMod.ILHelpers.dll</HintPath>
</Reference>
<Reference Include="MonoMod.RuntimeDetour, Version=25.0.2.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\MonoMod.RuntimeDetour.25.0.2\lib\net452\MonoMod.RuntimeDetour.dll</HintPath>
</Reference>
<Reference Include="MonoMod.Utils, Version=25.0.3.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\MonoMod.Utils.25.0.3\lib\net452\MonoMod.Utils.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand All @@ -109,43 +126,37 @@
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
<Reference Include="MonoMod.Utils">
<HintPath>..\packages\MonoMod.Utils.22.7.31.1\lib\net452\MonoMod.Utils.dll</HintPath>
</Reference>
<Reference Include="MonoMod">
<HintPath>..\packages\MonoMod.22.7.31.1\lib\net452\MonoMod.exe</HintPath>
</Reference>
<Reference Include="MonoMod.RuntimeDetour">
<HintPath>..\packages\MonoMod.RuntimeDetour.22.7.31.1\lib\net452\MonoMod.RuntimeDetour.dll</HintPath>
</Reference>
<Reference Include="0Harmony">
<HintPath>..\packages\HarmonyX.2.10.1\lib\net45\0Harmony.dll</HintPath>
</Reference>
<Reference Include="System.Threading.Tasks.Extensions">
<HintPath>..\packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll</HintPath>
</Reference>
<Reference Include="UnityEngine">
<HintPath>libs\UnityEngine.dll</HintPath>
<Reference Include="BepInEx">
<HintPath>..\..\..\.config\r2modmanPlus-local\Valheim\profiles\cheb-development\BepInEx\core\BepInEx.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.CoreModule">
<HintPath>libs\UnityEngine.CoreModule.dll</HintPath>
<Reference Include="UnityEngine">
<HintPath>..\..\..\.config\r2modmanPlus-local\Valheim\profiles\cheb-development\unstripped_corlib\UnityEngine.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.AssetBundleModule">
<HintPath>libs\UnityEngine.AssetBundleModule.dll</HintPath>
<HintPath>..\..\..\.config\r2modmanPlus-local\Valheim\profiles\cheb-development\unstripped_corlib\UnityEngine.AssetBundleModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.ParticleSystemModule">
<HintPath>libs\UnityEngine.ParticleSystemModule.dll</HintPath>
<Reference Include="UnityEngine.CoreModule">
<HintPath>..\..\..\.config\r2modmanPlus-local\Valheim\profiles\cheb-development\unstripped_corlib\UnityEngine.CoreModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.PhysicsModule">
<HintPath>libs\UnityEngine.PhysicsModule.dll</HintPath>
<Reference Include="UnityEngine.ParticleSystemModule">
<HintPath>..\..\..\.config\r2modmanPlus-local\Valheim\profiles\cheb-development\unstripped_corlib\UnityEngine.ParticleSystemModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.Physics2DModule">
<HintPath>libs\UnityEngine.Physics2DModule.dll</HintPath>
<HintPath>..\..\..\.config\r2modmanPlus-local\Valheim\profiles\cheb-development\unstripped_corlib\UnityEngine.Physics2DModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.PhysicsModule">
<HintPath>..\..\..\.config\r2modmanPlus-local\Valheim\profiles\cheb-development\unstripped_corlib\UnityEngine.PhysicsModule.dll</HintPath>
</Reference>
<Reference Include="mscorlib" />
<Reference Include="UnityEngine.UI">
<HintPath>..\..\..\.local\share\Steam\steamapps\common\Valheim\unstripped_corlib\UnityEngine.UI.dll</HintPath>
<HintPath>..\..\..\.config\r2modmanPlus-local\Valheim\profiles\cheb-development\unstripped_corlib\UnityEngine.UI.dll</HintPath>
</Reference>
<Reference Include="mscorlib" />
</ItemGroup>
<ItemGroup>
<Compile Include="Commands\SetNeckroHome.cs" />
Expand Down Expand Up @@ -244,8 +255,7 @@
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105.The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\packages\JotunnLib.2.11.2\build\JotunnLib.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\JotunnLib.2.11.2\build\JotunnLib.props'))" />
<Error Condition="!Exists('..\packages\ILRepack.2.0.18\build\ILRepack.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\ILRepack.2.0.18\build\ILRepack.props'))" />
<Error Condition="!Exists('packages\BepInEx.AssemblyPublicizer.MSBuild.0.4.1\build\BepInEx.AssemblyPublicizer.MSBuild.props')" Text="$([System.String]::Format('$(ErrorText)', 'packages\BepInEx.AssemblyPublicizer.MSBuild.0.4.1\build\BepInEx.AssemblyPublicizer.MSBuild.props'))" />
<Error Condition="!Exists('..\packages\JotunnLib.2.14.3\build\JotunnLib.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\JotunnLib.2.14.3\build\JotunnLib.props'))" />
</Target>
</Project>
3 changes: 2 additions & 1 deletion ChebsNecromancy/Minions/UndeadMinion.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using System;
using System.Linq;
using BepInEx;
using BepInEx.Configuration;
Expand Down Expand Up @@ -153,7 +154,7 @@ public static void CountActive<T>(int minionLimitIncrementsEveryXLevels, int max
// Get all active skeleton minions that belong to the local player
var minions = Character.GetAllCharacters()
.Where(c => !c.IsDead())
.Select(c => (c.GetComponent<T>(), c))
.Select(c => new Tuple<T, Character>(c.GetComponent<T>(), c))
.Where(t => t.Item1 != null && t.Item1.BelongsToPlayer(Player.m_localPlayer.GetPlayerName()))
.OrderByDescending(t => t.Item1.createdOrder)
.ToList();
Expand Down
6 changes: 3 additions & 3 deletions ChebsNecromancy/Package/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ This mod was formerly called Friendly Skeleton Wand, but was renamed since it as

## Confused? Try the [wiki](https://github.com/jpw1991/chebs-necromancy/wiki).

## Important: Updating to 3.3.1 from an old version, read [here](https://github.com/jpw1991/chebs-necromancy/wiki/Upgrading-from-3.2.0-to-3.3.1)

## About Me

[![image1](https://imgur.com/Fahi6sP.png)](https://chebgonaz.pythonanywhere.com)
Expand Down Expand Up @@ -38,7 +36,7 @@ d) Write a comment on the [Nexus page](https://www.nexusmods.com/valheim/mods/20

## Requirements

- Valheim Mistlands
- Valheim
- BepInEx
- Jotunn

Expand Down Expand Up @@ -129,6 +127,7 @@ A special thanks to the people who've helped me along the way:
+ [**Dracbjorn**](https://github.com/Dracbjorn) - Extensive work on the configuration files & parsing (including server-sync); general help & testing.
+ [**CW-Jesse**](https://github.com/CW-Jesse) - Refinements and improvements on networking code and minion AI; general help & testing.
+ [**WalterWillis**](https://github.com/WalterWillis) - Improvements to Treasure Pylon & Testing.
+ [**jneb802**](https://github.com/jneb802) - Finding and fixing a wrongly named sprite.
- Artists
+ **Ramblez** (aka **[Thorngor](https://www.nexusmods.com/users/21532784)** on the Nexus) - Most of custom textures and icons.
+ [**piacenti**](https://opengameart.org/users/piacenti) for the [skull prop](https://opengameart.org/content/skull-prop) that I use as part of the phylactery.
Expand All @@ -152,6 +151,7 @@ A special thanks to the people who've helped me along the way:

Date | Version | Notes
--- | --- | ---
06/10/2023 | 4.3.0 | update for hildr's request; fix [issue related to bat icon](https://github.com/jpw1991/chebs-necromancy/pull/240)
23/08/2023 | 4.2.0 | update for new valheim patch
02/08/2023 | 4.1.1 | strengthen null checks in Phylactery patch
30/07/2023 | 4.1.0 | add phylactery that consumes dragon eggs when you die and teleports you back to its location
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.2.0",
"version_number": "4.3.0",
"website_url": "https://github.com/jpw1991/chebs-necromancy",
"dependencies": [
"ValheimModding-Jotunn-2.11.2"
Expand Down
4 changes: 2 additions & 2 deletions ChebsNecromancy/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("4.2.0.0")]
[assembly: AssemblyFileVersion("4.2.0.0")]
[assembly: AssemblyVersion("4.3.0.0")]
[assembly: AssemblyFileVersion("4.3.0.0")]

14 changes: 8 additions & 6 deletions ChebsNecromancy/packages.config
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="BepInEx.AssemblyPublicizer.MSBuild" version="0.4.1" targetFramework="net48" developmentDependency="true" />
<package id="HarmonyX" version="2.10.1" targetFramework="net48" />
<package id="ILRepack" version="2.0.18" targetFramework="net48" />
<package id="JotunnLib" version="2.11.2" targetFramework="net48" />
<package id="Mono.Cecil" version="0.11.4" targetFramework="net462" />
<package id="HarmonyX" version="2.10.2" targetFramework="net48" />
<package id="JotunnLib" version="2.14.3" targetFramework="net48" />
<package id="Mono.Cecil" version="0.11.5" targetFramework="net48" />
<package id="MonoMod" version="22.7.31.1" targetFramework="net48" />
<package id="MonoMod.RuntimeDetour" version="22.7.31.1" targetFramework="net48" />
<package id="MonoMod.Utils" version="22.7.31.1" targetFramework="net48" />
<package id="MonoMod.RuntimeDetour" version="25.0.2" targetFramework="net48" />
<package id="MonoMod.Core" version="1.0.1" targetFramework="net48" />
<package id="MonoMod.Utils" version="25.0.3" targetFramework="net48" />
<package id="MonoMod.Backports" version="1.0.1" targetFramework="net48" />
<package id="MonoMod.ILHelpers" version="1.0.0" targetFramework="net48" />
<package id="System.Runtime.CompilerServices.Unsafe" version="7.0.0-preview.2.22152.2" targetFramework="net48" />
<package id="System.Threading.Tasks.Extensions" version="4.5.4" targetFramework="net48" />
</packages>
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ This mod was formerly called Friendly Skeleton Wand, but was renamed since it as

## Confused? Try the [wiki](https://github.com/jpw1991/chebs-necromancy/wiki).

## Important: Updating to 3.3.1 from an old version, read [here](https://github.com/jpw1991/chebs-necromancy/wiki/Upgrading-from-3.2.0-to-3.3.1)

## About Me

[![image1](https://imgur.com/Fahi6sP.png)](https://chebgonaz.pythonanywhere.com)
Expand Down Expand Up @@ -38,7 +36,7 @@ d) Write a comment on the [Nexus page](https://www.nexusmods.com/valheim/mods/20

## Requirements

- Valheim Mistlands
- Valheim
- BepInEx
- Jotunn

Expand Down Expand Up @@ -129,6 +127,7 @@ A special thanks to the people who've helped me along the way:
+ [**Dracbjorn**](https://github.com/Dracbjorn) - Extensive work on the configuration files & parsing (including server-sync); general help & testing.
+ [**CW-Jesse**](https://github.com/CW-Jesse) - Refinements and improvements on networking code and minion AI; general help & testing.
+ [**WalterWillis**](https://github.com/WalterWillis) - Improvements to Treasure Pylon & Testing.
+ [**jneb802**](https://github.com/jneb802) - Finding and fixing a wrongly named sprite.
- Artists
+ **Ramblez** (aka **[Thorngor](https://www.nexusmods.com/users/21532784)** on the Nexus) - Most of custom textures and icons.
+ [**piacenti**](https://opengameart.org/users/piacenti) for the [skull prop](https://opengameart.org/content/skull-prop) that I use as part of the phylactery.
Expand All @@ -152,6 +151,7 @@ A special thanks to the people who've helped me along the way:

Date | Version | Notes
--- | --- | ---
06/10/2023 | 4.3.0 | update for hildr's request; fix [issue related to bat icon](https://github.com/jpw1991/chebs-necromancy/pull/240)
23/08/2023 | 4.2.0 | update for new valheim patch
02/08/2023 | 4.1.1 | strengthen null checks in Phylactery patch
30/07/2023 | 4.1.0 | add phylactery that consumes dragon eggs when you die and teleports you back to its location
Expand Down
1 change: 1 addition & 0 deletions set_new_version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python3
# There's too many places where the version has to be set, so I've made a little script to do it for me each time.
#
# Locations (why):
Expand Down

0 comments on commit 7f395f8

Please sign in to comment.