Skip to content

Commit

Permalink
it's just like magic | 427
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Jul 14, 2020
1 parent 5e05dfd commit 5899f8d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
3 changes: 2 additions & 1 deletion src/Etterna/MinaCalc/Dependent/HD_Sequencers/RMSequencing.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#pragma once
#include "../HD_MetaSequencing.h"
#include "../../UlbuAcolytes.h"

static const float rma_diff_scaler = 1.21F;
static const float rma_diff_scaler = 1.52F * basescalers[Skill_Technical];

enum rm_behavior
{
Expand Down
14 changes: 7 additions & 7 deletions src/Etterna/MinaCalc/MinaCalc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -315,12 +315,12 @@ JackStamAdjust(const float x, Calc& calc, const int hi) -> std::vector<float>
return doot;
}

static const float magic_num = 15.F;
static const float magic_num = 16.F;

[[nodiscard]] inline auto
hit_the_road(const float& x, const float& y) -> float
{
return std::max(static_cast<float>(magic_num * erf(0.05F * (y - x))), 0.F);
return std::max(static_cast<float>(magic_num * erf(0.04F * (y - x))), 0.F);
}

/* ok this is a little jank, we are calculating jack loss looping over the
Expand Down Expand Up @@ -496,8 +496,8 @@ Calc::InitializeHands(const std::vector<NoteInfo>& NoteInfo,
/* pbm = point buffer multiplier, or basically starting with a max points some
* degree above the actual max points as a cheap hack to water down some of the
* absurd scaling hs/js/cj had. Note: do not set these values below 1 */
static const float tech_pbm = 1.F;
static const float jack_pbm = 1.F;
static const float tech_pbm = 1.025F;
static const float jack_pbm = 1.015F;
static const float stream_pbm = 1.01F;
static const float bad_newbie_skillsets_pbm = 1.05F;

Expand Down Expand Up @@ -557,12 +557,12 @@ Calc::Chisel(float player_skill,
CalcInternal(
gotpoints, player_skill, ss, stamina, *this, hi);
}
if (ss == Skill_Technical) {
/*if (ss == Skill_Technical) {
gotpoints -= fastsqrt(min(
max_slap_dash_jack_cap_hack_tech_hat,
jackloss(player_skill * 0.6F, *this, hi, stamina) *
0.75F));
}
}*/
}
}
} while (gotpoints < reqpoints);
Expand Down Expand Up @@ -897,7 +897,7 @@ MinaSDCalcDebug(
}
}

int mina_calc_version = 426;
int mina_calc_version = 427;
auto
GetCalcVersion() -> int
{
Expand Down
2 changes: 1 addition & 1 deletion src/Etterna/MinaCalc/SequencingHelpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ static const float s_init = -5.F;
static const float ms_init = 5000.F;

// global multiplier to standardize baselines
static const float finalscaler = 3.632F;
static const float finalscaler = 3.632F * 1.025F;

inline auto
column_count(const unsigned& notes) -> int
Expand Down
2 changes: 1 addition & 1 deletion src/Etterna/MinaCalc/UlbuAcolytes.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* patterns have lower enps than streams, streams default to 1 and chordstreams
* start lower, stam is a special case and may use normalizers again */
static const std::array<float, NUM_Skillset> basescalers = {
0.F, 0.93F, 0.885F, 0.82F, 0.925F, 0.87F, 0.8F, 0.84F
0.F, 0.93F, 0.885F, 0.82F, 0.925F, 0.93F, 0.8F, 0.85F
};

static const std::string calc_params_xml = "Save/calc params.xml";
Expand Down

0 comments on commit 5899f8d

Please sign in to comment.