1414using Quaver . API . Maps . Processors . Scoring . Data ;
1515using Quaver . API . Maps . Processors . Scoring . Multiplayer ;
1616using Quaver . API . Replays ;
17- using HitObjectType = Quaver . API . Enums . HitObjectType ;
1817
1918namespace Quaver . API . Maps . Processors . Scoring
2019{
@@ -174,9 +173,7 @@ public ScoreProcessorKeys(Replay replay, JudgementWindows windows = null) : base
174173 /// <param name="hitDifference"></param>
175174 /// <param name="keyPressType"></param>
176175 /// <param name="calculateAllStats"></param>
177- /// <param name="isMine"></param>
178- public Judgement CalculateScore ( int hitDifference , KeyPressType keyPressType , bool calculateAllStats = true ,
179- bool isMine = false )
176+ public Judgement CalculateScore ( int hitDifference , KeyPressType keyPressType , bool calculateAllStats = true )
180177 {
181178 var absoluteDifference = 0 ;
182179
@@ -225,25 +222,18 @@ public Judgement CalculateScore(int hitDifference, KeyPressType keyPressType, bo
225222 return judgement ;
226223
227224 if ( calculateAllStats )
228- CalculateScore ( judgement , keyPressType == KeyPressType . Release , isMine ) ;
225+ CalculateScore ( judgement , keyPressType == KeyPressType . Release ) ;
229226
230227 return judgement ;
231228 }
232229
233- public void CalculateScore ( HitStat hitStat )
234- {
235- CalculateScore ( hitStat . Judgement , hitStat . KeyPressType == KeyPressType . Release ,
236- hitStat . HitObject . Type is HitObjectType . Mine ) ;
237- }
238-
239230 /// <inheritdoc />
240231 /// <summary>
241232 /// Calculate Score and Health increase/decrease with a given judgement.
242233 /// </summary>
243234 /// <param name="judgement"></param>
244235 /// <param name="isLongNoteRelease"></param>
245- /// <param name="isMine"></param>
246- public override void CalculateScore ( Judgement judgement , bool isLongNoteRelease = false , bool isMine = false )
236+ public override void CalculateScore ( Judgement judgement , bool isLongNoteRelease = false )
247237 {
248238 // Update Judgement count
249239 CurrentJudgements [ judgement ] ++ ;
@@ -267,9 +257,7 @@ public override void CalculateScore(Judgement judgement, bool isLongNoteRelease
267257 MultiplierCount ++ ;
268258
269259 // Add to the combo since the user hit.
270- // Only do this when the note is not a mine (so it is a regular note)
271- if ( ! isMine )
272- Combo ++ ;
260+ Combo ++ ;
273261
274262 // Set the max combo if applicable.
275263 if ( Combo > MaxCombo )
@@ -384,7 +372,17 @@ protected override void InitializeHealthWeighting()
384372 /// <returns></returns>
385373 public int GetTotalJudgementCount ( )
386374 {
387- return Map . HitObjects . Sum ( o => o . JudgementCount ) ;
375+ var judgements = 0 ;
376+
377+ foreach ( var o in Map . HitObjects )
378+ {
379+ if ( o . IsLongNote )
380+ judgements += 2 ;
381+ else
382+ judgements ++ ;
383+ }
384+
385+ return judgements ;
388386 }
389387
390388 /// <summary>
0 commit comments