1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2024-12-12 10:04:40 +02:00

Change map loading method (#640)

Add map loader
This commit is contained in:
Matthew 2019-01-31 20:15:41 -05:00 committed by GitHub
parent 9353b0c0e5
commit 6aed6d6317
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
255 changed files with 469 additions and 562 deletions

View File

@ -17,7 +17,7 @@ cat working_copy/resources/version.lua
function process_map (){ function process_map (){
echo "-----$1-----" echo "-----$1-----"
mv "$3" "$1" mv "$3" "$1"
echo "return $2" > "$1/map_selection.lua" echo "return require 'map_gen.maps.$2'" > "$1/map_selection.lua"
echo "Contents of map_selection:" echo "Contents of map_selection:"
cat "$1/map_selection.lua" cat "$1/map_selection.lua"
echo "Creating zip..." echo "Creating zip..."
@ -37,4 +37,5 @@ function process_map (){
#Each map after the default redmew release repeats the pattern of $1=The regular name of the map (proper casing), $2=The name of the map file (lower case), $3 "$PREVIOUS_NAME" #Each map after the default redmew release repeats the pattern of $1=The regular name of the map (proper casing), $2=The name of the map file (lower case), $3 "$PREVIOUS_NAME"
process_map "RedMew" "default" "working_copy" true process_map "RedMew" "default" "working_copy" true
#process_map "Diggy" "diggy" "$PREVIOUS_NAME" #process_map "Diggy" "diggy" "$PREVIOUS_NAME"
#process_map "Crashsite" "crashsite" "$PREVIOUS_NAME" #process_map "Crashsite" "crash_site" "$PREVIOUS_NAME"
#process_map "Tetris" "tetris" "$PREVIOUS_NAME"

View File

@ -16,6 +16,21 @@ global.config = {
-- New Scenario Features, appears in the "What's new" tab -- New Scenario Features, appears in the "What's new" tab
new_info_key = 'Nothing is new. The world is at peace' new_info_key = 'Nothing is new. The world is at peace'
}, },
-- map generation settings for redmew's maps (only applies to maps that use 'shapes')
map_generation = {
-- whether to regen decoratives
['regen_decoratives'] = false,
-- the number of 'tiles' that are calculated per tick
['tiles_per_tick'] = 32,
-- the entity modules to load (takes a list of requires), example included
['entity_modules'] = {
-- require('map_gen.entities.fluffy_rainbows')
},
-- the terrain modules to load (takes a list of requires), example included
['terrain_modules'] = {
--require('map_gen.terrain.tris_chunk_grid')
},
},
-- redmew_surface allows a map preset to control world generation as well as map and difficulty settings -- redmew_surface allows a map preset to control world generation as well as map and difficulty settings
-- the entire module can be toggled or just individual parts -- the entire module can be toggled or just individual parts
redmew_surface = { redmew_surface = {
@ -84,9 +99,9 @@ global.config = {
['medium-spitter'] = {low = 1, high = 3, chance = 0}, ['medium-spitter'] = {low = 1, high = 3, chance = 0},
['big-spitter'] = {low = 1, high = 3, chance = 0}, ['big-spitter'] = {low = 1, high = 3, chance = 0},
['behemoth-spitter'] = {low = 1, high = 10, chance = 0}, ['behemoth-spitter'] = {low = 1, high = 10, chance = 0},
['medium-biter'] = {low = 1, high = 3, chance = 0}, ['medium-biter'] = {low = 1, high = 3, chance = 0},
['big-biter'] = {low = 1, high = 5, chance = 0}, ['big-biter'] = {low = 1, high = 5, chance = 0},
['behemoth-biter'] = {low = 1, high = 10, chance = 0} ['behemoth-biter'] = {low = 1, high = 10, chance = 0}
} }
}, },
-- adds anti-nuke griefing -- adds anti-nuke griefing
@ -198,7 +213,7 @@ global.config = {
}, },
-- makes manual stuff cumbersome -- makes manual stuff cumbersome
lazy_bastard = { lazy_bastard = {
enabled = false, enabled = false
}, },
-- automatically marks miners for deconstruction when they are depleted (currently compatible with hard mods that add miners) -- automatically marks miners for deconstruction when they are depleted (currently compatible with hard mods that add miners)
autodeconstruct = { autodeconstruct = {
@ -251,7 +266,7 @@ global.config = {
}, },
-- adds a useless button with the biter percentage -- adds a useless button with the biter percentage
evolution_progress = { evolution_progress = {
enabled = true, enabled = true
} }
} }

View File

@ -6,9 +6,9 @@ Debug = require 'utils.debug'
require 'resources.version' require 'resources.version'
require 'utils.table' require 'utils.table'
-- Map layout and config dictate the map you play and the settings in it -- Config and map_loader dictate the map you play and the settings in it
local config = require 'config' local config = require 'config'
require 'map_layout' require 'map_gen.shared.map_loader' -- to change the map you're playing, modify map_selection.lua
-- Specific to RedMew hosts, can be disabled safely if not hosting on RedMew servers -- Specific to RedMew hosts, can be disabled safely if not hosting on RedMew servers
require 'features.server' require 'features.server'

View File

@ -1,2 +0,0 @@
-- authors Linaori, valansch
require 'map_gen.Diggy.Scenario'.register()

View File

@ -1,12 +1,12 @@
require 'map_gen.presets.crash_site.blueprint_extractor' require 'map_gen.maps.crash_site.blueprint_extractor'
require 'map_gen.presets.crash_site.entity_died_events' require 'map_gen.maps.crash_site.entity_died_events'
require 'map_gen.presets.crash_site.weapon_balance' require 'map_gen.maps.crash_site.weapon_balance'
require 'map_gen.presets.crash_site.commands' require 'map_gen.maps.crash_site.commands'
local b = require 'map_gen.shared.builders' local b = require 'map_gen.shared.builders'
local Global = require('utils.global') local Global = require('utils.global')
local Random = require 'map_gen.shared.random' local Random = require 'map_gen.shared.random'
local OutpostBuilder = require 'map_gen.presets.crash_site.outpost_builder' local OutpostBuilder = require 'map_gen.maps.crash_site.outpost_builder'
local Token = require 'utils.token' local Token = require 'utils.token'
local Task = require 'utils.task' local Task = require 'utils.task'
local math = require 'utils.math' local math = require 'utils.math'
@ -44,73 +44,73 @@ global.config.market.enabled = false
local outpost_seed = nil --91000 local outpost_seed = nil --91000
local ore_seed = nil --92000 local ore_seed = nil --92000
local small_iron_plate_factory = require 'map_gen.presets.crash_site.outpost_data.small_iron_plate_factory' local small_iron_plate_factory = require 'map_gen.maps.crash_site.outpost_data.small_iron_plate_factory'
local medium_iron_plate_factory = require 'map_gen.presets.crash_site.outpost_data.medium_iron_plate_factory' local medium_iron_plate_factory = require 'map_gen.maps.crash_site.outpost_data.medium_iron_plate_factory'
local big_iron_plate_factory = require 'map_gen.presets.crash_site.outpost_data.big_iron_plate_factory' local big_iron_plate_factory = require 'map_gen.maps.crash_site.outpost_data.big_iron_plate_factory'
local small_copper_plate_factory = require 'map_gen.presets.crash_site.outpost_data.small_copper_plate_factory' local small_copper_plate_factory = require 'map_gen.maps.crash_site.outpost_data.small_copper_plate_factory'
local medium_copper_plate_factory = require 'map_gen.presets.crash_site.outpost_data.medium_copper_plate_factory' local medium_copper_plate_factory = require 'map_gen.maps.crash_site.outpost_data.medium_copper_plate_factory'
local big_copper_plate_factory = require 'map_gen.presets.crash_site.outpost_data.big_copper_plate_factory' local big_copper_plate_factory = require 'map_gen.maps.crash_site.outpost_data.big_copper_plate_factory'
local small_stone_factory = require 'map_gen.presets.crash_site.outpost_data.small_stone_factory' local small_stone_factory = require 'map_gen.maps.crash_site.outpost_data.small_stone_factory'
local medium_stone_factory = require 'map_gen.presets.crash_site.outpost_data.medium_stone_factory' local medium_stone_factory = require 'map_gen.maps.crash_site.outpost_data.medium_stone_factory'
local big_stone_factory = require 'map_gen.presets.crash_site.outpost_data.big_stone_factory' local big_stone_factory = require 'map_gen.maps.crash_site.outpost_data.big_stone_factory'
local small_gear_factory = require 'map_gen.presets.crash_site.outpost_data.small_gear_factory' local small_gear_factory = require 'map_gen.maps.crash_site.outpost_data.small_gear_factory'
local medium_gear_factory = require 'map_gen.presets.crash_site.outpost_data.medium_gear_factory' local medium_gear_factory = require 'map_gen.maps.crash_site.outpost_data.medium_gear_factory'
local big_gear_factory = require 'map_gen.presets.crash_site.outpost_data.big_gear_factory' local big_gear_factory = require 'map_gen.maps.crash_site.outpost_data.big_gear_factory'
local small_circuit_factory = require 'map_gen.presets.crash_site.outpost_data.small_circuit_factory' local small_circuit_factory = require 'map_gen.maps.crash_site.outpost_data.small_circuit_factory'
local medium_circuit_factory = require 'map_gen.presets.crash_site.outpost_data.medium_circuit_factory' local medium_circuit_factory = require 'map_gen.maps.crash_site.outpost_data.medium_circuit_factory'
local big_circuit_factory = require 'map_gen.presets.crash_site.outpost_data.big_circuit_factory' local big_circuit_factory = require 'map_gen.maps.crash_site.outpost_data.big_circuit_factory'
local small_ammo_factory = require 'map_gen.presets.crash_site.outpost_data.small_ammo_factory' local small_ammo_factory = require 'map_gen.maps.crash_site.outpost_data.small_ammo_factory'
local medium_ammo_factory = require 'map_gen.presets.crash_site.outpost_data.medium_ammo_factory' local medium_ammo_factory = require 'map_gen.maps.crash_site.outpost_data.medium_ammo_factory'
local big_ammo_factory = require 'map_gen.presets.crash_site.outpost_data.big_ammo_factory' local big_ammo_factory = require 'map_gen.maps.crash_site.outpost_data.big_ammo_factory'
local small_weapon_factory = require 'map_gen.presets.crash_site.outpost_data.small_weapon_factory' local small_weapon_factory = require 'map_gen.maps.crash_site.outpost_data.small_weapon_factory'
local medium_weapon_factory = require 'map_gen.presets.crash_site.outpost_data.medium_weapon_factory' local medium_weapon_factory = require 'map_gen.maps.crash_site.outpost_data.medium_weapon_factory'
local big_weapon_factory = require 'map_gen.presets.crash_site.outpost_data.big_weapon_factory' local big_weapon_factory = require 'map_gen.maps.crash_site.outpost_data.big_weapon_factory'
local small_science_factory = require 'map_gen.presets.crash_site.outpost_data.small_science_factory' local small_science_factory = require 'map_gen.maps.crash_site.outpost_data.small_science_factory'
local medium_science_factory = require 'map_gen.presets.crash_site.outpost_data.medium_science_factory' local medium_science_factory = require 'map_gen.maps.crash_site.outpost_data.medium_science_factory'
local big_science_factory = require 'map_gen.presets.crash_site.outpost_data.big_science_factory' local big_science_factory = require 'map_gen.maps.crash_site.outpost_data.big_science_factory'
local small_oil_refinery = require 'map_gen.presets.crash_site.outpost_data.small_oil_refinery' local small_oil_refinery = require 'map_gen.maps.crash_site.outpost_data.small_oil_refinery'
local medium_oil_refinery = require 'map_gen.presets.crash_site.outpost_data.medium_oil_refinery' local medium_oil_refinery = require 'map_gen.maps.crash_site.outpost_data.medium_oil_refinery'
local big_oil_refinery = require 'map_gen.presets.crash_site.outpost_data.big_oil_refinery' local big_oil_refinery = require 'map_gen.maps.crash_site.outpost_data.big_oil_refinery'
local small_chemical_factory = require 'map_gen.presets.crash_site.outpost_data.small_chemical_factory' local small_chemical_factory = require 'map_gen.maps.crash_site.outpost_data.small_chemical_factory'
local medium_chemical_factory = require 'map_gen.presets.crash_site.outpost_data.medium_chemical_factory' local medium_chemical_factory = require 'map_gen.maps.crash_site.outpost_data.medium_chemical_factory'
local big_chemical_factory = require 'map_gen.presets.crash_site.outpost_data.big_chemical_factory' local big_chemical_factory = require 'map_gen.maps.crash_site.outpost_data.big_chemical_factory'
local small_power_factory = require 'map_gen.presets.crash_site.outpost_data.small_power_factory' local small_power_factory = require 'map_gen.maps.crash_site.outpost_data.small_power_factory'
local medium_power_factory = require 'map_gen.presets.crash_site.outpost_data.medium_power_factory' local medium_power_factory = require 'map_gen.maps.crash_site.outpost_data.medium_power_factory'
local big_power_factory = require 'map_gen.presets.crash_site.outpost_data.big_power_factory' local big_power_factory = require 'map_gen.maps.crash_site.outpost_data.big_power_factory'
local thin_walls = require 'map_gen.presets.crash_site.outpost_data.thin_walls' local thin_walls = require 'map_gen.maps.crash_site.outpost_data.thin_walls'
local mini_t1_ammo_factory = require 'map_gen.presets.crash_site.outpost_data.mini_t1_ammo_factory' local mini_t1_ammo_factory = require 'map_gen.maps.crash_site.outpost_data.mini_t1_ammo_factory'
local mini_t2_ammo_factory = require 'map_gen.presets.crash_site.outpost_data.mini_t2_ammo_factory' local mini_t2_ammo_factory = require 'map_gen.maps.crash_site.outpost_data.mini_t2_ammo_factory'
local mini_t1_weapon_factory = require 'map_gen.presets.crash_site.outpost_data.mini_t1_weapon_factory' local mini_t1_weapon_factory = require 'map_gen.maps.crash_site.outpost_data.mini_t1_weapon_factory'
local mini_t2_weapon_factory = require 'map_gen.presets.crash_site.outpost_data.mini_t2_weapon_factory' local mini_t2_weapon_factory = require 'map_gen.maps.crash_site.outpost_data.mini_t2_weapon_factory'
local mini_t2_logistics_factory = require 'map_gen.presets.crash_site.outpost_data.mini_t2_logistics_factory' local mini_t2_logistics_factory = require 'map_gen.maps.crash_site.outpost_data.mini_t2_logistics_factory'
local mini_t3_logistics_factory = require 'map_gen.presets.crash_site.outpost_data.mini_t3_logistics_factory' local mini_t3_logistics_factory = require 'map_gen.maps.crash_site.outpost_data.mini_t3_logistics_factory'
local mini_t1_science_factory = require 'map_gen.presets.crash_site.outpost_data.mini_t1_science_factory' local mini_t1_science_factory = require 'map_gen.maps.crash_site.outpost_data.mini_t1_science_factory'
local mini_t2_science_factory = require 'map_gen.presets.crash_site.outpost_data.mini_t2_science_factory' local mini_t2_science_factory = require 'map_gen.maps.crash_site.outpost_data.mini_t2_science_factory'
local mini_t3_science_factory = require 'map_gen.presets.crash_site.outpost_data.mini_t3_science_factory' local mini_t3_science_factory = require 'map_gen.maps.crash_site.outpost_data.mini_t3_science_factory'
local mini_t1_module_factory = require 'map_gen.presets.crash_site.outpost_data.mini_t1_module_factory' local mini_t1_module_factory = require 'map_gen.maps.crash_site.outpost_data.mini_t1_module_factory'
local mini_t2_module_factory = require 'map_gen.presets.crash_site.outpost_data.mini_t2_module_factory' local mini_t2_module_factory = require 'map_gen.maps.crash_site.outpost_data.mini_t2_module_factory'
local mini_t3_module_factory = require 'map_gen.presets.crash_site.outpost_data.mini_t3_module_factory' local mini_t3_module_factory = require 'map_gen.maps.crash_site.outpost_data.mini_t3_module_factory'
local mini_t1_robotics_factory = require 'map_gen.presets.crash_site.outpost_data.mini_t1_robotics_factory' local mini_t1_robotics_factory = require 'map_gen.maps.crash_site.outpost_data.mini_t1_robotics_factory'
local mini_t1_production_factory = require 'map_gen.presets.crash_site.outpost_data.mini_t1_production_factory' local mini_t1_production_factory = require 'map_gen.maps.crash_site.outpost_data.mini_t1_production_factory'
local mini_t2_energy_factory = require 'map_gen.presets.crash_site.outpost_data.mini_t2_energy_factory' local mini_t2_energy_factory = require 'map_gen.maps.crash_site.outpost_data.mini_t2_energy_factory'
local mini_t1_train_factory = require 'map_gen.presets.crash_site.outpost_data.mini_t1_train_factory' local mini_t1_train_factory = require 'map_gen.maps.crash_site.outpost_data.mini_t1_train_factory'
local spawn_callback_callback = local spawn_callback_callback =
Token.register( Token.register(

View File

@ -7,7 +7,7 @@ local Retailer = require 'features.retailer'
local PlayerStats = require 'features.player_stats' local PlayerStats = require 'features.player_stats'
local RS = require 'map_gen.shared.redmew_surface' local RS = require 'map_gen.shared.redmew_surface'
local Server = require 'features.server' local Server = require 'features.server'
local CrashSiteToast = require 'map_gen.presets.crash_site.crash_site_toast' local CrashSiteToast = require 'map_gen.maps.crash_site.crash_site_toast'
local table = require 'utils.table' local table = require 'utils.table'
--local next = next --local next = next

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
return ob.make_1_way { return ob.make_1_way {
turret = {callback = ob.refill_turret_callback, data = ob.artillery_shell_ammo}, turret = {callback = ob.refill_turret_callback, data = ob.artillery_shell_ammo},

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
local Token = require 'utils.token' local Token = require 'utils.token'
local loot = { local loot = {
@ -120,7 +120,7 @@ local market = {
} }
} }
local base_factory = require 'map_gen.presets.crash_site.outpost_data.big_factory' local base_factory = require 'map_gen.maps.crash_site.outpost_data.big_factory'
local level2 = ob.extend_1_way(base_factory[1], {loot = {callback = loot_callback}}) local level2 = ob.extend_1_way(base_factory[1], {loot = {callback = loot_callback}})
local level3 = local level3 =
@ -162,7 +162,7 @@ local level4 =
local artillery = local artillery =
ob.extend_1_way( ob.extend_1_way(
require 'map_gen.presets.crash_site.outpost_data.artillery_block', require 'map_gen.maps.crash_site.outpost_data.artillery_block',
{fallback = level4, max_count = 1} {fallback = level4, max_count = 1}
) )
@ -174,12 +174,12 @@ return {
max_level = 4 max_level = 4
}, },
walls = { walls = {
require 'map_gen.presets.crash_site.outpost_data.heavy_gun_turrets', require 'map_gen.maps.crash_site.outpost_data.heavy_gun_turrets',
require 'map_gen.presets.crash_site.outpost_data.heavy_laser_turrets', require 'map_gen.maps.crash_site.outpost_data.heavy_laser_turrets',
require 'map_gen.presets.crash_site.outpost_data.heavy_flame_turrets' require 'map_gen.maps.crash_site.outpost_data.heavy_flame_turrets'
}, },
bases = { bases = {
{require 'map_gen.presets.crash_site.outpost_data.laser_block'}, {require 'map_gen.maps.crash_site.outpost_data.laser_block'},
{level2}, {level2},
{artillery} {artillery}
} }

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
local level2 = local level2 =
ob.make_1_way { ob.make_1_way {

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
local Token = require 'utils.token' local Token = require 'utils.token'
local loot = { local loot = {
@ -110,8 +110,8 @@ local market = {
} }
} }
local base_factory = require 'map_gen.presets.crash_site.outpost_data.big_chemical_plant' local base_factory = require 'map_gen.maps.crash_site.outpost_data.big_chemical_plant'
local base_factory2 = require 'map_gen.presets.crash_site.outpost_data.big_factory' local base_factory2 = require 'map_gen.maps.crash_site.outpost_data.big_factory'
local level2 = ob.extend_1_way(base_factory[1], {loot = {callback = loot_callback}}) local level2 = ob.extend_1_way(base_factory[1], {loot = {callback = loot_callback}})
local level3 = local level3 =
@ -159,7 +159,7 @@ return {
max_level = 3 max_level = 3
}, },
walls = { walls = {
require 'map_gen.presets.crash_site.outpost_data.heavy_flame_turrets' require 'map_gen.maps.crash_site.outpost_data.heavy_flame_turrets'
}, },
bases = { bases = {
{level3b, level2}, {level3b, level2},

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
local level2 = local level2 =
ob.make_1_way { ob.make_1_way {

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
local Token = require 'utils.token' local Token = require 'utils.token'
@ -93,7 +93,7 @@ local loot_callback =
end end
) )
local base_factory = require 'map_gen.presets.crash_site.outpost_data.big_factory' local base_factory = require 'map_gen.maps.crash_site.outpost_data.big_factory'
local level2 = ob.extend_1_way(base_factory[1], {loot = {callback = loot_callback}}) local level2 = ob.extend_1_way(base_factory[1], {loot = {callback = loot_callback}})
local level3 = local level3 =
@ -147,7 +147,7 @@ return {
max_level = 3 max_level = 3
}, },
walls = { walls = {
require 'map_gen.presets.crash_site.outpost_data.heavy_laser_turrets' require 'map_gen.maps.crash_site.outpost_data.heavy_laser_turrets'
}, },
bases = { bases = {
{level3_c, level2}, {level3_c, level2},

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
local Token = require 'utils.token' local Token = require 'utils.token'
local loot = { local loot = {
@ -48,7 +48,7 @@ local market = {
} }
} }
local base_factory = require 'map_gen.presets.crash_site.outpost_data.medium_furance' local base_factory = require 'map_gen.maps.crash_site.outpost_data.medium_furance'
local level2 = ob.extend_1_way(base_factory[1], {loot = {callback = loot_callback}}) local level2 = ob.extend_1_way(base_factory[1], {loot = {callback = loot_callback}})
local level3 = local level3 =
@ -76,7 +76,7 @@ return {
max_level = 3 max_level = 3
}, },
walls = { walls = {
require 'map_gen.presets.crash_site.outpost_data.heavy_gun_turrets' require 'map_gen.maps.crash_site.outpost_data.heavy_gun_turrets'
}, },
bases = { bases = {
{level2, level3}, {level2, level3},

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
local level2 = local level2 =
ob.make_1_way { ob.make_1_way {

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
local level2 = local level2 =
ob.make_1_way { ob.make_1_way {

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
local Token = require 'utils.token' local Token = require 'utils.token'
local loot = { local loot = {
@ -125,7 +125,7 @@ local market = {
} }
} }
local base_factory = require 'map_gen.presets.crash_site.outpost_data.big_factory' local base_factory = require 'map_gen.maps.crash_site.outpost_data.big_factory'
local level2 = ob.extend_1_way(base_factory[1], {loot = {callback = loot_callback}}) local level2 = ob.extend_1_way(base_factory[1], {loot = {callback = loot_callback}})
local level3 = local level3 =
@ -171,7 +171,7 @@ return {
max_level = 2 max_level = 2
}, },
walls = { walls = {
require 'map_gen.presets.crash_site.outpost_data.heavy_gun_turrets' require 'map_gen.maps.crash_site.outpost_data.heavy_gun_turrets'
}, },
bases = { bases = {
{level4, level3, level2} {level4, level3, level2}

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
local Token = require 'utils.token' local Token = require 'utils.token'
local loot = { local loot = {
@ -72,8 +72,8 @@ local market = {
} }
} }
local base_factory = require 'map_gen.presets.crash_site.outpost_data.medium_furance' local base_factory = require 'map_gen.maps.crash_site.outpost_data.medium_furance'
local base_factory2 = require 'map_gen.presets.crash_site.outpost_data.big_factory' local base_factory2 = require 'map_gen.maps.crash_site.outpost_data.big_factory'
local level2 = ob.extend_1_way(base_factory[1], {loot = {callback = loot_callback}}) local level2 = ob.extend_1_way(base_factory[1], {loot = {callback = loot_callback}})
local level3 = local level3 =
@ -120,7 +120,7 @@ return {
max_level = 3 max_level = 3
}, },
walls = { walls = {
require 'map_gen.presets.crash_site.outpost_data.heavy_gun_turrets' require 'map_gen.maps.crash_site.outpost_data.heavy_gun_turrets'
}, },
bases = { bases = {
{level2, level3}, {level2, level3},

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
local Token = require 'utils.token' local Token = require 'utils.token'
local loot = { local loot = {
@ -94,8 +94,8 @@ local market = {
} }
} }
local base_factory = require 'map_gen.presets.crash_site.outpost_data.big_refinery' local base_factory = require 'map_gen.maps.crash_site.outpost_data.big_refinery'
local storage_tank = require 'map_gen.presets.crash_site.outpost_data.storage_tank_block' local storage_tank = require 'map_gen.maps.crash_site.outpost_data.storage_tank_block'
local level2 = ob.extend_1_way(base_factory[1], {loot = {callback = loot_callback}}) local level2 = ob.extend_1_way(base_factory[1], {loot = {callback = loot_callback}})
@ -134,7 +134,7 @@ return {
max_level = 2 max_level = 2
}, },
walls = { walls = {
require 'map_gen.presets.crash_site.outpost_data.heavy_flame_turrets' require 'map_gen.maps.crash_site.outpost_data.heavy_flame_turrets'
}, },
bases = { bases = {
{level4, level2} {level4, level2}

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
local Token = require 'utils.token' local Token = require 'utils.token'
local loot = { local loot = {
@ -180,8 +180,8 @@ local market = {
} }
} }
local base_factory = require 'map_gen.presets.crash_site.outpost_data.big_factory' local base_factory = require 'map_gen.maps.crash_site.outpost_data.big_factory'
local base_factory2 = require 'map_gen.presets.crash_site.outpost_data.big_centrifuge' local base_factory2 = require 'map_gen.maps.crash_site.outpost_data.big_centrifuge'
local level2 = ob.extend_1_way(base_factory[1], {loot = {callback = loot_callback}}) local level2 = ob.extend_1_way(base_factory[1], {loot = {callback = loot_callback}})
local level3 = local level3 =
@ -230,7 +230,7 @@ return {
max_level = 2 max_level = 2
}, },
walls = { walls = {
require 'map_gen.presets.crash_site.outpost_data.heavy_gun_turrets' require 'map_gen.maps.crash_site.outpost_data.heavy_gun_turrets'
}, },
bases = { bases = {
{level4, level2} {level4, level2}

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
local level2 = local level2 =
ob.make_1_way { ob.make_1_way {

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
local Token = require 'utils.token' local Token = require 'utils.token'
local loot = { local loot = {
@ -83,7 +83,7 @@ local market = {
} }
} }
local base_factory = require 'map_gen.presets.crash_site.outpost_data.big_factory' local base_factory = require 'map_gen.maps.crash_site.outpost_data.big_factory'
local level2 = ob.extend_1_way(base_factory[1], {loot = {callback = loot_callback}}) local level2 = ob.extend_1_way(base_factory[1], {loot = {callback = loot_callback}})
local level3 = local level3 =
@ -120,7 +120,7 @@ return {
max_level = 3 max_level = 3
}, },
walls = { walls = {
require 'map_gen.presets.crash_site.outpost_data.heavy_laser_turrets' require 'map_gen.maps.crash_site.outpost_data.heavy_laser_turrets'
}, },
bases = { bases = {
{level3, level2}, {level3, level2},

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
local Token = require 'utils.token' local Token = require 'utils.token'
local loot = { local loot = {
@ -83,8 +83,8 @@ local market = {
} }
} }
local base_factory = require 'map_gen.presets.crash_site.outpost_data.big_furance' local base_factory = require 'map_gen.maps.crash_site.outpost_data.big_furance'
local base_factory2 = require 'map_gen.presets.crash_site.outpost_data.big_factory' local base_factory2 = require 'map_gen.maps.crash_site.outpost_data.big_factory'
local level2 = ob.extend_1_way(base_factory[1], {loot = {callback = loot_callback}}) local level2 = ob.extend_1_way(base_factory[1], {loot = {callback = loot_callback}})
local level3 = local level3 =
@ -121,8 +121,8 @@ return {
max_level = 2 max_level = 2
}, },
walls = { walls = {
require 'map_gen.presets.crash_site.outpost_data.heavy_gun_turrets', require 'map_gen.maps.crash_site.outpost_data.heavy_gun_turrets',
require 'map_gen.presets.crash_site.outpost_data.walls' require 'map_gen.maps.crash_site.outpost_data.walls'
}, },
bases = { bases = {
{level4, level2} {level4, level2}

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
local Token = require 'utils.token' local Token = require 'utils.token'
local loot = { local loot = {
@ -224,7 +224,7 @@ local market = {
} }
} }
local base_factory = require 'map_gen.presets.crash_site.outpost_data.big_factory' local base_factory = require 'map_gen.maps.crash_site.outpost_data.big_factory'
local level2 = ob.extend_1_way(base_factory[1], {loot = {callback = loot_callback}}) local level2 = ob.extend_1_way(base_factory[1], {loot = {callback = loot_callback}})
local level3 = local level3 =
@ -257,7 +257,7 @@ local level4 =
local artillery = local artillery =
ob.extend_1_way( ob.extend_1_way(
require 'map_gen.presets.crash_site.outpost_data.artillery_block', require 'map_gen.maps.crash_site.outpost_data.artillery_block',
{fallback = level4, max_count = 1} {fallback = level4, max_count = 1}
) )
@ -269,12 +269,12 @@ return {
max_level = 4 max_level = 4
}, },
walls = { walls = {
require 'map_gen.presets.crash_site.outpost_data.heavy_gun_turrets', require 'map_gen.maps.crash_site.outpost_data.heavy_gun_turrets',
require 'map_gen.presets.crash_site.outpost_data.heavy_laser_turrets', require 'map_gen.maps.crash_site.outpost_data.heavy_laser_turrets',
require 'map_gen.presets.crash_site.outpost_data.heavy_flame_turrets' require 'map_gen.maps.crash_site.outpost_data.heavy_flame_turrets'
}, },
bases = { bases = {
{require 'map_gen.presets.crash_site.outpost_data.laser_block'}, {require 'map_gen.maps.crash_site.outpost_data.laser_block'},
{level2}, {level2},
{artillery} {artillery}
} }

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
return ob.make_walls { return ob.make_walls {
ob.make_4_way { ob.make_4_way {

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
return ob.make_walls{ return ob.make_walls{
ob.make_4_way { ob.make_4_way {

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
return ob.make_walls{ return ob.make_walls{
ob.make_4_way { ob.make_4_way {

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
return ob.make_walls{ return ob.make_walls{
ob.make_4_way { ob.make_4_way {

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
return ob.make_1_way { return ob.make_1_way {
turret = {callback = ob.power_source_callback, data = ob.laser_turrent_power_source}, turret = {callback = ob.power_source_callback, data = ob.laser_turrent_power_source},

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
return ob.make_walls{ return ob.make_walls{
ob.make_4_way { ob.make_4_way {

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
return ob.make_walls{ return ob.make_walls{
ob.make_4_way { ob.make_4_way {

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
return ob.make_walls{ return ob.make_walls{
ob.make_4_way { ob.make_4_way {

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
local Token = require 'utils.token' local Token = require 'utils.token'
local loot = { local loot = {
@ -104,7 +104,7 @@ local market = {
} }
} }
local base_factory = require 'map_gen.presets.crash_site.outpost_data.medium_factory' local base_factory = require 'map_gen.maps.crash_site.outpost_data.medium_factory'
local level2 = ob.extend_1_way(base_factory[1], {loot = {callback = loot_callback}}) local level2 = ob.extend_1_way(base_factory[1], {loot = {callback = loot_callback}})
local level3 = local level3 =
@ -150,9 +150,9 @@ return {
max_level = 2 max_level = 2
}, },
walls = { walls = {
require 'map_gen.presets.crash_site.outpost_data.heavy_gun_turrets', require 'map_gen.maps.crash_site.outpost_data.heavy_gun_turrets',
require 'map_gen.presets.crash_site.outpost_data.heavy_laser_turrets', require 'map_gen.maps.crash_site.outpost_data.heavy_laser_turrets',
require 'map_gen.presets.crash_site.outpost_data.heavy_flame_turrets' require 'map_gen.maps.crash_site.outpost_data.heavy_flame_turrets'
}, },
bases = { bases = {
{level4, level3b, level2} {level4, level3b, level2}

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
local level2 = local level2 =
ob.make_1_way { ob.make_1_way {

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
local Token = require 'utils.token' local Token = require 'utils.token'
local loot = { local loot = {
@ -96,7 +96,7 @@ local market = {
} }
} }
local base_factory = require 'map_gen.presets.crash_site.outpost_data.medium_chemical_plant' local base_factory = require 'map_gen.maps.crash_site.outpost_data.medium_chemical_plant'
local level2 = ob.extend_1_way(base_factory[1], {loot = {callback = loot_callback}}) local level2 = ob.extend_1_way(base_factory[1], {loot = {callback = loot_callback}})
local level3 = local level3 =
@ -133,7 +133,7 @@ return {
max_level = 2 max_level = 2
}, },
walls = { walls = {
require 'map_gen.presets.crash_site.outpost_data.medium_flame_turrets' require 'map_gen.maps.crash_site.outpost_data.medium_flame_turrets'
}, },
bases = { bases = {
{level4, level3, level2} {level4, level3, level2}

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
local level2 = local level2 =
ob.make_1_way { ob.make_1_way {

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
local Token = require 'utils.token' local Token = require 'utils.token'
@ -70,7 +70,7 @@ local loot_callback =
end end
) )
local base_factory = require 'map_gen.presets.crash_site.outpost_data.medium_factory' local base_factory = require 'map_gen.maps.crash_site.outpost_data.medium_factory'
local level2 = ob.extend_1_way(base_factory[1], {loot = {callback = loot_callback}}) local level2 = ob.extend_1_way(base_factory[1], {loot = {callback = loot_callback}})
local level3 = local level3 =
@ -106,7 +106,7 @@ return {
max_level = 2 max_level = 2
}, },
walls = { walls = {
require 'map_gen.presets.crash_site.outpost_data.medium_laser_turrets' require 'map_gen.maps.crash_site.outpost_data.medium_laser_turrets'
}, },
bases = { bases = {
{level4, level3, level2} {level4, level3, level2}

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
local Token = require 'utils.token' local Token = require 'utils.token'
local loot = { local loot = {
@ -48,7 +48,7 @@ local market = {
} }
} }
local base_factory = require 'map_gen.presets.crash_site.outpost_data.medium_furance' local base_factory = require 'map_gen.maps.crash_site.outpost_data.medium_furance'
local level2 = ob.extend_1_way(base_factory[1], {loot = {callback = loot_callback}}) local level2 = ob.extend_1_way(base_factory[1], {loot = {callback = loot_callback}})
local level3 = local level3 =
@ -76,7 +76,7 @@ return {
max_level = 2 max_level = 2
}, },
walls = { walls = {
require 'map_gen.presets.crash_site.outpost_data.medium_gun_turrets' require 'map_gen.maps.crash_site.outpost_data.medium_gun_turrets'
}, },
bases = { bases = {
{level4, level2} {level4, level2}

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
local level2 = local level2 =
ob.make_1_way { ob.make_1_way {

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
return ob.make_walls{ return ob.make_walls{
ob.make_4_way { ob.make_4_way {

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
local level2 = local level2 =
ob.make_1_way { ob.make_1_way {

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
local Token = require 'utils.token' local Token = require 'utils.token'
local loot = { local loot = {
@ -125,7 +125,7 @@ local market = {
} }
} }
local base_factory = require 'map_gen.presets.crash_site.outpost_data.medium_factory' local base_factory = require 'map_gen.maps.crash_site.outpost_data.medium_factory'
local level2 = ob.extend_1_way(base_factory[1], {loot = {callback = loot_callback}}) local level2 = ob.extend_1_way(base_factory[1], {loot = {callback = loot_callback}})
local level3 = local level3 =
@ -172,7 +172,7 @@ return {
max_level = 2 max_level = 2
}, },
walls = { walls = {
require 'map_gen.presets.crash_site.outpost_data.medium_gun_turrets' require 'map_gen.maps.crash_site.outpost_data.medium_gun_turrets'
}, },
bases = { bases = {
{level4, level3, level2} {level4, level3, level2}

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
return ob.make_walls{ return ob.make_walls{
ob.make_4_way { ob.make_4_way {

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
local Token = require 'utils.token' local Token = require 'utils.token'
local loot = { local loot = {
@ -56,7 +56,7 @@ local market = {
} }
} }
local base_factory = require 'map_gen.presets.crash_site.outpost_data.medium_furance' local base_factory = require 'map_gen.maps.crash_site.outpost_data.medium_furance'
local level2 = ob.extend_1_way(base_factory[1], {loot = {callback = loot_callback}}) local level2 = ob.extend_1_way(base_factory[1], {loot = {callback = loot_callback}})
local level3 = local level3 =
@ -94,7 +94,7 @@ return {
max_level = 2 max_level = 2
}, },
walls = { walls = {
require 'map_gen.presets.crash_site.outpost_data.medium_gun_turrets' require 'map_gen.maps.crash_site.outpost_data.medium_gun_turrets'
}, },
bases = { bases = {
{level4, level3, level2} {level4, level3, level2}

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
return ob.make_walls{ return ob.make_walls{
ob.make_4_way { ob.make_4_way {

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
local Token = require 'utils.token' local Token = require 'utils.token'
local loot = { local loot = {
@ -94,8 +94,8 @@ local market = {
} }
} }
local base_factory = require 'map_gen.presets.crash_site.outpost_data.medium_refinery' local base_factory = require 'map_gen.maps.crash_site.outpost_data.medium_refinery'
local storage_tank = require 'map_gen.presets.crash_site.outpost_data.storage_tank_block' local storage_tank = require 'map_gen.maps.crash_site.outpost_data.storage_tank_block'
local level2 = ob.extend_1_way(base_factory[1], {loot = {callback = loot_callback}}) local level2 = ob.extend_1_way(base_factory[1], {loot = {callback = loot_callback}})
@ -134,7 +134,7 @@ return {
max_level = 2 max_level = 2
}, },
walls = { walls = {
require 'map_gen.presets.crash_site.outpost_data.medium_flame_turrets' require 'map_gen.maps.crash_site.outpost_data.medium_flame_turrets'
}, },
bases = { bases = {
{level4, level2} {level4, level2}

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
local Token = require 'utils.token' local Token = require 'utils.token'
local loot = { local loot = {
@ -121,7 +121,7 @@ local market = {
} }
} }
local base_factory = require 'map_gen.presets.crash_site.outpost_data.medium_factory' local base_factory = require 'map_gen.maps.crash_site.outpost_data.medium_factory'
local level2 = ob.extend_1_way(base_factory[1], {loot = {callback = loot_callback}}) local level2 = ob.extend_1_way(base_factory[1], {loot = {callback = loot_callback}})
local level3 = local level3 =
@ -160,7 +160,7 @@ return {
max_level = 2 max_level = 2
}, },
walls = { walls = {
require 'map_gen.presets.crash_site.outpost_data.medium_laser_turrets' require 'map_gen.maps.crash_site.outpost_data.medium_laser_turrets'
}, },
bases = { bases = {
{level4, level2} {level4, level2}

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
local level2 = local level2 =
ob.make_1_way { ob.make_1_way {

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
local Token = require 'utils.token' local Token = require 'utils.token'
local loot = { local loot = {
@ -69,7 +69,7 @@ local market = {
} }
} }
local base_factory = require 'map_gen.presets.crash_site.outpost_data.medium_factory' local base_factory = require 'map_gen.maps.crash_site.outpost_data.medium_factory'
local level2 = ob.extend_1_way(base_factory[1], {loot = {callback = loot_callback}}) local level2 = ob.extend_1_way(base_factory[1], {loot = {callback = loot_callback}})
local level3 = local level3 =
@ -104,7 +104,7 @@ return {
max_level = 2 max_level = 2
}, },
walls = { walls = {
require 'map_gen.presets.crash_site.outpost_data.medium_laser_turrets' require 'map_gen.maps.crash_site.outpost_data.medium_laser_turrets'
}, },
bases = { bases = {
{level4, level3b, level2} {level4, level3b, level2}

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
local Token = require 'utils.token' local Token = require 'utils.token'
local loot = { local loot = {
@ -76,8 +76,8 @@ local market = {
} }
} }
local base_factory = require 'map_gen.presets.crash_site.outpost_data.medium_furance' local base_factory = require 'map_gen.maps.crash_site.outpost_data.medium_furance'
local base_factory2 = require 'map_gen.presets.crash_site.outpost_data.medium_factory' local base_factory2 = require 'map_gen.maps.crash_site.outpost_data.medium_factory'
local level2 = ob.extend_1_way(base_factory[1], {loot = {callback = loot_callback}}) local level2 = ob.extend_1_way(base_factory[1], {loot = {callback = loot_callback}})
local level3 = local level3 =
@ -115,8 +115,8 @@ return {
max_level = 2 max_level = 2
}, },
walls = { walls = {
require 'map_gen.presets.crash_site.outpost_data.medium_gun_turrets', require 'map_gen.maps.crash_site.outpost_data.medium_gun_turrets',
require 'map_gen.presets.crash_site.outpost_data.walls' require 'map_gen.maps.crash_site.outpost_data.walls'
}, },
bases = { bases = {
{level4, level2} {level4, level2}

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
local Token = require 'utils.token' local Token = require 'utils.token'
local loot = { local loot = {
@ -201,7 +201,7 @@ local market = {
} }
} }
local base_factory = require 'map_gen.presets.crash_site.outpost_data.medium_factory' local base_factory = require 'map_gen.maps.crash_site.outpost_data.medium_factory'
local level2 = ob.extend_1_way(base_factory[1], {loot = {callback = loot_callback}}) local level2 = ob.extend_1_way(base_factory[1], {loot = {callback = loot_callback}})
local level3 = local level3 =
@ -247,9 +247,9 @@ return {
max_level = 2 max_level = 2
}, },
walls = { walls = {
require 'map_gen.presets.crash_site.outpost_data.heavy_gun_turrets', require 'map_gen.maps.crash_site.outpost_data.heavy_gun_turrets',
require 'map_gen.presets.crash_site.outpost_data.heavy_laser_turrets', require 'map_gen.maps.crash_site.outpost_data.heavy_laser_turrets',
require 'map_gen.presets.crash_site.outpost_data.heavy_flame_turrets' require 'map_gen.maps.crash_site.outpost_data.heavy_flame_turrets'
}, },
bases = { bases = {
{level4, level3b, level2} {level4, level3b, level2}

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
return ob.make_1_way { return ob.make_1_way {
part_size = 3, part_size = 3,

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
return ob.make_1_way { return ob.make_1_way {
part_size = 3, part_size = 3,

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
return ob.make_walls { return ob.make_walls {
ob.make_4_way { ob.make_4_way {

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
return ob.make_1_way { return ob.make_1_way {
part_size = 3, part_size = 3,

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
return ob.make_walls { return ob.make_walls {
ob.make_4_way { ob.make_4_way {

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
return ob.make_walls { return ob.make_walls {
ob.make_4_way { ob.make_4_way {

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
return ob.make_walls { return ob.make_walls {
ob.make_4_way { ob.make_4_way {

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
return ob.make_1_way { return ob.make_1_way {
part_size = 3, part_size = 3,

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
local Token = require 'utils.token' local Token = require 'utils.token'
local loot = { local loot = {
@ -64,15 +64,15 @@ local factory_callback = {
} }
} }
local wall_chests = require 'map_gen.presets.crash_site.outpost_data.mini_wall_chests' local wall_chests = require 'map_gen.maps.crash_site.outpost_data.mini_wall_chests'
local turret = require 'map_gen.presets.crash_site.outpost_data.mini_gun_turret' local turret = require 'map_gen.maps.crash_site.outpost_data.mini_gun_turret'
wall_chests = ob.extend_walls(wall_chests, {loot = {callback = loot_callback}}) wall_chests = ob.extend_walls(wall_chests, {loot = {callback = loot_callback}})
turret = ob.extend_1_way(turret, {fallback = wall_chests, max_count = 2}) turret = ob.extend_1_way(turret, {fallback = wall_chests, max_count = 2})
local blank = require 'map_gen.presets.crash_site.outpost_data.mini_blank' local blank = require 'map_gen.maps.crash_site.outpost_data.mini_blank'
local base_factory = require 'map_gen.presets.crash_site.outpost_data.mini_factory' local base_factory = require 'map_gen.maps.crash_site.outpost_data.mini_factory'
local gun_turret_block = require 'map_gen.presets.crash_site.outpost_data.mini_gun_turret_block' local gun_turret_block = require 'map_gen.maps.crash_site.outpost_data.mini_gun_turret_block'
local factory = ob.extend_1_way(base_factory, {factory = factory_callback, fallback = blank}) local factory = ob.extend_1_way(base_factory, {factory = factory_callback, fallback = blank})
local gun = ob.extend_1_way(gun_turret_block, {fallback = factory}) local gun = ob.extend_1_way(gun_turret_block, {fallback = factory})

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
local Token = require 'utils.token' local Token = require 'utils.token'
local loot = { local loot = {
@ -52,8 +52,8 @@ local factory_callback = {
} }
} }
local wall_chests = require 'map_gen.presets.crash_site.outpost_data.mini_wall_chests' local wall_chests = require 'map_gen.maps.crash_site.outpost_data.mini_wall_chests'
local turret = require 'map_gen.presets.crash_site.outpost_data.mini_gun_turret' local turret = require 'map_gen.maps.crash_site.outpost_data.mini_gun_turret'
wall_chests = ob.extend_walls(wall_chests, {loot = {callback = loot_callback}}) wall_chests = ob.extend_walls(wall_chests, {loot = {callback = loot_callback}})
turret = turret =
@ -66,9 +66,9 @@ turret =
} }
) )
local blank = require 'map_gen.presets.crash_site.outpost_data.mini_blank' local blank = require 'map_gen.maps.crash_site.outpost_data.mini_blank'
local base_factory = require 'map_gen.presets.crash_site.outpost_data.mini_factory' local base_factory = require 'map_gen.maps.crash_site.outpost_data.mini_factory'
local gun_turret_block = require 'map_gen.presets.crash_site.outpost_data.mini_gun_turret_block' local gun_turret_block = require 'map_gen.maps.crash_site.outpost_data.mini_gun_turret_block'
local factory = ob.extend_1_way(base_factory, {factory = factory_callback, fallback = blank}) local factory = ob.extend_1_way(base_factory, {factory = factory_callback, fallback = blank})
local gun = local gun =

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
local Token = require 'utils.token' local Token = require 'utils.token'
local loot = { local loot = {
@ -61,15 +61,15 @@ local factory_callback = {
} }
} }
local wall_chests = require 'map_gen.presets.crash_site.outpost_data.mini_wall_chests' local wall_chests = require 'map_gen.maps.crash_site.outpost_data.mini_wall_chests'
local turret = require 'map_gen.presets.crash_site.outpost_data.mini_gun_turret' local turret = require 'map_gen.maps.crash_site.outpost_data.mini_gun_turret'
wall_chests = ob.extend_walls(wall_chests, {loot = {callback = loot_callback}}) wall_chests = ob.extend_walls(wall_chests, {loot = {callback = loot_callback}})
turret = ob.extend_1_way(turret, {fallback = wall_chests, max_count = 2}) turret = ob.extend_1_way(turret, {fallback = wall_chests, max_count = 2})
local blank = require 'map_gen.presets.crash_site.outpost_data.mini_blank' local blank = require 'map_gen.maps.crash_site.outpost_data.mini_blank'
local base_factory = require 'map_gen.presets.crash_site.outpost_data.mini_factory' local base_factory = require 'map_gen.maps.crash_site.outpost_data.mini_factory'
local gun_turret_block = require 'map_gen.presets.crash_site.outpost_data.mini_gun_turret_block' local gun_turret_block = require 'map_gen.maps.crash_site.outpost_data.mini_gun_turret_block'
local factory = ob.extend_1_way(base_factory, {factory = factory_callback, fallback = blank}) local factory = ob.extend_1_way(base_factory, {factory = factory_callback, fallback = blank})
local gun = ob.extend_1_way(gun_turret_block, {fallback = factory}) local gun = ob.extend_1_way(gun_turret_block, {fallback = factory})

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
local Token = require 'utils.token' local Token = require 'utils.token'
local loot = { local loot = {
@ -57,8 +57,8 @@ local factory_callback = {
} }
} }
local wall_chests = require 'map_gen.presets.crash_site.outpost_data.mini_wall_chests' local wall_chests = require 'map_gen.maps.crash_site.outpost_data.mini_wall_chests'
local turret = require 'map_gen.presets.crash_site.outpost_data.mini_gun_turret' local turret = require 'map_gen.maps.crash_site.outpost_data.mini_gun_turret'
wall_chests = ob.extend_walls(wall_chests, {loot = {callback = loot_callback}}) wall_chests = ob.extend_walls(wall_chests, {loot = {callback = loot_callback}})
turret = turret =
@ -71,9 +71,9 @@ turret =
} }
) )
local blank = require 'map_gen.presets.crash_site.outpost_data.mini_blank' local blank = require 'map_gen.maps.crash_site.outpost_data.mini_blank'
local base_factory = require 'map_gen.presets.crash_site.outpost_data.mini_factory' local base_factory = require 'map_gen.maps.crash_site.outpost_data.mini_factory'
local gun_turret_block = require 'map_gen.presets.crash_site.outpost_data.mini_gun_turret_block' local gun_turret_block = require 'map_gen.maps.crash_site.outpost_data.mini_gun_turret_block'
local factory = ob.extend_1_way(base_factory, {factory = factory_callback, fallback = blank}) local factory = ob.extend_1_way(base_factory, {factory = factory_callback, fallback = blank})
local gun = local gun =

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
local Token = require 'utils.token' local Token = require 'utils.token'
local loot = { local loot = {
@ -43,8 +43,8 @@ local factory_callback = {
} }
} }
local wall_chests = require 'map_gen.presets.crash_site.outpost_data.mini_wall_chests' local wall_chests = require 'map_gen.maps.crash_site.outpost_data.mini_wall_chests'
local turret = require 'map_gen.presets.crash_site.outpost_data.mini_gun_turret' local turret = require 'map_gen.maps.crash_site.outpost_data.mini_gun_turret'
wall_chests = ob.extend_walls(wall_chests, {loot = {callback = loot_callback}}) wall_chests = ob.extend_walls(wall_chests, {loot = {callback = loot_callback}})
turret = turret =
@ -57,9 +57,9 @@ turret =
} }
) )
local blank = require 'map_gen.presets.crash_site.outpost_data.mini_blank' local blank = require 'map_gen.maps.crash_site.outpost_data.mini_blank'
local base_factory = require 'map_gen.presets.crash_site.outpost_data.mini_factory' local base_factory = require 'map_gen.maps.crash_site.outpost_data.mini_factory'
local gun_turret_block = require 'map_gen.presets.crash_site.outpost_data.mini_gun_turret_block' local gun_turret_block = require 'map_gen.maps.crash_site.outpost_data.mini_gun_turret_block'
local factory = ob.extend_1_way(base_factory, {factory = factory_callback, fallback = blank}) local factory = ob.extend_1_way(base_factory, {factory = factory_callback, fallback = blank})
local gun = local gun =

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
local Token = require 'utils.token' local Token = require 'utils.token'
local loot = { local loot = {
@ -42,15 +42,15 @@ local factory_callback = {
} }
} }
local wall_chests = require 'map_gen.presets.crash_site.outpost_data.mini_wall_chests' local wall_chests = require 'map_gen.maps.crash_site.outpost_data.mini_wall_chests'
local turret = require 'map_gen.presets.crash_site.outpost_data.mini_gun_turret' local turret = require 'map_gen.maps.crash_site.outpost_data.mini_gun_turret'
wall_chests = ob.extend_walls(wall_chests, {loot = {callback = loot_callback}}) wall_chests = ob.extend_walls(wall_chests, {loot = {callback = loot_callback}})
turret = ob.extend_1_way(turret, {fallback = wall_chests, max_count = 2}) turret = ob.extend_1_way(turret, {fallback = wall_chests, max_count = 2})
local blank = require 'map_gen.presets.crash_site.outpost_data.mini_blank' local blank = require 'map_gen.maps.crash_site.outpost_data.mini_blank'
local base_factory = require 'map_gen.presets.crash_site.outpost_data.mini_factory' local base_factory = require 'map_gen.maps.crash_site.outpost_data.mini_factory'
local gun_turret_block = require 'map_gen.presets.crash_site.outpost_data.mini_gun_turret_block' local gun_turret_block = require 'map_gen.maps.crash_site.outpost_data.mini_gun_turret_block'
local factory = ob.extend_1_way(base_factory, {factory = factory_callback, fallback = blank}) local factory = ob.extend_1_way(base_factory, {factory = factory_callback, fallback = blank})
local gun = ob.extend_1_way(gun_turret_block, {fallback = factory}) local gun = ob.extend_1_way(gun_turret_block, {fallback = factory})

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
local Token = require 'utils.token' local Token = require 'utils.token'
local loot = { local loot = {
@ -49,15 +49,15 @@ local factory_callback = {
} }
} }
local wall_chests = require 'map_gen.presets.crash_site.outpost_data.mini_wall_chests' local wall_chests = require 'map_gen.maps.crash_site.outpost_data.mini_wall_chests'
local turret = require 'map_gen.presets.crash_site.outpost_data.mini_gun_turret' local turret = require 'map_gen.maps.crash_site.outpost_data.mini_gun_turret'
wall_chests = ob.extend_walls(wall_chests, {loot = {callback = loot_callback}}) wall_chests = ob.extend_walls(wall_chests, {loot = {callback = loot_callback}})
turret = ob.extend_1_way(turret, {fallback = wall_chests, max_count = 2}) turret = ob.extend_1_way(turret, {fallback = wall_chests, max_count = 2})
local blank = require 'map_gen.presets.crash_site.outpost_data.mini_blank' local blank = require 'map_gen.maps.crash_site.outpost_data.mini_blank'
local base_factory = require 'map_gen.presets.crash_site.outpost_data.mini_factory' local base_factory = require 'map_gen.maps.crash_site.outpost_data.mini_factory'
local gun_turret_block = require 'map_gen.presets.crash_site.outpost_data.mini_gun_turret_block' local gun_turret_block = require 'map_gen.maps.crash_site.outpost_data.mini_gun_turret_block'
local factory = ob.extend_1_way(base_factory, {factory = factory_callback, fallback = blank}) local factory = ob.extend_1_way(base_factory, {factory = factory_callback, fallback = blank})
local gun = ob.extend_1_way(gun_turret_block, {fallback = factory}) local gun = ob.extend_1_way(gun_turret_block, {fallback = factory})

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
local Token = require 'utils.token' local Token = require 'utils.token'
local loot = { local loot = {
@ -56,8 +56,8 @@ local factory_callback = {
} }
} }
local wall_chests = require 'map_gen.presets.crash_site.outpost_data.mini_wall_chests' local wall_chests = require 'map_gen.maps.crash_site.outpost_data.mini_wall_chests'
local turret = require 'map_gen.presets.crash_site.outpost_data.mini_gun_turret' local turret = require 'map_gen.maps.crash_site.outpost_data.mini_gun_turret'
wall_chests = ob.extend_walls(wall_chests, {loot = {callback = loot_callback}}) wall_chests = ob.extend_walls(wall_chests, {loot = {callback = loot_callback}})
turret = turret =
@ -70,9 +70,9 @@ turret =
} }
) )
local blank = require 'map_gen.presets.crash_site.outpost_data.mini_blank' local blank = require 'map_gen.maps.crash_site.outpost_data.mini_blank'
local base_factory = require 'map_gen.presets.crash_site.outpost_data.mini_factory' local base_factory = require 'map_gen.maps.crash_site.outpost_data.mini_factory'
local gun_turret_block = require 'map_gen.presets.crash_site.outpost_data.mini_gun_turret_block' local gun_turret_block = require 'map_gen.maps.crash_site.outpost_data.mini_gun_turret_block'
local factory = ob.extend_1_way(base_factory, {factory = factory_callback, fallback = blank}) local factory = ob.extend_1_way(base_factory, {factory = factory_callback, fallback = blank})
local gun = local gun =

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
local Token = require 'utils.token' local Token = require 'utils.token'
local loot = { local loot = {
@ -47,8 +47,8 @@ local factory_callback = {
} }
} }
local wall_chests = require 'map_gen.presets.crash_site.outpost_data.mini_wall_chests' local wall_chests = require 'map_gen.maps.crash_site.outpost_data.mini_wall_chests'
local turret = require 'map_gen.presets.crash_site.outpost_data.mini_gun_turret' local turret = require 'map_gen.maps.crash_site.outpost_data.mini_gun_turret'
wall_chests = ob.extend_walls(wall_chests, {loot = {callback = loot_callback}}) wall_chests = ob.extend_walls(wall_chests, {loot = {callback = loot_callback}})
turret = turret =
@ -61,9 +61,9 @@ turret =
} }
) )
local blank = require 'map_gen.presets.crash_site.outpost_data.mini_blank' local blank = require 'map_gen.maps.crash_site.outpost_data.mini_blank'
local base_factory = require 'map_gen.presets.crash_site.outpost_data.mini_factory' local base_factory = require 'map_gen.maps.crash_site.outpost_data.mini_factory'
local gun_turret_block = require 'map_gen.presets.crash_site.outpost_data.mini_gun_turret_block' local gun_turret_block = require 'map_gen.maps.crash_site.outpost_data.mini_gun_turret_block'
local factory = ob.extend_1_way(base_factory, {factory = factory_callback, fallback = blank}) local factory = ob.extend_1_way(base_factory, {factory = factory_callback, fallback = blank})
local gun = local gun =

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
local Token = require 'utils.token' local Token = require 'utils.token'
local loot = { local loot = {
@ -68,15 +68,15 @@ local factory_callback = {
} }
} }
local wall_chests = require 'map_gen.presets.crash_site.outpost_data.mini_wall_chests' local wall_chests = require 'map_gen.maps.crash_site.outpost_data.mini_wall_chests'
local turret = require 'map_gen.presets.crash_site.outpost_data.mini_gun_turret' local turret = require 'map_gen.maps.crash_site.outpost_data.mini_gun_turret'
wall_chests = ob.extend_walls(wall_chests, {loot = {callback = loot_callback}}) wall_chests = ob.extend_walls(wall_chests, {loot = {callback = loot_callback}})
turret = ob.extend_1_way(turret, {fallback = wall_chests, max_count = 2}) turret = ob.extend_1_way(turret, {fallback = wall_chests, max_count = 2})
local blank = require 'map_gen.presets.crash_site.outpost_data.mini_blank' local blank = require 'map_gen.maps.crash_site.outpost_data.mini_blank'
local base_factory = require 'map_gen.presets.crash_site.outpost_data.mini_factory' local base_factory = require 'map_gen.maps.crash_site.outpost_data.mini_factory'
local gun_turret_block = require 'map_gen.presets.crash_site.outpost_data.mini_gun_turret_block' local gun_turret_block = require 'map_gen.maps.crash_site.outpost_data.mini_gun_turret_block'
local factory = ob.extend_1_way(base_factory, {factory = factory_callback, fallback = blank}) local factory = ob.extend_1_way(base_factory, {factory = factory_callback, fallback = blank})
local gun = ob.extend_1_way(gun_turret_block, {fallback = factory}) local gun = ob.extend_1_way(gun_turret_block, {fallback = factory})

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
local Token = require 'utils.token' local Token = require 'utils.token'
local loot = { local loot = {
@ -52,15 +52,15 @@ local factory_callback = {
} }
} }
local wall_chests = require 'map_gen.presets.crash_site.outpost_data.mini_hazard_wall_chests' local wall_chests = require 'map_gen.maps.crash_site.outpost_data.mini_hazard_wall_chests'
local turret = require 'map_gen.presets.crash_site.outpost_data.mini_laser_turret' local turret = require 'map_gen.maps.crash_site.outpost_data.mini_laser_turret'
wall_chests = ob.extend_walls(wall_chests, {loot = {callback = loot_callback}}) wall_chests = ob.extend_walls(wall_chests, {loot = {callback = loot_callback}})
turret = ob.extend_walls(turret, {fallback = wall_chests, max_count = 2}) turret = ob.extend_walls(turret, {fallback = wall_chests, max_count = 2})
local blank = require 'map_gen.presets.crash_site.outpost_data.mini_blank' local blank = require 'map_gen.maps.crash_site.outpost_data.mini_blank'
local base_factory = require 'map_gen.presets.crash_site.outpost_data.mini_factory' local base_factory = require 'map_gen.maps.crash_site.outpost_data.mini_factory'
local laser_turret_block = require 'map_gen.presets.crash_site.outpost_data.mini_laser_turret_block' local laser_turret_block = require 'map_gen.maps.crash_site.outpost_data.mini_laser_turret_block'
local factory = ob.extend_1_way(base_factory, {factory = factory_callback, fallback = blank}) local factory = ob.extend_1_way(base_factory, {factory = factory_callback, fallback = blank})
local gun = ob.extend_1_way(laser_turret_block, {fallback = factory}) local gun = ob.extend_1_way(laser_turret_block, {fallback = factory})

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
local Token = require 'utils.token' local Token = require 'utils.token'
local loot = { local loot = {
@ -44,15 +44,15 @@ local factory_callback = {
} }
} }
local wall_chests = require 'map_gen.presets.crash_site.outpost_data.mini_hazard_wall_chests' local wall_chests = require 'map_gen.maps.crash_site.outpost_data.mini_hazard_wall_chests'
local turret = require 'map_gen.presets.crash_site.outpost_data.mini_laser_turret' local turret = require 'map_gen.maps.crash_site.outpost_data.mini_laser_turret'
wall_chests = ob.extend_walls(wall_chests, {loot = {callback = loot_callback}}) wall_chests = ob.extend_walls(wall_chests, {loot = {callback = loot_callback}})
turret = ob.extend_walls(turret, {fallback = wall_chests, max_count = 2}) turret = ob.extend_walls(turret, {fallback = wall_chests, max_count = 2})
local blank = require 'map_gen.presets.crash_site.outpost_data.mini_blank' local blank = require 'map_gen.maps.crash_site.outpost_data.mini_blank'
local base_factory = require 'map_gen.presets.crash_site.outpost_data.mini_factory' local base_factory = require 'map_gen.maps.crash_site.outpost_data.mini_factory'
local laser_turret_block = require 'map_gen.presets.crash_site.outpost_data.mini_laser_turret_block' local laser_turret_block = require 'map_gen.maps.crash_site.outpost_data.mini_laser_turret_block'
local factory = ob.extend_1_way(base_factory, {factory = factory_callback, fallback = blank}) local factory = ob.extend_1_way(base_factory, {factory = factory_callback, fallback = blank})
local gun = ob.extend_1_way(laser_turret_block, {fallback = factory}) local gun = ob.extend_1_way(laser_turret_block, {fallback = factory})

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
local Token = require 'utils.token' local Token = require 'utils.token'
local loot = { local loot = {
@ -55,8 +55,8 @@ local factory_callback = {
} }
} }
local wall_chests = require 'map_gen.presets.crash_site.outpost_data.mini_wall_chests' local wall_chests = require 'map_gen.maps.crash_site.outpost_data.mini_wall_chests'
local turret = require 'map_gen.presets.crash_site.outpost_data.mini_gun_turret' local turret = require 'map_gen.maps.crash_site.outpost_data.mini_gun_turret'
wall_chests = ob.extend_walls(wall_chests, {loot = {callback = loot_callback}}) wall_chests = ob.extend_walls(wall_chests, {loot = {callback = loot_callback}})
turret = turret =
@ -69,9 +69,9 @@ turret =
} }
) )
local blank = require 'map_gen.presets.crash_site.outpost_data.mini_blank' local blank = require 'map_gen.maps.crash_site.outpost_data.mini_blank'
local base_factory = require 'map_gen.presets.crash_site.outpost_data.mini_factory' local base_factory = require 'map_gen.maps.crash_site.outpost_data.mini_factory'
local gun_turret_block = require 'map_gen.presets.crash_site.outpost_data.mini_gun_turret_block' local gun_turret_block = require 'map_gen.maps.crash_site.outpost_data.mini_gun_turret_block'
local factory = ob.extend_1_way(base_factory, {factory = factory_callback, fallback = blank}) local factory = ob.extend_1_way(base_factory, {factory = factory_callback, fallback = blank})
local gun = local gun =

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
local Token = require 'utils.token' local Token = require 'utils.token'
local loot = { local loot = {
@ -68,8 +68,8 @@ local factory_callback = {
} }
} }
local wall_chests = require 'map_gen.presets.crash_site.outpost_data.mini_wall_chests' local wall_chests = require 'map_gen.maps.crash_site.outpost_data.mini_wall_chests'
local turret = require 'map_gen.presets.crash_site.outpost_data.mini_gun_turret' local turret = require 'map_gen.maps.crash_site.outpost_data.mini_gun_turret'
wall_chests = ob.extend_walls(wall_chests, {loot = {callback = loot_callback}}) wall_chests = ob.extend_walls(wall_chests, {loot = {callback = loot_callback}})
turret = turret =
@ -82,9 +82,9 @@ turret =
} }
) )
local blank = require 'map_gen.presets.crash_site.outpost_data.mini_blank' local blank = require 'map_gen.maps.crash_site.outpost_data.mini_blank'
local base_factory = require 'map_gen.presets.crash_site.outpost_data.mini_factory' local base_factory = require 'map_gen.maps.crash_site.outpost_data.mini_factory'
local gun_turret_block = require 'map_gen.presets.crash_site.outpost_data.mini_gun_turret_block' local gun_turret_block = require 'map_gen.maps.crash_site.outpost_data.mini_gun_turret_block'
local factory = ob.extend_1_way(base_factory, {factory = factory_callback, fallback = blank}) local factory = ob.extend_1_way(base_factory, {factory = factory_callback, fallback = blank})
local gun = local gun =

View File

@ -1,4 +1,4 @@
local ob = require 'map_gen.presets.crash_site.outpost_builder' local ob = require 'map_gen.maps.crash_site.outpost_builder'
local Token = require 'utils.token' local Token = require 'utils.token'
local loot = { local loot = {
@ -52,15 +52,15 @@ local factory_callback = {
} }
} }
local wall_chests = require 'map_gen.presets.crash_site.outpost_data.mini_hazard_wall_chests' local wall_chests = require 'map_gen.maps.crash_site.outpost_data.mini_hazard_wall_chests'
local turret = require 'map_gen.presets.crash_site.outpost_data.mini_laser_turret' local turret = require 'map_gen.maps.crash_site.outpost_data.mini_laser_turret'
wall_chests = ob.extend_walls(wall_chests, {loot = {callback = loot_callback}}) wall_chests = ob.extend_walls(wall_chests, {loot = {callback = loot_callback}})
turret = ob.extend_walls(turret, {fallback = wall_chests, max_count = 2}) turret = ob.extend_walls(turret, {fallback = wall_chests, max_count = 2})
local blank = require 'map_gen.presets.crash_site.outpost_data.mini_blank' local blank = require 'map_gen.maps.crash_site.outpost_data.mini_blank'
local base_factory = require 'map_gen.presets.crash_site.outpost_data.mini_factory' local base_factory = require 'map_gen.maps.crash_site.outpost_data.mini_factory'
local laser_turret_block = require 'map_gen.presets.crash_site.outpost_data.mini_laser_turret_block' local laser_turret_block = require 'map_gen.maps.crash_site.outpost_data.mini_laser_turret_block'
local factory = ob.extend_1_way(base_factory, {factory = factory_callback, fallback = blank}) local factory = ob.extend_1_way(base_factory, {factory = factory_callback, fallback = blank})
local gun = ob.extend_1_way(laser_turret_block, {fallback = factory}) local gun = ob.extend_1_way(laser_turret_block, {fallback = factory})

Some files were not shown because too many files have changed in this diff Show More