Skip to content

Commit

Permalink
Androids no longer complain about having no artificial parts (Transhu…
Browse files Browse the repository at this point in the history
…manist ideos)
  • Loading branch information
aRandomKiwi committed Aug 3, 2021
1 parent 7fc9637 commit 7d527c1
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 1 deletion.
Binary file modified 1.3/Assemblies/AndroidTiers.dll
Binary file not shown.
1 change: 1 addition & 0 deletions Source/Androids For RW1.3/Androids.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@
<Compile Include="Harmony\Pawn_StyleTracker_Patch.cs" />
<Compile Include="Harmony\ThoughtWorker_BondedAnimalMaster_Patch.cs" />
<Compile Include="Harmony\ThoughtWorker_Precept_GroinOrChestUncovered_Patch.cs" />
<Compile Include="Harmony\ThoughtWorker_Precept_HasNoProsthetic_Patch.cs" />
<Compile Include="Harmony\ThoughtWorker_Precept_IdeoDiversity_Patch.cs" />
<Compile Include="Harmony\ThoughtWorker_Precept_IdeoDiversity_Uniform_Patch.cs" />
<Compile Include="Harmony\ThoughtWorker_Precept_GroinUncovered_Patch.cs" />
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
}
}
}
}
}
Binary file modified Source/Androids For RW1.3/obj/Debug/AndroidTiers.dll
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
dbeb834f0b986fcf971c62ae1c66819d3a83e5b9
706e37c6a435a4c2b3d54b02261d68faff8cb5dd

0 comments on commit 7d527c1

Please sign in to comment.