Skip to content
Snippets Groups Projects
Commit 8fe19d9e authored by dg's avatar dg
Browse files

Wintertide Phial now has an activation

git-svn-id: http://svn.net-core.org/repos/t-engine4@4392 51575b47-30f0-44d4-a5cc-537603b46e54
parent b1d0c32a
No related branches found
No related tags found
No related merge requests found
......@@ -110,7 +110,6 @@ Your control over chronomancy spells increases with your Willpower.
TOOLTIP_PSI = [[#GOLD#Psi#LAST#
Psi represents how much energy your mind can harness. Like matter, it can be neither created nor destroyed.
It does not regenerate naturally. You must absorb energy through shields or through various other talents.
Your capacity for storing energy is determined by your Willpower.
]]
......
......@@ -74,6 +74,35 @@ newEntity{ base = "BASE_LITE", define_as = "WINTERTIDE_PHIAL",
lite = 1,
infravision = 6,
},
max_power = 60, power_regen = 1,
use_power = { name = "mental cleansing", power = 40,
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, 3 + math.floor(who:getMag() / 10) 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
},
}
newEntity{ base = "BASE_AMULET",
......
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