Skip to content
Snippets Groups Projects
Commit 6826ad6a authored by HousePet's avatar HousePet
Browse files

Bugs fixed, thanks to DarkGod.

parent a7a968f9
No related branches found
No related tags found
1 merge request!410Art gem polish, as requested
......@@ -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})
......
......@@ -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.")
......
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