Skip to content
Snippets Groups Projects

Major events update

Merged Hachem_Muche requested to merge Hachem_Muche/t-engine4:MajorEventsUpdate into master
8 files
+ 167
100
Compare changes
  • Side-by-side
  • Inline
Files
8
  • sub-vault, rat-lich, damp-cave, old-battle-field, drake-cave, naga-portal, fearscape-portal
    
    .no_worldport is set to that of the parent zone.
    Actor levels are 5% to 15% higher than the the parent zone and game difficulty adjustments are not compounded.
    Object material levels match the parent zone.
    Auto explore and minimap settings updated.
    
    Fixed a bug in sub-vault that was preventing the stairs from crumbling as intended.
    
    The player can choose to ignore the naga-portal and fearscape-portal by hitting escape at the pop-up.
    
    Fixed a bug in game:changeLevelReal that was causing the player to incorrectly be placed at level start when params.auto_level_stair was set.
    
    The player is correctly placed on one of the graves when returning from the old-battle-field event.
@@ -918,7 +918,7 @@ end
function _M:changeLevelReal(lev, zone, params)
local oz, ol = self.zone, self.level
-- Unlock first!
if not params.temporary_zone_shift_back and self.level and self.level.temp_shift_zone then
self:changeLevelReal(1, "useless", {temporary_zone_shift_back=true})
@@ -1101,7 +1101,7 @@ function _M:changeLevelReal(lev, zone, params)
list[#list+1] = {i, j}
end
end end
if #list > 0 then x, y = unpack(rng.table(list)) end
if #list > 0 then list = rng.table(list) x, y = unpack(list) end
elseif params.auto_level_stair then
-- Dirty but quick
local list = {}
@@ -1111,7 +1111,7 @@ function _M:changeLevelReal(lev, zone, params)
list[#list+1] = {i, j}
end
end end
if #list > 0 then x, y = unpack(rng.table(list)) end
if #list > 0 then list = rng.table(list) x, y = unpack(list) end
end
-- if self.level.exited then -- use the last location, if defined
Loading