Skip to content

Commit

Permalink
chaos tuning and param stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Jun 4, 2020
1 parent 90a425b commit fdeee12
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/Etterna/Globals/MinaCalc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3782,15 +3782,17 @@ struct ChaosMod
float window = 6;

float min_mod = 0.95f;
float max_mod = 1.1f;
float penalty = 0.1f;
float max_mod = 1.05f;
float base = -0.1f;

const vector<pair<std::string, float*>> _params{
{ "window", &window },

// special case, don't allow this to be changed
// { "window", &window },

{ "min_mod", &min_mod },
{ "max_mod", &max_mod },
{ "penalty", &penalty },
{ "base", &base },
};
#pragma endregion params and param map

Expand Down Expand Up @@ -3885,7 +3887,7 @@ struct ChaosMod
_hekk(_m8.get_mean_of_window(6));

float zmod = _hekk.get_mean_of_window(window);
pmod = _m8.get_mean_of_window(6) - penalty;
pmod = base + _m8.get_mean_of_window(6);
pmod = CalcClamp(pmod, min_mod, max_mod);
doot[_pmod][i] = pmod;
}
Expand Down

0 comments on commit fdeee12

Please sign in to comment.