Skip to content

Commit

Permalink
Revert "Improve logic for cleartypes & enable SDCB"
Browse files Browse the repository at this point in the history
This reverts commit befd19d.
  • Loading branch information
poco0317 authored and MinaciousGrace committed Feb 24, 2019
1 parent 33cd465 commit 3524b90
Showing 1 changed file with 15 additions and 25 deletions.
40 changes: 15 additions & 25 deletions Themes/Til Death/Scripts/ClearType.lua
Original file line number Diff line number Diff line change
Expand Up @@ -106,36 +106,26 @@ local function clearTypes(grade, playCount, perfcount, greatcount, misscount, re
else
if grade == "Grade_Failed" then -- failed
clearlevel = 11
elseif misscount > 0 then
elseif perfcount < 10 and perfcount > 1 then -- SDP
clearlevel = 3
elseif greatcount < 10 and greatcount > 1 then -- SDG
clearlevel = 6
elseif perfcount == 1 and greatcount + misscount == 0 then -- whiteflag
clearlevel = 2
elseif greatcount == 1 and misscount == 0 then -- blackflag
clearlevel = 5
elseif perfcount + greatcount + misscount == 0 then -- MFC
clearlevel = 1
elseif greatcount + misscount == 0 then -- PFC
clearlevel = 4
elseif misscount == 0 then -- FC
clearlevel = 7
else
if misscount == 1 then
clearlevel = 8 -- missflag
elseif misscount > 1 and misscount < 10 then
clearlevel = 9 -- SDCB
else
clearlevel = 10 -- Clear
end
elseif misscount == 0 then
if greatcount == 0 then
if perfcount == 0 then -- MFC
clearlevel = 1
elseif perfcount == 1 then -- whiteflag
clearlevel = 2
elseif perfcount < 10 and perfcount > 1 then -- SDP
clearlevel = 3
else -- PFC
clearlevel = 4
end
else
if greatcount < 10 and greatcount > 1 then -- SDG
clearlevel = 6
elseif greatcount == 1 then -- blackflag
clearlevel = 5
else -- FC
clearlevel = 7
end
end
else
clearlevel = 12 -- this would mean negative misses
end
end
return getClearTypeItem(clearlevel, returntype)
Expand Down

0 comments on commit 3524b90

Please sign in to comment.