diff --git a/game/modules/tome/data/general/events/glowing-chest.lua b/game/modules/tome/data/general/events/glowing-chest.lua index 534b5ce1d8610ae014bd9ce0243592c851a4a574..34c851c465b3ff1f3a31ea8937959907690f0b06 100644 --- a/game/modules/tome/data/general/events/glowing-chest.lua +++ b/game/modules/tome/data/general/events/glowing-chest.lua @@ -73,6 +73,9 @@ g.block_move = function(self, x, y, who, act, couldpass) game.logSeen(who, "#GOLD#An object rolls from the chest!") if self.chest_guards then for _, m in ipairs(self.chest_guards) do + if game.level.data and game.level.data.special_level_faction then + m.faction = game.level.data.special_level_faction + end local mx, my = util.findFreeGrid(x, y, 5, true, {[engine.Map.ACTOR]=true}) if mx then game.zone:addEntity(game.level, m, "actor", mx, my) end end diff --git a/game/modules/tome/data/zones/crypt-kryl-feijan/zone.lua b/game/modules/tome/data/zones/crypt-kryl-feijan/zone.lua index 747e61aa4d939a3c5b96eded43bd1fc55bbdb90f..30131fe0c13bf03de42eedfa212569ca1449d920 100644 --- a/game/modules/tome/data/zones/crypt-kryl-feijan/zone.lua +++ b/game/modules/tome/data/zones/crypt-kryl-feijan/zone.lua @@ -58,6 +58,7 @@ return { nb_trap = {0, 0}, }, }, + special_level_faction = "fearscape", post_process = function(level) for uid, e in pairs(level.entities) do e.faction = e.hard_faction or "fearscape" end end,