Replay tunings and ruleset accuracies.

In Ti-World and Ti-ARS specifically.
pull/58/head
Tetro48 2022-03-05 09:53:24 +07:00
parent f6db5d22af
commit 9d315d9763
5 changed files with 9 additions and 1 deletions

View File

@ -6,6 +6,9 @@ ReplayScene.title = "Replay"
function ReplayScene:new(replay, game_mode, ruleset)
config.gamesettings = replay["gamesettings"]
config.das = replay["delayed_auto_shift"]
config.arr = replay["auto_repeat_rate"]
config.dcd = replay["das_cut_delay"]
love.math.setRandomSeed(replay["random_low"], replay["random_high"])
love.math.setRandomState(replay["random_state"])
self.retry_replay = replay

View File

@ -135,6 +135,9 @@ function GameMode:saveReplay()
replay["lines"] = self.lines
replay["gamesettings"] = config.gamesettings
replay["secret_inputs"] = self.secret_inputs
replay["delayed_auto_shift"] = config.das
replay["auto_repeat_rate"] = config.arr
replay["das_cut_delay"] = config.dcd
replay["timestamp"] = os.time()
if love.filesystem.getInfo("replays") == nil then
love.filesystem.createDirectory("replays")

View File

@ -6,6 +6,7 @@ local ARS = Ruleset:extend()
ARS.name = "Ti-ARS"
ARS.hash = "ArikaTI"
ARS.synchroes = true
-- Component functions.
function ARS:attemptWallkicks(piece, new_piece, rot_dir, grid)

View File

@ -255,7 +255,7 @@ function Ruleset:processPiece(
drop_locked, hard_drop_locked,
hard_drop_enabled, additive_gravity, classic_lock
)
local synchroes_allowed = ({not self.world, true, false})[config.gamesettings.synchroes_allowed]
local synchroes_allowed = ({not self.world or self.synchroes, true, false})[config.gamesettings.synchroes_allowed]
if synchroes_allowed then
self:rotatePiece(inputs, piece, grid, prev_inputs, false)

View File

@ -6,6 +6,7 @@ local SRS = Ruleset:extend()
SRS.name = "Ti-World"
SRS.hash = "StandardTI"
SRS.world = true
SRS.synchroes = true
SRS.colourscheme = {
I = "C",
L = "O",