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

fix


git-svn-id: http://svn.net-core.org/repos/t-engine4@855 51575b47-30f0-44d4-a5cc-537603b46e54
parent f7866274
No related branches found
No related tags found
No related merge requests found
......@@ -59,15 +59,19 @@ function _M:init(title, x, y, filter, action)
}
end
function _M:use()
if self.list[self.sel] then
self.action(self.list[self.sel].object, self.list[self.sel].item)
end
function _M:used()
self:generateList()
if #self.list == 0 then
game:unregisterDialog(self)
return false
end
end
function _M:use()
if self.list[self.sel] then
self.action(self.list[self.sel].object, self.list[self.sel].item)
end
self:used()
return true
end
......@@ -87,6 +91,7 @@ function _M:generateList()
end
self.list = list
self.sel = 1
self.changed = true
end
function _M:drawDialog(s)
......
......@@ -413,6 +413,7 @@ function _M:playerPickup()
self:sortInven()
self.changed = true
d.title = titleupdator()
d:used()
end)
else
self:pickupFloor(1, true)
......
......@@ -38,7 +38,7 @@ newBirthDescriptor{
-- All mages are of angolwen faction
faction = "angolwen",
mana_regen = 0.5,
mana_rating = 5,
mana_rating = 7,
resolvers.generic(function(e)
e.hotkey[10] = {"inventory", "potion of lesser mana"}
end),
......
......@@ -34,7 +34,7 @@ newChat{ id="closed",
newChat{ id="welcome",
text = [[Ah my good friend @playername@!
Thansk to you I made it safely to this great city, I am to open my shop soon, but I owe you a bit so I could maybe open early for you if you are in need of some rare goods.]],
Thanks to you I made it safely to this great city, I am to open my shop soon, but I owe you a bit so I could maybe open early for you if you are in need of some rare goods.]],
answers = {
{"Yes please, let me see your wares.", action=function(npc, player)
npc.store:loadup(game.level, game.zone)
......
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