Skip to content

Commit

Permalink
add jack model debugging compiler flag COMPILER FLAG COMPILER FLAG
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed May 16, 2020
1 parent 9c803d1 commit 38e5d2c
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/Etterna/Globals/MinaCalc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1107,7 +1107,18 @@ Calc::Chisel(float player_skill,

// reset tallied score, always deduct rather than accumulate now
gotpoints = MaxPoints;

if (true) {
//#define DEBUG_JACK_MODELS
#ifdef DEBUG_JACK_MODELS
if (ss == Skill_JackSpeed)
gotpoints -= JackLoss(player_skill, 1, max_points_lost, false);
else if (ss == Skill_Chordjack)
gotpoints -= JackLoss(player_skill, 2, max_points_lost, false);
else if (ss == Skill_Technical)
gotpoints -= JackLoss(player_skill, 3, max_points_lost, false);
else if (ss == Skill_Stream)
gotpoints -= JackLoss(player_skill, 0, max_points_lost, false) / 7.5f;
#else
// jack sequencer point loss for jack speed and (maybe?)
// cj
if (ss == Skill_JackSpeed) {
Expand All @@ -1131,6 +1142,8 @@ Calc::Chisel(float player_skill,
right_hand.CalcInternal(
gotpoints, player_skill, ss, stamina);
}
#endif
}
} while (gotpoints < reqpoints);
player_skill -= resolution;
resolution /= 2.f;
Expand Down

0 comments on commit 38e5d2c

Please sign in to comment.