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

Fix mage apprentice quest when not selecting an item

git-svn-id: http://svn.net-core.org/repos/t-engine4@1865 51575b47-30f0-44d4-a5cc-537603b46e54
parent 615cbed2
No related branches found
No related tags found
No related merge requests found
...@@ -42,7 +42,7 @@ on_status_change = function(self, who, status, sub) ...@@ -42,7 +42,7 @@ on_status_change = function(self, who, status, sub)
end end
collect_staff = function(self, npc, who, dialog) collect_staff = function(self, npc, who, dialog)
who:showEquipInven("Offer which item?", who:showInventory("Offer which item?", who:getInven("INVEN"),
function(o) return (o.type == "weapon" and o.subtype == "staff" and (not o.define_as or o.define_as ~= "STAFF_KOR")) or (o.type == "jewelry" and o.subtype == "ring") or (o.type == "jewelry" and o.subtype == "amulet") end, function(o) return (o.type == "weapon" and o.subtype == "staff" and (not o.define_as or o.define_as ~= "STAFF_KOR")) or (o.type == "jewelry" and o.subtype == "ring") or (o.type == "jewelry" and o.subtype == "amulet") end,
function(o, inven, item) function(o, inven, item)
-- Special handling for the staff of absorption -- Special handling for the staff of absorption
...@@ -76,7 +76,7 @@ can_offer = function(self, who) ...@@ -76,7 +76,7 @@ can_offer = function(self, who)
end end
collect_staff_kor = function(self, who, dialog) collect_staff_kor = function(self, who, dialog)
who:showEquipInven("Offer which item?", who:showInventory("Offer which item?", who:getInven("INVEN"),
function(o) return o.type == "weapon" and o.subtype == "staff" and o.define_as == "STAFF_KOR" end, function(o) return o.type == "weapon" and o.subtype == "staff" and o.define_as == "STAFF_KOR" end,
function(o, inven, item) function(o, inven, item)
self.nb_collect = self.nb_collect + 15 self.nb_collect = self.nb_collect + 15
......
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