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

Artifacts lore popups over store dialogs

git-svn-id: http://svn.net-core.org/repos/t-engine4@5900 51575b47-30f0-44d4-a5cc-537603b46e54
parent 1645740f
No related branches found
No related tags found
No related merge requests found
......@@ -1472,13 +1472,15 @@ end
--- On identification, add to lore
function _M:on_identify()
if self.on_id_lore then
game.player:learnLore(self.on_id_lore, false, false, true)
end
if self.unique and self.desc and not self.no_unique_lore then
game.player:additionalLore(self.unique, self:getName{no_add_name=true, do_color=false, no_count=true}, "artifacts", self.desc)
game.player:learnLore(self.unique, false, false, true)
end
game:onTickEnd(function()
if self.on_id_lore then
game.player:learnLore(self.on_id_lore, false, false, true)
end
if self.unique and self.desc and not self.no_unique_lore then
game.player:additionalLore(self.unique, self:getName{no_add_name=true, do_color=false, no_count=true}, "artifacts", self.desc)
game.player:learnLore(self.unique, false, false, true)
end
end)
end
--- Add some special properties right before wearing it
......
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