Skip to content

Commit

Permalink
some anchor balance
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Apr 23, 2020
1 parent 2233391 commit a46a7a3
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/Etterna/Globals/MinaCalc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -713,13 +713,18 @@ Calc::SetAnchorMod(const vector<NoteInfo>& NoteInfo,
++rcol;
}
bool anyzero = lcol == 0 || rcol == 0;
float bort = static_cast<float>(min(lcol, rcol)) /
static_cast<float>(
max(lcol, rcol));
bort = (0.3f + (1.f + (1.f / bort)) / 4.f);

//
bort = CalcClamp(bort, 0.9f, 1.1f);

doot[Anchor][i] =
anyzero
? 1.f
: CalcClamp(sqrt(1.1f - (static_cast<float>(min(lcol , rcol) + 0.25f) /
static_cast<float>(max(lcol, rcol)) / 5.f)),
0.8f,
1.05f);
: bort;

fingerbias += (static_cast<float>(max(lcol, rcol)) + 2.f) /
(static_cast<float>(min(lcol, rcol)) + 1.f);
Expand Down

0 comments on commit a46a7a3

Please sign in to comment.