mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-23 01:39:02 -06:00
Stop cambridge from usurping the secret inputs table. Fixes a problem in modpack.
This commit is contained in:
parent
80104d2085
commit
33b69abbb8
@ -8,7 +8,7 @@ function GameScene:new(game_mode, ruleset, inputs)
|
||||
self.retry_mode = game_mode
|
||||
self.retry_ruleset = ruleset
|
||||
self.secret_inputs = inputs
|
||||
self.game = game_mode(config.gamemodesettings[game_mode.hash], self.secret_inputs)
|
||||
self.game = game_mode(self.secret_inputs, config.gamemodesettings[game_mode.hash])
|
||||
self.ruleset = ruleset(self.game)
|
||||
self.game:initialize(self.ruleset)
|
||||
self.inputs = {
|
||||
|
@ -15,7 +15,7 @@ GameMode.hash = ""
|
||||
GameMode.tagline = ""
|
||||
GameMode.rollOpacityFunction = function(age) return 0 end
|
||||
|
||||
function GameMode:new(config, secret_inputs)
|
||||
function GameMode:new(secret_inputs, config)
|
||||
self.grid = Grid(10, 24)
|
||||
self.randomizer = Randomizer()
|
||||
self.piece = nil
|
||||
|
@ -14,8 +14,8 @@ MarathonA1Game.tagline = "Can you score enough points to reach the title of Gran
|
||||
|
||||
|
||||
|
||||
function MarathonA1Game:new(cfg)
|
||||
MarathonA1Game.super:new(cfg)
|
||||
function MarathonA1Game:new(_, cfg)
|
||||
MarathonA1Game.super:new(_, cfg)
|
||||
|
||||
self.roll_frames = 0
|
||||
self.combo = 1
|
||||
|
@ -14,8 +14,8 @@ MarathonA2Game.tagline = "The points don't matter! Can you reach the invisible r
|
||||
|
||||
|
||||
|
||||
function MarathonA2Game:new(cfg)
|
||||
MarathonA2Game.super:new(cfg)
|
||||
function MarathonA2Game:new(_, cfg)
|
||||
MarathonA2Game.super:new(_, cfg)
|
||||
|
||||
self.roll_frames = 0
|
||||
self.combo = 1
|
||||
|
@ -14,8 +14,8 @@ SurvivalA2Game.tagline = "The game starts fast and only gets faster!"
|
||||
|
||||
|
||||
|
||||
function SurvivalA2Game:new(cfg)
|
||||
SurvivalA2Game.super:new(cfg)
|
||||
function SurvivalA2Game:new(_, cfg)
|
||||
SurvivalA2Game.super:new(_, cfg)
|
||||
self.roll_frames = 0
|
||||
self.combo = 1
|
||||
self.randomizer = History6RollsRandomizer()
|
||||
|
Loading…
Reference in New Issue
Block a user