-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Androids no longer complain about having no artificial parts (Transhu…
…manist ideos)
- Loading branch information
1 parent
7fc9637
commit 7d527c1
Showing
5 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
Source/Androids For RW1.3/Harmony/ThoughtWorker_Precept_HasNoProsthetic_Patch.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
2 changes: 1 addition & 1 deletion
2
Source/Androids For RW1.3/obj/Debug/Androids.csproj.CoreCompileInputs.cache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
dbeb834f0b986fcf971c62ae1c66819d3a83e5b9 | ||
706e37c6a435a4c2b3d54b02261d68faff8cb5dd |