Adjust naming

This commit is contained in:
smoogipoo 2019-02-18 14:55:39 +09:00
parent 46b979a412
commit 7f4643a83d
1 changed files with 5 additions and 5 deletions

View File

@ -19,7 +19,7 @@ public class Strain : Skill
private ColourSwitch lastColourSwitch = ColourSwitch.None;
private int sameTypeCount = 1;
private int sameColourCount = 1;
protected override double StrainValueOf(DifficultyHitObject current)
{
@ -37,7 +37,7 @@ protected override double StrainValueOf(DifficultyHitObject current)
else
{
lastColourSwitch = ColourSwitch.None;
sameTypeCount = 1;
sameColourCount = 1;
}
double additionFactor = 1;
@ -71,15 +71,15 @@ private bool hasColourChange(DifficultyHitObject current)
if (!taikoCurrent.HasTypeChange)
{
sameTypeCount++;
sameColourCount++;
return false;
}
var oldColourSwitch = lastColourSwitch;
var newColourSwitch = sameTypeCount % 2 == 0 ? ColourSwitch.Even : ColourSwitch.Odd;
var newColourSwitch = sameColourCount % 2 == 0 ? ColourSwitch.Even : ColourSwitch.Odd;
lastColourSwitch = newColourSwitch;
sameTypeCount = 1;
sameColourCount = 1;
// We only want a bonus if the parity of the color switch changes
return oldColourSwitch != ColourSwitch.None && oldColourSwitch != newColourSwitch;