Skip to content

Commit

Permalink
Adjust the arousal bar to be a little less confusing to end users.
Browse files Browse the repository at this point in the history
  • Loading branch information
MauAbata committed Mar 27, 2024
1 parent dc0622e commit e98f292
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/orgasm_control.c
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,9 @@ void orgasm_control_increment_arousal_threshold(int threshold) {
}

void orgasm_control_set_arousal_threshold(int threshold) {
Config.sensitivity_threshold = threshold >= 0 ? threshold : 0;
// Sensitivity threshold of 0 prevents horrible issues from happening.
// It also prevents confusing the customers, which is a big win I'd say.
Config.sensitivity_threshold = threshold >= 10 ? threshold : 10;
config_enqueue_save(300);
}

Expand Down
3 changes: 2 additions & 1 deletion src/pages/edging_stats.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ float _get_arousal_bar_max(void) {
if (Config.sensitivity_threshold != last_sens_thresh) {
last_sens_thresh = Config.sensitivity_threshold;
last_arousal_max =
pow10f(ceilf(log10f(Config.sensitivity_threshold * 1.10f) * 4.0f) / 4.0f);
pow10f(ceilf(log10f(Config.sensitivity_threshold * 1.10f) * 2.0f) / 2.0f);
if (last_arousal_max < 100) last_arousal_max = 100;
}

return last_arousal_max;
Expand Down

0 comments on commit e98f292

Please sign in to comment.