mirror of
https://github.com/SashLilac/cambridge-modpack.git
synced 2024-11-24 05:49:02 -06:00
Compare commits
No commits in common. "e91b91aff2704d82446fb46929d66530efb0ae8e" and "152c37eac523731262beaf8a0493a708d6498c00" have entirely different histories.
e91b91aff2
...
152c37eac5
@ -35,8 +35,6 @@ function PhantomManiaNXGame:new()
|
||||
|
||||
self.coolregret_message = "COOL!!"
|
||||
self.coolregret_timer = 0
|
||||
self.section_cools = { [0] = 0 }
|
||||
self.section_regrets = { [0] = 0 }
|
||||
end
|
||||
|
||||
function PhantomManiaNXGame:getARE()
|
||||
@ -120,11 +118,6 @@ function PhantomManiaNXGame:advanceOneFrame()
|
||||
end
|
||||
return false
|
||||
elseif self.roll_frames > 3238 then
|
||||
if self:qualifiesForGMRoll() then
|
||||
self.roll_points = self.roll_points + 160
|
||||
else
|
||||
self.roll_points = self.roll_points + 50
|
||||
end
|
||||
switchBGM(nil)
|
||||
self.completed = true
|
||||
end
|
||||
@ -216,15 +209,11 @@ function PhantomManiaNXGame:updateSectionTimes(old_level, new_level)
|
||||
table.insert(self.section_times, section_time)
|
||||
self.section_start_time = self.frames
|
||||
if section_time >= frameTime(1,00) then
|
||||
--self.last_section_cool = false
|
||||
self.last_section_cool = false
|
||||
self.coolregret_message = "REGRET!!"
|
||||
self.coolregret_timer = 300
|
||||
self.grade = self.grade - 1
|
||||
table.insert(self.section_regrets, 1)
|
||||
else
|
||||
table.insert(self.section_regrets, 0)
|
||||
end
|
||||
if self.last_section_cool then
|
||||
elseif self.last_section_cool then
|
||||
self.cools = self.cools + 1
|
||||
end
|
||||
self.grade = self.grade + 1
|
||||
@ -238,10 +227,8 @@ function PhantomManiaNXGame:updateSectionTimes(old_level, new_level)
|
||||
self.last_section_cool = true
|
||||
self.coolregret_message = "COOL!!"
|
||||
self.coolregret_timer = 300
|
||||
table.insert(self.section_cools, 1)
|
||||
else
|
||||
self.last_section_cool = false
|
||||
table.insert(self.section_cools, 0)
|
||||
end
|
||||
end
|
||||
end
|
||||
@ -304,7 +291,11 @@ end
|
||||
function PhantomManiaNXGame:getAggregateGrade()
|
||||
local grade_cap
|
||||
if self:qualifiesForGMRoll() then
|
||||
grade_cap = 42
|
||||
if self.roll_frames > 3238 then
|
||||
grade_cap = 42
|
||||
else
|
||||
grade_cap = 41
|
||||
end
|
||||
else
|
||||
grade_cap = 26
|
||||
end
|
||||
@ -317,7 +308,7 @@ end
|
||||
|
||||
local master_grades = {"M", "MK", "MV", "MO"}
|
||||
|
||||
local function getLetterGrade(grade, roll_frames)
|
||||
local function getLetterGrade(grade)
|
||||
if grade == 0 then
|
||||
return "1"
|
||||
elseif grade <= 13 then
|
||||
@ -326,25 +317,13 @@ local function getLetterGrade(grade, roll_frames)
|
||||
return "M" .. tostring(grade - 13)
|
||||
elseif grade <= 30 then
|
||||
return master_grades[grade - 26]
|
||||
elseif grade <= 41 or roll_frames <= 3238 then
|
||||
elseif grade <= 41 then
|
||||
return "MM-" .. tostring(grade - 30)
|
||||
else
|
||||
return "GM"
|
||||
end
|
||||
end
|
||||
|
||||
function PhantomManiaNXGame:sectionColourFunction(section)
|
||||
if self.section_cools[section] == 1 and self.section_regrets[section] == 1 then
|
||||
return { 1, 1, 0, 1 }
|
||||
elseif self.section_cools[section] == 1 then
|
||||
return { 0, 1, 0, 1 }
|
||||
elseif self.section_regrets[section] == 1 then
|
||||
return { 1, 0, 0, 1 }
|
||||
else
|
||||
return { 1, 1, 1, 1 }
|
||||
end
|
||||
end
|
||||
|
||||
function PhantomManiaNXGame:drawScoringInfo()
|
||||
PhantomManiaNXGame.super.drawScoringInfo(self)
|
||||
|
||||
@ -372,7 +351,7 @@ function PhantomManiaNXGame:drawScoringInfo()
|
||||
love.graphics.setFont(font_3x5_3)
|
||||
if self.roll_frames > 3238 then love.graphics.setColor(1, 0.5, 0, 1)
|
||||
elseif self.level >= 1300 then love.graphics.setColor(0, 1, 0, 1) end
|
||||
love.graphics.printf(getLetterGrade(self:getAggregateGrade(), self.roll_frames), text_x, 140, 90, "left")
|
||||
love.graphics.printf(getLetterGrade(self:getAggregateGrade()), text_x, 140, 90, "left")
|
||||
love.graphics.setColor(1, 1, 1, 1)
|
||||
love.graphics.printf(self.score, text_x, 220, 90, "left")
|
||||
love.graphics.printf(self.level, text_x, 340, 50, "right")
|
||||
|
Loading…
Reference in New Issue
Block a user