diff --git a/pre-edited-cs/Doukutsu.exe b/pre-edited-cs/Doukutsu.exe index 7dbc98b..4f861cc 100644 Binary files a/pre-edited-cs/Doukutsu.exe and b/pre-edited-cs/Doukutsu.exe differ diff --git a/src/randomizer.lua b/src/randomizer.lua index 6712071..a404f4c 100644 --- a/src/randomizer.lua +++ b/src/randomizer.lua @@ -73,6 +73,7 @@ function C:randomize() local tscFiles = self:_createTscFiles(dirStage) self:_shuffleItems(tscFiles) + self:_generateHash() if self.shuffleMusic then self.music:shuffleMusic(tscFiles) end self:_writeModifiedData(tscFiles) @@ -286,6 +287,12 @@ function C:_copyMyChar() U.writeFile(path, data) end +function C:_generateHash() + local path = self:_getWritePath() .. '/hash.txt' + local h = {love.math.random(39), love.math.random(39), love.math.random(39), love.math.random(39), love.math.random(39)} + U.writeFile(path, ("%04d,%04d,%04d,%04d,%04d"):format(h[1], h[2], h[3], h[4], h[5])) +end + function C:_getWritePath() return select(1, self:_getWritePaths()) end