lots of cleanup

This commit is contained in:
AJ Kelly
2011-08-20 20:00:04 -05:00
parent 9e701d72d2
commit 0d483d1781
+17 -57
View File
@@ -62,8 +62,7 @@ function ScoreKeeperClass()
techno = "ScoreKeeperNormal", techno = "ScoreKeeperNormal",
ez2 = "ScoreKeeperNormal", ez2 = "ScoreKeeperNormal",
ds3ddx = "ScoreKeeperNormal", ds3ddx = "ScoreKeeperNormal",
maniax = "ScoreKeeperNormal", maniax = "ScoreKeeperNormal"
guitar = "ScoreKeeperGuitar"
} }
return ScoreKeepers[sGame] return ScoreKeepers[sGame]
end end
@@ -117,8 +116,7 @@ function HitCombo()
pump = 4, pump = 4,
beat = 2, beat = 2,
kb7 = 2, kb7 = 2,
para = 2, para = 2
guitar = 2
} }
return Combo[sGame] return Combo[sGame]
end end
@@ -130,8 +128,7 @@ function MissCombo()
pump = 4, pump = 4,
beat = 0, beat = 0,
kb7 = 0, kb7 = 0,
para = 0, para = 0
guitar = 0
} }
return Combo[sGame] return Combo[sGame]
end end
@@ -145,8 +142,7 @@ function FailCombo()
pump = 51, -- Pump Pro uses 30, real Pump uses 51 pump = 51, -- Pump Pro uses 30, real Pump uses 51
beat = -1, beat = -1,
kb7 = -1, kb7 = -1,
para = -1, para = -1
guitar = -1
} }
return Combo[sGame] return Combo[sGame]
end end
@@ -158,8 +154,7 @@ function RoutineSkinP1()
pump = "cmd-routine-p1", pump = "cmd-routine-p1",
beat = "default", beat = "default",
kb7 = "default", kb7 = "default",
para = "default", para = "default"
guitar = "default"
} }
return Combo[sGame] return Combo[sGame]
end end
@@ -171,8 +166,7 @@ function RoutineSkinP2()
pump = "cmd-routine-p2", pump = "cmd-routine-p2",
beat = "default", beat = "default",
kb7 = "retrobar", kb7 = "retrobar",
para = "default", para = "default"
guitar = "default"
} }
return Combo[sGame] return Combo[sGame]
end end
@@ -187,43 +181,23 @@ function HoldTiming()
end end
function ShowHoldJudgments() function ShowHoldJudgments()
if GAMESTATE:GetCurrentGame():GetName() == "pump" then return not GAMESTATE:GetCurrentGame():GetName() == "pump"
return false
else
return true
end
end end
function HoldHeadStep() function HoldHeadStep()
if GAMESTATE:GetCurrentGame():GetName() == "pump" then return not GAMESTATE:GetCurrentGame():GetName() == "pump"
return false
else
return true
end
end end
function InitialHoldLife() function InitialHoldLife()
if GAMESTATE:GetCurrentGame():GetName() == "pump" then return GAMESTATE:GetCurrentGame():GetName() == "pump" and 0.05 or 1
return 0.05
else
return 1
end
end end
function MaxHoldLife() function MaxHoldLife()
if GAMESTATE:GetCurrentGame():GetName() == "pump" then return GAMESTATE:GetCurrentGame():GetName() == "pump" and 0.05 or 1
return 0.05
else
return 1
end
end end
function ImmediateHoldLetGo() function ImmediateHoldLetGo()
if GAMESTATE:GetCurrentGame():GetName() == "pump" then return not GAMESTATE:GetCurrentGame():GetName() == "pump"
return false
else
return true
end
end end
function RollBodyIncrementsCombo() function RollBodyIncrementsCombo()
@@ -236,32 +210,18 @@ function RollBodyIncrementsCombo()
end end
function CheckpointsTapsSeparateJudgment() function CheckpointsTapsSeparateJudgment()
if GAMESTATE:GetCurrentGame():GetName() == "pump" then return not GAMESTATE:GetCurrentGame():GetName() == "pump"
return false
else
return true
end
end end
function ScoreMissedHoldsAndRolls() function ScoreMissedHoldsAndRolls()
if GAMESTATE:GetCurrentGame():GetName() == "pump" then return not GAMESTATE:GetCurrentGame():GetName() == "pump"
return false
else
return true
end
end end
local tNotePositions = { local tNotePositions = {
-- StepMania 3.9/4.0 -- StepMania 3.9/4.0
Normal = { Normal = { -144, 144, },
-144,
144,
},
-- ITG -- ITG
Lower = { Lower = { -125, 145, }
-125,
145,
}
} }
function GetTapPosition( sType ) function GetTapPosition( sType )
@@ -278,11 +238,11 @@ function ComboUnderField()
end end
function TwoPartSelection() function TwoPartSelection()
return GAMESTATE:GetCurrentGame():GetName() == "pump" and true or false return GAMESTATE:GetCurrentGame():GetName() == "pump"
end end
function TwoPartConfirmsOnly() function TwoPartConfirmsOnly()
return GAMESTATE:GetCurrentGame():GetName() == "pump" and true or false return GAMESTATE:GetCurrentGame():GetName() == "pump"
end end
local CodeDetectorCodes = { local CodeDetectorCodes = {