Skip to content

Commit

Permalink
medical => clinical
Browse files Browse the repository at this point in the history
  • Loading branch information
PeteTimesSix committed Jul 16, 2023
1 parent a52a8dc commit 90a21d8
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
using HarmonyLib;
using PeteTimesSix.ResearchReinvented.DefOfs;
using PeteTimesSix.ResearchReinvented.Defs;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml;
using Verse;

namespace PeteTimesSix.ResearchReinvented.HarmonyPatches
{
[HarmonyPatch(typeof(BackCompatibility), nameof(BackCompatibility.BackCompatibleDefName))]
public static class BackCompatibility_BackCompatibleDefName_Patches
{
[HarmonyPostfix]
public static void BackCompatibility_BackCompatibleDefName_Postfix(ref string __result, Type defType, string defName)
{
if (defType == typeof(ResearchOpportunityCategoryDef))
{
if (defName == "Medical")
{
__result = "Clinical";
}
}
}
}
}
1 change: 1 addition & 0 deletions ResearchReinvented/Source/ResearchReinvented.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
<Compile Include="Extensions\ResearchProjectDefExtensions.cs" />
<Compile Include="Extensions\ThingDefExtensions.cs" />
<Compile Include="HarmonyPatches\ApparelLayerDef_Patches.cs" />
<Compile Include="HarmonyPatches\BackCompatability_BackCompatibleDefName_Patches.cs" />
<Compile Include="HarmonyPatches\DebugPatches.cs" />
<Compile Include="HarmonyPatches\DesignationCategoryDef_Patches.cs" />
<Compile Include="HarmonyPatches\Ingestibles\Recipe_AdministerIngestible_Patches.cs" />
Expand Down
Binary file modified ResearchReinvented/v1.4/Assemblies/ResearchReinvented.dll
Binary file not shown.

0 comments on commit 90a21d8

Please sign in to comment.