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

Learning the lost knowledge in Yillkgur library is still slow, but there is a progressbar! :)

git-svn-id: http://svn.net-core.org/repos/t-engine4@4681 51575b47-30f0-44d4-a5cc-537603b46e54
parent 754bfdd3
No related branches found
No related tags found
No related merge requests found
......@@ -153,9 +153,22 @@ newEntity{
always_remember = true,
block_move = function(self, x, y, e, act, couldpass)
if e and e.player and act then
local nb = 0
for lore, _ in pairs(profile.mod.lore.lore) do nb = nb + 1 end
local popup = require("engine.ui.Dialog"):simpleWaiter("Yiilkgur's Library of Lost Mysteries", "Receiving the lost knowledge of the universe...", nil, nil, nb)
core.wait.enableManualTick(true)
core.display.forceRedraw()
if profile.mod.lore and profile.mod.lore.lore then
for lore, _ in pairs(profile.mod.lore.lore) do game.player:learnLore(lore, true) end
for lore, _ in pairs(profile.mod.lore.lore) do
game.player:learnLore(lore, true, true)
core.wait.manualTick(1)
end
end
popup:done()
game:registerDialog(require("mod.dialogs.ShowLore").new("Yiilkgur's Library of Lost Mysteries", game.player))
end
return true
......
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