This would mean that anti-magic users can use this, increasing synergy and buffing antimagic a bit.
I also suggest a small nerf on the item itself:
Instead of costing 40/60, I suggest using it more often but removing less effects.
Perhaps 16/20, instead of removing 3+ effects (1 for each 10 points in magic), just have it remove 2 effects.
These changes will make this artifact less powerful, while at the same time making it more useful for more characters.
Code: Select all
newEntity{ base = "BASE_LITE", define_as = "WINTERTIDE_PHIAL",
power_source = {psionic=true},
unided_name = "phial filled with darkness", unique = true, image="object/artifact/wintertide_phial.png",
name = "Wintertide Phial", color=colors.DARK_GREY,
desc = [[This phial seems filled with darkness, yet it cleanses your thoughts.]],
level_range = {1, 10},
rarity = 200,
encumber = 2,
cost = 50,
material_level = 1,
wielder = {
lite = 1,
infravision = 6,
},
max_power = 20, power_regen = 1,
use_power = { name = "cleanse your mind (remove a few detrimental mental effects)", power = 16,
use = function(self, who)
local target = who
local effs = {}
local known = false
-- Go through all spell effects
for eff_id, p in pairs(target.tmp) do
local e = target.tempeffect_def[eff_id]
if e.type == "mental" and e.status == "detrimental" then
effs[#effs+1] = {"effect", eff_id}
end
end
for i = 1, 2 do
if #effs == 0 then break end
local eff = rng.tableRemove(effs)
if eff[1] == "effect" then
target:removeEffect(eff[2])
known = true
end
end
game.logSeen(who, "%s's mind is clear!", who.name:capitalize())
return {id=true, used=true}
end
},
}