stage: remove bogus "graze" all-clear bonus

It never actually contributed to the score, and the value is quite
absurd.
This commit is contained in:
Andrei Alexeyev 2021-04-28 13:08:38 +03:00
parent faeba7a139
commit 49df9768ee
No known key found for this signature in database
GPG key ID: 72D26128040B9690

View file

@ -707,7 +707,8 @@ static void stage_give_clear_bonus(const StageInfo *stage, StageClearBonus *bonu
if(bonus->all_clear) {
bonus->base += global.plr.point_item_value * 100;
bonus->graze = global.plr.graze * (global.plr.point_item_value / 10);
// TODO redesign this
// bonus->graze = global.plr.graze * (global.plr.point_item_value / 10);
}
bonus->voltage = imax(0, (int)global.plr.voltage - (int)global.voltage_threshold) * (global.plr.point_item_value / 25);
@ -715,7 +716,7 @@ static void stage_give_clear_bonus(const StageInfo *stage, StageClearBonus *bonu
// TODO: maybe a difficulty multiplier?
bonus->total = bonus->base + bonus->voltage + bonus->lives;
bonus->total = bonus->base + bonus->voltage + bonus->lives + bonus->graze;
player_add_points(&global.plr, bonus->total, global.plr.pos);
}