Skip to content

Commit a1727b4

Browse files
committed
Update Code
1 parent cc533be commit a1727b4

File tree

6 files changed

+25
-14
lines changed

6 files changed

+25
-14
lines changed

CHANGELOG.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
- v3.0.7
2+
+ 调整了制造复合矩阵时的工作颜色(感谢karki)
3+
+ 修复了研究非矩阵科技时的可能出现的报错问题
4+
5+
+ Adjusted working colors when making composite matrices (thanks karki)
6+
+ Fixed a bug that could occur when researching non-matrix technologies
7+
8+
9+
<details>
10+
<summary>点击展开日志 | Click to view all </summary>
11+
12+
113
- v3.0.6
214
+ 移除了黑雾掉落中的`齿轮`
315
+ 调整了部分科技的研究需求、前置科技
@@ -6,10 +18,6 @@
618
+ Adjusted research requirements and pre-requisite technologies for some technologies
719

820

9-
<details>
10-
<summary>点击展开日志 | Click to view all </summary>
11-
12-
1321
- v3.0.5
1422
+ 移除了物品`齿轮`,调整了相关配方
1523
+ 调整了部分科技的研究需求、前置科技

ProjectGenesis.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,14 @@
114114
<Copy SourceFiles="$(TargetPath)" DestinationFiles="$(BepinExPath)plugins\$(DebugModDir)\$(TargetName).dll"/>
115115
<Copy SourceFiles="$(SolutionDir)assets\texpack" DestinationFiles="$(BepinExPath)plugins\$(DebugModDir)\texpack"/>
116116
<Copy SourceFiles="$(SolutionDir)assets\genesis-models" DestinationFiles="$(BepinExPath)plugins\$(DebugModDir)\genesis-models"/>
117+
<Copy SourceFiles="$(SolutionDir)assets\genesis-models-lab" DestinationFiles="$(BepinExPath)plugins\$(DebugModDir)\genesis-models-lab"/>
117118
<Copy SourceFiles="$(TargetPath)" DestinationFiles="$(ReleasePath)plugins\$(TargetName).dll"/>
118119
<Copy SourceFiles="README.md" DestinationFiles="$(ReleasePath)README.md"/>
119120
<Copy SourceFiles="CHANGELOG.md" DestinationFiles="$(ReleasePath)CHANGELOG.md"/>
120121
<Copy SourceFiles="$(SolutionDir)assets\icon.png" DestinationFiles="$(ReleasePath)icon.png"/>
121122
<Copy SourceFiles="$(SolutionDir)assets\texpack" DestinationFiles="$(ReleasePath)plugins\texpack"/>
122123
<Copy SourceFiles="$(SolutionDir)assets\genesis-models" DestinationFiles="$(ReleasePath)plugins\genesis-models"/>
124+
<Copy SourceFiles="$(SolutionDir)assets\genesis-models-lab" DestinationFiles="$(ReleasePath)plugins\genesis-models-lab"/>
123125
<Copy SourceFiles="$(SolutionDir)lib\Newtonsoft.Json.dll" DestinationFiles="$(ReleasePath)plugins\Newtonsoft.Json.dll"/>
124126
</Target>
125127
</Project>

assets/genesis-models-lab

300 KB
Binary file not shown.

data/techs.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@
171171
"MaxLevel": 0,
172172
"LevelCoef1": 0,
173173
"LevelCoef2": 0,
174-
"IsLabTech": true,
174+
"IsLabTech": false,
175175
"PreTechsMax": false,
176176
"AddItems": [
177177
1401
@@ -507,7 +507,7 @@
507507
"MaxLevel": 0,
508508
"LevelCoef1": 0,
509509
"LevelCoef2": 0,
510-
"IsLabTech": true,
510+
"IsLabTech": false,
511511
"PreTechsMax": false,
512512
"AddItems": [
513513
2106

src/Patches/UI/ResearchLabPatches.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,6 @@ public static void UILabWindow_OnUpdate_Postfix(UILabWindow __instance)
116116
}
117117
}
118118

119-
[HarmonyPatch(typeof(LabComponent), nameof(LabComponent.InternalUpdateAssemble))]
120-
[HarmonyPostfix]
121-
public static void LabComponent_InternalUpdateAssemble_Postfix(ref LabComponent __instance, ref uint __result)
122-
{
123-
if (__result > 6) __result = 6;
124-
}
125-
126119
[HarmonyPatch(typeof(UILabWindow), nameof(UILabWindow._OnUpdate))]
127120
[HarmonyTranspiler]
128121
public static IEnumerable<CodeInstruction> UILabWindow_OnUpdate_Transpiler(IEnumerable<CodeInstruction> instructions)

src/ProjectGenesis.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public class ProjectGenesis : BaseUnityPlugin, IModCanSave, IMultiplayerMod
5454
{
5555
public const string MODGUID = "org.LoShin.GenesisBook";
5656
public const string MODNAME = "GenesisBook";
57-
public const string VERSION = "3.0.6";
57+
public const string VERSION = "3.0.7";
5858
public const string DEBUGVERSION = "";
5959

6060
public static bool LoadCompleted;
@@ -122,6 +122,10 @@ public void Awake()
122122
resources_models.LoadAssetBundle("genesis-models");
123123
ProtoRegistry.AddResource(resources_models);
124124

125+
var resources_lab = new ResourceData("org.LoShin.GenesisBook", "genesis-models-lab", ModPath);
126+
resources_lab.LoadAssetBundle("genesis-models-lab");
127+
ProtoRegistry.AddResource(resources_lab);
128+
125129
Shader stoneVeinShader =
126130
resources_models.bundle.LoadAsset<Shader>("Assets/genesis-models/shaders/PBR Standard Vein Stone COLOR.shader");
127131
SwapShaderPatches.AddSwapShaderMapping("VF Shaders/Forward/PBR Standard Vein Stone", stoneVeinShader);
@@ -130,6 +134,10 @@ public void Awake()
130134
resources_models.bundle.LoadAsset<Shader>("Assets/genesis-models/shaders/PBR Standard Vein Metal COLOR.shader");
131135
SwapShaderPatches.AddSwapShaderMapping("VF Shaders/Forward/PBR Standard Vein Metal", metalVeinShader);
132136

137+
Shader labToggleShader =
138+
resources_lab.bundle.LoadAsset<Shader>("Assets/genesis-models/shaders/PBR Standard Vertex Toggle Lab REPLACE.shader");
139+
SwapShaderPatches.AddSwapShaderMapping("VF Shaders/Forward/PBR Standard Vertex Toggle Lab", labToggleShader);
140+
133141
#endregion ResourceData
134142

135143
#region NebulaModAPI

0 commit comments

Comments
 (0)