diff --git a/Assemblies/SubcoreInfo.dll b/Assemblies/SubcoreInfo.dll index c7f4365..1a943d0 100644 Binary files a/Assemblies/SubcoreInfo.dll and b/Assemblies/SubcoreInfo.dll differ diff --git a/Source/SubcoreInfo/Harmony/Harmony_Building_SubcoreScanner.cs b/Source/SubcoreInfo/Harmony/Harmony_Building_SubcoreScanner.cs index ac7b4ec..fc7e27d 100644 --- a/Source/SubcoreInfo/Harmony/Harmony_Building_SubcoreScanner.cs +++ b/Source/SubcoreInfo/Harmony/Harmony_Building_SubcoreScanner.cs @@ -37,7 +37,7 @@ internal static class Harmony_Building_SubcoreScanner_Tick /// internal static IEnumerable Transpiler(IEnumerable instructions) => instructions.MethodReplacer( AccessTools.Method(typeof(GenPlace), nameof(GenPlace.TryPlaceThing), new Type[] { typeof(Thing), typeof(IntVec3), typeof(Map), typeof(ThingPlaceMode), typeof(Action), typeof(Predicate), typeof(Rot4) }), - AccessTools.Method(typeof(Harmony_Building_SubcoreScanner_Tick), nameof(Harmony_Building_SubcoreScanner_Tick.TryUpdateAndPlaceSubcore)) + AccessTools.Method(typeof(Harmony_Building_SubcoreScanner_Tick), nameof(TryUpdateAndPlaceSubcore)) ); /// @@ -55,8 +55,8 @@ internal static IEnumerable Transpiler(IEnumerable ThingDef.Named("SubcoreSoftscanner"), - "SubcoreHigh" => ThingDef.Named("SubcoreRipscanner"), + "SubcoreRegular" => ThingDefOf.SubcoreSoftscanner, + "SubcoreHigh" => ThingDefOf.SubcoreRipscanner, _ => null }; diff --git a/Source/SubcoreInfo/SubcoreInfo.csproj b/Source/SubcoreInfo/SubcoreInfo.csproj index 1fe003d..8f7624d 100644 --- a/Source/SubcoreInfo/SubcoreInfo.csproj +++ b/Source/SubcoreInfo/SubcoreInfo.csproj @@ -65,6 +65,7 @@ + diff --git a/Source/SubcoreInfo/ThingDefOf.cs b/Source/SubcoreInfo/ThingDefOf.cs new file mode 100644 index 0000000..de8a005 --- /dev/null +++ b/Source/SubcoreInfo/ThingDefOf.cs @@ -0,0 +1,15 @@ +using RimWorld; +using Verse; + +namespace SubcoreInfo +{ + [DefOf] + internal static class ThingDefOf + { + [MayRequireBiotech] + public static ThingDef SubcoreSoftscanner; + + [MayRequireBiotech] + public static ThingDef SubcoreRipscanner; + } +}