Skip to content

Commit

Permalink
MBmasher fl rebalance
Browse files Browse the repository at this point in the history
  • Loading branch information
Francesco149 committed Dec 14, 2018
1 parent 131f085 commit ba1d140
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions oppai.c
Expand Up @@ -515,7 +515,7 @@ void taiko_acc_round(float acc_percent, int nobjects, int nmisses,
#include <math.h>

#define OPPAI_VERSION_MAJOR 2
#define OPPAI_VERSION_MINOR 1
#define OPPAI_VERSION_MINOR 2
#define OPPAI_VERSION_PATCH 0
#define STRINGIFY_(x) #x
#define STRINGIFY(x) STRINGIFY_(x)
Expand Down Expand Up @@ -2482,7 +2482,14 @@ int ppv2x(pp_calc_t* pp, float aim, float speed, float base_ar,

/* flashlight */
if (mods & MODS_FL) {
pp->aim *= 1.45f * length_bonus;
float fl_bonus = 1.0f + 0.35f * mymin(1.0f, nobjects / 200.0f);
if (nobjects > 200) {
fl_bonus += 0.3f * mymin(1, (nobjects - 200) / 200);
}
if (nobjects > 500) {
fl_bonus += (nobjects - 500) / 1200.0f;
}
pp->aim *= fl_bonus;
}

/* acc bonus (bad aim can lead to bad acc, reused in speed) */
Expand Down

0 comments on commit ba1d140

Please sign in to comment.