Skip to content

Commit

Permalink
Mtn v3 - small fixes
Browse files Browse the repository at this point in the history
Removes broken spells from objective
Fixes broken teleport when final battle
Lowered the length of final battle to max 15m
  • Loading branch information
Gerkiz committed Jun 11, 2024
1 parent ce4357c commit cf95b8e
Show file tree
Hide file tree
Showing 4 changed files with 3,327 additions and 3,334 deletions.
2 changes: 1 addition & 1 deletion control.lua
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ require 'utils.remote_chunks'
--require 'maps.biter_battles.biter_battles'

--![[Guide a Train through rough terrain, while defending it from the biters]]--
--require 'maps.mountain_fortress_v3.main'
require 'maps.mountain_fortress_v3.main'
--require 'maps.mountain_fortress_v2.main'
--require 'maps.mountain_fortress'

Expand Down
9 changes: 9 additions & 0 deletions maps/mountain_fortress_v3/functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -987,6 +987,15 @@ function Public.find_void_tiles_and_replace()
right_bottom = { x = (zone_settings.zone_width / 2) - 10, y = rp.y }
}

local adjusted_zones = Public.get('adjusted_zones')

if adjusted_zones.reversed then
area = {
left_top = { x = ((zone_settings.zone_width / 2) + 10) * -1, y = rp.y },
right_bottom = { x = math.abs((-zone_settings.zone_width / 2) - 10), y = cp.y },
}
end

local tiles = surface.find_tiles_filtered({ area = area, name = { 'out-of-map', 'water', 'deepwater', 'water-green', 'deepwater-green' } })
if tiles and #tiles > 0 then
Public.set('tiles_to_replace', tiles)
Expand Down
Loading

0 comments on commit cf95b8e

Please sign in to comment.