Skip to content

Commit

Permalink
Fix Beat single5, single7, double5, double7 support
Browse files Browse the repository at this point in the history
ehh not really fix, but technically they all use x+1 lanes because of the scratch
so the double is 16 columns instead of 14
  • Loading branch information
poco0317 committed Dec 13, 2019
1 parent b6b28d1 commit ff3f16c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
11 changes: 9 additions & 2 deletions Themes/Til Death/Scripts/01 player_config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ local defaultConfig = {
["7K"] = DeepCopy(defaultGameplayCoordinates),
["8K"] = DeepCopy(defaultGameplayCoordinates),
["10K"] = DeepCopy(defaultGameplayCoordinates),
["14K"] = DeepCopy(defaultGameplayCoordinates)
["12K"] = DeepCopy(defaultGameplayCoordinates),
["16K"] = DeepCopy(defaultGameplayCoordinates)
},
GameplaySizes = {
["4K"] = DeepCopy(defaultGameplaySizes),
Expand All @@ -111,7 +112,8 @@ local defaultConfig = {
["7K"] = DeepCopy(defaultGameplaySizes),
["8K"] = DeepCopy(defaultGameplaySizes),
["10K"] = DeepCopy(defaultGameplaySizes),
["14K"] = DeepCopy(defaultGameplaySizes)
["12K"] = DeepCopy(defaultGameplaySizes),
["16K"] = DeepCopy(defaultGameplaySizes)
}
}

Expand All @@ -132,6 +134,9 @@ playerConfig.load = function(self, slot)
defaultConfig.GameplaySizes["7K"] = sizes
defaultConfig.GameplaySizes["8K"] = sizes
defaultConfig.GameplaySizes["10K"] = sizes
defaultConfig.GameplaySizes["12K"] = sizes
defaultConfig.GameplaySizes["16K"] = sizes

end
if coords and not coords["4K"] then
defaultConfig.GameplayXYCoordinates["4K"] = coords
Expand All @@ -140,6 +145,8 @@ playerConfig.load = function(self, slot)
defaultConfig.GameplayXYCoordinates["7K"] = coords
defaultConfig.GameplayXYCoordinates["8K"] = coords
defaultConfig.GameplayXYCoordinates["10K"] = coords
defaultConfig.GameplayXYCoordinates["12K"] = coords
defaultConfig.GameplayXYCoordinates["16K"] = coords
end
force_table_elements_to_match_type = tmp
return tmp2(self, slot)
Expand Down
8 changes: 4 additions & 4 deletions Themes/_fallback/Scripts/00 Utility.lua
Original file line number Diff line number Diff line change
Expand Up @@ -293,14 +293,14 @@ function getCurrentKeyMode()
local keys = {
StepsType_Dance_Single = "4K",
StepsType_Pump_Single = "5K",
StepsType_Bm_Single5 = "5K",
StepsType_Bm_Single5 = "6K",
StepsType_Dance_Solo = "6K",
StepsType_Kb7_Single = "7K",
StepsType_Bm_Single7 = "7K",
StepsType_Bm_Single7 = "8K",
StepsType_Dance_Double = "8K",
StepsType_Pump_Double = "10K",
StepsType_Bm_Double5 = "10K",
StepsType_Bm_Double7 = "14K",
StepsType_Bm_Double5 = "12K",
StepsType_Bm_Double7 = "16K",
}
local stepstype = GAMESTATE:GetCurrentSteps(PLAYER_1):GetStepsType()
return keys[stepstype]
Expand Down

0 comments on commit ff3f16c

Please sign in to comment.