Skip to content

Commit

Permalink
Journey fix for oceanic + wasteland
Browse files Browse the repository at this point in the history
  • Loading branch information
hanakocz committed Dec 8, 2024
1 parent 02e3fcb commit d939797
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
2 changes: 2 additions & 0 deletions maps/journey/constants.lua
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ Public.build_type_whitelist = {
['arithmetic-combinator'] = true,
['constant-combinator'] = true,
['decider-combinator'] = true,
['selector-combinator'] = true,
['display-panel'] = true,
['electric-energy-interface'] = true,
['electric-pole'] = true,
['gate'] = true,
Expand Down
20 changes: 5 additions & 15 deletions maps/journey/unique_modifiers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -346,25 +346,18 @@ Public.wasteland = {
local surface = game.surfaces.nauvis
local mgs = surface.map_gen_settings
mgs.terrain_segmentation = 2.7
mgs.water = mgs.water + 1
surface.map_gen_settings = mgs
surface.clear(true)
end,
clear = function (journey)
local surface = game.surfaces.nauvis
local mgs = surface.map_gen_settings
mgs.water = mgs.water - 1
surface.map_gen_settings = mgs
set_specials = function (journey)
journey.world_specials['water'] = 2
end
}

Public.oceanic = {
on_world_start = function (journey)
local surface = game.surfaces.nauvis
local mgs = surface.map_gen_settings
mgs.terrain_segmentation = 0.5
mgs.water = mgs.water + 6
surface.map_gen_settings = mgs

surface.clear(true)
end,
on_robot_built_entity = function (event)
Expand All @@ -391,11 +384,8 @@ Public.oceanic = {
entity.die()
end
end,
clear = function (journey)
local surface = game.surfaces.nauvis
local mgs = surface.map_gen_settings
mgs.water = mgs.water - 6
surface.map_gen_settings = mgs
set_specials = function (journey)
journey.world_specials['water'] = 6
end
}

Expand Down

0 comments on commit d939797

Please sign in to comment.