From 747719364fae555fbfce801828644eebdd7430ce Mon Sep 17 00:00:00 2001 From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54> Date: Tue, 21 Feb 2012 00:03:40 +0000 Subject: [PATCH] Nerf Witch-bane and Guidance for non antimagic users, buff them for antimagic users git-svn-id: http://svn.net-core.org/repos/t-engine4@4902 51575b47-30f0-44d4-a5cc-537603b46e54 --- .../data/general/objects/world-artifacts.lua | 41 +++++++++++++++---- .../tome/data/zones/lake-nur/grids.lua | 2 +- 2 files changed, 33 insertions(+), 10 deletions(-) diff --git a/game/modules/tome/data/general/objects/world-artifacts.lua b/game/modules/tome/data/general/objects/world-artifacts.lua index 840bac90b1..1da4db1528 100644 --- a/game/modules/tome/data/general/objects/world-artifacts.lua +++ b/game/modules/tome/data/general/objects/world-artifacts.lua @@ -456,21 +456,33 @@ newEntity{ base = "BASE_LITE", color = colors.YELLOW, encumber = 1, rarity = 300, - desc = [[Said to have once belonged to Inquisitor Marcus Dunn during the Spellhunt this fist sized quartz crystal glows constantly with a soft white light and was rumoured to be a great aid in meditation, helping focus the mind, body, and soul of the owner as well as protecting them from the foulest of magics.]], + desc = [[Said to have once belonged to Inquisitor Marcus Dunn during the Spellhunt this fist sized quartz crystal glows constantly with a soft white light and was rumoured to be a great aid in meditation, helping focus the mind, body, and soul of the owner as well as protecting them from the foulest of magics. +It seems somebody well versed in antimagic could use it to its fullest potential.]], cost = 100, material_level = 4, wielder = { lite = 4, inc_stats = { [Stats.STAT_WIL] = 6, [Stats.STAT_CUN] = 6,}, - combat_physresist = 12, - combat_mentalresist = 12, - combat_spellresist = 12, - confusion_immune = 0.5, + combat_physresist = 6, + combat_mentalresist = 6, + combat_spellresist = 6, talents_types_mastery = { ["wild-gift/call"] = 0.2, ["wild-gift/antimagic"] = 0.1, }, resists_cap = { [DamageType.BLIGHT] = 10, }, resists = { [DamageType.BLIGHT] = 20, }, }, + on_wear = function(self, who) + if who:attr("forbid_arcane") then + local Stats = require "engine.interface.ActorStats" + local DamageType = require "engine.DamageType" + + self:specialWearAdd({"wielder","inc_stats"}, { [Stats.STAT_WIL] = 6, [Stats.STAT_CUN] = 6, }) + self:specialWearAdd({"wielder","combat_physresist"}, 6) + self:specialWearAdd({"wielder","combat_spellresist"}, 6) + self:specialWearAdd({"wielder","combat_mentalresist"}, 6) + game.logPlayer(who, "#LIGHT_BLUE#You feel a great hero guiding you!") + end + end, } newEntity{ @@ -2113,21 +2125,21 @@ newEntity{ base = "BASE_LONGSWORD", unique = true, name = "Witch-Bane", color = colors.LIGHT_STEEL_BLUE, image = "object/artifact/sword_witch_bane.png", unided_name = "an ivory handled voratun longsword", - desc = [[A thin voratun blade with an ivory handle wrapped in purple cloth. The weapon is nearly as legendary as it's former owner, Marcus Dunn, and was thought to have been destroyed after Marcus' was slain near the end of the Spellhunt.]], + desc = [[A thin voratun blade with an ivory handle wrapped in purple cloth. The weapon is nearly as legendary as it's former owner, Marcus Dunn, and was thought to have been destroyed after Marcus' was slain near the end of the Spellhunt. +It seems somebody well versed in antimagic could use it to its fullest potential.]], level_range = {38, 50}, rarity = 250, require = { stat = { str=48 }, }, cost = 650, material_level = 5, combat = { - dam = 45, + dam = 42, apr = 4, physcrit = 10, dammod = {str=1}, - talent_on_hit = { [Talents.T_MANA_CLASH] = {level=1, chance=25} }, + melee_project = { [DamageType.MANABURN] = 50 }, }, wielder = { - inc_stats = { [Stats.STAT_WIL] = 6, [Stats.STAT_CUN] = 6,}, talent_cd_reduction={ [Talents.T_AURA_OF_SILENCE] = 2, [Talents.T_MANA_CLASH] = 2, @@ -2137,6 +2149,17 @@ newEntity{ base = "BASE_LONGSWORD", [DamageType.PHYSICAL] = - 10, }, }, + on_wear = function(self, who) + if who:attr("forbid_arcane") then + local Stats = require "engine.interface.ActorStats" + local DamageType = require "engine.DamageType" + local Talents = require "engine.interface.ActorTalents" + + self:specialWearAdd({"combat", "talent_on_hit"}, { [Talents.T_MANA_CLASH] = {level=1, chance=25} }) + self:specialWearAdd({"wielder","inc_stats"}, { [Stats.STAT_WIL] = 6, [Stats.STAT_CUN] = 6, }) + game.logPlayer(who, "#LIGHT_BLUE#You feel a great hero watching over you!") + end + end, } diff --git a/game/modules/tome/data/zones/lake-nur/grids.lua b/game/modules/tome/data/zones/lake-nur/grids.lua index 0c62f21e5b..d0bd9bdb3a 100644 --- a/game/modules/tome/data/zones/lake-nur/grids.lua +++ b/game/modules/tome/data/zones/lake-nur/grids.lua @@ -39,7 +39,7 @@ newEntity{ always_remember = true, change_level = 1, change_zone = "shertul-fortress", change_level_check = function(self, who) - if who:knownLore("old-forest-note-6") then + if who:knownLore("old-forest-note-5") then game.logPlayer(who, "#ANTIQUE_WHITE#You notice a hole that could fit the gem key you found earlier, inserting it reveals the passage to the next level.") who:setQuestStatus("shertul-fortress", engine.Quest.COMPLETED, "entered") else -- GitLab