Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
LocoNeko committed Apr 30, 2020
1 parent 76e0bb6 commit 9de1cf4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/WorldObjectComp_ConstructionSite.cs
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,10 @@ public void setCosts()
int thisRebate = 0;
// The cost modifier doesn't affect some advanced resources, as defined in static DefModExtension_RotR_RoadDef.allResourcesWithoutModifiers
float costModifierForThisResource = ((DefModExtension_RotR_RoadDef.allResourcesWithoutModifiers.Contains(resourceName)) ? 1 : totalCostModifier );
if (resourceName== "ComponentIndustrial")
{
RoadsOfTheRim.DebugLog("Found a cost in Uranium. costModifierForThisResource="+ costModifierForThisResource+", uranium found in list="+ DefModExtension_RotR_RoadDef.allResourcesWithoutModifiers.Contains(resourceName));
}
rebate.TryGetValue(resourceName, out thisRebate);
costs[resourceName] = (int)((roadDefExtension.GetCost(resourceName) - thisRebate) * costModifierForThisResource);
left[resourceName] = costs[resourceName];
Expand Down
Binary file modified v1.1/Assemblies/RoadsOfTheRim.dll
Binary file not shown.

0 comments on commit 9de1cf4

Please sign in to comment.