Commit 2a9e0be2d73e55aecdfababc75c25e6ddc5ad137

Authored by DarkGod
2 parents 87d314e2 d38d8a46

Merge branch 'disable-bandit-fortress' into 'master'

Disable bandit fortress vault

There have been consistent complaints of this vault causing high amounts of lag when it appears on a level, and it's not unique or interesting enough to warrant the heavy performance cost. Good candidate for a later rework to re-enable, but for now disabling is the best option.

See merge request !615
... ... @@ -51,7 +51,7 @@ return {
51 51
52 52 nb_rooms = {0,0,1},
53 53 rooms = {"greater_vault"},
54   - greater_vaults_list = {"dragon_lair", "lava_island", "bandit-fortress", "horror-chamber", "living-weapons", "sleeping-dragons"},
  54 + greater_vaults_list = {"dragon_lair", "lava_island", "horror-chamber", "living-weapons", "sleeping-dragons"},
55 55 lite_room_chance = 100,
56 56 },
57 57 actor = {
... ...
... ... @@ -46,7 +46,7 @@ return {
46 46 edge_entrances = {4,6},
47 47 rooms = {"forest_clearing", {"lesser_vault",8}},
48 48 rooms_config = {forest_clearing={pit_chance=5, filters={{type="insect", subtype="ant"}, {type="insect"}, {type="animal", subtype="snake"}, {type="animal", subtype="canine"}}}},
49   - lesser_vaults_list = {"honey_glade", "troll-hideout", "mage-hideout", "thief-hideout", "plantlife", "mold-path", "bandit-fortress","loot-vault","worms"},
  49 + lesser_vaults_list = {"honey_glade", "troll-hideout", "mage-hideout", "thief-hideout", "plantlife", "mold-path", "loot-vault","worms"},
50 50 ['.'] = "GRASS",
51 51 ['#'] = "TREE",
52 52 up = "GRASS_UP4",
... ...
... ... @@ -37,7 +37,7 @@ function _M:init(actor)
37 37
38 38 self:generateList()
39 39 if self.dont_show then return end
40   - if not config.settings.cheat then game:saveGame() end
  40 + if not config.settings.cheat then game:onTickEnd(function() game:saveGame() end) end
41 41
42 42 local text = [[Death in #{bold}#Tales of Maj'Eyal#{normal}# is usually permanent, but if you have a means of resurrection it will be proposed in the menu below.
43 43 You can dump your character data to a file to remember her/him forever, or you can exit and try once again to survive in the wilds!
... ... @@ -187,7 +187,7 @@ function _M:eidolonPlane()
187 187
188 188 game.log("#LIGHT_RED#From the brink of death you seem to be yanked to another plane.")
189 189 game.player:updateMainShader()
190   - if not config.settings.cheat then game:saveGame() end
  190 + if not config.settings.cheat then game:onTickEnd(function() game:saveGame() end) end
191 191
192 192 self.actor:checkTwoHandedPenalty()
193 193 end)
... ...