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

Transmo popup happens before level switch instead of after

git-svn-id: http://svn.net-core.org/repos/t-engine4@5519 51575b47-30f0-44d4-a5cc-537603b46e54
parent 41caf19e
No related branches found
No related tags found
No related merge requests found
......@@ -565,9 +565,6 @@ function _M:changeLevel(lev, zone, params)
return
end
local st = core.game.getTime()
local sti = 1
-- Transmo!
local p = self:getPlayer(true)
if p:attr("has_transmo") and p:transmoGetNumberItems() > 0 then
......@@ -591,12 +588,20 @@ function _M:changeLevel(lev, zone, params)
p:transmoInven(inven, i, o)
end
end
self:changeLevelReal(lev, zone, params)
end
-- Select the chest tab
d.c_inven.dont_update_last_tabs = true
d.c_inven:switchTab{kind="transmo"}
d:simplePopup("Transmogrification Chest", "When you close the inventory window, all items in the chest will be transmogrified.")
else
self:changeLevelReal(lev, zone, params)
end
end
function _M:changeLevelReal(lev, zone, params)
local st = core.game.getTime()
local sti = 1
-- Finish stuff registered for the previous level
self:onTickEndExecute()
......
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