2017-07-14 20:12:28 +02:00
|
|
|
--[[
|
2017-07-20 23:22:09 +02:00
|
|
|
This file is used to choose which styles you want.
|
2017-08-04 23:31:52 +02:00
|
|
|
You may choose up to one of each type shapes, terrain, ores and misc or one of the combined styles by removing uncommenting the line.
|
2017-07-27 11:25:10 +02:00
|
|
|
If you want to add your own module, just add it to the others
|
2017-07-20 23:22:09 +02:00
|
|
|
in this file and your run_*type*_module(event) function will be called.
|
2017-07-14 20:12:28 +02:00
|
|
|
--]]
|
|
|
|
|
|
|
|
|
2017-08-04 23:31:52 +02:00
|
|
|
--combined--
|
|
|
|
--require "locale.gen_combined.island_resort"
|
2017-09-21 22:42:14 +02:00
|
|
|
--require "locale.gen_combined.red_planet_v2"
|
|
|
|
--require "locale.gen_combined.borg_planet_v2"
|
2017-10-28 11:42:38 +02:00
|
|
|
--require "locale.gen_combined.dimentions"
|
2017-10-29 13:18:03 +02:00
|
|
|
--require "locale.gen_combined.dagobah_swamp"
|
2017-11-10 14:03:46 +02:00
|
|
|
--require "locale.gen_combined.uk"
|
2017-08-04 23:31:52 +02:00
|
|
|
|
2017-08-12 02:20:08 +02:00
|
|
|
--grilledham's maps
|
2017-08-28 08:07:32 +02:00
|
|
|
--MAP_GEN = require "locale.gen_combined.grilledham_map_gen.presets.mobius_strip"
|
2017-08-25 07:27:50 +02:00
|
|
|
--MAP_GEN = require "locale.gen_combined.grilledham_map_gen.presets.antfarm"
|
2017-08-13 04:57:43 +02:00
|
|
|
--MAP_GEN = require "locale.gen_combined.grilledham_map_gen.presets.creation_of_adam"
|
2017-08-29 11:31:37 +02:00
|
|
|
--MAP_GEN = require "locale.gen_combined.grilledham_map_gen.presets.manhattan"
|
2017-10-18 11:29:49 +02:00
|
|
|
--MAP_GEN = require "locale.gen_combined.grilledham_map_gen.presets.mona_lisa"
|
2017-10-23 12:27:36 +02:00
|
|
|
--MAP_GEN = require "locale.gen_combined.grilledham_map_gen.presets.connected_dots"
|
2017-10-23 04:07:32 +02:00
|
|
|
--MAP_GEN = require "locale.gen_combined.grilledham_map_gen.presets.cage"
|
|
|
|
--MAP_GEN = require "locale.gen_combined.grilledham_map_gen.presets.maori"
|
|
|
|
--MAP_GEN = require "locale.gen_combined.grilledham_map_gen.presets.goat"
|
2017-10-23 12:27:36 +02:00
|
|
|
|
2017-07-14 20:12:28 +02:00
|
|
|
--shapes--
|
2017-11-10 14:03:46 +02:00
|
|
|
--require "locale.gen_shape.left"
|
2017-07-14 20:12:28 +02:00
|
|
|
--require "locale.gen_shape.right"
|
|
|
|
--require "locale.gen_shape.up"
|
2017-07-18 20:28:00 +02:00
|
|
|
--require "locale.gen_shape.maze"
|
2017-07-14 20:12:28 +02:00
|
|
|
--require "locale.gen_shape.spiral"
|
2017-09-30 14:01:17 +02:00
|
|
|
--require "locale.gen_shape.threaded_spirals"
|
2017-07-14 20:12:28 +02:00
|
|
|
--require "locale.gen_shape.spiral_tri"
|
|
|
|
--require "locale.gen_shape.spiral2"
|
2017-07-18 20:28:00 +02:00
|
|
|
--require "locale.gen_shape.donut"
|
2017-07-20 23:22:09 +02:00
|
|
|
--require "locale.gen_shape.rectangular_spiral"
|
2017-07-31 00:37:02 +02:00
|
|
|
--require "locale.gen_shape.lattice"
|
2017-08-04 23:31:52 +02:00
|
|
|
--require "locale.gen_shape.infinite_mazes"
|
2017-07-31 00:37:02 +02:00
|
|
|
--require "locale.gen_shape.x_shape"
|
2017-09-28 12:20:20 +02:00
|
|
|
--require "locale.gen_shape.pacman"
|
2017-07-14 20:12:28 +02:00
|
|
|
|
|
|
|
--terrain--
|
2017-07-18 21:54:54 +02:00
|
|
|
--require "locale.gen_terrain.neko_bridged_rivers"
|
2017-08-10 00:05:11 +02:00
|
|
|
--require "locale.gen_terrain.neko_river_overlay"
|
2017-10-06 02:14:38 +02:00
|
|
|
--require "locale.gen_terrain.worms"
|
2017-10-15 01:53:39 +02:00
|
|
|
--require "locale.gen_terrain.mines"
|
2017-07-14 20:12:28 +02:00
|
|
|
|
|
|
|
--ores--
|
|
|
|
--require "locale.gen_ores.neko_crazy_ores"
|
2017-09-20 22:01:57 +02:00
|
|
|
--require "locale.gen_ores.fluffy_rainbows"
|
2017-11-10 14:03:46 +02:00
|
|
|
--require "locale.gen_ores.rso.rso_control"
|
|
|
|
--require "locale.gen_ores.harmonic_gen"
|
2017-07-14 20:12:28 +02:00
|
|
|
|
2017-07-18 21:54:54 +02:00
|
|
|
--everything else. You may use more than one of these, but beware they might not be compatible
|
|
|
|
miscs = {}
|
|
|
|
--miscs[1] = require "locale.gen_misc.rail_grid"
|
2017-09-03 12:43:25 +02:00
|
|
|
--require "locale.gen_misc.rusky_pvp"
|
2017-09-28 16:24:00 +02:00
|
|
|
--miscs[1] = require "locale.gen_misc.wreck_items"
|
2017-09-28 17:43:42 +02:00
|
|
|
--miscs[2] = require "locale.gen_misc.tris_chunk_grid"
|
2017-11-08 13:25:28 +02:00
|
|
|
--miscs[1] = require "locale.gen_ores.glitter_ores"
|
2017-07-18 21:54:54 +02:00
|
|
|
|
2017-07-14 20:12:28 +02:00
|
|
|
local on_chunk_generated = function(event)
|
2017-08-04 23:31:52 +02:00
|
|
|
if run_combined_module == nil then
|
|
|
|
if run_shape_module ~= nil then
|
|
|
|
if run_shape_module(event) then
|
|
|
|
if run_terrain_module ~= nil then
|
|
|
|
run_terrain_module(event)
|
2017-10-19 02:24:17 +02:00
|
|
|
end
|
|
|
|
if run_ores_module ~= nil then
|
2017-08-04 23:31:52 +02:00
|
|
|
run_ores_module(event)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
else
|
2017-07-18 20:28:00 +02:00
|
|
|
if run_terrain_module ~= nil then
|
2017-07-14 20:12:28 +02:00
|
|
|
run_terrain_module(event)
|
2017-10-18 11:29:49 +02:00
|
|
|
end
|
|
|
|
if run_ores_module ~= nil then
|
2017-07-18 19:47:48 +02:00
|
|
|
run_ores_module(event)
|
2017-07-14 20:12:28 +02:00
|
|
|
end
|
|
|
|
end
|
2017-09-28 16:24:00 +02:00
|
|
|
for _,v in pairs(miscs) do
|
|
|
|
v.on_chunk_generated(event)
|
2017-07-14 20:12:28 +02:00
|
|
|
end
|
2017-08-04 23:31:52 +02:00
|
|
|
else
|
|
|
|
run_combined_module(event)
|
2017-11-10 14:03:46 +02:00
|
|
|
for _,v in pairs(miscs) do
|
|
|
|
v.on_chunk_generated(event)
|
|
|
|
end
|
2017-10-18 11:29:49 +02:00
|
|
|
if run_ores_module ~= nil then
|
|
|
|
run_ores_module(event)
|
|
|
|
end
|
2017-07-18 21:54:54 +02:00
|
|
|
end
|
2017-07-14 20:12:28 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
Event.register(defines.events.on_chunk_generated, on_chunk_generated)
|