Skip to content

Commit

Permalink
Merge pull request #266 from jpw1991/263-prepare-for-ashlands
Browse files Browse the repository at this point in the history
4.10.1: Fix incorrect RPC names eg. AddFuel -> RPC_AddFuel
  • Loading branch information
jpw1991 authored May 15, 2024
2 parents 3da4a78 + 920b419 commit 0421ac2
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 8 deletions.
3 changes: 2 additions & 1 deletion ChebsNecromancy/BasePlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,12 @@ namespace ChebsNecromancy
[BepInPlugin(PluginGuid, PluginName, PluginVersion)]
[BepInDependency(Main.ModGuid)]
[NetworkCompatibility(CompatibilityLevel.EveryoneMustHaveMod, VersionStrictness.Minor)]
//[NetworkCompatibility(CompatibilityLevel.NotEnforced, VersionStrictness.None)]
internal class BasePlugin : BaseUnityPlugin
{
public const string PluginGuid = "com.chebgonaz.ChebsNecromancy";
public const string PluginName = "ChebsNecromancy";
public const string PluginVersion = "4.10.0";
public const string PluginVersion = "4.10.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.10.0.0</Version>
<Version>4.10.1.0</Version>
<FileVersion>$(Version)</FileVersion>
<AssemblyVersion>$(Version)</AssemblyVersion>

Expand Down
1 change: 1 addition & 0 deletions ChebsNecromancy/Package/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ A special thanks to the people who've helped me along the way:

Date | Version | Notes
--- | --- | ---
25/04/2024 | 4.10.0 | Prepare for ashlands; upgrade CVL
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
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.10.0",
"version_number": "4.10.1",
"website_url": "https://github.com/jpw1991/chebs-necromancy",
"dependencies": [
"ValheimModding-Jotunn-2.19.3"
Expand Down
2 changes: 1 addition & 1 deletion ChebsNecromancy/Structures/FarmingPylon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ private void PickPickables()
var pickable = col.GetComponentInParent<Pickable>();
if (pickable != null && PickableList.Value.Exists(item => pickable.name.Contains(item)))
{
pickable.m_nview.InvokeRPC("Pick");
pickable.m_nview.InvokeRPC("RPC_Pick");
}
}
}
Expand Down
8 changes: 4 additions & 4 deletions ChebsNecromancy/Structures/RefuelerPylon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ void LoadSmelterWithFuel(string fuel)
}

_inventory.RemoveItem(itemData, 1);
smelter.m_nview.InvokeRPC("AddOre", itemData.m_dropPrefab.name);
smelter.m_nview.InvokeRPC("RPC_AddOre", itemData.m_dropPrefab.name);
smelter.m_addedOreTime = Time.time;
if (smelter.m_addOreAnimationDuration > 0f)
{
Expand All @@ -247,7 +247,7 @@ private void ManageFireplace(Fireplace fireplace)

if (_inventory.HaveItem(fireplace.m_fuelItem.m_itemData.m_shared.m_name))
{
fireplace.m_nview.InvokeRPC("AddFuel");
fireplace.m_nview.InvokeRPC("RPC_AddFuel");
_inventory.RemoveItem(fireplace.m_fuelItem.m_itemData.m_shared.m_name, 1);
}
}
Expand All @@ -257,7 +257,7 @@ private void ManageCookingStation(CookingStation cookingStation)
//remove cooked items
if (cookingStation.HaveDoneItem())
{
cookingStation.m_nview.InvokeRPC("RemoveDoneItem", transform.position);
cookingStation.m_nview.InvokeRPC("RPC_RemoveDoneItem", transform.position);
}

// add cookable items
Expand All @@ -268,7 +268,7 @@ private void ManageCookingStation(CookingStation cookingStation)
if (cookableItem != null)
{
var cookableItemName = cookableItem.m_dropPrefab.name;
cookingStation.m_nview.InvokeRPC("AddItem", cookableItemName);
cookingStation.m_nview.InvokeRPC("RPC_AddItem", cookableItemName);
_inventory.RemoveOneItem(cookableItem);
}
}
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ A special thanks to the people who've helped me along the way:

Date | Version | Notes
--- | --- | ---
15/05/2024 | 4.10.1 | Fix incorrect RPC names eg. AddFuel -> RPC_AddFuel
25/04/2024 | 4.10.0 | Prepare for ashlands; upgrade CVL
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
Expand Down

0 comments on commit 0421ac2

Please sign in to comment.