戴森球计划修改

去掉采集器只能在赤道上搭建的限制

BuildTool_Click.cs

1
2
3
4
5
6
if (y2 > 0.1f || y2 < -0.1f)
{
// 注销掉
// buildPreview.condition = EBuildCondition.BuildInEquator;
goto IL_1CF7;
}

去掉抽水机的限制

BuildTool_Click.cs

1
2
3
//buildPreview.condition = EBuildCondition.NeedWater;
替换为
buildPreview.condition = EBuildCondition.Ok;

0.7.18的连续建造限制

BuildTool_Click.cs

1
2
3
4
protected override void _OnInit()
{
this.dotsSnapped = new Vector3[12]; // 12可以改大
}

让宇宙密度更大,星系间路径更小

UniverseGen.cs

1
2
3
4
num = UniverseGen.GenerateTempPoses(dotNet35Random.Next(), num, 4, 2.0, 2.3, 3.5, 0.18);
// 替换为
num = UniverseGen.GenerateTempPoses(dotNet35Random.Next(), num, 4, 0.6, 0.8, 1.6, 0.18);

不需要沙土

PlanetFactory.cs

1
2
3
4
修改 ComputeFlattenTerrainReform的结尾
return num7;
修改为
return -Mathf.Abs(num7);

星球数量

StarGen.cs

找到CreateStarPlanets,从第一个if开始到star.planetCount = 1;

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
if (star.type == EStarType.BlackHole)
{
star.planetCount = 1;
star.planets = new PlanetData[star.planetCount];
int info_seed = dotNet35Random2.Next();
int gen_seed = dotNet35Random2.Next();
star.planets[0] = PlanetGen.CreatePlanet(galaxy, star, gameDesc, 0, 0, 3, 1, false, info_seed, gen_seed);
}
else if (star.type == EStarType.NeutronStar)
{
star.planetCount = 1;
star.planets = new PlanetData[star.planetCount];
int info_seed2 = dotNet35Random2.Next();
int gen_seed2 = dotNet35Random2.Next();
star.planets[0] = PlanetGen.CreatePlanet(galaxy, star, gameDesc, 0, 0, 3, 1, false, info_seed2, gen_seed2);
}
else if (star.type == EStarType.WhiteDwarf)
{
star.planetCount = 2;
star.planets = new PlanetData[star.planetCount];
if (num2 < 0.30000001192092896)
{
int info_seed3 = dotNet35Random2.Next();
int gen_seed3 = dotNet35Random2.Next();
star.planets[0] = PlanetGen.CreatePlanet(galaxy, star, gameDesc, 0, 0, 3, 1, false, info_seed3, gen_seed3);
info_seed3 = dotNet35Random2.Next();
gen_seed3 = dotNet35Random2.Next();
star.planets[1] = PlanetGen.CreatePlanet(galaxy, star, gameDesc, 1, 0, 4, 2, false, info_seed3, gen_seed3);
}
else
{
int info_seed4 = dotNet35Random2.Next();
int gen_seed4 = dotNet35Random2.Next();
star.planets[0] = PlanetGen.CreatePlanet(galaxy, star, gameDesc, 0, 0, 4, 1, true, info_seed4, gen_seed4);
info_seed4 = dotNet35Random2.Next();
gen_seed4 = dotNet35Random2.Next();
star.planets[1] = PlanetGen.CreatePlanet(galaxy, star, gameDesc, 1, 1, 1, 1, false, info_seed4, gen_seed4);
}
}
else if (star.type == EStarType.GiantStar)
{
star.planetCount = 3;
star.planets = new PlanetData[star.planetCount];
if (num2 < 0.15000000596046448)
{
int info_seed5 = dotNet35Random2.Next();
int gen_seed5 = dotNet35Random2.Next();
star.planets[0] = PlanetGen.CreatePlanet(galaxy, star, gameDesc, 0, 0, (num3 > 0.5) ? 3 : 2, 1, false, info_seed5, gen_seed5);
info_seed5 = dotNet35Random2.Next();
gen_seed5 = dotNet35Random2.Next();
star.planets[1] = PlanetGen.CreatePlanet(galaxy, star, gameDesc, 1, 0, (num3 > 0.5) ? 4 : 3, 2, false, info_seed5, gen_seed5);
info_seed5 = dotNet35Random2.Next();
gen_seed5 = dotNet35Random2.Next();
star.planets[2] = PlanetGen.CreatePlanet(galaxy, star, gameDesc, 2, 0, (num3 > 0.5) ? 5 : 4, 3, false, info_seed5, gen_seed5);
}
else if (num2 < 0.75)
{
int info_seed6 = dotNet35Random2.Next();
int gen_seed6 = dotNet35Random2.Next();
star.planets[0] = PlanetGen.CreatePlanet(galaxy, star, gameDesc, 0, 0, (num3 > 0.5) ? 3 : 2, 1, false, info_seed6, gen_seed6);
info_seed6 = dotNet35Random2.Next();
gen_seed6 = dotNet35Random2.Next();
star.planets[1] = PlanetGen.CreatePlanet(galaxy, star, gameDesc, 1, 0, 4, 2, true, info_seed6, gen_seed6);
info_seed6 = dotNet35Random2.Next();
gen_seed6 = dotNet35Random2.Next();
star.planets[2] = PlanetGen.CreatePlanet(galaxy, star, gameDesc, 2, 2, 1, 1, false, info_seed6, gen_seed6);
}
else
{
int info_seed7 = dotNet35Random2.Next();
int gen_seed7 = dotNet35Random2.Next();
star.planets[0] = PlanetGen.CreatePlanet(galaxy, star, gameDesc, 0, 0, (num3 > 0.5) ? 4 : 3, 1, true, info_seed7, gen_seed7);
info_seed7 = dotNet35Random2.Next();
gen_seed7 = dotNet35Random2.Next();
star.planets[1] = PlanetGen.CreatePlanet(galaxy, star, gameDesc, 1, 1, 1, 1, false, info_seed7, gen_seed7);
info_seed7 = dotNet35Random2.Next();
gen_seed7 = dotNet35Random2.Next();
star.planets[2] = PlanetGen.CreatePlanet(galaxy, star, gameDesc, 2, 1, 2, 2, false, info_seed7, gen_seed7);
}
}
else
{
Array.Clear(StarGen.pGas, 0, StarGen.pGas.Length);
if (star.index == 0)
{
star.planetCount = 4;
StarGen.pGas[0] = 0.0;
StarGen.pGas[1] = 0.0;
StarGen.pGas[2] = 0.0;
}
else if (star.spectr == ESpectrType.M)
{
star.planetCount = 8;
StarGen.pGas[0] = 0.0;
StarGen.pGas[1] = 0.2;
StarGen.pGas[2] = 0.3;
StarGen.pGas[3] = 0.0;
StarGen.pGas[4] = 0.2;
StarGen.pGas[5] = 0.3;
}
else if (star.spectr == ESpectrType.K)
{
star.planetCount = 8;
StarGen.pGas[0] = 0.0;
StarGen.pGas[1] = 0.18;
StarGen.pGas[2] = 0.28;
StarGen.pGas[3] = 0.28;
StarGen.pGas[4] = 0.0;
StarGen.pGas[5] = 0.18;
StarGen.pGas[6] = 0.28;
StarGen.pGas[7] = 0.28;
}
else if (star.spectr == ESpectrType.G)
{
star.planetCount = 8;
StarGen.pGas[0] = 0.0;
StarGen.pGas[1] = 0.2;
StarGen.pGas[2] = 0.3;
StarGen.pGas[3] = 0.3;
StarGen.pGas[4] = 0.0;
StarGen.pGas[5] = 0.2;
}
else if (star.spectr == ESpectrType.F)
{
star.planetCount = 8;
StarGen.pGas[0] = 0.0;
StarGen.pGas[1] = 0.22;
StarGen.pGas[2] = 0.31;
StarGen.pGas[3] = 0.31;
StarGen.pGas[4] = 0.0;
StarGen.pGas[5] = 0.22;
}
else if (star.spectr == ESpectrType.A)
{
star.planetCount = 8;
StarGen.pGas[0] = 0.1;
StarGen.pGas[1] = 0.28;
StarGen.pGas[2] = 0.3;
StarGen.pGas[3] = 0.35;
StarGen.pGas[4] = 0.1;
StarGen.pGas[5] = 0.28;
}
else if (star.spectr == ESpectrType.B)
{
star.planetCount = 8;
StarGen.pGas[0] = 0.1;
StarGen.pGas[1] = 0.22;
StarGen.pGas[2] = 0.28;
StarGen.pGas[3] = 0.35;
StarGen.pGas[4] = 0.35;
StarGen.pGas[5] = 0.1;
StarGen.pGas[6] = 0.22;
}
else if (star.spectr == ESpectrType.O)
{
star.planetCount = 8;
StarGen.pGas[0] = 0.1;
StarGen.pGas[1] = 0.2;
StarGen.pGas[2] = 0.25;
StarGen.pGas[3] = 0.3;
StarGen.pGas[4] = 0.32;
StarGen.pGas[5] = 0.35;
StarGen.pGas[6] = 0.1;
StarGen.pGas[7] = 0.2;
}
else
{
star.planetCount = 1;
}

修改物流塔上限

UIStationStorage.cs

1
2
3
4
this.maxValueText.text = stationStore.max.ToString();
int num = 100000; // 这里
int num2 = num / 100;

更多的矿物

PlanetAlgorithm.cs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
if (spectr == ESpectrType.M)
{
p = 2.5f;
}
else if (spectr == ESpectrType.K)
{
p = 2.5f;
}
else if (spectr == ESpectrType.G)
{
p = 2.5f;
}
else if (spectr == ESpectrType.F)
{
p = 2.5f;
}
else if (spectr == ESpectrType.A)
{
p = 2.5f;
}
else if (spectr == ESpectrType.B)
{
p = 2.5f;
}
else if (spectr == ESpectrType.O)
{
p = 2.5f;