diff --git a/ChebsMercenaries/BasePlugin.cs b/ChebsMercenaries/BasePlugin.cs
index 532e850..7f267f9 100644
--- a/ChebsMercenaries/BasePlugin.cs
+++ b/ChebsMercenaries/BasePlugin.cs
@@ -29,11 +29,11 @@ public class BasePlugin : BaseUnityPlugin
{
public const string PluginGuid = "com.chebgonaz.chebsmercenaries";
public const string PluginName = "ChebsMercenaries";
- public const string PluginVersion = "2.3.8";
+ public const string PluginVersion = "2.4.0";
private const string ConfigFileName = PluginGuid + ".cfg";
private static readonly string ConfigFileFullPath = Path.Combine(Paths.ConfigPath, ConfigFileName);
- public readonly System.Version ChebsValheimLibraryVersion = new("2.5.2");
+ public readonly System.Version ChebsValheimLibraryVersion = new("2.6.1");
private readonly Harmony harmony = new(PluginGuid);
diff --git a/ChebsMercenaries/ChebsMercenaries.csproj b/ChebsMercenaries/ChebsMercenaries.csproj
index 9f1fa9e..dd904b5 100644
--- a/ChebsMercenaries/ChebsMercenaries.csproj
+++ b/ChebsMercenaries/ChebsMercenaries.csproj
@@ -20,7 +20,7 @@
$(NeutralLanguage)
- 2.3.8.0
+ 2.4.0.0
$(Version)
$(Version)
@@ -32,13 +32,12 @@
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
-
-
+
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/ChebsMercenaries/Items/AxeOfCommand.cs b/ChebsMercenaries/Items/AxeOfCommand.cs
index 177317d..a2da3a1 100644
--- a/ChebsMercenaries/Items/AxeOfCommand.cs
+++ b/ChebsMercenaries/Items/AxeOfCommand.cs
@@ -52,7 +52,7 @@ public override void UpdateRecipe()
UpdateRecipe(CraftingStationRequired, CraftingCost, CraftingStationLevel);
}
- public override CustomItem GetCustomItemFromPrefab(GameObject prefab)
+ public override CustomItem GetCustomItemFromPrefab(GameObject prefab, bool fixReferences = true)
{
var config = new ItemConfig();
config.Name = NameLocalization;
diff --git a/ChebsMercenaries/Items/MaceOfCommand.cs b/ChebsMercenaries/Items/MaceOfCommand.cs
index bbb0835..d37abdf 100644
--- a/ChebsMercenaries/Items/MaceOfCommand.cs
+++ b/ChebsMercenaries/Items/MaceOfCommand.cs
@@ -52,7 +52,7 @@ public override void UpdateRecipe()
UpdateRecipe(CraftingStationRequired, CraftingCost, CraftingStationLevel);
}
- public override CustomItem GetCustomItemFromPrefab(GameObject prefab)
+ public override CustomItem GetCustomItemFromPrefab(GameObject prefab, bool fixReferences = true)
{
var config = new ItemConfig();
config.Name = NameLocalization;
diff --git a/ChebsMercenaries/Items/SwordOfCommand.cs b/ChebsMercenaries/Items/SwordOfCommand.cs
index 2db14e4..68b5c8d 100644
--- a/ChebsMercenaries/Items/SwordOfCommand.cs
+++ b/ChebsMercenaries/Items/SwordOfCommand.cs
@@ -52,7 +52,7 @@ public override void UpdateRecipe()
UpdateRecipe(CraftingStationRequired, CraftingCost, CraftingStationLevel);
}
- public override CustomItem GetCustomItemFromPrefab(GameObject prefab)
+ public override CustomItem GetCustomItemFromPrefab(GameObject prefab, bool fixReferences = true)
{
var config = new ItemConfig();
config.Name = NameLocalization;
diff --git a/ChebsMercenaries/Package/manifest.json b/ChebsMercenaries/Package/manifest.json
index 8509033..9fa9f6a 100644
--- a/ChebsMercenaries/Package/manifest.json
+++ b/ChebsMercenaries/Package/manifest.json
@@ -1,9 +1,9 @@
{
"name": "ChebsMercenaries",
"description": "Cheb's Mercenaries adds mercenaries to Valheim that you can purchase with gold and upgrade with materials to fight (warriors, archers) or perform work (lumberjacks, miners).",
- "version_number": "2.3.8",
+ "version_number": "2.4.0",
"website_url": "https://github.com/jpw1991/chebs-mercenaries",
"dependencies": [
- "ValheimModding-Jotunn-2.16.1"
+ "ValheimModding-Jotunn-2.19.3"
]
}
diff --git a/publish_debug.sh b/publish_debug.sh
index 359f04e..7b2b777 100755
--- a/publish_debug.sh
+++ b/publish_debug.sh
@@ -1,12 +1,11 @@
#!/bin/bash
-DEBUGDIR=ChebsMercenaries/bin/Debug
+DEBUGDIR=ChebsMercenaries/bin/Debug/net48
DLL=$DEBUGDIR/ChebsMercenaries.dll
-LIB=../chebs-valheim-library/ChebsValheimLibrary/bin/Release/ChebsValheimLibrary.dll
+LIB=$DEBUGDIR/ChebsValheimLibrary.dll
BUN=../chebs-necromancy/ChebsNecromancyUnity/Assets/AssetBundles/chebgonaz
#PLUGINS=/home/joshua/.local/share/Steam/steamapps/common/Valheim/BepInEx/plugins
PLUGINS=/home/$USER/.config/r2modmanPlus-local/Valheim/profiles/cheb-development/BepInEx/plugins/ChebGonaz-ChebsMercenaries
-BEPINEX=ChebsMercenaries/libs/BepInEx.dll
# Check that source files exist and are readable
if [ ! -f "$DLL" ]; then
@@ -35,11 +34,6 @@ if [ ! -w "$PLUGINS" ]; then
exit 1
fi
-if [ ! -f "$BEPINEX" ]; then
- echo "Error: $BEPINEX does not exist or is not readable."
- exit 1
-fi
-
cp -f "$DLL" "$PLUGINS" || { echo "Error: Failed to copy $DLL"; exit 1; }
cp -f "$LIB" "$PLUGINS" || { echo "Error: Failed to copy $LIB"; exit 1; }
diff --git a/publish_release.sh b/publish_release.sh
index 79c1561..82b6830 100755
--- a/publish_release.sh
+++ b/publish_release.sh
@@ -1,13 +1,12 @@
#!/bin/bash
-RELEASEDIR=ChebsMercenaries/bin/Release
+RELEASEDIR=ChebsMercenaries/bin/Release/net48
DLL=$RELEASEDIR/ChebsMercenaries.dll
-LIB=../chebs-valheim-library/ChebsValheimLibrary/bin/Release/ChebsValheimLibrary.dll
+LIB=$RELEASEDIR/ChebsValheimLibrary.dll
BUN=../chebs-necromancy/ChebsNecromancyUnity/Assets/AssetBundles/chebgonaz
PLUGINS=ChebsMercenaries/Package/plugins
README=README.md
TRANSLATIONS=Translations
-BEPINEX=ChebsMercenaries/libs/BepInEx.dll
VERSION=$1
@@ -43,10 +42,6 @@ if [ ! -f "$README" ]; then
exit 1
fi
-if [ ! -f "$BEPINEX" ]; then
- echo "Error: $BEPINEX does not exist or is not readable."
- exit 1
-fi
cp -f "$DLL" "$PLUGINS" || { echo "Error: Failed to copy $DLL"; exit 1; }
cp -f "$LIB" "$PLUGINS" || { echo "Error: Failed to copy $LIB"; exit 1; }