mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2025-12-08 21:33:28 +08:00
CheatEnabler v2.3.9
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<TargetFramework>net472</TargetFramework>
|
||||
<BepInExPluginGuid>org.soardev.cheatenabler</BepInExPluginGuid>
|
||||
<Description>DSP MOD - CheatEnabler</Description>
|
||||
<Version>2.3.8</Version>
|
||||
<Version>2.3.9</Version>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<LangVersion>latest</LangVersion>
|
||||
<PackageId>CheatEnabler</PackageId>
|
||||
@@ -16,14 +16,14 @@
|
||||
<ItemGroup>
|
||||
<PackageReference Include="BepInEx.Core" Version="5.*" />
|
||||
<PackageReference Include="BepInEx.PluginInfoProps" Version="1.*" />
|
||||
<PackageReference Include="DysonSphereProgram.GameLibs" Version="*-r.*" />
|
||||
<PackageReference Include="DysonSphereProgram.GameLibs" Version="0.10.28.21219-r.0" />
|
||||
<PackageReference Include="UnityEngine.Modules" Version="2018.4.12" IncludeAssets="compile" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Condition="'$(TargetFramework.TrimEnd(`0123456789`))' == 'net'">
|
||||
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3" PrivateAssets="all" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\UXAssist\UXAssist.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
@@ -237,6 +237,8 @@ public static class DysonSpherePatch
|
||||
var sphere = __instance.dysonSphere;
|
||||
var layers = sphere.layersSorted;
|
||||
var llen = sphere.layerCount;
|
||||
var sphereProductRegister = sphere.productRegister;
|
||||
var sphereConsumeRegister = sphere.consumeRegister;
|
||||
if (llen > 0)
|
||||
{
|
||||
var lidx = ((int)time >> 4) % llen;
|
||||
@@ -258,9 +260,9 @@ public static class DysonSpherePatch
|
||||
if (node.ConstructCp() == null) break;
|
||||
if (idx == 0)
|
||||
{
|
||||
sphere.productRegister[11901] += len;
|
||||
sphere.consumeRegister[11901] += len;
|
||||
sphere.productRegister[11903] += len;
|
||||
sphereProductRegister[11901] += len;
|
||||
sphereConsumeRegister[11901] += len;
|
||||
sphereProductRegister[11903] += len;
|
||||
return;
|
||||
}
|
||||
idx--;
|
||||
@@ -269,9 +271,12 @@ public static class DysonSpherePatch
|
||||
}
|
||||
}
|
||||
var absorbCnt = len - 1 - idx;
|
||||
sphere.productRegister[11901] += absorbCnt;
|
||||
sphere.consumeRegister[11901] += absorbCnt;
|
||||
sphere.productRegister[11903] += absorbCnt;
|
||||
if (absorbCnt > 0)
|
||||
{
|
||||
sphereProductRegister[11901] += absorbCnt;
|
||||
sphereConsumeRegister[11901] += absorbCnt;
|
||||
sphereProductRegister[11903] += absorbCnt;
|
||||
}
|
||||
}
|
||||
for (; idx >= 0; idx--)
|
||||
{
|
||||
@@ -314,7 +319,7 @@ public static class DysonSpherePatch
|
||||
new CodeInstruction(OpCodes.Brfalse_S, label1),
|
||||
new CodeInstruction(OpCodes.Ldarg_0),
|
||||
new CodeInstruction(OpCodes.Ldfld, AccessTools.Field(typeof(DysonSwarm), nameof(DysonSwarm.dysonSphere))),
|
||||
new CodeInstruction(OpCodes.Ldfld, AccessTools.Field(typeof(DysonSphere), nameof(DysonSphere.productRegister))),
|
||||
new CodeInstruction(OpCodes.Call, AccessTools.PropertyGetter(typeof(DysonSphere), nameof(DysonSphere.productRegister))),
|
||||
new CodeInstruction(OpCodes.Ldc_I4, 11903),
|
||||
new CodeInstruction(OpCodes.Ldelema, typeof(int)),
|
||||
new CodeInstruction(OpCodes.Dup),
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
#### 添加一些作弊功能,同时屏蔽异常检测
|
||||
|
||||
## Changlog
|
||||
* 2.3.9
|
||||
+ Support game version 0.10.28.21219
|
||||
* 2.3.8
|
||||
+ Fix a crash on starting new games while `Finish build immediately` is enabled.
|
||||
+ Fix UI button width.
|
||||
@@ -118,6 +120,8 @@
|
||||
* [Multifunction_mod](https://github.com/blacksnipebiu/Multifunction_mod): Some cheat functions
|
||||
|
||||
## 更新日志
|
||||
* 2.3.9
|
||||
+ 支持游戏版本0.10.28.21219
|
||||
* 2.3.8
|
||||
+ 修复了启用`建造秒完成`时开新游戏可能导致崩溃的问题
|
||||
+ 修复了UI按钮宽度
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "CheatEnabler",
|
||||
"version_number": "2.3.8",
|
||||
"version_number": "2.3.9",
|
||||
"website_url": "https://github.com/soarqin/DSP_Mods/tree/master/CheatEnabler",
|
||||
"description": "Add various cheat functions while disabling abnormal determinants / 添加一些作弊功能,同时屏蔽异常检测",
|
||||
"dependencies": [
|
||||
|
||||
Reference in New Issue
Block a user