mirror of
https://github.com/Refactorio/RedMew.git
synced 2025-07-15 01:24:37 +02:00
moved perlin requires into files that acually call it.
This commit is contained in:
@ -1,3 +1,5 @@
|
|||||||
|
require "locale.gen_shared.perlin_noise"
|
||||||
|
|
||||||
if ores_module then return end
|
if ores_module then return end
|
||||||
ores_module = true
|
ores_module = true
|
||||||
|
|
||||||
@ -91,4 +93,3 @@ function run_ores_module_tile(surface,x,y)
|
|||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -69,3 +69,6 @@ function grad( hash, x, y, z )
|
|||||||
local v = h < 4 and y or ((h == 12 or h == 14) and x or z)
|
local v = h < 4 and y or ((h == 12 or h == 14) and x or z)
|
||||||
return ((h % 2) == 0 and u or -u) + ((h % 3) == 0 and v or -v)
|
return ((h % 2) == 0 and u or -u) + ((h % 3) == 0 and v or -v)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
perlin:load( )
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
|
||||||
|
require "locale.gen_shared.perlin_noise"
|
||||||
|
|
||||||
if terrain_module then return end
|
if terrain_module then return end
|
||||||
terrain_module = true
|
terrain_module = true
|
||||||
|
|
||||||
|
@ -2,10 +2,6 @@
|
|||||||
Neko Does stuff to key files because Im a derp
|
Neko Does stuff to key files because Im a derp
|
||||||
--]]
|
--]]
|
||||||
|
|
||||||
require "locale.gen_shared.perlin_noise"
|
|
||||||
perlin:load( )
|
|
||||||
require "locale.gen_shared.ent_functions"
|
|
||||||
require "locale.gen_shared.simplex_noise"
|
|
||||||
|
|
||||||
--shapes--
|
--shapes--
|
||||||
--require "locale.gen_shape.right"
|
--require "locale.gen_shape.right"
|
||||||
@ -17,7 +13,7 @@ require "locale.gen_shared.simplex_noise"
|
|||||||
--require "locale.gen_shape.donut"
|
--require "locale.gen_shape.donut"
|
||||||
|
|
||||||
--terrain--
|
--terrain--
|
||||||
--require "locale.gen_terrain.neko_bridged_rivers"
|
require "locale.gen_terrain.neko_bridged_rivers"
|
||||||
|
|
||||||
--ores--
|
--ores--
|
||||||
--require "locale.gen_ores.neko_crazy_ores"
|
--require "locale.gen_ores.neko_crazy_ores"
|
||||||
|
Reference in New Issue
Block a user