Skip to content
Permalink
Browse files

* **FIX**: Apply `rndRate` and `rndCost` to display in R&D window. Fixes

  • Loading branch information...
jwvanderbeck committed Mar 26, 2016
1 parent 9dd8cbb commit 29239c73fdd6436e79fd67c17c3238f5ba1e1318
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -379,7 +379,11 @@ internal override void DrawWindow(int id)
tfRnDScenario.AddResearchTeam(SelectedPart, i);
}
Log(String.Format("cycle is {0}", cycleString));
GUILayout.Label(String.Format("<b>{0,7:F2}</b> data, <b>{1,7:F2}</b> funds", teams[i].points, teams[i].costFactor * teams[i].points), Styles.styleEditorTextAligned);
float points = teams[i].points;
float cost = teams[i].costFactor * points;
points = points * core.GetRnDRate();
cost = cost * core.GetRnDCost();
GUILayout.Label(String.Format("<b>{0,7:F2}</b> data, <b>{1,7:F2}</b> funds", points, cost), Styles.styleEditorTextAligned);
GUILayout.EndHorizontal();
}
}

0 comments on commit 29239c7

Please sign in to comment.
You can’t perform that action at this time.