mirror of
https://github.com/Refactorio/RedMew.git
synced 2024-12-16 10:19:27 +02:00
15 lines
356 B
Lua
15 lines
356 B
Lua
local RS = require 'map_gen.shared.redmew_surface'
|
|
|
|
local seed = nil
|
|
local count = 0
|
|
|
|
-- Be careful, only call this function where it will be called in the same order regardless of on_init or on_load.
|
|
return function()
|
|
if seed == nil then
|
|
seed = RS.get_surface().map_gen_settings.seed
|
|
end
|
|
|
|
count = count + 1
|
|
return seed * count
|
|
end
|