Skip to content

Commit 9bcd193

Browse files
authored
Merge pull request #159 from Starstrider42/patch-2
Make generation counter specific to branch loop
2 parents efd914f + 40965f7 commit 9bcd193

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TestFlightCore/TestFlightCore/TestFlightCore.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -948,7 +948,6 @@ internal float AttemptTechTransfer()
948948
float dataToTransfer = 0f;
949949
string[] branches;
950950
string[] modifiers;
951-
int generation = 0;
952951

953952
branches = techTransfer.Split(new char[1]{ '&' });
954953

@@ -960,6 +959,7 @@ internal float AttemptTechTransfer()
960959
string[] partsInBranch = modifiers[0].Split(new char[1]{ ',' });
961960
float branchModifier = float.Parse(modifiers[1]);
962961
branchModifier /= 100f;
962+
int generation = 0;
963963
foreach (string partName in partsInBranch)
964964
{
965965
float partFlightData = TestFlightManagerScenario.Instance.GetFlightDataForPartName(partName);

0 commit comments

Comments
 (0)