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:
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user