Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Taiko scoreprocessing #545

Merged
merged 15 commits into from
Mar 24, 2017
Merged

Taiko scoreprocessing #545

merged 15 commits into from
Mar 24, 2017

Conversation

smoogipoo
Copy link
Contributor

@smoogipoo smoogipoo commented Mar 23, 2017

Prereqs:

I didn't really want to derive Hit once more for HitFinisher (which would add no additional properties), and realized it could be used in the future for other hit objects as well, so I added a property to TaikoHitObject.
This'll also be eventually used for actually getting the visual representation of these base hitobjects.

The calculations right now should be equivalent to osu!stable for the purpose of TWC, although we should look at simplifying it uniformly in the future.

/// This is legacy and should be fixed, but is kept as is for now for compatibility.
/// </para>
/// </summary>
private const double hp_hit_good_max = hp_hit_good * 8;

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

@@ -43,12 +44,15 @@ private TaikoHitObject convertHitObject(HitObject original)
IHasRepeats repeatsData = original as IHasRepeats;
IHasEndTime endTimeData = original as IHasEndTime;

bool isFinisher = ((original.Sample?.Type ?? SampleType.None) & SampleType.Finish) > 0;

This comment was marked as off-topic.

This comment was marked as off-topic.

private double accuracyScore => accuracy_portion_max * Math.Pow(Accuracy, 3.6) * totalHits / maxTotalHits;

/// <summary>
/// The final bonus score.

This comment was marked as off-topic.

This comment was marked as off-topic.


protected override void UpdateCalculations(TaikoJudgement newJudgement)
{
var tickJudgement = newJudgement as TaikoDrumRollTickJudgement;

This comment was marked as off-topic.

maxComboPortion = comboPortion;
}

protected override void UpdateCalculations(TaikoJudgement newJudgement)

This comment was marked as off-topic.

This comment was marked as off-topic.

var tickJudgement = newJudgement as TaikoDrumRollTickJudgement;

// Don't consider ticks as a type of hit that counts towards map completion
if (tickJudgement == null)

This comment was marked as off-topic.

I think this is an okay compromise because hp_hit_great doesn't use linear interpolation here. I am tentative on this change, but I need to code up the rest of taiko before I can test this further.
@smoogipoo smoogipoo added this to the taiko milestone Mar 24, 2017
@peppy peppy merged commit 6c3061e into ppy:master Mar 24, 2017
@smoogipoo smoogipoo deleted the taiko_scoreprocessing branch March 24, 2017 05:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants