Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## Changelog

0.9.24:
- Compatible with game version 0.10.35.29145

0.9.23:
- Compatible with game version 0.10.35.29088
- @JoshyDo: Fix Dark Fog enemy synchronization on client
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,14 @@ public class RayReceiverChangeLensPacket
{
public RayReceiverChangeLensPacket() { }

public RayReceiverChangeLensPacket(int generatorId, int lensCount, int lensInc, int planetId)
public RayReceiverChangeLensPacket(int generatorId, int lensCount, int planetId)
{
GeneratorId = generatorId;
LensCount = lensCount;
LensInc = lensInc;
PlanetId = planetId;
}

public int GeneratorId { get; set; }
public int LensCount { get; set; }
public int LensInc { get; set; }
public int PlanetId { get; set; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ protected override void ProcessPacket(FoundationBuildUpdatePacket packet, Nebula
var pointCount = factory.planet.aux.ReformSnap(packet.GroundTestPos.ToVector3(), packet.ReformMode,
packet.ReformSize, 0, 0, reformPoints, packet.ReformIndices, factory.platformSystem,
out var reformCenterPoint);
factory.ComputeRestoreTerrainReform(reformPoints, reformCenterPoint, packet.Radius, pointCount,
ref costSandCount, ref getSandCount);
factory.ComputeRestoreTerrainReform(reformPoints, packet.ReformIndices, packet.ReformIndices.Length, reformCenterPoint, packet.Radius, pointCount, ref costSandCount, ref getSandCount);
using (Multiplayer.Session.Factories.IsIncomingRequest.On())
{
factory.RestoreTerrainReform(reformCenterPoint, packet.Radius, packet.ReformSize, packet.VeinBuried);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,5 @@ protected override void ProcessPacket(RayReceiverChangeLensPacket packet, Nebula
return;
}
pool[packet.GeneratorId].catalystPoint = packet.LensCount;
pool[packet.GeneratorId].catalystIncPoint = packet.LensInc;
}
}
2 changes: 1 addition & 1 deletion NebulaPatcher/Patches/Dynamic/PlanetFactory_Patch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ public static void EntityFastFillIn_Postfix(PlanetFactory __instance, int entity
if (genPool[powerGenId].gamma)
{
Multiplayer.Session.Network.SendPacketToLocalStar(new RayReceiverChangeLensPacket(powerGenId,
genPool[powerGenId].catalystPoint, genPool[powerGenId].catalystIncPoint, __instance.planetId));
genPool[powerGenId].catalystPoint, __instance.planetId));
}
}
if (entityData.powerExcId > 0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ public static void OnCataButtonClick_Postfix(UIPowerGeneratorWindow __instance)
}
var packet = new RayReceiverChangeLensPacket(__instance.generatorId,
__instance.powerSystem.genPool[__instance.generatorId].catalystPoint,
__instance.powerSystem.genPool[__instance.generatorId].catalystIncPoint,
GameMain.localPlanet?.id ?? -1);
Multiplayer.Session.Network.SendPacketToLocalStar(packet);
}
Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
"version": "0.9.23",
"version": "0.9.24",
"assemblyVersion": {
"precision": "build"
},
Expand Down