Skip to content

Commit

Permalink
Merge pull request #700 from AlienXAXS/10.30.23272
Browse files Browse the repository at this point in the history
Nebula DSP 0.10.30.23272 Update
  • Loading branch information
starfi5h authored Aug 15, 2024
2 parents 11f92ca + f1a8e77 commit 7318c31
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
## Changelog
0.9.8:
- @AlienXAXS: Added Online Player UI (Backtick key by default)
- @AlienXAXS: Updated Nebula to be compatible with Dyson Sphere Program v0.10.30.23292

0.9.7:
- @AlienXAXS: Headless now calculates planetary shields on CPU
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ protected override void ProcessPacket(PrebuildItemRequiredUpdate packet, NebulaC
factory.NotifyPrebuildChange(ptr.id, 3);
if (factory.planet.factoryLoaded || factory.planet.factingCompletedStage >= 3)
{
factory.AlterPrebuildModelState(ptr.id, false);
factory.AlterPrebuildModelState(ptr.id);
}
factory.constructionSystem.AddBuildTargetToModules(ptr.id, ref ptr.pos);
}
Expand Down
10 changes: 10 additions & 0 deletions NebulaPatcher/Patches/Transpilers/UIStatisticsWindow_Transpiler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ namespace NebulaPatcher.Patches.Transpilers;
[HarmonyPatch(typeof(UIStatisticsWindow))]
public static class UIStatisticsWindow_Transpiler
{

/*
* AlienX: After looking at the code which v0.10.30.23292 has (this method changed), it would seem that:
* - It creates two lists private in scope to the method: items and itemsData
* - Populates these lists
* - Does nothing with them
*
* Is this method completely redundant now???
[HarmonyTranspiler]
[HarmonyPatch(nameof(UIStatisticsWindow.RefreshAstroBox))]
private static IEnumerable<CodeInstruction> RefreshAstroBox_Transpiler(IEnumerable<CodeInstruction> instructions)
Expand Down Expand Up @@ -65,6 +74,7 @@ private static IEnumerable<CodeInstruction> RefreshAstroBox_Transpiler(IEnumerab
return codeInstructions;
}
}
*/

[HarmonyTranspiler]
[HarmonyPatch(nameof(UIStatisticsWindow.ComputeDisplayProductEntries))]
Expand Down
2 changes: 1 addition & 1 deletion NebulaWorld/Player/DroneManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ private ref DroneComponent CreateDrone(PlanetFactory factory, Vector3 pos, Quate
craftData.astroId = factory.planetId;
craftData.owner = playerId; // Use craft.owner field to store playerId
craftData.port = 0;
craftData.prototype = EPrototype.ConstructionDrone;
craftData.prototype = ECraftProto.ConstructionDrone;
craftData.dynamic = true;
craftData.isSpace = false;
craftData.pos = pos;
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.7",
"version": "0.9.8",
"assemblyVersion": {
"precision": "build"
},
Expand Down

0 comments on commit 7318c31

Please sign in to comment.