Skip to content

Commit bed0475

Browse files
committed
style
1 parent 1c0ac16 commit bed0475

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

ARKBreedingStats/multiplierTesting/StatMultiplierTestingControl.cs

+9-8
Original file line numberDiff line numberDiff line change
@@ -525,26 +525,27 @@ private void resetAllMultiplierOfThisStatToolStripMenuItem_Click(object sender,
525525
/// </summary>
526526
private void ResetMultiplier(int index, bool gameDefault = false)
527527
{
528+
var multipliersToUse = gameDefault ? StatMultipliersGameDefault : _multipliersOfSettings;
528529
switch (index)
529530
{
530531
case 0:
531-
nudTaM.Value = (decimal)(gameDefault ? StatMultipliersGameDefault[0] : _multipliersOfSettings[0]);
532+
nudTaM.Value = (decimal)multipliersToUse[0];
532533
return;
533534
case 1:
534-
nudTmM.Value = (decimal)(gameDefault ? StatMultipliersGameDefault[1] : _multipliersOfSettings[1]);
535+
nudTmM.Value = (decimal)multipliersToUse[1];
535536
return;
536537
case 2:
537-
nudIdM.Value = (decimal)(gameDefault ? StatMultipliersGameDefault[2] : _multipliersOfSettings[2]);
538+
nudIdM.Value = (decimal)multipliersToUse[2];
538539
return;
539540
case 3:
540-
nudIwM.Value = (decimal)(gameDefault ? StatMultipliersGameDefault[3] : _multipliersOfSettings[3]);
541+
nudIwM.Value = (decimal)multipliersToUse[3];
541542
return;
542543
case -1:
543544
// set all
544-
nudTaM.Value = (decimal)(gameDefault ? StatMultipliersGameDefault[0] : _multipliersOfSettings[0]);
545-
nudTmM.Value = (decimal)(gameDefault ? StatMultipliersGameDefault[1] : _multipliersOfSettings[1]);
546-
nudIdM.Value = (decimal)(gameDefault ? StatMultipliersGameDefault[2] : _multipliersOfSettings[2]);
547-
nudIwM.Value = (decimal)(gameDefault ? StatMultipliersGameDefault[3] : _multipliersOfSettings[3]);
545+
nudTaM.Value = (decimal)multipliersToUse[0];
546+
nudTmM.Value = (decimal)multipliersToUse[1];
547+
nudIdM.Value = (decimal)multipliersToUse[2];
548+
nudIwM.Value = (decimal)multipliersToUse[3];
548549
return;
549550
}
550551
}

0 commit comments

Comments
 (0)