From 6826ad6a3f9591b762e3e428f4a7978f71a641e2 Mon Sep 17 00:00:00 2001
From: HousePet <you@example.com>
Date: Fri, 24 Feb 2017 20:45:35 +1030
Subject: [PATCH] Bugs fixed, thanks to DarkGod.

---
 .../tome/data/general/objects/boss-artifacts-maj-eyal.lua | 8 +++++---
 .../data/general/objects/world-artifacts-maj-eyal.lua     | 5 ++---
 2 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/game/modules/tome/data/general/objects/boss-artifacts-maj-eyal.lua b/game/modules/tome/data/general/objects/boss-artifacts-maj-eyal.lua
index 9fc1564066..ab47d788a5 100644
--- a/game/modules/tome/data/general/objects/boss-artifacts-maj-eyal.lua
+++ b/game/modules/tome/data/general/objects/boss-artifacts-maj-eyal.lua
@@ -1061,10 +1061,11 @@ newEntity{ base = "BASE_GEM", define_as = "CRYSTAL_FOCUS",
 					o.power_regen = 1
 					o.use_no_wear = true
 					o.use_power = { name = "recover the Crystal Focus (destroys this weapon)", power = 1, use = function(self, who, inven, item)
-						local art_list = mod.class.Object:loadList("/data/general/objects/boss-artifacts-maj-eyal.lua")
+						local art_list = mod.class.Object:loadList("/data/general/objects/objects-maj-eyal.lua")
 						local o = art_list["CRYSTAL_FOCUS"]:clone()
 						o:resolve()
 						o:resolve(nil, true)
+						o:identify(true)
 						who:addObject(who.INVEN_INVEN, o)
 						who:sortInven(who.INVEN_INVEN)
 						local name = self:getName({no_count=true, force_id=true, no_add_name=true})
@@ -1180,10 +1181,11 @@ newEntity{ base = "BASE_GEM", define_as = "CRYSTAL_HEART",
 					o.power_regen = 1
 					o.use_no_wear = true
 					o.use_power = { name = "recover the Crystal Heart (destroys this armour)", power = 1, use = function(self, who, inven, item)
-						local art_list = mod.class.Object:loadList("/data/general/objects/boss-artifacts-maj-eyal.lua")
-						local o = art_list["CRYSTAL_HEART"]:clone()
+						local art_list = mod.class.Object:loadList("/data/general/objects/objects-maj-eyal.lua")
+						local o = art_list["CRYSTAL_FOCUS"]:clone()
 						o:resolve()
 						o:resolve(nil, true)
+						o:identify(true)
 						who:addObject(who.INVEN_INVEN, o)
 						who:sortInven(who.INVEN_INVEN)
 						local name = self:getName({no_count=true, force_id=true, no_add_name=true})
diff --git a/game/modules/tome/data/general/objects/world-artifacts-maj-eyal.lua b/game/modules/tome/data/general/objects/world-artifacts-maj-eyal.lua
index 3236bfa865..c580f00b18 100644
--- a/game/modules/tome/data/general/objects/world-artifacts-maj-eyal.lua
+++ b/game/modules/tome/data/general/objects/world-artifacts-maj-eyal.lua
@@ -767,9 +767,8 @@ newEntity{ base = "BASE_GEM", define_as = "GEM_TELOS",
 	on_set_complete = function(self, who)
 		local DamageType = require "engine.DamageType"
 		self:specialSetAdd({"wielder","spell_cooldown_reduction"}, 0.1)
-		self:specialSetAdd({"wielder","all_damage_convert"}, DamageType.DRAINLIFE)
-		self:specialSetAdd({"wielder","all_damage_convert_percent"}, 10)
-		game.logSeen(game.player, "#CRIMSON#Telos's gem seems to flare and glow an unearthly colour.")
+		self:specialWearAdd({"wielder","melee_project"}, { [engine.DamageType.DRAINLIFE] = 50 } )
+		game.logSeen(game.player, "#CRIMSON#Telos's gem seems to flare and glows an unearthly colour.")
 	end,
 	on_set_broken = function(self, who)
 		game.logPlayer(game.player, "#CRIMSON#The unearthly glow fades away.")
-- 
GitLab