Skip to content
Snippets Groups Projects
Commit 608fc646 authored by DarkGod's avatar DarkGod
Browse files

protect quest giving lore from working in wrong campaigns

parent 402abe91
No related branches found
No related tags found
No related merge requests found
......@@ -157,6 +157,7 @@ I know you think yourself "above" such "petty politics" like how vital this faci
]],
always_pop = true,
on_learn = function(who)
if not game:isCampaign("Maj'Eyal") then return end
if not game.state.can_conclave_vault then return end
game:onLevelLoad("wilderness-1", function(zone, level)
local spot = game.level:pickSpot{type="world-encounter", subtype="conclave-vault"}
......
......@@ -91,6 +91,7 @@ If any come after, I bid you turn ... horrors ... too much. If you are foolish e
#{italic}#You find with the note a tiny, faintly glowing orb - is this the key the note mentions?
#{normal}#]],
on_learn = function(who)
if not game:isCampaign("Maj'Eyal") then return end
game.player:grantQuest("shertul-fortress")
end,
}
......
......@@ -55,6 +55,7 @@ newLore{
Alongside the note is a part of a plan of the region.]],
bloodstains = 3,
on_learn = function(who)
if not game:isCampaign("Maj'Eyal") then return end
local p = game:getPlayer(true)
p:grantQuest("trollmire-treasure")
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