Skip to content
Snippets Groups Projects
Commit b41f79a6 authored by dg's avatar dg
Browse files

Glowing chest guardians are hostile in the dark crypt even if you previously...

Glowing chest guardians are hostile in the dark crypt even if you previously sided with the Grand Corruptor


git-svn-id: http://svn.net-core.org/repos/t-engine4@6450 51575b47-30f0-44d4-a5cc-537603b46e54
parent ce245b50
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment