Skip to content

Commit

Permalink
actually kill invalid steps checker, for now
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Jun 2, 2017
1 parent 5169816 commit 66f6fcc
Showing 1 changed file with 1 addition and 27 deletions.
28 changes: 1 addition & 27 deletions Themes/Til Death/Scripts/00 Utility.lua
Original file line number Diff line number Diff line change
Expand Up @@ -184,34 +184,8 @@ function filterFileList(fileList,fileTypes)
end

-- Just something to get rid of scores where the player quit out early.
-- dead because chord cohesion removal -mina
function isScoreValid(pn,steps,score)
if score:GetGrade() == "Grade_Failed" then
return true
end
local numNotes = 0;
if score:GetChordCohesion() == true then
numNotes = steps:GetRadarValues(pn):GetValue('RadarCategory_TapsAndHolds');
else
numNotes = steps:GetRadarValues(pn):GetValue('RadarCategory_Notes');
end

if not (numNotes ==
(score:GetTapNoteScore('TapNoteScore_W1')+
score:GetTapNoteScore('TapNoteScore_W2')+
score:GetTapNoteScore('TapNoteScore_W3')+
score:GetTapNoteScore('TapNoteScore_W4')+
score:GetTapNoteScore('TapNoteScore_W5')+
score:GetTapNoteScore('TapNoteScore_Miss'))) then
return false
end
if ((score:GetTapNoteScore('TapNoteScore_Miss') == 0) and
((steps:GetRadarValues(pn):GetValue('RadarCategory_Holds')+(steps:GetRadarValues(pn):GetValue('RadarCategory_Rolls')) ~=
(score:GetHoldNoteScore('HoldNoteScore_LetGo')+score:GetHoldNoteScore('HoldNoteScore_Held')+score:GetHoldNoteScore('HoldNoteScore_MissedHold'))
))) then
-- miss == 0 as HNS_MissedHold was added rather recently and NG+OK will not add up correctly for older scores.
--where the player missed a note with a hold.
return false
end
return true
end

Expand Down

0 comments on commit 66f6fcc

Please sign in to comment.