Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Source Code/Insulated Joint Plate/InsulatedPlate.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>InsulatedJointPlate</RootNamespace>
<AssemblyName>InsulatedJointPlate</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
<TargetFrameworkProfile />
Expand Down
23 changes: 6 additions & 17 deletions Source Code/Insulated Joint Plate/InsulatedPlates.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Harmony;
using HarmonyLib;
using static STRINGS.UI;
using Database;
using System.Collections.Generic;
Expand Down Expand Up @@ -83,23 +83,12 @@ public static void bridgeBuildMenu(string door, string menu, string pred)
}
}

public static void bridgeTechTree(string door, string group)
public static void bridgeTechTree(string id, string researchGroup)
{
if (group == "none") return;
#if VANILLA
Techs.TECH_GROUPING[group] = new List<string>((IEnumerable<string>)Techs.TECH_GROUPING[group])
{
door
}.ToArray();
#endif

#if SPACED_OUT
var tech = Db.Get().Techs.TryGet(group);
if (tech != null)
{
tech.unlockedItemIDs.Add(door);
}
#endif
if (researchGroup == "none") return;

Tech tech = Db.Get().Techs.TryGet(researchGroup);
tech?.AddUnlockedItemIDs(id);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public override void ConfigureBuildingTemplate(GameObject go, Tag prefab_tag)
GeneratedBuildings.MakeBuildingAlwaysOperational(go);
SimCellOccupier simCellOccupier = go.AddOrGet<SimCellOccupier>();
simCellOccupier.doReplaceElement = true;
simCellOccupier.movementSpeedMultiplier = DUPLICANTSTATS.MOVEMENT.PENALTY_3;
simCellOccupier.movementSpeedMultiplier = DUPLICANTSTATS.MOVEMENT_MODIFIERS.PENALTY_3;
go.AddOrGet<BuildingHP>().destroyOnDamaged = true;
go.AddOrGet<Insulator>();
go.AddOrGet<TileTemperature>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public override void ConfigureBuildingTemplate(GameObject go, Tag prefab_tag)
GeneratedBuildings.MakeBuildingAlwaysOperational(go);
SimCellOccupier simCellOccupier = go.AddOrGet<SimCellOccupier>();
simCellOccupier.doReplaceElement = true;
simCellOccupier.movementSpeedMultiplier = DUPLICANTSTATS.MOVEMENT.PENALTY_3;
simCellOccupier.movementSpeedMultiplier = DUPLICANTSTATS.MOVEMENT_MODIFIERS.PENALTY_3;
go.AddOrGet<BuildingHP>().destroyOnDamaged = true;
go.AddOrGet<Insulator>();
go.AddOrGet<TileTemperature>();
Expand Down
2 changes: 1 addition & 1 deletion Source Code/Insulated Joint Plate/Localization/loc.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Harmony;
using HarmonyLib;
using System;
using System.IO;
using System.Reflection;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public override void ConfigureBuildingTemplate(GameObject go, Tag prefab_tag)
GeneratedBuildings.MakeBuildingAlwaysOperational(go);
SimCellOccupier simCellOccupier = go.AddOrGet<SimCellOccupier>();
simCellOccupier.doReplaceElement = true;
simCellOccupier.movementSpeedMultiplier = DUPLICANTSTATS.MOVEMENT.PENALTY_3;
simCellOccupier.movementSpeedMultiplier = DUPLICANTSTATS.MOVEMENT_MODIFIERS.PENALTY_3;
go.AddOrGet<BuildingHP>().destroyOnDamaged = true;
go.AddOrGet<Insulator>();
go.AddOrGet<TileTemperature>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public override void ConfigureBuildingTemplate(GameObject go, Tag prefab_tag)
GeneratedBuildings.MakeBuildingAlwaysOperational(go);
SimCellOccupier simCellOccupier = go.AddOrGet<SimCellOccupier>();
simCellOccupier.doReplaceElement = true;
simCellOccupier.movementSpeedMultiplier = DUPLICANTSTATS.MOVEMENT.PENALTY_3;
simCellOccupier.movementSpeedMultiplier = DUPLICANTSTATS.MOVEMENT_MODIFIERS.PENALTY_3;
go.AddOrGet<BuildingHP>().destroyOnDamaged = true;
go.AddOrGet<Insulator>();
go.AddOrGet<TileTemperature>();
Expand Down
Binary file modified Source Code/Insulated Joint Plate/Steam/InsulatedJointPlate.dll
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
supportedContent: VANILLA_ID
lastWorkingBuild: 447596
minimumSupportedBuild: 641974

version: 1.1.0
APIVersion: 2
5 changes: 4 additions & 1 deletion Source Code/Insulated Joint Plate/Steam/mod_info.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
supportedContent: EXPANSION1_ID
lastWorkingBuild: 447598
minimumSupportedBuild: 641974

version: 1.1.0
APIVersion: 2