From b0ab7059ef50739aa5a91920ea17cecf84cd2b68 Mon Sep 17 00:00:00 2001 From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54> Date: Mon, 26 Jul 2010 16:20:20 +0000 Subject: [PATCH] New artifact: the Tome of Flames (not available everywhere) git-svn-id: http://svn.net-core.org/repos/t-engine4@939 51575b47-30f0-44d4-a5cc-537603b46e54 --- .../tome/data/zones/vor-pride/objects.lua | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/game/modules/tome/data/zones/vor-pride/objects.lua b/game/modules/tome/data/zones/vor-pride/objects.lua index fa2a248859..7e08be8885 100644 --- a/game/modules/tome/data/zones/vor-pride/objects.lua +++ b/game/modules/tome/data/zones/vor-pride/objects.lua @@ -36,3 +36,26 @@ newEntity{ base = "BASE_CLOTH_ARMOR", combat_def = 6, }, } + +-- Artifact, randomly dropped in Vor Pride, and only there +newEntity{ base = "BASE_SCROLL", subtype="tome", + name = "Tome of Flames", unided_name = "burning book", unique=true, + color = colors.VIOLET, + level_range = {35, 45}, + rarity = 200, + cost = 100, + + use_simple = { name="learn the ancient secrets", use = function(self, who) + if not who:knowTalent(who.T_FLAME) then + who:learnTalent(who.T_FLAME, true, 3) + game.logPlayer(who, "#00FFFF#You read the tome and learn about ancient forgotten fire magic!") + else + who.talents_types_mastery["spell/fire"] = (who.talents_types_mastery["spell/fire"] or 1) + 0.1 + game.logPlayer(who, "#00FFFF#You read the tome and perfect your mastery of fire magic!") + end + + game:setAllowedBuild("mage_pyromancer", true) + + return "destroy", true + end} +} -- GitLab