Skip to content

Commit

Permalink
Merge pull request #53 from kbatbouta/development
Browse files Browse the repository at this point in the history
Fixed a small bug
  • Loading branch information
kbatbouta authored Feb 10, 2023
2 parents 4abda46 + 40d611e commit cc2b14e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
Binary file modified 1.4/Assemblies/CombatAI.dll
Binary file not shown.
1 change: 1 addition & 0 deletions Source/Rule56/CombatAIMod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ private void FillCollapsible_Debugging(Listing_Collapsible collapsible)
{
collapsible.CheckboxLabeled(Keyed.CombatAI_Settings_Debugging_Enable, ref Finder.Settings.Debug);
collapsible.CheckboxLabeled("Disable quick setup menu", ref Finder.Settings.FinishedQuickSetup);
collapsible.CheckboxLabeled("Enable cinematic mode", ref Finder.Settings.Debug_DisablePawnGuiOverlay);
collapsible.CheckboxLabeled("Draw sight grid", ref Finder.Settings.Debug_DrawShadowCasts);
collapsible.CheckboxLabeled("Draw sight vector field", ref Finder.Settings.Debug_DrawShadowCastsVectors);
collapsible.CheckboxLabeled("Draw threat (pawn armor vs enemy)", ref Finder.Settings.Debug_DrawThreatCasts);
Expand Down
4 changes: 2 additions & 2 deletions Source/Rule56/Comps/ThingComp_CombatAI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -975,8 +975,8 @@ public void Notify_SightReaderChanged(SightTracker.SightReader reader)
public override void PostExposeData()
{
base.PostExposeData();
Scribe_Deep.Look(ref duties, "duties");
Scribe_Deep.Look(ref abilities, "abilities");
Scribe_Deep.Look(ref duties, "duties2");
Scribe_Deep.Look(ref abilities, "abilities2");
Scribe_TargetInfo.Look(ref forcedTarget, "forcedTarget");
if (duties == null)
{
Expand Down
2 changes: 1 addition & 1 deletion Source/Rule56/Patches/Pawn_Patch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ private static class Pawn_DrawGUIOverlay_Patch
{
public static bool Prefix(Pawn __instance)
{
return !fogOverlay.IsFogged(__instance.Position);
return !fogOverlay.IsFogged(__instance.Position) && !Finder.Settings.Debug_DisablePawnGuiOverlay;
}
}

Expand Down
1 change: 1 addition & 0 deletions Source/Rule56/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public class Settings : ModSettings
public bool Debug_DrawShadowCasts;
public bool Debug_DrawShadowCastsVectors = false;
public bool Debug_DrawThreatCasts = false;
public bool Debug_DisablePawnGuiOverlay = false;
public bool Debug_ValidateSight;
public bool Enable_Groups = true;

Expand Down

0 comments on commit cc2b14e

Please sign in to comment.