1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2024-12-16 10:19:27 +02:00
RedMew/map_gen/maps/danger_ores/modules/seed_provider.lua
2020-09-02 13:21:00 +01:00

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