diff --git a/1.3/Assemblies/AndroidTiers.dll b/1.3/Assemblies/AndroidTiers.dll index 9392493..500d147 100644 Binary files a/1.3/Assemblies/AndroidTiers.dll and b/1.3/Assemblies/AndroidTiers.dll differ diff --git a/Source/Androids For RW1.3/Androids.csproj b/Source/Androids For RW1.3/Androids.csproj index 297c428..a8eaba3 100644 --- a/Source/Androids For RW1.3/Androids.csproj +++ b/Source/Androids For RW1.3/Androids.csproj @@ -200,6 +200,7 @@ + diff --git a/Source/Androids For RW1.3/Harmony/ThoughtWorker_Precept_HasNoProsthetic_Patch.cs b/Source/Androids For RW1.3/Harmony/ThoughtWorker_Precept_HasNoProsthetic_Patch.cs new file mode 100644 index 0000000..c4208d8 --- /dev/null +++ b/Source/Androids For RW1.3/Harmony/ThoughtWorker_Precept_HasNoProsthetic_Patch.cs @@ -0,0 +1,31 @@ +using Verse; +using Verse.AI; +using Verse.AI.Group; +using HarmonyLib; +using RimWorld; +using System.Collections.Generic; +using System.Linq; +using System; + +namespace MOARANDROIDS +{ + internal class ThoughtWorker_Precept_HasProsthetic_Patch + { + [HarmonyPatch(typeof(ThoughtWorker_Precept_HasProsthetic), "HasProsthetic")] + public class TW_Precept_HasProsthetic_HasProsthetic + { + [HarmonyPostfix] + public static void Listener(Pawn p, ref bool __result) + { + //Already disabled => no more processing required + if (__result) + return; + + if (p.RaceProps.FleshType == FleshTypeDefOfAT.AndroidTier || p.IsSurrogateAndroid(false, true)) + { + __result = true; + } + } + } + } +} \ No newline at end of file diff --git a/Source/Androids For RW1.3/obj/Debug/AndroidTiers.dll b/Source/Androids For RW1.3/obj/Debug/AndroidTiers.dll index 9392493..500d147 100644 Binary files a/Source/Androids For RW1.3/obj/Debug/AndroidTiers.dll and b/Source/Androids For RW1.3/obj/Debug/AndroidTiers.dll differ diff --git a/Source/Androids For RW1.3/obj/Debug/Androids.csproj.CoreCompileInputs.cache b/Source/Androids For RW1.3/obj/Debug/Androids.csproj.CoreCompileInputs.cache index 3a2a10d..a29627f 100644 --- a/Source/Androids For RW1.3/obj/Debug/Androids.csproj.CoreCompileInputs.cache +++ b/Source/Androids For RW1.3/obj/Debug/Androids.csproj.CoreCompileInputs.cache @@ -1 +1 @@ -dbeb834f0b986fcf971c62ae1c66819d3a83e5b9 +706e37c6a435a4c2b3d54b02261d68faff8cb5dd