Clean up pump stuff under [Player], remove a bunch of redundant functions.

This commit is contained in:
Colby Klein
2011-12-17 12:23:40 -08:00
parent 4d327d32a5
commit 1b627cd543
2 changed files with 21 additions and 61 deletions
+10 -49
View File
@@ -4,6 +4,14 @@
-- shakesoda calls this pump.lua -- shakesoda calls this pump.lua
-- Check the active game mode against a string. Cut down typing this in metrics.
function IsGame(str)
if GAMESTATE:GetCurrentGame():GetName() == str then
return true
end
return false
end
-- GetExtraColorThreshold() -- GetExtraColorThreshold()
-- [en] returns the difficulty threshold in meter -- [en] returns the difficulty threshold in meter
-- for songs that should be counted as boss songs. -- for songs that should be counted as boss songs.
@@ -166,50 +174,11 @@ end
-- todo: use tables for some of these -aj -- todo: use tables for some of these -aj
function HoldTiming() function HoldTiming()
if GAMESTATE:GetCurrentGame():GetName() == "pump" then return IsGame("pump") and 0 or PREFSMAN:GetPreference("TimingWindowSecondsHold")
return 0
else
return PREFSMAN:GetPreference("TimingWindowSecondsHold")
end
end end
function ShowHoldJudgments() function ShowHoldJudgments()
local isPump = GAMESTATE:GetCurrentGame():GetName() == "pump" return not IsGame("pump")
return isPump and false or true
end
function HoldHeadStep()
local isPump = GAMESTATE:GetCurrentGame():GetName() == "pump"
return isPump and false or true
end
function InitialHoldLife()
return GAMESTATE:GetCurrentGame():GetName() == "pump" and 0.05 or 1
end
function MaxHoldLife()
return GAMESTATE:GetCurrentGame():GetName() == "pump" and 0.05 or 1
end
function ImmediateHoldLetGo()
return not (GAMESTATE:GetCurrentGame():GetName() == "pump")
end
function RollBodyIncrementsCombo()
return false
--[[ if GAMESTATE:GetCurrentGame():GetName() == "pump" then
return false
else
return true
end --]]
end
function CheckpointsTapsSeparateJudgment()
return not GAMESTATE:GetCurrentGame():GetName() == "pump"
end
function ScoreMissedHoldsAndRolls()
return not GAMESTATE:GetCurrentGame():GetName() == "pump"
end end
local tNotePositions = { local tNotePositions = {
@@ -232,14 +201,6 @@ function ComboUnderField()
return GetUserPrefB("UserPrefComboUnderField") return GetUserPrefB("UserPrefComboUnderField")
end end
function TwoPartSelection()
return GAMESTATE:GetCurrentGame():GetName() == "pump"
end
function TwoPartConfirmsOnly()
return GAMESTATE:GetCurrentGame():GetName() == "pump"
end
local CodeDetectorCodes = { local CodeDetectorCodes = {
-- steps -- steps
PrevSteps1 = { PrevSteps1 = {
+11 -12
View File
@@ -1047,21 +1047,20 @@ HoldJudgmentsUnderField=false
ComboUnderField=ComboUnderField() ComboUnderField=ComboUnderField()
PenalizeTapScoreNone=false PenalizeTapScoreNone=false
JudgeHoldNotesOnSameRowTogether=false JudgeHoldNotesOnSameRowTogether=false
HoldCheckpoints=(GAMESTATE:GetCurrentGame():GetName() == "pump") HoldCheckpoints=IsGame("pump")
CheckpointsUseTickcounts=(GAMESTATE:GetCurrentGame():GetName() == "pump") CheckpointsUseTickcounts=IsGame("pump")
; deprecated? ; deprecated?
CheckpointsUseTimeSignatures=false CheckpointsUseTimeSignatures=false
CheckpointsTapsSeparateJudgment=CheckpointsTapsSeparateJudgment() CheckpointsTapsSeparateJudgment=not IsGame("pump")
; someone misunderstood me :x -Daisu ; someone misunderstood me :x -Daisu
CheckpointsFlashOnHold=(GAMESTATE:GetCurrentGame():GetName() == "pump") CheckpointsFlashOnHold=IsGame("pump")
ImmediateHoldLetGo=ImmediateHoldLetGo() ImmediateHoldLetGo=not IsGame("pump")
RequireStepOnHoldHeads=HoldHeadStep() RequireStepOnHoldHeads=not IsGame("pump")
RequireStepOnMines=false RequireStepOnMines=false
InitialHoldLife=InitialHoldLife() InitialHoldLife=IsGame("pump") and 0.05 or 1
MaxHoldLife=MaxHoldLife() MaxHoldLife=IsGame("pump") and 0.05 or 1
# RollBodyIncrementsCombo=RollBodyIncrementsCombo()
RollBodyIncrementsCombo=GetGamePrefB("UserPrefComboOnRolls") RollBodyIncrementsCombo=GetGamePrefB("UserPrefComboOnRolls")
ScoreMissedHoldsAndRolls=ScoreMissedHoldsAndRolls() ScoreMissedHoldsAndRolls=not IsGame("pump")
PercentUntilColorCombo=0.25 PercentUntilColorCombo=0.25
ComboStoppedAt=50 ComboStoppedAt=50
AttackRunTimeRandom=6 AttackRunTimeRandom=6
@@ -1904,8 +1903,8 @@ ChangeGroupsWithGameButtons=false
PreviousGroupButton="MenuUp" PreviousGroupButton="MenuUp"
NextGroupButton="MenuDown" NextGroupButton="MenuDown"
# #
TwoPartSelection=TwoPartSelection() TwoPartSelection=IsGame("pump")
TwoPartConfirmsOnly=TwoPartConfirmsOnly() TwoPartConfirmsOnly=IsGame("pump")
TwoPartTimerSeconds=-1 TwoPartTimerSeconds=-1
# #
SampleMusicDelay=0.25 SampleMusicDelay=0.25