Skip to content

Commit

Permalink
Version 0.10, update to latest 1.5 version
Browse files Browse the repository at this point in the history
- Handle _NewTemps
  • Loading branch information
Zetrith committed Apr 5, 2024
1 parent d08cdbc commit 58c6735
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Source/Client/Factions/Blueprints.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace Multiplayer.Client
// Don't draw other factions' blueprints
// Don't link graphics of different factions' blueprints

[HarmonyPatch(typeof(GenConstruct), nameof(GenConstruct.CanPlaceBlueprintAt))]
[HarmonyPatch(typeof(GenConstruct), nameof(GenConstruct.CanPlaceBlueprintAt_NewTemp))]
static class CanPlaceBlueprintAtPatch
{
static MethodInfo CanPlaceBlueprintOver = AccessTools.Method(typeof(GenConstruct), nameof(GenConstruct.CanPlaceBlueprintOver));
Expand Down Expand Up @@ -49,7 +49,7 @@ static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> e, M
}


[HarmonyPatch(typeof(GenConstruct), nameof(GenConstruct.CanPlaceBlueprintAt))]
[HarmonyPatch(typeof(GenConstruct), nameof(GenConstruct.CanPlaceBlueprintAt_NewTemp))]
static class CanPlaceBlueprintAtPatch2
{
static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> e, MethodBase original)
Expand Down
2 changes: 1 addition & 1 deletion Source/Client/Multiplayer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<ItemGroup>
<PackageReference Include="Krafs.Publicizer" Version="2.0.1" />
<PackageReference Include="Lib.Harmony" Version="2.2.2" ExcludeAssets="runtime" />
<PackageReference Include="Krafs.Rimworld.Ref" Version="1.5.4034-beta" />
<PackageReference Include="Krafs.Rimworld.Ref" Version="1.5.4055-beta" />
<PackageReference Include="RestSharp" Version="106.12.0" />
<PackageReference Include="RimWorld.MultiplayerAPI" Version="0.5.0" />
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion Source/Client/Patches/ThingMethodPatches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ static void Finalizer(Container<Map>? __state)
}
}

[HarmonyPatch(typeof(Pawn_JobTracker), nameof(Pawn_JobTracker.CheckForJobOverride))]
[HarmonyPatch(typeof(Pawn_JobTracker), nameof(Pawn_JobTracker.CheckForJobOverride_NewTemp))]
public static class JobTrackerOverride
{
static void Prefix(Pawn_JobTracker __instance, ref Container<Map>? __state)
Expand Down
2 changes: 1 addition & 1 deletion Source/Client/Syncing/Game/SyncMethods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public static void Init()
SyncMethod.Register(typeof(SettlementAbandonUtility), nameof(SettlementAbandonUtility.Abandon)).CancelIfAnyArgNull();
SyncMethod.Register(typeof(WorldSelector), nameof(WorldSelector.AutoOrderToTileNow)).CancelIfAnyArgNull();
SyncMethod.Register(typeof(CaravanMergeUtility), nameof(CaravanMergeUtility.TryMergeSelectedCaravans)).SetContext(SyncContext.WorldSelected);
SyncMethod.Register(typeof(PawnBanishUtility), nameof(PawnBanishUtility.Banish)).CancelIfAnyArgNull();
SyncMethod.Register(typeof(PawnBanishUtility), nameof(PawnBanishUtility.Banish_NewTemp)).CancelIfAnyArgNull();
SyncMethod.Register(typeof(SettlementUtility), nameof(SettlementUtility.Attack)).CancelIfAnyArgNull();

SyncMethod.Register(typeof(WITab_Caravan_Gear), nameof(WITab_Caravan_Gear.TryEquipDraggedItem)).SetContext(SyncContext.WorldSelected).CancelIfNoSelectedWorldObjects().CancelIfAnyArgNull();
Expand Down
2 changes: 1 addition & 1 deletion Source/Common/Version.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ namespace Multiplayer.Common
{
public static class MpVersion
{
public const string Version = "0.9.9";
public const string Version = "0.10";
public const int Protocol = 42;

public const string ApiAssemblyName = "0MultiplayerAPI";
Expand Down

0 comments on commit 58c6735

Please sign in to comment.