Stop cambridge from usurping the secret inputs table. Fixes a problem in modpack.

This commit is contained in:
Rin 2021-08-21 20:56:32 +01:00
parent 80104d2085
commit 33b69abbb8
5 changed files with 8 additions and 8 deletions

View File

@ -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 = {

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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()