1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2025-12-08 22:13:30 +08:00

work in progress

This commit is contained in:
2023-10-14 15:26:56 +08:00
parent 29a6e00417
commit 31b992c7a2
9 changed files with 83 additions and 81 deletions

View File

@@ -21,7 +21,6 @@ public static class I18N
private static readonly List<StringProto> StringsToAdd = new();
public static void Add(string key, string enus, string zhcn = null, string frfr = null)
{
var strings = LDB._strings;
var strProto = new StringProto
{
Name = key,

View File

@@ -114,13 +114,15 @@ public static class DysonSpherePatch
var data = GameMain.data;
var galaxy = data?.galaxy;
if (galaxy == null) return;
_nodeForAbsorb = new HashSet<int>[galaxy.starCount];
var galaxyStarCount = galaxy.starCount;
_nodeForAbsorb = new HashSet<int>[galaxyStarCount];
var spheres = data.dysonSpheres;
if (spheres == null) return;
foreach (var sphere in spheres)
{
if (sphere?.layersSorted == null) continue;
var starIndex = sphere.starData.index;
if (starIndex >= galaxyStarCount) continue;
foreach (var layer in sphere.layersSorted)
{
if (layer == null) continue;