Skip to content

Commit

Permalink
digging
Browse files Browse the repository at this point in the history
  • Loading branch information
LocoNeko committed Apr 29, 2020
1 parent 1557dc5 commit 2167a3a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/HarmonyPatches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -197,15 +197,15 @@ public static void Postifx(ref float __result, WorldGrid __instance, ref int fro
out HillModifier,
out WinterModifier
);

float resultBefore = __result;
__result *= RoadModifier;
if (explanation != null)
{
explanation.AppendLine();
explanation.Append(String.Format(
"The road cancels {0:P0} of the biome ({3:##.###}), {1:P0} of the hills ({4:##.###}) & {2:P0} of winter movement costs. Total modifier={5}",
"The road cancels {0:P0} of the biome ({3:##.###}), {1:P0} of the hills ({4:##.###}) & {2:P0} of winter movement costs. Total modifier={5} was {6}",
BiomeModifier, HillModifier, WinterModifier,
Find.WorldGrid[toTile].biome.movementDifficulty, HillinessOffset , RoadModifier
Find.WorldGrid[toTile].biome.movementDifficulty, HillinessOffset , RoadModifier , resultBefore
));
}
}
Expand Down
Binary file modified v1.1/Assemblies/RoadsOfTheRim.dll
Binary file not shown.

0 comments on commit 2167a3a

Please sign in to comment.