-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix CAI patch. * Restore path blocking when in animations. * Fix or suppress warnings, re-enable warnings as errors.
- Loading branch information
Showing
14 changed files
with
63 additions
and
49 deletions.
There are no files selected for viewing
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
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
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
29 changes: 29 additions & 0 deletions
29
Source/1.5/AnimationMod/Patches/Patch_PawnUtility_PawnBlockingPathAt.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,29 @@ | ||
using HarmonyLib; | ||
using JetBrains.Annotations; | ||
using RimWorld; | ||
|
||
namespace AM.Patches; | ||
|
||
/// <summary> | ||
/// Invisible pawns can't block pathing, but we do want pathing to be blocked | ||
/// by pawns that are in animations. | ||
/// This was a change introduced in Rimworld 1.5. | ||
/// </summary> | ||
[HarmonyPatch(typeof(PawnUtility), nameof(PawnUtility.PawnBlockingPathAt))] | ||
[UsedImplicitly] | ||
public static class Patch_PawnUtility_PawnBlockingPathAt | ||
{ | ||
[HarmonyPriority(Priority.First)] | ||
// ReSharper disable once RedundantAssignment | ||
private static void Prefix(ref bool __state) | ||
{ | ||
__state = Patch_InvisibilityUtility_IsPsychologicallyInvisible.IsRendering; | ||
Patch_InvisibilityUtility_IsPsychologicallyInvisible.IsRendering = true; | ||
} | ||
|
||
[HarmonyPriority(Priority.First)] | ||
private static void Prefix(bool __state) | ||
{ | ||
Patch_InvisibilityUtility_IsPsychologicallyInvisible.IsRendering = __state; | ||
} | ||
} |
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
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
This file was deleted.
Oops, something went wrong.
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
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
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
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
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
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