Skip to content

Commit

Permalink
Fix tracking of equipped items of pawns on a raid
Browse files Browse the repository at this point in the history
  • Loading branch information
Falconne committed Mar 19, 2019
1 parent 0687d0f commit b95d15e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/ImprovedWorkbenches/Detours/Pawn_Spawn_Detour.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static void Postfix(Pawn __instance, Map map, bool respawningAfterLoad)
if (__instance.HasOriginMap() && map.IsPlayerHome)
{
//Pawn is there ; doesn't need to remember it
__instance.SetOriginMap(null);
__instance.SetOriginMap(null);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static void Postfix(ref RecipeWorkerCounter __instance, ref int __result,


// Look for matching items in colonists and animals away from base
foreach (var pawn in Find.WorldPawns.AllPawnsAlive)
foreach (var pawn in PawnsFinder.AllMapsCaravansAndTravelingTransportPods_Alive_OfPlayerFaction)
{
if (pawn.GetOriginMap() != billMap)
// OriginMap is only set on our pawns who are away from base
Expand Down
4 changes: 2 additions & 2 deletions src/ImprovedWorkbenches/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.3.0")]
[assembly: AssemblyFileVersion("1.0.3.0")]
[assembly: AssemblyVersion("1.0.4.0")]
[assembly: AssemblyFileVersion("1.0.4.0")]



0 comments on commit b95d15e

Please sign in to comment.