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

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@6267 51575b47-30f0-44d4-a5cc-537603b46e54
parent fc53c85a
No related branches found
No related tags found
No related merge requests found
......@@ -57,10 +57,12 @@ function _M:init(t)
end
function _M:knownLore(lore)
self.lore_known = self.lore_known or {}
return self.lore_known[lore] and true or false
end
function _M:getLore(lore, silent)
self.lore_known = self.lore_known or {}
self.additional_lore = self.additional_lore or {}
if not silent then assert(self.lore_defs[lore] or self.additional_lore[lore], "bad lore id "..lore) end
return self.lore_defs[lore] or self.additional_lore[lore]
......@@ -78,6 +80,8 @@ function _M:learnLore(lore, nopopup, silent, nostop)
if not l then return end
local learnt = false
self.lore_known = self.lore_known or {}
if not config.settings.tome.lore_popup and profile.mod.lore and profile.mod.lore.lore and profile.mod.lore.lore[lore] and not l.always_pop then nopopup = true end
if not self:knownLore(lore) or l.always_pop then
......
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