• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Changes

Jump to navigation Jump to search
no edit summary
Line 26: Line 26:  
 
 
mw.log(type(seed))
 
mw.log(type(seed))
 +
mw.log(seed)
 
 
 
if seed == nil then
 
if seed == nil then
 
randomizer = math.random(0,9999999)
 
randomizer = math.random(0,9999999)
 
elseif type(seed) == "table" then
 
elseif type(seed) == "table" then
for k,v in pairs(seed) do
+
-- for k,v in pairs(seed) do
randomizer = randomizer + p.hashString(k)
+
-- randomizer = randomizer + p.hashString(k)
if type(v) == "string" then
+
-- if type(v) == "string" then
randomizer = randomizer + p.hashString(v)
+
-- randomizer = randomizer + p.hashString(v)
end
+
-- end
if type(v) == "number" then
+
-- if type(v) == "number" then
randomizer = randomizer + v
+
-- randomizer = randomizer + v
end
+
-- end
end
+
-- end
 
elseif type(seed) == "string" then
 
elseif type(seed) == "string" then
 
randomizer = p.hashString(seed)
 
randomizer = p.hashString(seed)
2,922

edits

Navigation menu