Replace the length bonus with a new bonus dependant on object difficulty #30924
+49
−14
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The current length bonus depends only on object count, which means maps with very short difficulty spikes and a large amount of easy objects receive excess length bonus (such as Save Me), while maps with very consistent difficulty do not receive sufficient length bonus (such as Devour Me, Colossus)
The new bonus using a weighted sum similar to that used in the miss penalty (however it is slightly different, and a different variable is used to prevent unwanted changes to the miss penalty), and uses the result of that as a length factor.
This is intended to go alongside #30923 and the #30925, both of which aid in creating a suitable base for this new bonus to function.