Skip to content

Commit

Permalink
2.1.0: update for new valheim version
Browse files Browse the repository at this point in the history
  • Loading branch information
jpw1991 committed Aug 22, 2023
1 parent 0167580 commit cf98101
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ChebsMercenaries/BasePlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class BasePlugin : BaseUnityPlugin
{
public const string PluginGuid = "com.chebgonaz.chebsmercenaries";
public const string PluginName = "ChebsMercenaries";
public const string PluginVersion = "2.0.0";
public const string PluginVersion = "2.1.0";
private const string ConfigFileName = PluginGuid + ".cfg";
private static readonly string ConfigFileFullPath = Path.Combine(Paths.ConfigPath, ConfigFileName);

Expand Down
1 change: 1 addition & 0 deletions ChebsMercenaries/Package/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ You can find the github [here](https://github.com/jpw1991/chebs-mercenaries).

Date | Version | Notes
--- | --- | ---
23/08/2023 | 2.1.0 | update for new valheim patch
28/07/2023 | 2.0.0 | Workers should behave more realistically with gradual destruction of rocks, trees, etc.
23/07/2023 | 1.7.0 | Add Russian translation & open untranslated parts of the mod up to future translation; update CVL to 2.1.2; permit tweaks of mercenary health in configs; fix diverse bugs eg. female workers not spawning with their AI attached
13/07/2023 | 1.6.0 | Try to make workers behave better; update CVL to 2.1.0 to prepare for upcoming changes
Expand Down
2 changes: 1 addition & 1 deletion ChebsMercenaries/Package/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"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.0.0",
"version_number": "2.1.0",
"website_url": "https://github.com/jpw1991/chebs-mercenaries",
"dependencies": [
"ValheimModding-Jotunn-2.11.0"
Expand Down
4 changes: 2 additions & 2 deletions ChebsMercenaries/Patches/VisEquipmentPatches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,11 @@ static void Postfix(VisEquipment __instance)
var flag6 = __instance.SetHelmetEquipped(hash5, num) | flag5;
var flag7 = __instance.SetShoulderEquipped(hash7, shoulderItemVariant) | flag6;
var flag8 = __instance.SetUtilityEquipped(hash8) | flag7;
if (__instance.m_helmetHideBeard)
if (__instance.m_helmetHideBeard != ItemDrop.ItemData.HelmetHairType.Default)
hash6 = 0;
var flag9 = __instance.SetBeardEquipped(hash6) | flag8;
var flag10 = __instance.SetBackEquipped(leftItem, rightItem, leftBackItemVariant) | flag9;
if (__instance.m_helmetHideHair)
if (__instance.m_helmetHideHair != ItemDrop.ItemData.HelmetHairType.Default)
num = 0;
flag8 = __instance.SetHairEquipped(num) | flag10;

Expand Down
4 changes: 2 additions & 2 deletions ChebsMercenaries/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@
// 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("2.0.0.0")]
[assembly: AssemblyFileVersion("2.0.0.0")]
[assembly: AssemblyVersion("2.1.0.0")]
[assembly: AssemblyFileVersion("2.1.0.0")]
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ You can find the github [here](https://github.com/jpw1991/chebs-mercenaries).

Date | Version | Notes
--- | --- | ---
23/08/2023 | 2.1.0 | update for new valheim patch
28/07/2023 | 2.0.0 | Workers should behave more realistically with gradual destruction of rocks, trees, etc.
23/07/2023 | 1.7.0 | Add Russian translation & open untranslated parts of the mod up to future translation; update CVL to 2.1.2; permit tweaks of mercenary health in configs; fix diverse bugs eg. female workers not spawning with their AI attached
13/07/2023 | 1.6.0 | Try to make workers behave better; update CVL to 2.1.0 to prepare for upcoming changes
Expand Down

0 comments on commit cf98101

Please sign in to comment.