mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2026-03-24 02:37:19 +08:00
Compare commits
1 Commits
0efb7ba14d
...
ab7154bed6
| Author | SHA1 | Date | |
|---|---|---|---|
| ab7154bed6 |
@@ -776,7 +776,7 @@ public static class DysonSphereFunctions
|
|||||||
isEuler.AddRange(shell.frames.Select(frame => frame.euler));
|
isEuler.AddRange(shell.frames.Select(frame => frame.euler));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (nodePos.Count > 0) break;
|
break;
|
||||||
}
|
}
|
||||||
if (nodePos.Count == 0)
|
if (nodePos.Count == 0)
|
||||||
{
|
{
|
||||||
@@ -936,7 +936,6 @@ public static class DysonSphereFunctions
|
|||||||
for (var j = 1; j < layer.shellCursor; j++)
|
for (var j = 1; j < layer.shellCursor; j++)
|
||||||
{
|
{
|
||||||
var shell = layer.shellPool[j];
|
var shell = layer.shellPool[j];
|
||||||
if (shell == null || shell.id != j) continue;
|
|
||||||
shell.nodeIndexMap.Clear();
|
shell.nodeIndexMap.Clear();
|
||||||
for (var k = 0; k < shell.nodes.Count; k++)
|
for (var k = 0; k < shell.nodes.Count; k++)
|
||||||
{
|
{
|
||||||
@@ -946,7 +945,6 @@ public static class DysonSphereFunctions
|
|||||||
for (var j = 1; j < layer.nodeCursor; j++)
|
for (var j = 1; j < layer.nodeCursor; j++)
|
||||||
{
|
{
|
||||||
var node = layer.nodePool[j];
|
var node = layer.nodePool[j];
|
||||||
if (node == null || node.id != j) continue;
|
|
||||||
dysonSphere.AddDysonNodeRData(node, true);
|
dysonSphere.AddDysonNodeRData(node, true);
|
||||||
node.RecalcSpReq();
|
node.RecalcSpReq();
|
||||||
node.RecalcCpReq();
|
node.RecalcCpReq();
|
||||||
|
|||||||
@@ -143,7 +143,6 @@ public static class PlanetFunctions
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var planetId = planet.id;
|
|
||||||
var gameScenario = GameMain.gameScenario;
|
var gameScenario = GameMain.gameScenario;
|
||||||
if (gameScenario != null)
|
if (gameScenario != null)
|
||||||
{
|
{
|
||||||
@@ -154,8 +153,8 @@ public static class PlanetFunctions
|
|||||||
{
|
{
|
||||||
if (pgc.id <= 0) continue;
|
if (pgc.id <= 0) continue;
|
||||||
int protoId = factory.entityPool[pgc.entityId].protoId;
|
int protoId = factory.entityPool[pgc.entityId].protoId;
|
||||||
gameScenario.achievementLogic.NotifyBeforeDismantleEntity(planetId, protoId, pgc.entityId);
|
gameScenario.achievementLogic.NotifyBeforeDismantleEntity(planet.id, protoId, pgc.entityId);
|
||||||
gameScenario.NotifyOnDismantleEntity(planetId, protoId, pgc.entityId);
|
gameScenario.NotifyOnDismantleEntity(planet.id, protoId, pgc.entityId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -169,22 +168,10 @@ public static class PlanetFunctions
|
|||||||
var index = factory.index;
|
var index = factory.index;
|
||||||
var warningSystem = GameMain.data.warningSystem;
|
var warningSystem = GameMain.data.warningSystem;
|
||||||
var warningPool = warningSystem.warningPool;
|
var warningPool = warningSystem.warningPool;
|
||||||
for (var i = warningSystem.warningCursor - 1; i >= 0; i--)
|
for (var i = warningSystem.warningCursor - 1; i > 0; i--)
|
||||||
{
|
{
|
||||||
ref var warning = ref warningPool[i];
|
if (warningPool[i].id == i && warningPool[i].factoryId == index)
|
||||||
if (warning.id != i) continue;
|
warningSystem.RemoveWarningData(warningPool[i].id);
|
||||||
switch (warning.factoryId) {
|
|
||||||
case -4:
|
|
||||||
if (warning.astroId == planetId)
|
|
||||||
warningSystem.RemoveWarningData(i);
|
|
||||||
break;
|
|
||||||
case >= 0:
|
|
||||||
if (warning.factoryId == index)
|
|
||||||
warningSystem.RemoveWarningData(i);
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
var isCombatMode = factory.gameData.gameDesc.isCombatMode;
|
var isCombatMode = factory.gameData.gameDesc.isCombatMode;
|
||||||
factory.entityCursor = 1;
|
factory.entityCursor = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user