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

Grushnak now correctly drops his Orb of Command

git-svn-id: http://svn.net-core.org/repos/t-engine4@1177 51575b47-30f0-44d4-a5cc-537603b46e54
parent 6ba20198
No related branches found
No related tags found
No related merge requests found
......@@ -64,18 +64,20 @@ function _M:init()
if self.commands[self.com_sel] then
self.line = self.commands[self.com_sel]
end
self.changed = true
end,
_DOWN = function()
self.com_sel = util.bound(self.com_sel + 1, 1, #self.commands)
if self.commands[self.com_sel] then
self.line = self.commands[self.com_sel]
end
self.changed = true
end,
_ESCAPE = function()
game:unregisterDialog(self)
end,
_BACKSPACE = function()
self.line = self.line:sub(1, self.line:len() - 1)
self.line = self.line:sub(1, self.line:len() - 1) self.changed = true
end,
__TEXTINPUT = function(c)
self.line = self.line .. c
......@@ -103,7 +105,7 @@ function _M:drawDialog(s, w, h)
i = i - 1
dh = dh - self.font:lineSkip()
end
self.changed = false
end
--- Scroll the zone
......@@ -113,4 +115,4 @@ function _M:scrollUp(i)
if self.offset > #self.history - 1 then self.offset = #self.history - 1 end
if self.offset < 0 then self.offset = 0 end
self.changed = true
end
\ No newline at end of file
end
......@@ -56,6 +56,7 @@ newEntity{ base="BASE_NPC_ORC_GRUSHNAK", define_as = "GRUSHNAK",
-- {type="jewelry", subtype="ring", ego_chance=100, autoreq=true},
{type="jewelry", subtype="ring", defined="PRIDE_GLORY", autoreq=true},
},
resolvers.drops{chance=100, nb=1, {defined="ORB_DESTRUCTION"} },
resolvers.drops{chance=100, nb=5, {ego_chance=100} },
make_escort = {
......
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